History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-23171
Type: Exception Exception
Status: Closed Closed
Resolution: Duplicate
Priority: Major Major
Assignee: Gregory Shrago
Reporter: Alexander Chernikov
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

NPE from ObjectManipulatorBase$MyAttributeAction.invokeAction() on creating an element on ER diagram

Created: 12 Nov 07 19:21   Updated: 25 Sep 08 15:30
Component/s: J2EE.Hibernate
Fix Version/s: Selena 7.0.4

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 7,548


 Description  « Hide
Get a hibernate config with one mapping (tested *.hbm.xml), with one entity class.
Open ER diagram. Entity is shown.
Do add a subelement (tested Property, Version). Provide name.
Then you get a dialog with files to modify: mapping.hbm.xml and Entity.java. Select both. Ok.
Result: you get the trace.

Bug happens, when entity on diagram has menu with "Property" and without "Basic" item. Otherwise bug does not happen.
Bug does not happen, if you select only mapping file or only entity class java.



 All   Comments   Work Log   Change History      Sort Order:
Alexander Chernikov - 12 Nov 07 19:21
No message
java.lang.NullPointerException
	at com.intellij.jpa.model.manipulators.ObjectManipulatorBase$MyAttributeAction.invokeAction(ObjectManipulatorBase.java:171)
	at com.intellij.jpa.model.manipulators.JpaObjectManipulatorBase$MyJpaAttributeAction.invokeAction(JpaObjectManipulatorBase.java:55)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at com.intellij.util.xml.DomReflectionUtil.invokeMethod(DomReflectionUtil.java:95)
	at com.intellij.util.xml.JavaMethod.invoke(JavaMethod.java:83)
	at com.intellij.persistence.ManipulatorsRegistryImpl$1.invokeMethod(ManipulatorsRegistryImpl.java:45)
	at com.intellij.persistence.ManipulatorsRegistryImpl$1.invokeMethod(ManipulatorsRegistryImpl.java:35)
	at com.intellij.util.xml.ModelMergerImpl$MergingInvocationHandler.invoke(ModelMergerImpl.java:19)
	at com.intellij.util.xml.MergedObject$$EnhancerByCGLIB$$83e48f1e.invokeAction(<generated>)
	at com.intellij.jpa.actions.NewGroupPersistence$MyAnAction$2.run(NewGroupPersistence.java:177)
	at com.intellij.persistence.PersistenceHelperImpl$1.run(PersistenceHelperImpl.java:99)
	at com.intellij.openapi.application.RunResult.run(RunResult.java:38)
	at com.intellij.openapi.command.WriteCommandAction$2$1.run(WriteCommandAction.java:121)
	at com.intellij.openapi.application.impl.ApplicationImpl$13.compute(ApplicationImpl.java:3)
	at com.intellij.psi.impl.source.PostprocessReformattingAspect.postponeFormattingInside(PostprocessReformattingAspect.java:5)
	at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:238)
	at com.intellij.openapi.command.WriteCommandAction$2.run(WriteCommandAction.java:119)
	at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:23)
	at com.intellij.openapi.command.WriteCommandAction.performWriteCommandAction(WriteCommandAction.java:117)
	at com.intellij.openapi.command.WriteCommandAction.execute(WriteCommandAction.java:74)
	at com.intellij.persistence.PersistenceHelperImpl.runCompositeWriteCommandAction(PersistenceHelperImpl.java:93)
	at com.intellij.jpa.actions.NewGroupPersistence$MyAnAction.performAction(NewGroupPersistence.java:174)
	at com.intellij.jpa.actions.NewGroupPersistence$MyAnAction.actionPerformed(NewGroupPersistence.java:133)
	at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:14)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
	at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:53)
	at com.intellij.ui.plaf.beg.BegMenuItemUI.a(BegMenuItemUI.java:135)
	at com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(BegMenuItemUI.java:84)
	at com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleased(BegMenuItemUI.java:4)
	at java.awt.Component.processMouseEvent(Component.java:6038)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
	at java.awt.Component.processEvent(Component.java:5803)
	at java.awt.Container.processEvent(Container.java:2058)
	at java.awt.Component.dispatchEventImpl(Component.java:4410)
	at java.awt.Container.dispatchEventImpl(Container.java:2116)
	at java.awt.Component.dispatchEvent(Component.java:4240)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
	at java.awt.Container.dispatchEventImpl(Container.java:2102)
	at java.awt.Window.dispatchEventImpl(Window.java:2429)
	at java.awt.Component.dispatchEvent(Component.java:4240)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:208)
	at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:43)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:88)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

Alexander Chernikov - 25 Sep 08 15:30
Duplicate what?