3 Replies Latest reply on Nov 18, 2006 3:44 AM by Christian Wenz

    NullPointerException JBoss Eclipse IDE 2.0

    Christian Wenz Newbie

      Hey folks,

      I just installed Eclipse 3.2.1" and "JBoss Eclipse IDE 2.0". If I try to start an JBoss-Server (3.2) out of Eclipse I get a bunch of NullPointerExcpetions (see below). Can anybody help me with that? Greetings and thanks Chris

      at org.jboss.ide.eclipse.as.core.server.runtime.AbstractServerRuntimeDelegate.addDirectory(AbstractServerRuntimeDelegate.java:199)
      at org.jboss.ide.eclipse.as.core.server.runtime.AbstractServerRuntimeDelegate.getRuntimeClasspath(AbstractServerRuntimeDelegate.java:146)
      at org.jboss.ide.eclipse.as.core.server.JBossLaunchConfigurationDelegate.setupLaunchConfiguration(JBossLaunchConfigurationDelegate.java:227)
      at org.jboss.ide.eclipse.as.core.server.JBossLaunchConfigurationDelegate.setupLaunchConfiguration(JBossLaunchConfigurationDelegate.java:94)
      at org.jboss.ide.eclipse.as.core.client.TwiddleLauncher.createTwiddleLaunch(TwiddleLauncher.java:112)
      at org.jboss.ide.eclipse.as.core.client.TwiddleLauncher.launchTwiddles(TwiddleLauncher.java:83)
      at org.jboss.ide.eclipse.as.core.client.TwiddleLauncher.getTwiddleResults(TwiddleLauncher.java:150)
      at org.jboss.ide.eclipse.as.core.client.TwiddleLauncher.getTwiddleResults(TwiddleLauncher.java:141)
      at org.jboss.ide.eclipse.as.core.server.ServerStateChecker.getTwiddleResults(ServerStateChecker.java:284)
      at org.jboss.ide.eclipse.as.core.server.ServerStateChecker.run(ServerStateChecker.java:107)

        • 1. Re: NullPointerException JBoss Eclipse IDE 2.0
          Rob Stryker Master

          I've only ever seen that error before if you try to start the server twice in a row, or try to terminate it while it's starting.

          Looking at the code, the only way for there to be a null pointer there is if the directory being added to the classpath either does not exist (unlikely) or the permsisions dont allow us to access it.

          File libs[] = libDir.listFiles(someFilter);

          If there were no acceptable children, it would be of size zero, instead of null.

          It also seems that the error is occurring only where the server is trying to verify whether the server is up or down, as opposed to when actually starting or stopping the server. So does the server start or stop normally?

          Either way, this is entirely rewritten in HEAD and the errors should not exist, but that's no consolation to you who then needs to wait for beta 3 ;)

          • 2. Re: NullPointerException JBoss Eclipse IDE 2.0
            Christian Wenz Newbie

            Hey Rob,

            if I start the server in the command line without the help of eclipse it starts and stops normally. If I start jboss outof eclipse the progressbar displays "Starting ..." but never changes to "Started". So it seems that the verification of the server state is the problem.

            But maybe it is a problem with the permission. I work on a linux-system and had a lot of trouble with the permissions in the jboss directory "server". Could you tell me which directories should be accessable.

            • 3. Re: NullPointerException JBoss Eclipse IDE 2.0
              Christian Wenz Newbie

              I have found some more detailed informations to my problem. The described behaviour rises if I choose an JBoss AS 3.2 Server as server type. If I choose JBoss v3.2.3 everything works fine. Does anybody has an explanation for this?