Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dali » NPE in Indigo SR2 when adding JPA facet
NPE in Indigo SR2 when adding JPA facet [message #814538] Tue, 06 March 2012 15:17 Go to next message
David Vree is currently offline David Vree
Messages: 45
Registered: July 2010
Member
I've been running Indigo SR1 with Dali (for JPA support) for some time without issue.

Today I'm trying a fresh install of Indigo SR2 from scratch. When I go to add the JPA facet to my Java project, I keep getting a NullPointerException as follows:

Any help on this is welcome as our team has really grown to depend on the Dali tools for JPA!

eclipse.buildId=M20120208-0800
java.version=1.6.0_26
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os linux -ws gtk -arch x86 -product org.eclipse.epp.package.jee.product

Error
Tue Mar 06 10:11:15 EST 2012
Failed while installing JPA 2.0.

java.lang.NullPointerException
at org.eclipse.jpt.common.core.internal.resource.ModuleResourceLocator.getDefaultResourceLocation(ModuleResourceLocator.java:34)
at org.eclipse.jpt.jpa.core.internal.facet.JpaFacetInstallDelegate.defaultResourceLocation(JpaFacetInstallDelegate.java:141)
at org.eclipse.jpt.jpa.core.internal.facet.JpaFacetInstallDelegate.createPersistenceXml(JpaFacetInstallDelegate.java:111)
at org.eclipse.jpt.jpa.core.internal.facet.JpaFacetInstallDelegate.createProjectXml(JpaFacetInstallDelegate.java:101)
at org.eclipse.jpt.jpa.core.internal.facet.JpaFacetInstallDelegate.execute_(JpaFacetInstallDelegate.java:62)
at org.eclipse.jpt.jpa.core.internal.facet.JpaFacetActionDelegate.execute(JpaFacetActionDelegate.java:34)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.callDelegate(FacetedProject.java:1477)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.modifyInternal(FacetedProject.java:441)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.mergeChangesInternal(FacetedProject.java:1181)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.access$2(FacetedProject.java:1117)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject$5.run(FacetedProject.java:1099)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.mergeChanges(FacetedProject.java:1109)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProjectWorkingCopy.commitChanges(FacetedProjectWorkingCopy.java:2020)
at org.eclipse.wst.common.project.facet.ui.internal.FacetsPropertyPage$4.run(FacetsPropertyPage.java:232)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
at org.eclipse.wst.common.project.facet.ui.internal.FacetsPropertyPage$5.run(FacetsPropertyPage.java:246)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Re: NPE in Indigo SR2 when adding JPA facet [message #814694 is a reply to message #814538] Tue, 06 March 2012 19:35 Go to previous messageGo to next message
Paul Fullbright is currently offline Paul Fullbright
Messages: 200
Registered: July 2009
Senior Member
I'm not seeing this behavior. Can you give more details for how it occurs, preferably in a new bug?
Re: NPE in Indigo SR2 when adding JPA facet [message #814695 is a reply to message #814538] Tue, 06 March 2012 19:37 Go to previous messageGo to next message
Paul Fullbright is currently offline Paul Fullbright
Messages: 200
Registered: July 2009
Senior Member
(forum barf)

[Updated on: Tue, 06 March 2012 19:39]

Report message to a moderator

Re: NPE in Indigo SR2 when adding JPA facet [message #814706 is a reply to message #814694] Tue, 06 March 2012 19:50 Go to previous messageGo to next message
David Vree is currently offline David Vree
Messages: 45
Registered: July 2010
Member
Paul Fullbright wrote on Tue, 06 March 2012 14:35
I'm not seeing this behavior. Can you give more details for how it occurs, preferably in a new bug?


Will do.
Re: NPE in Indigo SR2 when adding JPA facet [message #814814 is a reply to message #814538] Tue, 06 March 2012 23:06 Go to previous message
Neil Hauge is currently offline Neil Hauge
Messages: 469
Registered: July 2009
Senior Member
Not to distract from the bug you are probably entering, but did you use the "Configure" menu "Convert to JPA Project...", or some other mechanism? I assume your existing projects are importing fine?

This seems to be working for me as well. Happy to hear your team is experiencing the benefits of the Dali tooling. Hopefully we can find a quick resolution to the problem you are seeing.

Neil
Previous Topic:Eclipse JPA problem on a named query that doesn't have a problem
Next Topic:JPA Diagram Editor and JEE INDIGO error.
Goto Forum:
  


Current Time: Thu Oct 23 14:43:04 GMT 2014

Powered by FUDForum. Page generated in 0.02483 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software