JBoss Integration plugin 2.4 NullPointException

apart from the Mac OS startup exception, I'm now (with 2.4) getting the
following when I try to get to the EJB dialog (SessionBean->Edit).

No message
java.lang.NullPointerException
at
com.intellij.j2ee.j2eeDom.J2EEModuleProperties.getInstance(J2EEModuleProperties.java:33)
at

com.fuhrer.idea.plugin.jboss.mi.b(mi.java:18)
at com.fuhrer.idea.plugin.jboss.fl.b(fl.java:5)
at com.fuhrer.idea.plugin.jboss.be.g(be.java:12)
at com.fuhrer.idea.plugin.jboss.yd.reset(yd.java:27)
at com.fuhrer.idea.plugin.jboss.md.reset(md.java:36)
at com.fuhrer.idea.plugin.jboss.md.reset(md.java:36)
at com.intellij.j2ee.ui.CompositeCommitable.reset(CompositeCommitable.java:42)
at com.intellij.j2ee.ui.UIUpdater.c(UIUpdater.java:74)
at com.intellij.j2ee.ui.UIUpdater.access$1500(UIUpdater.java:81)
at
com.intellij.j2ee.ui.UIUpdater$UpdateFromPsiAction$1$1.run(UIUpdater.java:10)
at

com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:113)
at

com.intellij.j2ee.ui.UIUpdater$UpdateFromPsiAction$1.run(UIUpdater.java:0)
at com.intellij.util.Alarm$1.run(Alarm.java:98)
at com.intellij.util.Alarm$MyThread$1.run(Alarm.java:241)
at
com.intellij.openapi.application.impl.LaterInvocatorEx$FlushQueue.run(LaterInvocatorEx.java:3)
at

java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:25)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:128)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:62)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:267)
at

java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:196)
at

java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:182)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

It seems to have something to do with the ejb-jar.xml/jboss.xml
mappings... if I remove all ejb-local-ref from ejb-jar.xml, it's
possible to open the dialog again. But I also noticed the side-by-side
editing (which also removes the mappings from jboss.xml when I delete
them from ejb-jar) has the terrible side-effect of not being undoable,
or rather the undo restores wrong entries in jboss.xml.

here are the two files in question - any idea?

-


ejb-jar.xml -


Some functionality Some Service Some Facade bean Some Facade SomeFacadeEJB com.somecompany.some.service.someFacadeHome com.somecompany.some.service.someFacade com.somecompany.some.service.LocalsomeFacadeHome com.somecompany.some.service.LocalsomeFacade com.somecompany.some.service.someFacadeBean Stateless Container settings/routeDownloadDir java.lang.String C:\Data\store_map\work settings/enableCaching java.lang.String false ejb/Geocoding Session com.somecompany.webservices.geocoding.LocalGeocodingHome com.somecompany.webservices.geocoding.LocalGeocoding ejb/Download Session com.somecompany.webservices.download.LocalDownloadHome com.somecompany.webservices.download.LocalDownload ejb/Guidance Session com.somecompany.webservices.download.LocalGuidanceHome com.somecompany.webservices.download.LocalGuidance ejb/Routing1 Session com.somecompany.webservices.routing.LocalRoutingHome com.somecompany.webservices.routing.LocalRouting ejb/Routing2 Session com.somecompany.webservices.routing.LocalRoutingHome com.somecompany.webservices.routing.LocalRouting ejb/Routing3 Session com.somecompany.webservices.routing.LocalRoutingHome com.somecompany.webservices.routing.LocalRouting ejb/Routing4 Session com.somecompany.webservices.routing.LocalRoutingHome com.somecompany.webservices.routing.LocalRouting ejb/Routing5 Session com.somecompany.webservices.routing.LocalRoutingHome com.somecompany.webservices.routing.LocalRouting ]]>

-


jboss.xml
SomeFacadeEJB remote/someFacadeEJB local/someFacadeEJB false ejb/Geocoding local/GeocodingServiceEJB ejb/Download local/DownloadServiceEJB ejb/Guidance local/GuidanceServiceEJB ejb/Routing1 local/FastestRoutingServiceEJB ejb/Routing2 local/ShortestRoutingServiceEJB ejb/Routing3 local/PreferHwyRoutingServiceEJB ejb/Routing4 local/AvoidHwyRoutingServiceEJB ejb/Routing5 local/AvoidTollRoutingServiceEJB false ]]>


0
2 comments
Avatar
Permanently deleted user

PS: just noticed that the same is happening on Web Modules

(IDEA 5, 3461)

No message
java.lang.NullPointerException
at
com.intellij.j2ee.j2eeDom.J2EEModuleProperties.getInstance(J2EEModuleProperties.java:33)
at

com.fuhrer.idea.plugin.jboss.mi.b(mi.java:18)
at com.fuhrer.idea.plugin.jboss.fl.b(fl.java:5)
at com.fuhrer.idea.plugin.jboss.be.g(be.java:12)
at com.fuhrer.idea.plugin.jboss.yd.reset(yd.java:27)
at com.fuhrer.idea.plugin.jboss.md.reset(md.java:36)
at com.fuhrer.idea.plugin.jboss.md.reset(md.java:36)
at com.intellij.j2ee.ui.CompositeCommitable.reset(CompositeCommitable.java:42)
at
com.intellij.j2ee.module.view.ejb.ejbLevel.J2EEPropertiesPanel.reset(J2EEPropertiesPanel.java:34)
at

com.intellij.j2ee.module.view.common.editor.J2EEModuleEditor.resetEditor(J2EEModuleEditor.java:21)
at

com.intellij.j2ee.module.view.common.editor.J2EEEditorBase.getComponent(J2EEEditorBase.java:89)
at

com.intellij.j2ee.module.view.common.editor.J2EEEditorBase.init(J2EEEditorBase.java:31)
at

com.intellij.j2ee.module.view.common.editor.J2EEModuleEditor.(J2EEModuleEditor.java:10) at com.intellij.j2ee.module.components.WebModulePropertiesImpl.createEditor(WebModulePropertiesImpl.java:90) at com.intellij.j2ee.module.view.common.editor.J2EEModuleEditorProvider.createEditor(J2EEModuleEditorProvider.java:27) at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl3(FileEditorManagerImpl.java:1) at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$3.run(FileEditorManagerImpl.java:1) at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:53) at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:20) at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl2(FileEditorManagerImpl.java:21) at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl(FileEditorManagerImpl.java:120) at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileWithProviders(FileEditorManagerImpl.java:15) at com.intellij.openapi.fileEditor.ex.FileEditorManagerEx.openFile(FileEditorManagerEx.java) at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$4.run(FileEditorManagerImpl.java:19) at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:109) at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:20) at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openEditor(FileEditorManagerImpl.java:384) at com.intellij.openapi.fileEditor.OpenFileDescriptor.openFileAskingType(OpenFileDescriptor.java:135) at com.intellij.openapi.fileEditor.OpenFileDescriptor.navigate(OpenFileDescriptor.java:102) at com.intellij.util.OpenSourceUtil.navigate(OpenSourceUtil.java:41) at com.intellij.util.OpenSourceUtil.openSourcesFrom(OpenSourceUtil.java:29) at com.intellij.ide.actions.BaseNavigateToSourceAction.actionPerformed(BaseNavigateToSourceAction.java:11) at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:14) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882) at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:6) at com.intellij.ui.plaf.beg.BegMenuItemUI.a(BegMenuItemUI.java:117) at com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(BegMenuItemUI.java:260) at com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleased(BegMenuItemUI.java:3) at java.awt.Component.processMouseEvent(Component.java:5562) at javax.swing.JComponent.processMouseEvent(JComponent.java:3093) at java.awt.Component.processEvent(Component.java:5327) at java.awt.Container.processEvent(Container.java:2010) at java.awt.Component.dispatchEventImpl(Component.java:4029) at java.awt.Container.dispatchEventImpl(Container.java:2068) at java.awt.Component.dispatchEvent(Component.java:3877) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3936) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866) at java.awt.Container.dispatchEventImpl(Container.java:2054) at java.awt.Window.dispatchEventImpl(Window.java:1766) at java.awt.Component.dispatchEvent(Component.java:3877) at java.awt.EventQueue.dispatchEvent(EventQueue.java:463) at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:25) at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:46) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:62) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:267) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:196) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:190) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:182) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) On 2005-10-14 10:41:41 +0200, Oliver Fink ]]> said:

apart from the Mac OS startup exception, I'm now (with 2.4) getting the
following when I try to get to the EJB dialog (SessionBean->Edit).

No message
java.lang.NullPointerException
at
com.intellij.j2ee.j2eeDom.J2EEModuleProperties.getInstance(J2EEModuleProperties.java:33)

at
com.fuhrer.idea.plugin.jboss.mi.b(mi.java:18)
at


com.fuhrer.idea.plugin.jboss.fl.b(fl.java:5)
at com.fuhrer.idea.plugin.jboss.be.g(be.java:12)
at com.fuhrer.idea.plugin.jboss.yd.reset(yd.java:27)
at com.fuhrer.idea.plugin.jboss.md.reset(md.java:36)
at com.fuhrer.idea.plugin.jboss.md.reset(md.java:36)
at com.intellij.j2ee.ui.CompositeCommitable.reset(CompositeCommitable.java:42)
at com.intellij.j2ee.ui.UIUpdater.c(UIUpdater.java:74)
at com.intellij.j2ee.ui.UIUpdater.access$1500(UIUpdater.java:81)
at
com.intellij.j2ee.ui.UIUpdater$UpdateFromPsiAction$1$1.run(UIUpdater.java:10)

at
com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:113)
at
com.intellij.j2ee.ui.UIUpdater$UpdateFromPsiAction$1.run(UIUpdater.java:0)
at


com.intellij.util.Alarm$1.run(Alarm.java:98)
at com.intellij.util.Alarm$MyThread$1.run(Alarm.java:241)
at
com.intellij.openapi.application.impl.LaterInvocatorEx$FlushQueue.run(LaterInvocatorEx.java:3)

at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at


java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:25)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:128)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:62)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:267)

at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:196)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:190)
at


java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:182)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

It seems to have something to do with the ejb-jar.xml/jboss.xml
mappings... if I remove all ejb-local-ref from ejb-jar.xml, it's
possible to open the dialog again. But I also noticed the side-by-side
editing (which also removes the mappings from jboss.xml when I delete
them from ejb-jar) has the terrible side-effect of not being undoable,
or rather the undo restores wrong entries in jboss.xml.

here are the two files in question - any idea?

---- ejb-jar.xml ----
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise
JavaBeans 2.0//EN' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>
<ejb-jar>
<description>Some functionality</description>
<display-name>Some Service</display-name>
<enterprise-beans>
<session>
<description>Some Facade bean</description>
<display-name>Some Facade</display-name>
<ejb-name>SomeFacadeEJB</ejb-name>
<home>com.somecompany.some.service.someFacadeHome</home>
<remote>com.somecompany.some.service.someFacade</remote>
<local-home>com.somecompany.some.service.LocalsomeFacadeHome</local-home>
<local>com.somecompany.some.service.LocalsomeFacade</local>
<ejb-class>com.somecompany.some.service.someFacadeBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
<env-entry>
<description>
</description>
<env-entry-name>settings/routeDownloadDir</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>C:\Data\store_map\work</env-entry-value>
</env-entry>
<env-entry>
<description>
</description>
<env-entry-name>settings/enableCaching</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>false</env-entry-value>
</env-entry>
<ejb-local-ref>
<ejb-ref-name>ejb/Geocoding</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>

<local-home>com.somecompany.webservices.geocoding.LocalGeocodingHome</local-home>



<local>com.somecompany.webservices.geocoding.LocalGeocoding</local>
</ejb-local-ref>
<ejb-local-ref>
<ejb-ref-name>ejb/Download</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>

<local-home>com.somecompany.webservices.download.LocalDownloadHome</local-home>



<local>com.somecompany.webservices.download.LocalDownload</local>
</ejb-local-ref>
<ejb-local-ref>
<ejb-ref-name>ejb/Guidance</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>

<local-home>com.somecompany.webservices.download.LocalGuidanceHome</local-home>



<local>com.somecompany.webservices.download.LocalGuidance</local>
</ejb-local-ref>
<ejb-local-ref>
<ejb-ref-name>ejb/Routing1</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>

<local-home>com.somecompany.webservices.routing.LocalRoutingHome</local-home>



<local>com.somecompany.webservices.routing.LocalRouting</local>
</ejb-local-ref>
<ejb-local-ref>
<ejb-ref-name>ejb/Routing2</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>

<local-home>com.somecompany.webservices.routing.LocalRoutingHome</local-home>



<local>com.somecompany.webservices.routing.LocalRouting</local>
</ejb-local-ref>
<ejb-local-ref>
<ejb-ref-name>ejb/Routing3</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>

<local-home>com.somecompany.webservices.routing.LocalRoutingHome</local-home>



<local>com.somecompany.webservices.routing.LocalRouting</local>
</ejb-local-ref>
<ejb-local-ref>
<ejb-ref-name>ejb/Routing4</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>

<local-home>com.somecompany.webservices.routing.LocalRoutingHome</local-home>



<local>com.somecompany.webservices.routing.LocalRouting</local>
</ejb-local-ref>
<ejb-local-ref>
<ejb-ref-name>ejb/Routing5</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>

<local-home>com.somecompany.webservices.routing.LocalRoutingHome</local-home>



<local>com.somecompany.webservices.routing.LocalRouting</local>
</ejb-local-ref>
</session>
</enterprise-beans>
</ejb-jar>

----- jboss.xml
<?xml version="1.0"?>
<!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 3.2//EN"
"http://www.jboss.org/j2ee/dtd/jboss_3_2.dtd">
<jboss>
<enterprise-beans>
<session>
<ejb-name>SomeFacadeEJB</ejb-name>
<jndi-name>remote/someFacadeEJB</jndi-name>
<local-jndi-name>local/someFacadeEJB</local-jndi-name>
<call-by-value>false</call-by-value>
<ejb-local-ref>
<ejb-ref-name>ejb/Geocoding</ejb-ref-name>
<local-jndi-name>local/GeocodingServiceEJB</local-jndi-name>
</ejb-local-ref>
<ejb-local-ref>
<ejb-ref-name>ejb/Download</ejb-ref-name>
<local-jndi-name>local/DownloadServiceEJB</local-jndi-name>
</ejb-local-ref>
<ejb-local-ref>
<ejb-ref-name>ejb/Guidance</ejb-ref-name>
<local-jndi-name>local/GuidanceServiceEJB</local-jndi-name>
</ejb-local-ref>
<ejb-local-ref>
<ejb-ref-name>ejb/Routing1</ejb-ref-name>
<local-jndi-name>local/FastestRoutingServiceEJB</local-jndi-name>
</ejb-local-ref>
<ejb-local-ref>
<ejb-ref-name>ejb/Routing2</ejb-ref-name>
<local-jndi-name>local/ShortestRoutingServiceEJB</local-jndi-name>
</ejb-local-ref>
<ejb-local-ref>
<ejb-ref-name>ejb/Routing3</ejb-ref-name>
<local-jndi-name>local/PreferHwyRoutingServiceEJB</local-jndi-name>
</ejb-local-ref>
<ejb-local-ref>
<ejb-ref-name>ejb/Routing4</ejb-ref-name>
<local-jndi-name>local/AvoidHwyRoutingServiceEJB</local-jndi-name>
</ejb-local-ref>
<ejb-local-ref>
<ejb-ref-name>ejb/Routing5</ejb-ref-name>
<local-jndi-name>local/AvoidTollRoutingServiceEJB</local-jndi-name>
</ejb-local-ref>
<clustered>false</clustered>
</session>
</enterprise-beans>
</jboss>



0
Avatar
Permanently deleted user

Could you send me a snapshot of the whole project by mail? Would be
easier to reproduce.

Oliver Fink wrote:

PS: just noticed that the same is happening on Web Modules

(IDEA 5, 3461)

No message
java.lang.NullPointerException
at
com.intellij.j2ee.j2eeDom.J2EEModuleProperties.getInstance(J2EEModuleProperties.java:33)

at
com.fuhrer.idea.plugin.jboss.mi.b(mi.java:18)
at com.fuhrer.idea.plugin.jboss.fl.b(fl.java:5)
at com.fuhrer.idea.plugin.jboss.be.g(be.java:12)
at com.fuhrer.idea.plugin.jboss.yd.reset(yd.java:27)
at com.fuhrer.idea.plugin.jboss.md.reset(md.java:36)
at com.fuhrer.idea.plugin.jboss.md.reset(md.java:36)
at
com.intellij.j2ee.ui.CompositeCommitable.reset(CompositeCommitable.java:42)
at
com.intellij.j2ee.module.view.ejb.ejbLevel.J2EEPropertiesPanel.reset(J2EEPropertiesPanel.java:34)

at
com.intellij.j2ee.module.view.common.editor.J2EEModuleEditor.resetEditor(J2EEModuleEditor.java:21)

at
com.intellij.j2ee.module.view.common.editor.J2EEEditorBase.getComponent(J2EEEditorBase.java:89)

at
com.intellij.j2ee.module.view.common.editor.J2EEEditorBase.init(J2EEEditorBase.java:31)

at
com.intellij.j2ee.module.view.common.editor.J2EEModuleEditor.<init>(J2EEModuleEditor.java:10)

at
com.intellij.j2ee.module.components.WebModulePropertiesImpl.createEditor(WebModulePropertiesImpl.java:90)

at
com.intellij.j2ee.module.view.common.editor.J2EEModuleEditorProvider.createEditor(J2EEModuleEditorProvider.java:27)

at
com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl3(FileEditorManagerImpl.java:1)

at
com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$3.run(FileEditorManagerImpl.java:1)

at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:53)

at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:20)

at
com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl2(FileEditorManagerImpl.java:21)

at
com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl(FileEditorManagerImpl.java:120)

at
com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileWithProviders(FileEditorManagerImpl.java:15)

at
com.intellij.openapi.fileEditor.ex.FileEditorManagerEx.openFile(FileEditorManagerEx.java)

at
com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$4.run(FileEditorManagerImpl.java:19)

at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:109)

at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:20)

at
com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openEditor(FileEditorManagerImpl.java:384)

at
com.intellij.openapi.fileEditor.OpenFileDescriptor.openFileAskingType(OpenFileDescriptor.java:135)

at
com.intellij.openapi.fileEditor.OpenFileDescriptor.navigate(OpenFileDescriptor.java:102)

at
com.intellij.util.OpenSourceUtil.navigate(OpenSourceUtil.java:41)
at
com.intellij.util.OpenSourceUtil.openSourcesFrom(OpenSourceUtil.java:29)
at
com.intellij.ide.actions.BaseNavigateToSourceAction.actionPerformed(BaseNavigateToSourceAction.java:11)

at
com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:14)

at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882)
at
com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:6)

at
com.intellij.ui.plaf.beg.BegMenuItemUI.a(BegMenuItemUI.java:117)
at
com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(BegMenuItemUI.java:260)
at
com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleased(BegMenuItemUI.java:3)

at
java.awt.Component.processMouseEvent(Component.java:5562)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3093)
at java.awt.Component.processEvent(Component.java:5327)
at java.awt.Container.processEvent(Container.java:2010)
at java.awt.Component.dispatchEventImpl(Component.java:4029)
at java.awt.Container.dispatchEventImpl(Container.java:2068)
at java.awt.Component.dispatchEvent(Component.java:3877)
at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3936)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
at java.awt.Container.dispatchEventImpl(Container.java:2054)
at java.awt.Window.dispatchEventImpl(Window.java:1766)
at java.awt.Component.dispatchEvent(Component.java:3877)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at
com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:25)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:46)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:62)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:267)

at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:196)

at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:190)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:182)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)


On 2005-10-14 10:41:41 +0200, Oliver Fink <post.olifink@boomerango.com>
said:

>> apart from the Mac OS startup exception, I'm now (with 2.4) getting
>> the following when I try to get to the EJB dialog (SessionBean->Edit).
>>
>> No message
>> java.lang.NullPointerException
>> at
>> com.intellij.j2ee.j2eeDom.J2EEModuleProperties.getInstance(J2EEModuleProperties.java:33)
>>


at
com.fuhrer.idea.plugin.jboss.mi.b(mi.java:18)
at

>>
>> com.fuhrer.idea.plugin.jboss.fl.b(fl.java:5)
>> at com.fuhrer.idea.plugin.jboss.be.g(be.java:12)
>> at com.fuhrer.idea.plugin.jboss.yd.reset(yd.java:27)
>> at com.fuhrer.idea.plugin.jboss.md.reset(md.java:36)
>> at com.fuhrer.idea.plugin.jboss.md.reset(md.java:36)
>> at
>> com.intellij.j2ee.ui.CompositeCommitable.reset(CompositeCommitable.java:42)
>>
>> at com.intellij.j2ee.ui.UIUpdater.c(UIUpdater.java:74)
>> at com.intellij.j2ee.ui.UIUpdater.access$1500(UIUpdater.java:81)
>> at
>> com.intellij.j2ee.ui.UIUpdater$UpdateFromPsiAction$1$1.run(UIUpdater.java:10)
>>


at
com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:113)

at
com.intellij.j2ee.ui.UIUpdater$UpdateFromPsiAction$1.run(UIUpdater.java:0)
at

>>
>> com.intellij.util.Alarm$1.run(Alarm.java:98)
>> at com.intellij.util.Alarm$MyThread$1.run(Alarm.java:241)
>> at
>> com.intellij.openapi.application.impl.LaterInvocatorEx$FlushQueue.run(LaterInvocatorEx.java:3)
>>


at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at

>>
>> java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
>> at
>> com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:25)
>>
>> at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:128)
>> at
>> com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:62)
>> at
>> java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:267)
>>


at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:196)

at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:190)
at

>>
>> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:182)
>> at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
>>
>> It seems to have something to do with the ejb-jar.xml/jboss.xml
>> mappings... if I remove all ejb-local-ref from ejb-jar.xml, it's
>> possible to open the dialog again. But I also noticed the side-by-side
>> editing (which also removes the mappings from jboss.xml when I delete
>> them from ejb-jar) has the terrible side-effect of not being undoable,
>> or rather the undo restores wrong entries in jboss.xml.
>>
>> here are the two files in question - any idea?
>>
>> -


ejb-jar.xml -


>> >> " rel="nofollow">http://java.sun.com/dtd/ejb-jar_2_0.dtd'> >> >> Some functionality >> Some Service >> >> >> Some Facade bean >> Some Facade >> SomeFacadeEJB >> com.somecompany.some.service.someFacadeHome >> com.somecompany.some.service.someFacade >> >> com.somecompany.some.service.LocalsomeFacadeHome >> com.somecompany.some.service.LocalsomeFacade >> com.somecompany.some.service.someFacadeBean >> Stateless >> Container >> >> >> >> settings/routeDownloadDir >> java.lang.String >> C:\Data\store_map\work >> >> >> >> >> settings/enableCaching >> java.lang.String >> false >> >> >> ejb/Geocoding >> Session >> >> com.somecompany.webservices.geocoding.LocalGeocodingHome >>]]>


>>
>> com.somecompany.webservices.geocoding.LocalGeocoding >> >> >> ejb/Download >> Session >> >> com.somecompany.webservices.download.LocalDownloadHome >>]]>


>>
>> com.somecompany.webservices.download.LocalDownload >> >> >> ejb/Guidance >> Session >> >> com.somecompany.webservices.download.LocalGuidanceHome >>]]>


>>
>> com.somecompany.webservices.download.LocalGuidance >> >> >> ejb/Routing1 >> Session >> >> com.somecompany.webservices.routing.LocalRoutingHome >>]]>


>>
>> com.somecompany.webservices.routing.LocalRouting >> >> >> ejb/Routing2 >> Session >> >> com.somecompany.webservices.routing.LocalRoutingHome >>]]>


>>
>> com.somecompany.webservices.routing.LocalRouting >> >> >> ejb/Routing3 >> Session >> >> com.somecompany.webservices.routing.LocalRoutingHome >>]]>


>>
>> com.somecompany.webservices.routing.LocalRouting >> >> >> ejb/Routing4 >> Session >> >> com.somecompany.webservices.routing.LocalRoutingHome >>]]>


>>
>> com.somecompany.webservices.routing.LocalRouting >> >> >> ejb/Routing5 >> Session >> >> com.somecompany.webservices.routing.LocalRoutingHome >>]]>


>>
>> com.somecompany.webservices.routing.LocalRouting >> >> >> >> >> >>]]> -


jboss.xml
>> >> > "http://www.jboss.org/j2ee/dtd/jboss_3_2.dtd"> >> >> >> >> SomeFacadeEJB >> remote/someFacadeEJB >> local/someFacadeEJB >> false >> >> ejb/Geocoding >> local/GeocodingServiceEJB >> >> >> ejb/Download >> local/DownloadServiceEJB >> >> >> ejb/Guidance >> local/GuidanceServiceEJB >> >> >> ejb/Routing1 >> local/FastestRoutingServiceEJB >> >> >> ejb/Routing2 >> >> local/ShortestRoutingServiceEJB >> >> >> ejb/Routing3 >> >> local/PreferHwyRoutingServiceEJB >> >> >> ejb/Routing4 >> >> local/AvoidHwyRoutingServiceEJB >> >> >> ejb/Routing5 >> >> local/AvoidTollRoutingServiceEJB >> >> false >> >> >> ]]>



--
Martin Fuhrer
Fuhrer Engineering AG
http://www.fuhrer.com

0

Please sign in to leave a comment.