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
]]>
Please sign in to leave a comment.
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:
at
com.fuhrer.idea.plugin.jboss.mi.b(mi.java:18)
at
at
com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:113)
at
com.intellij.j2ee.ui.UIUpdater$UpdateFromPsiAction$1.run(UIUpdater.java:0)
at
at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:196)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:190)
at
Could you send me a snapshot of the whole project by mail? Would be
easier to reproduce.
Oliver Fink wrote:
>> 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)
>>
>>
>> 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)
>>
>>
>> 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)
>>
>>
>> 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)
>>
>>
>> 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