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

Key: HJMS-137
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Colin Crist
Reporter: Jan-Helge Bergesen
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
HermesJMS

NPE when attempting edit on JNDI session towards Glassfish 2.1 (Hermes JMS 1.14 soapUI)

Created: 24/Feb/11 04:14 AM   Updated: 12/Jul/11 04:57 AM
Component/s: None
Affects Version/s: 1.14
Fix Version/s: 1.14

Environment:
Hermes JMS 1.14 soapUI.
Client is windows XP Pro.
Server is Sun GlassFish Enterprise Server v2.1 Patch05 (9.1_02 Patch11) (build b03-p05) on SunOS xxxxx 5.10 Generic_141414-10 sun4v sparc SUNW,SPARC-Enterprise-T5120.

HermesJMS is bundled with soapUI 3.6(.1)


 Description  « Hide
Select edit on session/<Node with JNDI discovered topics>

{code}
java.lang.NullPointerException
at hermes.browser.dialog.GeneralConfigPanel.setHermesConfig(GeneralConfigPanel.java:310)
at hermes.browser.dialog.PreferencesDialog.refocus(PreferencesDialog.java:104)
at hermes.browser.dialog.PreferencesDialog.initBodyPane(PreferencesDialog.java:406)
at hermes.browser.dialog.AbstractOptionDialog.initComponents(AbstractOptionDialog.java:414)
at hermes.browser.dialog.AbstractOptionDialog.init(AbstractOptionDialog.java:171)
at hermes.browser.dialog.PreferencesDialog.init(PreferencesDialog.java:227)
at hermes.swing.actions.EditObjectAction.actionPerformed(EditObjectAction.java:110)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at com.jidesoft.plaf.vsnet.VsnetMenuItemUI.doClick(Unknown Source)
at com.jidesoft.plaf.vsnet.VsnetMenuItemUI$MouseInputHandler.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
{code}


This exception is not logged in hermes.log (only displayed in GUI).
The log is preceeded by the following exception (some time ago):
{code}
2011-02-24 10:02:41,159 [Hermes ThreadPool-2] ERROR hermes.ext.HermesAdminSupport - discoverDestinationConfig binding=MEJB: javax/ejb/EJBHome
java.lang.NoClassDefFoundError: javax/ejb/EJBHome
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at hermes.impl.LoaderSupport$DebugClassLoader.loadClass(LoaderSupport.java:99)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at hermes.impl.LoaderSupport$DebugClassLoader.findClass(LoaderSupport.java:130)
at java.lang.ClassLoader.loadClass(Unknown Source)
at hermes.impl.LoaderSupport$DebugClassLoader.loadClass(LoaderSupport.java:99)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.sun.corba.ee.impl.util.JDKClassLoader.loadClass(JDKClassLoader.java:110)
at com.sun.corba.ee.impl.util.JDKBridge.loadClassM(JDKBridge.java:195)
at com.sun.corba.ee.impl.util.JDKBridge.loadClass(JDKBridge.java:99)
at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.loadClass(Util.java:691)
at com.sun.corba.ee.impl.presentation.rmi.StubFactoryFactoryDynamicBase.createStubFactory(StubFactoryFactoryDynamicBase.java:72)
at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_Object(CDRInputStream_1_0.java:795)
at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_Object(CDRInputStream_1_0.java:757)
at com.sun.corba.ee.impl.encoding.CDRInputStream.read_Object(CDRInputStream.java:389)
at com.sun.corba.ee.impl.corba.TCUtility.unmarshalIn(TCUtility.java:271)
at com.sun.corba.ee.impl.corba.AnyImpl.read_value(AnyImpl.java:610)
at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_any(CDRInputStream_1_0.java:748)
at com.sun.corba.ee.impl.encoding.CDRInputStream.read_any(CDRInputStream.java:406)
at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.readAny(Util.java:505)
at com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl$10.read(DynamicMethodMarshallerImpl.java:290)
at com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl.readResult(DynamicMethodMarshallerImpl.java:483)
at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:195)
at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:152)
at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(BCELStubBase.java:225)
at com.sun.enterprise.naming._SerialContextProvider_DynamicStub.lookup(com/sun/enterprise/naming/_SerialContextProvider_DynamicStub.java)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:417)
at hermes.ext.HermesAdminSupport.discoverDestinationConfigsFromContext(HermesAdminSupport.java:361)
at hermes.ext.HermesAdminSupport.discoverDestinationConfigsFromContext(HermesAdminSupport.java:401)
at hermes.ext.HermesAdminSupport.discoverDestinationConfigsFromContext(HermesAdminSupport.java:401)
at hermes.ext.HermesAdminSupport.discoverDestinationConfigs(HermesAdminSupport.java:443)
at hermes.impl.HermesAdminAdapter.discoverDestinationConfigs(HermesAdminAdapter.java:84)
at hermes.impl.DefaultHermesImpl.discoverDestinationConfigs(DefaultHermesImpl.java:1358)
at hermes.browser.tasks.DiscoverDestinationsTask.invoke(DiscoverDestinationsTask.java:76)
at hermes.browser.tasks.TaskSupport.run(TaskSupport.java:175)
at hermes.browser.tasks.ThreadPool.run(ThreadPool.java:170)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: javax.ejb.EJBHome
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 59 more
{code}

Restarting Hermes JMS and then going directly for the "Edit" option on the session, yields the same NullPointerException (hence, I don't think the EJBException is related.)

 All   Comments   Change History      Sort Order:
Colin Crist [12/Jul/11 04:57 AM]
Some boolean fields in the configuration did not have a default set causing an NPE during autoboxing.