2 Replies Latest reply on Mar 4, 2008 6:43 AM by Max Rydahl Andersen

    JBossAS Tools causes NPE in Eclipse's Java Tooling

    Nick de Graeve Newbie

      I installed JBossTools 2.0.0.GA (JBossTools Core 2.0.0.GA, JBossAS Tools 1.0.0.GA & Hibernate Tools 3.2.0.GA) in Eclipse 3.3.1.1 via the Update Manager and URL http://download.jboss.org/jbosstools/updates/stable.

      When I import an existing project into Eclipse I get NullPointerExceptions when the 'Java Tooling' initializes. If I disable the JBossAS Tools 1.0.0.GA component everything goes ok.

      Any idea what goes wrong and how to fix it?


      Thanks.

      Nick.

      Stack trace:

      ENTRY org.eclipse.ui.navigator 4 0 2008-02-19 10:03:24.103
      !MESSAGE java.lang.NullPointerException
      !STACK 0
      java.lang.NullPointerException
      at org.jboss.ide.eclipse.as.classpath.core.ejb3.EJB3ClasspathContainer.getClasspathEntries(EJB3ClasspathContainer.java:113)
      at org.eclipse.jdt.internal.core.JavaModelManager.containerPutIfInitializingWithSameEntries(JavaModelManager.java:547)
      at org.eclipse.jdt.internal.core.SetContainerOperation.executeOperation(SetContainerOperation.java:49)
      at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:720)
      at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1797)
      at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:785)
      at org.eclipse.jdt.core.JavaCore.setClasspathContainer(JavaCore.java:4519)
      at org.jboss.ide.eclipse.as.classpath.core.ejb3.EJB3ClasspathContainerInitializer.initialize(EJB3ClasspathContainerInitializer.java:46)
      at org.eclipse.jdt.internal.core.JavaModelManager.initializeContainer(JavaModelManager.java:2218)
      at org.eclipse.jdt.internal.core.JavaModelManager.getClasspathContainer(JavaModelManager.java:1546)
      at org.eclipse.jdt.core.JavaCore.getClasspathContainer(JavaCore.java:1571)
      at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2558)
      at org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspath(JavaProject.java:1848)
      at org.eclipse.jdt.internal.core.SetContainerOperation.executeOperation(SetContainerOperation.java:91)
      at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:720)
      at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1797)
      at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:785)
      at org.eclipse.jdt.core.JavaCore.setClasspathContainer(JavaCore.java:4519)
      at org.eclipse.jdt.internal.junit.buildpath.JUnitContainerInitializer.initialize(JUnitContainerInitializer.java:91)
      at org.eclipse.jdt.internal.core.JavaModelManager.initializeContainer(JavaModelManager.java:2218)
      at org.eclipse.jdt.internal.core.JavaModelManager.getClasspathContainer(JavaModelManager.java:1546)
      at org.eclipse.jdt.core.JavaCore.getClasspathContainer(JavaCore.java:1571)
      at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2558)
      at org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspath(JavaProject.java:1848)
      at org.eclipse.jdt.internal.core.JavaModelManager.determineIfOnClasspath(JavaModelManager.java:904)
      at org.eclipse.jdt.internal.core.JavaModelManager.create(JavaModelManager.java:790)
      at org.eclipse.jdt.internal.core.JavaModelManager.create(JavaModelManager.java:730)
      at org.eclipse.jdt.core.JavaCore.create(JavaCore.java:1456)
      at org.eclipse.jdt.internal.ui.navigator.JavaNavigatorContentProvider.convertToJavaElements(JavaNavigatorContentProvider.java:241)
      at org.eclipse.jdt.internal.ui.navigator.JavaNavigatorContentProvider.interceptUpdate(JavaNavigatorContentProvider.java:304)
      at org.eclipse.ui.internal.navigator.NavigatorPipelineService.pipelineInterceptUpdate(NavigatorPipelineService.java:327)
      at org.eclipse.ui.internal.navigator.NavigatorPipelineService.interceptUpdate(NavigatorPipelineService.java:309)
      at org.eclipse.ui.navigator.CommonViewer.update(CommonViewer.java:421)
      at org.eclipse.jface.viewers.StructuredViewer.update(StructuredViewer.java:1905)
      at org.eclipse.jface.viewers.StructuredViewer.handleLabelProviderChanged(StructuredViewer.java:1118)
      at org.eclipse.ui.navigator.CommonViewer.handleLabelProviderChanged(CommonViewer.java:177)
      at org.eclipse.jface.viewers.ContentViewer$1.labelProviderChanged(ContentViewer.java:74)
      at org.eclipse.ui.internal.navigator.NavigatorContentServiceLabelProvider$1.run(NavigatorContentServiceLabelProvider.java:294)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
      at org.eclipse.ui.internal.navigator.NavigatorContentServiceLabelProvider.fireLabelProviderChanged(NavigatorContentServiceLabelProvider.java:292)
      at org.eclipse.ui.internal.navigator.NavigatorContentServiceLabelProvider.labelProviderChanged(NavigatorContentServiceLabelProvider.java:347)
      at org.eclipse.jdt.ui.ProblemsLabelDecorator.fireProblemsChanged(ProblemsLabelDecorator.java:386)
      at org.eclipse.jdt.ui.ProblemsLabelDecorator.access$0(ProblemsLabelDecorator.java:381)
      at org.eclipse.jdt.ui.ProblemsLabelDecorator$1.problemsChanged(ProblemsLabelDecorator.java:361)
      at org.eclipse.jdt.internal.ui.viewsupport.ProblemMarkerManager$1.run(ProblemMarkerManager.java:177)
      at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
      at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
      at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3659)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3296)
      at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
      at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
      at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
      at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
      at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
      at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
      at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
      at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
      at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
      at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
      at org.eclipse.equinox.launcher.Main.run(Main.java:1173)