2 Replies Latest reply on Oct 29, 2004 2:07 AM by juraj

    Error while apply interspector

    juraj Newbie

      Hello,

      I get this exception while appling an interspector to a method:


      !ENTRY org.eclipse.core.resources 4 566 Okt 28, 2006 13:07:17.421
      !MESSAGE An error occurred while traversing resources.
      !STACK 0
      java.lang.NullPointerException
      at org.jboss.ide.eclipse.jdt.aop.core.project.AopProjectBuilder$AopBuildVisitor.visit(AopProjectBuilder.java:176)
      at org.eclipse.core.internal.resources.Resource$2.visit(Resource.java:108)
      at org.eclipse.core.internal.resources.Resource$1.visitElement(Resource.java:55)
      at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:78)
      at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:82)
      at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:82)
      at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:82)
      at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:123)
      at org.eclipse.core.internal.resources.Resource.accept(Resource.java:65)
      at org.eclipse.core.internal.resources.Resource.accept(Resource.java:106)
      at org.eclipse.core.internal.resources.Resource.accept(Resource.java:85)
      at org.jboss.ide.eclipse.jdt.aop.core.project.AopProjectBuilder.cleanBuild(AopProjectBuilder.java:148)
      at org.jboss.ide.eclipse.jdt.aop.core.project.AopProjectBuilder.build(AopProjectBuilder.java:110)
      at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:570)
      at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:616)
      at org.eclipse.core.runtime.Platform.run(Platform.java:747)
      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:159)
      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:251)
      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:204)
      at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:231)
      at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:616)
      at org.eclipse.core.runtime.Platform.run(Platform.java:747)
      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:234)
      at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:270)
      at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:299)
      at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:155)
      at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:212)
      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)

      !ENTRY org.eclipse.core.runtime 4 2 Okt 28, 2006 13:07:17.437
      !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.runtime".
      !STACK 1
      org.eclipse.core.internal.resources.ResourceException(/TestXML)[566]: java.lang.NullPointerException
      at org.jboss.ide.eclipse.jdt.aop.core.project.AopProjectBuilder$AopBuildVisitor.visit(AopProjectBuilder.java:176)
      at org.eclipse.core.internal.resources.Resource$2.visit(Resource.java:108)
      at org.eclipse.core.internal.resources.Resource$1.visitElement(Resource.java:55)
      at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:78)
      at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:82)
      at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:82)
      at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:82)
      at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:123)
      at org.eclipse.core.internal.resources.Resource.accept(Resource.java:65)
      at org.eclipse.core.internal.resources.Resource.accept(Resource.java:106)
      at org.eclipse.core.internal.resources.Resource.accept(Resource.java:85)
      at org.jboss.ide.eclipse.jdt.aop.core.project.AopProjectBuilder.cleanBuild(AopProjectBuilder.java:148)
      at org.jboss.ide.eclipse.jdt.aop.core.project.AopProjectBuilder.build(AopProjectBuilder.java:110)
      at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:570)
      at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:616)
      at org.eclipse.core.runtime.Platform.run(Platform.java:747)
      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:159)
      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:251)
      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:204)
      at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:231)
      at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:616)
      at org.eclipse.core.runtime.Platform.run(Platform.java:747)
      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:234)
      at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:270)
      at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:299)
      at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:155)
      at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:212)
      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)
      !SUBENTRY 1 org.eclipse.core.resources 4 566 Okt 28, 2006 13:07:17.437
      !MESSAGE An error occurred while traversing resources.
      !STACK 0

      Any ideas?

      Juraj

        • 1. Re: Error while apply interspector
          Marshall Marshall Expert

          Juraj,

          Thanks for posting =). This is erroring when trying to get the file extension of a file. your TestXML probably has a file that doesn't have a file extension on it, which is causing this NPE. To fix it temporarily you could identify it and add an extension to it, or if this is not possible, I've fixed the offending line of code and put it in CVS. I'll be pushing out a new bug fix release soon that addresses this and some more problems soon.

          • 2. Re: Error while apply interspector
            juraj Newbie

            Hello Marshall,

            the TestXML is the name of my project. So I guess the project-folder (?) is intepreted as a file without a file-extension.

            Juraj