4 Replies Latest reply on May 31, 2009 1:34 PM by maxandersen

    "Initializing Java Tooling" java.lang.NullPointerException w

      Hi,

      A question that is nagging me for some time:

      How can I convert a project created with JBoss Tools 3.0.0.GA to be able to use it under JBoss Developer Studio 2.0.0.GA ?

      Version: 3.4.2
      Build id: M20090211-1700
      3.0.0.GA-R200903141626-H5

      to JBoss Developer Studio

      Version: 2.0.0.GA
      Build id: R200903141247-H4


      The problem is that I am getting the following error message:

      'Initializing Java Tooling' has encountered a problem.
      an internal error occurred during:
      "Initializing Java Tooling" java.lang.NullPointerException

      when I want to open the project with JDBS 2.0.0.GA.

      Many thanks!

        • 1. Re:
          nickboldt

          Since JBDS 2.0 is built with Eclipse 3.4.2 and JBT 3.0 pieces, it should be seamlessly intercompatible with JBT 3.0 itself. No pun intended.

          Check your workspace/.metadata/.log file or the Error view for more information on what that NPE really means.

          You might also want to try pointing JBDS at a brand-new empty workspace, then using File > Import to bring your old project into the new workspace.

          Finally, if that doesn't work, compare a project created in JBDS with your old project. One might have different settings in the .classpath or .project file which is causing a problem. (To see these files in Eclipse or JBDS, open the Navigator view.)

          • 2. Re:

            Thank you very much!

            In the log file, there was a java.lang.NullPointerException at org.drools.eclipse.util.DroolsRuntimeManager.getDroolsRuntimeJars(DroolsRuntimeManager.java:187), so I removed reference to drools from .classpath. And it works!

            • 3. Migrating from JBoss Tools to JBoss Dev Studio (Drools suppo
              nickboldt

              If you actually want to use Drools in JBDS, you can install it from the JBoss Tools Stable update site:

              Instructions: http://www.jboss.org/tools/download/update.html
              Site to use: http://download.jboss.org/jbosstools/updates/stable/

              • 4. Re:
                maxandersen

                 

                "mstille" wrote:
                Thank you very much!

                In the log file, there was a java.lang.NullPointerException at org.drools.eclipse.util.DroolsRuntimeManager.getDroolsRuntimeJars(DroolsRuntimeManager.java:187), so I removed reference to drools from .classpath. And it works!


                Please report in jira with a full stacktrace and what you exactly removed to fix it...there should not be any NPE when migrating workspaces...