1 Reply Latest reply on Dec 3, 2013 7:52 PM by Viacheslav Kabanovich

    JBoss Knowledge Base Builder - NullPointerException (VirtualResource.getProjectRelativePaths(...))

    Bryan Pugh Newbie

      I am unable to get any content assistance in my xhtml pages, and I believe it is related to the error I get when building the project:

       

      Platform:

      Eclipse Java EE

      Version: Kepler Service Release 1

      Build id: 20130919-8019

       

      JBoss Tools:

      I am not sure which plugin versions are useful but here are some important looking ones:

      JBoss AS Core Plug-in - 2.4.100.Final-v20130717-0846-B106

      JBoss Tools Common - 3.5.1.Final-v20130717-0450-B102

      Application Server Interface Core Plug-in - 2.4.100.Final-v20130717-0846-B106

      Context and Dependency Injection Core - 1.5.0.Final-v20130717-0417-B93

      El Plug-in - 3.5.1.Final-v20130717-0450-B102

       

       

       

      A popup appears that says:

      ----------------------------------------------------------------------------------------------------------------

      Problem Occured

      'Building workspace' has encountered a problem.

      Errors occured during the build.

       

      Details:

      Errors occurred during the build.

      Errors running builder 'JBoss Knowledge Base Builder' on project 'Web-2.23'.

      java.lang.NullPointerException

      ----------------------------------------------------------------------------------------------------------------

       

      Stacktrace:

      !ENTRY org.eclipse.core.resources 4 75 2013-12-03 15:24:15.443

      !MESSAGE Errors occurred during the build.

      !SUBENTRY 1 org.jboss.tools.jst.web.kb 4 75 2013-12-03 15:24:15.443

      !MESSAGE Errors running builder 'JBoss Knowledge Base Builder' on project 'Web-2.23'.

      !STACK 0

      java.lang.NullPointerException

              at org.eclipse.wst.common.componentcore.internal.resources.VirtualResource.getProjectRelativePaths(VirtualResource.java:119)

              at org.eclipse.wst.common.componentcore.internal.resources.VirtualResource.getProjectRelativePath(VirtualResource.java:154)

              at org.eclipse.wst.common.componentcore.internal.resources.VirtualResource.getWorkspaceRelativePath(VirtualResource.java:109)

              at org.jboss.tools.jst.web.model.helpers.InnerModelHelper.getWebInfPath(InnerModelHelper.java:91)

              at org.jboss.tools.jst.web.model.helpers.InnerModelHelper.createXModel(InnerModelHelper.java:46)

              at org.jboss.tools.jst.web.kb.internal.scanner.ClassPathMonitor.init(ClassPathMonitor.java:60)

              at org.jboss.tools.jst.web.kb.internal.KbProject.setProject(KbProject.java:202)

              at org.eclipse.core.internal.resources.NatureManager.createNature(NatureManager.java:233)

              at org.eclipse.core.internal.resources.Project.getNature(Project.java:448)

              at org.jboss.tools.jst.web.kb.KbProjectFactory.getKbProject(KbProjectFactory.java:67)

              at org.jboss.tools.jst.web.kb.KbProjectFactory.getKbProject(KbProjectFactory.java:34)

              at org.jboss.tools.jst.web.kb.internal.scanner.ClassPathMonitor.getKbProjects(ClassPathMonitor.java:201)

              at org.jboss.tools.jst.web.kb.internal.scanner.ClassPathMonitor.hasToUpdateProjectDependencies(ClassPathMonitor.java:166)

              at org.jboss.tools.jst.web.kb.internal.scanner.ClassPathMonitor.build(ClassPathMonitor.java:214)

              at org.jboss.tools.jst.web.kb.internal.KbBuilder.build(KbBuilder.java:102)

              at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:733)

              at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)

              at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)

              at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246)

              at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:299)

              at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)

              at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:302)

              at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:358)

              at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:381)

              at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)

              at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)

              at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)