2 Replies Latest reply on May 3, 2005 3:50 AM by nfg

    Startup crash under eclipse

    nfg

      Hi,

      I've recently started to experience debug traps when starting JBoss-3.2.7 under Eclipse 3 (all on windows xp, j2sdk-1.4.2_06). Here's a stacktrace of the first exception encountered:

      Thread [main] (Suspended (exception NullPointerException))
       InputStreamReader(Reader).<init>(Object) line: 61
       InputStreamReader.<init>(InputStream, String) line: 80
       PropertyMap(Properties).load(InputStream) line: 266
       Main.<init>(String) line: 103
       NamingService.<init>() line: 57
       NativeConstructorAccessorImpl.newInstance0(Constructor, Object[]) line: not available [native method]
       NativeConstructorAccessorImpl.newInstance(Object[]) line: 39
       DelegatingConstructorAccessorImpl.newInstance(Object[]) line: 27
       Constructor.newInstance(Object[]) line: 274
       MBeanServerImpl.instantiate(String, ClassLoader, Object[], String[]) line: 871
       MBeanServerImpl.instantiate(String, ObjectName, Object[], String[]) line: 290
       ServiceCreator.install(ObjectName, ObjectName, Element) line: 160
       ServiceConfigurator.internalInstall(Element, List, ObjectName, boolean) line: 152
       ServiceConfigurator.install(Element, ObjectName) line: 117
       ServiceController.install(Element, ObjectName) line: 199
       NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method]
       NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39
       DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25
       Method.invoke(Object, Object[]) line: 324
       ReflectedDispatcher.dispatch(Object[]) line: 60a
       Invocation.dispatch(Object[]) line: 62
       Invocation.dispatch() line: 54
       Invocation.invoke() line: 82
       XMBean(AbstractMBeanInvoker).invoke(String, Object[], String[]) line: 198
       MBeanServerImpl.invoke(ObjectName, String, Object[], String[]) line: 473
       MBeanProxyExt.invoke(Object, Method, Object[]) line: 176
       $Proxy4.install(Element, ObjectName) line: not available
       SARDeployer.create(DeploymentInfo) line: 204
       MainDeployer.create(DeploymentInfo) line: 783
       MainDeployer.deploy(DeploymentInfo) line: 640
       MainDeployer.deploy(URL) line: 604
       MainDeployer.deploy(String) line: 588
       NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method]
       NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39
       DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25
       Method.invoke(Object, Object[]) line: 324
       ReflectedDispatcher.dispatch(Object[]) line: 60
       Invocation.dispatch(Object[]) line: 62
       Invocation.dispatch() line: 54
       Invocation.invoke() line: 82
       XMBean(AbstractMBeanInvoker).invoke(String, Object[], String[]) line: 198
       MBeanServerImpl.invoke(ObjectName, String, Object[], String[]) line: 473
       MBeanProxyExt.invoke(Object, Method, Object[]) line: 176
       $Proxy5.deploy(String) line: not available
       ServerImpl.doStart() line: 407
       ServerImpl.start() line: 311
       Main.boot(String[]) line: 191
       Main$1.run() line: 480
       Thread.run() line: 534
      


      Clicking continue in the eclipse debugger lets it continue until the following message is displayed:

      21:07:38,343 INFO [RARMetaData] Required license terms present. See deployment descriptor.


      and then the following exception is trapped by the debugger multiple times:

      Thread [main] (Suspended (exception NullPointerException))
       SARDeployer.parseDocument(DeploymentInfo) line: 540
       SARDeployer.init(DeploymentInfo) line: 137
       NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method]
       NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39
       DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25
       Method.invoke(Object, Object[]) line: 324
       ReflectedDispatcher.dispatch(Object[]) line: 60
       Invocation.dispatch(Object[]) line: 62
       Invocation.dispatch() line: 54
       Invocation.invoke() line: 82
       XMBean(AbstractMBeanInvoker).invoke(String, Object[], String[]) line: 198
       MBeanServerImpl.invoke(ObjectName, String, Object[], String[]) line: 473
       JMXInvocationHandler.invoke(Object, Method, Object[]) line: 274
       $Proxy26.init(DeploymentInfo) line: not available
       XSLSubDeployer.init(DeploymentInfo) line: 210
       MainDeployer.init(DeploymentInfo) line: 696
       MainDeployer.deploy(DeploymentInfo) line: 631
       MainDeployer.deploy(URL) line: 604
       NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method]
       NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39
       DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25
       Method.invoke(Object, Object[]) line: 324
       ReflectedDispatcher.dispatch(Object[]) line: 60
       Invocation.dispatch(Object[]) line: 62
       Invocation.dispatch() line: 54
       Invocation.invoke() line: 82
       XMBean(AbstractMBeanInvoker).invoke(String, Object[], String[]) line: 198
       MBeanServerImpl.invoke(ObjectName, String, Object[], String[]) line: 473
       MBeanProxyExt.invoke(Object, Method, Object[]) line: 176
       $Proxy8.deploy(URL) line: not available
       URLDeploymentScanner.deploy(URLDeploymentScanner$DeployedURL) line: 304
       URLDeploymentScanner.scan() line: 478
       AbstractDeploymentScanner$ScannerThread.doScan() line: 201
       URLDeploymentScanner(AbstractDeploymentScanner).startService() line: 274
       URLDeploymentScanner(ServiceMBeanSupport).jbossInternalStart() line: 271
       URLDeploymentScanner(ServiceMBeanSupport).jbossInternalLifecycle(String) line: 221
       NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method]
       NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39
       DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25
       Method.invoke(Object, Object[]) line: 324
       ReflectedDispatcher.dispatch(Object[]) line: 60
       Invocation.dispatch(Object[]) line: 62
       Invocation.dispatch() line: 54
       Invocation.invoke() line: 82
       XMBean(AbstractMBeanInvoker).invoke(String, Object[], String[]) line: 198
       MBeanServerImpl.invoke(ObjectName, String, Object[], String[]) line: 473
       ServiceController$ServiceProxy.invoke(Object, Method, Object[]) line: 899
       $Proxy0.start() line: not available
       ServiceController.start(ObjectName) line: 415
       GeneratedMethodAccessor5.invoke(Object, Object[]) line: not available
       DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25
       Method.invoke(Object, Object[]) line: 324
       ReflectedDispatcher.dispatch(Object[]) line: 60
       Invocation.dispatch(Object[]) line: 62
       Invocation.dispatch() line: 54
       Invocation.invoke() line: 82
       XMBean(AbstractMBeanInvoker).invoke(String, Object[], String[]) line: 198
       MBeanServerImpl.invoke(ObjectName, String, Object[], String[]) line: 473
       MBeanProxyExt.invoke(Object, Method, Object[]) line: 176
       $Proxy4.start(ObjectName) line: not available
       SARDeployer.start(DeploymentInfo) line: 251
       MainDeployer.start(DeploymentInfo) line: 829
       MainDeployer.deploy(DeploymentInfo) line: 641
       MainDeployer.deploy(URL) line: 604
       MainDeployer.deploy(String) line: 588
       NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method]
       NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39
       DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25
       Method.invoke(Object, Object[]) line: 324
       ReflectedDispatcher.dispatch(Object[]) line: 60
       Invocation.dispatch(Object[]) line: 62
       Invocation.dispatch() line: 54
       Invocation.invoke() line: 82
       XMBean(AbstractMBeanInvoker).invoke(String, Object[], String[]) line: 198
       MBeanServerImpl.invoke(ObjectName, String, Object[], String[]) line: 473
       MBeanProxyExt.invoke(Object, Method, Object[]) line: 176
       $Proxy5.deploy(String) line: not available
       ServerImpl.doStart() line: 407
       ServerImpl.start() line: 311
       Main.boot(String[]) line: 191
       Main$1.run() line: 480
       Thread.run() line: 534
      


      I am still in the process of downloading the source for 3.2.7 to see if I could maybe figure out what is going on.

      I am running the "default" server with the iiop-service activated on postgreSQL 8.0.0-rc1 (and it's accompanying jdbc driver).

      If anyone has seen this before and can offer some help it would be appreciated.

      Regards.

        • 1. Re: Startup crash under eclipse
          nfg

          Ok. I've managed to get the source down and found the following. The first exception is raised when an attempt is made to load from the "jnp.properties" file if it exists. If it doesn't an exception is thrown (which is ignored anyway), here's the code (jboss-3.2.7-src/naming/src/main/org/jnp/server/Main.java)

          try
           {
           ClassLoader loader = getClass().getClassLoader();
           InputStream is = loader.getResourceAsStream("jnp.properties");
           System.getProperties().load(is);
           }
           catch (Exception e)
           {
           // Ignore
           }
          


          I have no idea why eclipse is suddenly picking this up.

          The second also seems quite harmless, as it's due to an attempt to close a stream that was never opened - again I have no clue why Eclipse is trapping these now.

          Apart from being quite annoying (having to click "continue" multiple times), it looks like these are mostly harmless.

          Thanks for listening ;)

          • 2. Re: Startup crash under eclipse
            nfg

            Hi.

            The last reply to my own posts for this thread - I promise. Turns out there are options in the Eclipse debugger (when in the debug view) under "Breakpoints" where one can toggle break on NullPointerException & ClassCastException. These got turned out by magic - without them all is fine.