]
Jeff MAURY updated JBIDE-16612:
-------------------------------
Fix Version/s: LATER
(was: 4.5.0.AM1)
NPE after importing ui project from WFK 2.3
-------------------------------------------
Key: JBIDE-16612
URL:
https://issues.jboss.org/browse/JBIDE-16612
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: hibernate, upstream
Affects Versions: 4.2.0.Alpha2
Environment: JBDS 8.0.Alpha2b, Linus 64, Fedora 19, OpenJDK 1.7
Reporter: Jiri Peterka
Assignee: Koen Aers
Priority: Critical
Fix For: LATER
Attachments: npe-ui-prj-hibernate.png
After import there are multiple errors in error log
{code}
java.lang.NullPointerException
at
org.eclipse.jpt.jpa.core.internal.context.java.AbstractJavaPersistentAttribute.getMappingKey(AbstractJavaPersistentAttribute.java:212)
at
org.eclipse.jpt.jpa.core.internal.jpa1.context.AbstractPersistentAttributeValidator.validate(AbstractPersistentAttributeValidator.java:33)
at
org.eclipse.jpt.jpa.core.internal.context.java.AbstractJavaPersistentAttribute.validateAttribute(AbstractJavaPersistentAttribute.java:646)
at
org.eclipse.jpt.jpa.core.internal.context.java.AbstractJavaPersistentAttribute.validate(AbstractJavaPersistentAttribute.java:641)
at
org.eclipse.jpt.jpa.core.internal.context.java.AbstractJavaPersistentType.validateAttribute(AbstractJavaPersistentType.java:858)
at
org.eclipse.jpt.jpa.core.internal.context.java.AbstractJavaPersistentType.validateAttributes(AbstractJavaPersistentType.java:852)
at
org.eclipse.jpt.jpa.core.internal.context.java.AbstractJavaPersistentType.validate(AbstractJavaPersistentType.java:838)
at
org.eclipse.jpt.jpa.core.internal.jpa1.context.persistence.GenericClassRef.validateJavaManagedType(GenericClassRef.java:444)
at
org.eclipse.jpt.jpa.core.internal.jpa1.context.persistence.GenericClassRef.validate(GenericClassRef.java:438)
at
org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit.validateClassRefs(AbstractPersistenceUnit.java:2403)
at
org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit.validate(AbstractPersistenceUnit.java:2285)
at
org.eclipse.jpt.jpa.core.internal.jpa1.context.persistence.GenericPersistence.validatePersistenceUnit(GenericPersistence.java:347)
at
org.eclipse.jpt.jpa.core.internal.jpa1.context.persistence.GenericPersistence.validate(GenericPersistence.java:303)
at
org.eclipse.jpt.jpa.core.internal.jpa1.context.persistence.GenericPersistenceXml.validate(GenericPersistenceXml.java:243)
at
org.eclipse.jpt.jpa.core.internal.jpa1.context.GenericContextRoot.validate(GenericContextRoot.java:248)
at
org.eclipse.jpt.jpa.core.internal.AbstractJpaProject.validate(AbstractJpaProject.java:1459)
at
org.jboss.tools.hibernate.jpt.core.internal.HibernateJpaProject.validate(HibernateJpaProject.java:289)
at
org.eclipse.jpt.jpa.core.internal.AbstractJpaProject.getValidationMessages(AbstractJpaProject.java:1447)
at
org.eclipse.jpt.jpa.core.internal.InternalJpaProjectManager.buildValidationMessages_(InternalJpaProjectManager.java:584)
at
org.eclipse.jpt.jpa.core.internal.InternalJpaProjectManager$BuildValidationMessagesCommand.execute(InternalJpaProjectManager.java:572)
at
org.eclipse.jpt.common.core.internal.utility.command.CommandJobCommandAdapter.execute(CommandJobCommandAdapter.java:50)
at
org.eclipse.jpt.common.core.internal.utility.command.JobCommandJob.run(JobCommandJob.java:42)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
{code}
{code}
java.lang.NullPointerException
at
org.eclipse.jpt.jpa.ui.internal.structure.MappingStructureItemLabelProviderFactory$AttributeMappingImageDescriptorTransformer.getJpaPlatformUi(MappingStructureItemLabelProviderFactory.java:192)
at
org.eclipse.jpt.jpa.ui.internal.structure.MappingStructureItemLabelProviderFactory$AttributeMappingImageDescriptorTransformer.getAttributeMappingUiDefinition(MappingStructureItemLabelProviderFactory.java:187)
at
org.eclipse.jpt.jpa.ui.internal.structure.MappingStructureItemLabelProviderFactory$AttributeMappingImageDescriptorTransformer.transform(MappingStructureItemLabelProviderFactory.java:182)
at
org.eclipse.jpt.jpa.ui.internal.structure.MappingStructureItemLabelProviderFactory$AttributeMappingImageDescriptorTransformer.transform(MappingStructureItemLabelProviderFactory.java:1)
at
org.eclipse.jpt.common.utility.internal.model.value.TransformationPropertyValueModel.transform(TransformationPropertyValueModel.java:113)
at
org.eclipse.jpt.common.utility.internal.model.value.TransformationPropertyValueModel.engageModel(TransformationPropertyValueModel.java:137)
at
org.eclipse.jpt.common.utility.internal.model.value.AbstractPropertyValueModel.addPropertyChangeListener(AbstractPropertyValueModel.java:83)
at
org.eclipse.jpt.common.ui.internal.jface.AbstractModelItemLabelProvider.<init>(AbstractModelItemLabelProvider.java:65)
at
org.eclipse.jpt.common.ui.internal.jface.ModelItemExtendedLabelProvider.<init>(ModelItemExtendedLabelProvider.java:48)
at
org.eclipse.jpt.jpa.ui.internal.structure.MappingStructureItemLabelProviderFactory.buildPersistentAttributeProvider(MappingStructureItemLabelProviderFactory.java:143)
at
org.eclipse.jpt.jpa.ui.internal.platform.generic.GenericNavigatorItemLabelProviderFactory.buildPersistentAttributeProvider(GenericNavigatorItemLabelProviderFactory.java:150)
at
org.eclipse.jpt.jpa.ui.internal.platform.generic.GenericNavigatorItemLabelProviderFactory.buildProvider(GenericNavigatorItemLabelProviderFactory.java:78)
at
org.eclipse.jpt.jpa.ui.internal.navigator.JpaNavigatorItemLabelProviderFactory.buildProvider(JpaNavigatorItemLabelProviderFactory.java:37)
at
org.eclipse.jpt.common.ui.internal.jface.AbstractItemStructuredStateProviderManager.addLabelProvider(AbstractItemStructuredStateProviderManager.java:245)
at
org.eclipse.jpt.common.ui.internal.jface.AbstractItemStructuredStateProviderManager.add(AbstractItemStructuredStateProviderManager.java:241)
at
org.eclipse.jpt.common.ui.internal.jface.ItemTreeStateProviderManager.add(ItemTreeStateProviderManager.java:118)
at
org.eclipse.jpt.common.ui.internal.jface.AbstractItemStructuredStateProviderManager.addAll(AbstractItemStructuredStateProviderManager.java:220)
at
org.eclipse.jpt.common.ui.internal.jface.ItemTreeStateProviderManager.add(ItemTreeStateProviderManager.java:121)
at
org.eclipse.jpt.common.ui.internal.jface.AbstractItemStructuredStateProviderManager.addAll(AbstractItemStructuredStateProviderManager.java:220)
at
org.eclipse.jpt.common.ui.internal.jface.ItemTreeStateProviderManager.add(ItemTreeStateProviderManager.java:121)
at
org.eclipse.jpt.common.ui.internal.jface.AbstractItemStructuredStateProviderManager.addAll(AbstractItemStructuredStateProviderManager.java:220)
at
org.eclipse.jpt.common.ui.internal.jface.ItemTreeStateProviderManager.add(ItemTreeStateProviderManager.java:121)
at
org.eclipse.jpt.common.ui.internal.jface.AbstractItemStructuredStateProviderManager.addAll(AbstractItemStructuredStateProviderManager.java:220)
at
org.eclipse.jpt.common.ui.internal.jface.ItemTreeStateProviderManager.add(ItemTreeStateProviderManager.java:121)
at
org.eclipse.jpt.common.ui.internal.jface.AbstractItemStructuredStateProviderManager.addAll(AbstractItemStructuredStateProviderManager.java:231)
at
org.eclipse.jpt.common.ui.internal.jface.ItemTreeStateProviderManager.childrenChanged_(ItemTreeStateProviderManager.java:110)
at
org.eclipse.jpt.common.ui.internal.jface.ItemTreeStateProviderManager.childrenChanged(ItemTreeStateProviderManager.java:105)
at
org.eclipse.jpt.common.ui.internal.jface.ModelItemTreeContentProvider.notifyManager(ModelItemTreeContentProvider.java:63)
at
org.eclipse.jpt.common.ui.internal.jface.ModelItemContentProvider.childrenAdded_(ModelItemContentProvider.java:119)
at
org.eclipse.jpt.common.ui.internal.jface.ModelItemContentProvider.childrenAdded(ModelItemContentProvider.java:113)
at
org.eclipse.jpt.common.ui.internal.jface.ModelItemContentProvider$ChildrenListener.itemsAdded(ModelItemContentProvider.java:92)
at
org.eclipse.jpt.common.ui.internal.swt.listeners.SWTCollectionChangeListenerWrapper.forward(SWTCollectionChangeListenerWrapper.java:51)
at
org.eclipse.jpt.common.ui.internal.swt.listeners.SWTCollectionChangeListenerWrapper.forward(SWTCollectionChangeListenerWrapper.java:1)
at
org.eclipse.jpt.common.ui.internal.swt.listeners.SWTListenerWrapperDelegate.forwardEvents(SWTListenerWrapperDelegate.java:92)
at
org.eclipse.jpt.common.ui.internal.swt.listeners.SWTListenerWrapperDelegate$ForwardEventsRunnable.run(SWTListenerWrapperDelegate.java:81)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:136)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3746)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3394)
at
org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1122)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at
org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1006)
at
org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:146)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:615)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:566)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:125)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:109)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:80)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:372)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:226)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
{code}