Skip to main content



      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 10:17 Go to next message
Eclipse UserFriend
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 14:35 Go to previous messageGo to next message
Eclipse UserFriend
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 14:37 Go to previous messageGo to next message
Eclipse UserFriend
(forum barf)

[Updated on: Tue, 06 March 2012 14:39] by Moderator

Re: NPE in Indigo SR2 when adding JPA facet [message #814706 is a reply to message #814694] Tue, 06 March 2012 14:50 Go to previous messageGo to next message
Eclipse UserFriend
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 18:06 Go to previous message
Eclipse UserFriend
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: Sun May 11 00:20:12 EDT 2025

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

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

Back to the top