java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • GitHub comment 557#247999015
    via GitHub by danilovesky
    ,
  • GitHub comment 28#61051013
    via GitHub by ranjeetb
    ,
  • 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}
    via by U. Kkm,
  • 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)
    via by Brad L Vandermoon,
  • 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}
    via by U. Kkm,
  • NullPointerException with 2.5.5
    via by 3004,
  • 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)
    via by Brad L Vandermoon,
    • java.lang.NullPointerException at java.util.Collections$UnmodifiableCollection.<init>(Collections.java:1026) at java.util.Collections$UnmodifiableSet.<init>(Collections.java:1128) at java.util.Collections.unmodifiableSet(Collections.java:1118) at org.workcraft.dom.NodeContextTracker.getPostset(NodeContextTracker.java:144) at org.workcraft.dom.AbstractModel.getPostset(AbstractModel.java:139) at org.workcraft.plugins.circuit.routing.RouterClient.registerObstacles(RouterClient.java:83) at org.workcraft.plugins.circuit.VisualCircuit.draw(VisualCircuit.java:392)

    Users with the same issue

    Unknown visitor1 times, last one,
    Andreas Häber
    1 times, last one,
    tvrmsmith
    2 times, last one,
    tfr
    1 times, last one,
    Unknown visitor1 times, last one,