java.lang.NullPointerException

Spring JIRA | Brad L Vandermoon | 8 years ago
  1. 0

    Spring Project Builder errors in eclipse and Spring Explorer does not reflect any beans. Eclipse stack trace is below: Message An error occurred while traversing resources. java.lang.NullPointerException at java.util.Collections$UnmodifiableCollection.<init>(Unknown Source) at java.util.Collections$UnmodifiableSet.<init>(Unknown Source) at java.util.Collections.unmodifiableSet(Unknown Source) at org.springframework.ide.eclipse.beans.core.internal.model.AbstractBeansConfig.getImports(Unknown Source) at org.springframework.ide.eclipse.beans.core.internal.model.BeansProject.checkForImportedBeansConfig(Unknown Source) at org.springframework.ide.eclipse.beans.core.internal.model.BeansProject.getConfigs(Unknown Source) at org.springframework.ide.eclipse.beans.core.internal.model.BeansProject.getConfig(Unknown Source) at org.springframework.ide.eclipse.beans.core.internal.model.BeansModel.getConfig(Unknown Source) at org.springframework.ide.eclipse.beans.core.BeansCoreUtils.isBeansConfig(Unknown Source) at org.springframework.ide.eclipse.aop.core.util.AopReferenceModelUtils.getAffectedFiles(Unknown Source) at org.springframework.ide.eclipse.aop.core.builder.AopReferenceModelProjectBuilder.getAffectedResources(Unknown Source) at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager$ResourceTreeVisitor.visit(Unknown Source) at org.eclipse.core.internal.resources.Resource$2.visit(Unknown Source) at org.eclipse.core.internal.resources.Resource$1.visitElement(Unknown Source) at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(Unknown Source) at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(Unknown Source) at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(Unknown Source) at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(Unknown Source) at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(Unknown Source) at org.eclipse.core.internal.resources.Resource.accept(Unknown Source) at org.eclipse.core.internal.resources.Resource.accept(Unknown Source) at org.eclipse.core.internal.resources.Resource.accept(Unknown Source) at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.getAffectedResources(Unknown Source) at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.build(Unknown Source) at org.eclipse.core.internal.events.BuildManager$2.run(Unknown Source) at org.eclipse.core.runtime.SafeRunner.run(Unknown Source) at org.eclipse.core.internal.events.BuildManager.basicBuild(Unknown Source) at org.eclipse.core.internal.events.BuildManager.basicBuild(Unknown Source) at org.eclipse.core.internal.events.BuildManager$1.run(Unknown Source) at org.eclipse.core.runtime.SafeRunner.run(Unknown Source) at org.eclipse.core.internal.events.BuildManager.basicBuild(Unknown Source) at org.eclipse.core.internal.events.BuildManager.build(Unknown Source) at org.eclipse.core.internal.resources.Project.build(Unknown Source) at org.springframework.ide.eclipse.core.SpringCoreUtils$1.runInWorkspace(Unknown Source) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(Unknown Source) at org.eclipse.core.internal.jobs.Worker.run(Unknown Source)

    Spring JIRA | 8 years ago | Brad L Vandermoon
    java.lang.NullPointerException
  2. 0

    Spring Project Builder errors in eclipse and Spring Explorer does not reflect any beans. Eclipse stack trace is below: Message An error occurred while traversing resources. java.lang.NullPointerException at java.util.Collections$UnmodifiableCollection.<init>(Unknown Source) at java.util.Collections$UnmodifiableSet.<init>(Unknown Source) at java.util.Collections.unmodifiableSet(Unknown Source) at org.springframework.ide.eclipse.beans.core.internal.model.AbstractBeansConfig.getImports(Unknown Source) at org.springframework.ide.eclipse.beans.core.internal.model.BeansProject.checkForImportedBeansConfig(Unknown Source) at org.springframework.ide.eclipse.beans.core.internal.model.BeansProject.getConfigs(Unknown Source) at org.springframework.ide.eclipse.beans.core.internal.model.BeansProject.getConfig(Unknown Source) at org.springframework.ide.eclipse.beans.core.internal.model.BeansModel.getConfig(Unknown Source) at org.springframework.ide.eclipse.beans.core.BeansCoreUtils.isBeansConfig(Unknown Source) at org.springframework.ide.eclipse.aop.core.util.AopReferenceModelUtils.getAffectedFiles(Unknown Source) at org.springframework.ide.eclipse.aop.core.builder.AopReferenceModelProjectBuilder.getAffectedResources(Unknown Source) at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager$ResourceTreeVisitor.visit(Unknown Source) at org.eclipse.core.internal.resources.Resource$2.visit(Unknown Source) at org.eclipse.core.internal.resources.Resource$1.visitElement(Unknown Source) at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(Unknown Source) at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(Unknown Source) at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(Unknown Source) at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(Unknown Source) at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(Unknown Source) at org.eclipse.core.internal.resources.Resource.accept(Unknown Source) at org.eclipse.core.internal.resources.Resource.accept(Unknown Source) at org.eclipse.core.internal.resources.Resource.accept(Unknown Source) at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.getAffectedResources(Unknown Source) at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.build(Unknown Source) at org.eclipse.core.internal.events.BuildManager$2.run(Unknown Source) at org.eclipse.core.runtime.SafeRunner.run(Unknown Source) at org.eclipse.core.internal.events.BuildManager.basicBuild(Unknown Source) at org.eclipse.core.internal.events.BuildManager.basicBuild(Unknown Source) at org.eclipse.core.internal.events.BuildManager$1.run(Unknown Source) at org.eclipse.core.runtime.SafeRunner.run(Unknown Source) at org.eclipse.core.internal.events.BuildManager.basicBuild(Unknown Source) at org.eclipse.core.internal.events.BuildManager.build(Unknown Source) at org.eclipse.core.internal.resources.Project.build(Unknown Source) at org.springframework.ide.eclipse.core.SpringCoreUtils$1.runInWorkspace(Unknown Source) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(Unknown Source) at org.eclipse.core.internal.jobs.Worker.run(Unknown Source)

    Spring JIRA | 8 years ago | Brad L Vandermoon
    java.lang.NullPointerException
  3. 0

    Following you can see my .springBeans file which leads to the NullpointerException. The context file etliApplicationContext.xml is the root context which imports the other three context files. I tried both ways (with and without checked import support) with the same result. While building the workspace the same NullpointerException is thrown many times. {code} <?xml version="1.0" encoding="UTF-8"?> <beansProjectDescription> <version>1</version> <pluginVersion><![CDATA[2.0.6.v200806241357]]></pluginVersion> <configSuffixes> <configSuffix><![CDATA[xml]]></configSuffix> </configSuffixes> <enableImports><![CDATA[false]]></enableImports> <configs> <config>resources/componentAspectsContext.xml</config> <config>resources/componentCommonContext.xml</config> <config>resources/componentProdContext.xml</config> <config>resources/etliApplicationContext.xml</config> </configs> <configSets> <configSet> <name><![CDATA[ETLI-Prod-Context]]></name> <allowBeanDefinitionOverriding>true</allowBeanDefinitionOverriding> <incomplete>false</incomplete> <configs> <config>resources/componentCommonContext.xml</config> <config>resources/componentProdContext.xml</config> <config>resources/componentAspectsContext.xml</config> <config>resources/etliApplicationContext.xml</config> </configs> </configSet> </configSets> </beansProjectDescription> {code} {code} !ENTRY org.eclipse.ui.navigator 4 2 2008-07-06 12:31:42.718 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.navigator". !STACK 0 java.lang.NullPointerException at java.util.Collections$UnmodifiableCollection.<init>(Unknown Source) at java.util.Collections$UnmodifiableSet.<init>(Unknown Source) at java.util.Collections.unmodifiableSet(Unknown Source) at org.springframework.ide.eclipse.beans.core.internal.model.AbstractBeansConfig.getImports(Unknown Source) at org.springframework.ide.eclipse.beans.core.internal.model.BeansProject.checkForImportedBeansConfig(Unknown Source) at org.springframework.ide.eclipse.beans.core.internal.model.BeansProject.getConfigs(Unknown Source) at org.springframework.ide.eclipse.beans.core.internal.model.BeansProject.getConfig(Unknown Source) at org.springframework.ide.eclipse.beans.core.internal.model.BeansModel.getConfig(Unknown Source) at org.springframework.ide.eclipse.beans.core.BeansCoreUtils.isBeansConfig(Unknown Source) at org.springframework.ide.eclipse.beans.core.internal.model.BeansModelPropertyTester.test(Unknown Source) at org.eclipse.core.internal.expressions.Property.test(Unknown Source) at org.eclipse.core.internal.expressions.TestExpression.evaluate(Unknown Source) at org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(Unknown Source) at org.eclipse.core.internal.expressions.AndExpression.evaluate(Unknown Source) at org.eclipse.core.internal.expressions.CompositeExpression.evaluateOr(Unknown Source) at org.eclipse.core.internal.expressions.OrExpression.evaluate(Unknown Source) at org.eclipse.ui.internal.navigator.CustomAndExpression.evaluate(Unknown Source) . . . {code}

    Spring JIRA | 8 years ago | U. Kkm
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Following you can see my .springBeans file which leads to the NullpointerException. The context file etliApplicationContext.xml is the root context which imports the other three context files. I tried both ways (with and without checked import support) with the same result. While building the workspace the same NullpointerException is thrown many times. {code} <?xml version="1.0" encoding="UTF-8"?> <beansProjectDescription> <version>1</version> <pluginVersion><![CDATA[2.0.6.v200806241357]]></pluginVersion> <configSuffixes> <configSuffix><![CDATA[xml]]></configSuffix> </configSuffixes> <enableImports><![CDATA[false]]></enableImports> <configs> <config>resources/componentAspectsContext.xml</config> <config>resources/componentCommonContext.xml</config> <config>resources/componentProdContext.xml</config> <config>resources/etliApplicationContext.xml</config> </configs> <configSets> <configSet> <name><![CDATA[ETLI-Prod-Context]]></name> <allowBeanDefinitionOverriding>true</allowBeanDefinitionOverriding> <incomplete>false</incomplete> <configs> <config>resources/componentCommonContext.xml</config> <config>resources/componentProdContext.xml</config> <config>resources/componentAspectsContext.xml</config> <config>resources/etliApplicationContext.xml</config> </configs> </configSet> </configSets> </beansProjectDescription> {code} {code} !ENTRY org.eclipse.ui.navigator 4 2 2008-07-06 12:31:42.718 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.navigator". !STACK 0 java.lang.NullPointerException at java.util.Collections$UnmodifiableCollection.<init>(Unknown Source) at java.util.Collections$UnmodifiableSet.<init>(Unknown Source) at java.util.Collections.unmodifiableSet(Unknown Source) at org.springframework.ide.eclipse.beans.core.internal.model.AbstractBeansConfig.getImports(Unknown Source) at org.springframework.ide.eclipse.beans.core.internal.model.BeansProject.checkForImportedBeansConfig(Unknown Source) at org.springframework.ide.eclipse.beans.core.internal.model.BeansProject.getConfigs(Unknown Source) at org.springframework.ide.eclipse.beans.core.internal.model.BeansProject.getConfig(Unknown Source) at org.springframework.ide.eclipse.beans.core.internal.model.BeansModel.getConfig(Unknown Source) at org.springframework.ide.eclipse.beans.core.BeansCoreUtils.isBeansConfig(Unknown Source) at org.springframework.ide.eclipse.beans.core.internal.model.BeansModelPropertyTester.test(Unknown Source) at org.eclipse.core.internal.expressions.Property.test(Unknown Source) at org.eclipse.core.internal.expressions.TestExpression.evaluate(Unknown Source) at org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(Unknown Source) at org.eclipse.core.internal.expressions.AndExpression.evaluate(Unknown Source) at org.eclipse.core.internal.expressions.CompositeExpression.evaluateOr(Unknown Source) at org.eclipse.core.internal.expressions.OrExpression.evaluate(Unknown Source) at org.eclipse.ui.internal.navigator.CustomAndExpression.evaluate(Unknown Source) . . . {code}

    Spring JIRA | 8 years ago | U. Kkm
    java.lang.NullPointerException

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at java.util.Collections$UnmodifiableCollection.<init>()
    2. Java RT
      Collections.unmodifiableSet
      1. java.util.Collections$UnmodifiableCollection.<init>(Unknown Source)
      2. java.util.Collections$UnmodifiableSet.<init>(Unknown Source)
      3. java.util.Collections.unmodifiableSet(Unknown Source)
      3 frames
    3. org.springframework.ide
      SpringProjectContributionManager$ResourceTreeVisitor.visit
      1. org.springframework.ide.eclipse.beans.core.internal.model.AbstractBeansConfig.getImports(Unknown Source)
      2. org.springframework.ide.eclipse.beans.core.internal.model.BeansProject.checkForImportedBeansConfig(Unknown Source)
      3. org.springframework.ide.eclipse.beans.core.internal.model.BeansProject.getConfigs(Unknown Source)
      4. org.springframework.ide.eclipse.beans.core.internal.model.BeansProject.getConfig(Unknown Source)
      5. org.springframework.ide.eclipse.beans.core.internal.model.BeansModel.getConfig(Unknown Source)
      6. org.springframework.ide.eclipse.beans.core.BeansCoreUtils.isBeansConfig(Unknown Source)
      7. org.springframework.ide.eclipse.aop.core.util.AopReferenceModelUtils.getAffectedFiles(Unknown Source)
      8. org.springframework.ide.eclipse.aop.core.builder.AopReferenceModelProjectBuilder.getAffectedResources(Unknown Source)
      9. org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager$ResourceTreeVisitor.visit(Unknown Source)
      9 frames
    4. Core Resource Management
      Resource.accept
      1. org.eclipse.core.internal.resources.Resource$2.visit(Unknown Source)
      2. org.eclipse.core.internal.resources.Resource$1.visitElement(Unknown Source)
      3. org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(Unknown Source)
      4. org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(Unknown Source)
      5. org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(Unknown Source)
      6. org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(Unknown Source)
      7. org.eclipse.core.internal.watson.ElementTreeIterator.iterate(Unknown Source)
      8. org.eclipse.core.internal.resources.Resource.accept(Unknown Source)
      9. org.eclipse.core.internal.resources.Resource.accept(Unknown Source)
      10. org.eclipse.core.internal.resources.Resource.accept(Unknown Source)
      10 frames
    5. org.springframework.ide
      SpringProjectContributionManager.build
      1. org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.getAffectedResources(Unknown Source)
      2. org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.build(Unknown Source)
      2 frames
    6. Core Resource Management
      BuildManager$2.run
      1. org.eclipse.core.internal.events.BuildManager$2.run(Unknown Source)
      1 frame
    7. Eclipse Core
      SafeRunner.run
      1. org.eclipse.core.runtime.SafeRunner.run(Unknown Source)
      1 frame
    8. Core Resource Management
      BuildManager$1.run
      1. org.eclipse.core.internal.events.BuildManager.basicBuild(Unknown Source)
      2. org.eclipse.core.internal.events.BuildManager.basicBuild(Unknown Source)
      3. org.eclipse.core.internal.events.BuildManager$1.run(Unknown Source)
      3 frames
    9. Eclipse Core
      SafeRunner.run
      1. org.eclipse.core.runtime.SafeRunner.run(Unknown Source)
      1 frame
    10. Core Resource Management
      Project.build
      1. org.eclipse.core.internal.events.BuildManager.basicBuild(Unknown Source)
      2. org.eclipse.core.internal.events.BuildManager.build(Unknown Source)
      3. org.eclipse.core.internal.resources.Project.build(Unknown Source)
      3 frames
    11. org.springframework.ide
      SpringCoreUtils$1.runInWorkspace
      1. org.springframework.ide.eclipse.core.SpringCoreUtils$1.runInWorkspace(Unknown Source)
      1 frame
    12. Core Resource Management
      InternalWorkspaceJob.run
      1. org.eclipse.core.internal.resources.InternalWorkspaceJob.run(Unknown Source)
      1 frame
    13. Eclipse Jobs
      Worker.run
      1. org.eclipse.core.internal.jobs.Worker.run(Unknown Source)
      1 frame