java.lang.NullPointerException: null

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 599#254888963
    via GitHub by hikrrish
    ,
  • 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,
    • java.lang.NullPointerException: null 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 pl.allegro.tech.hermes.consumers.supervisor.workload.SubscriptionAssignmentView.getAssignmentsForConsumerNode(SubscriptionAssignmentView.java:75) at pl.allegro.tech.hermes.consumers.supervisor.workload.SubscriptionAssignmentView.getSubscriptionsForConsumerNode(SubscriptionAssignmentView.java:71) at pl.allegro.tech.hermes.consumers.supervisor.workload.mirror.MirroringSupervisorController.assignedSubscriptions(MirroringSupervisorController.java:127) at pl.allegro.tech.hermes.consumers.supervisor.monitor.ConsumersRuntimeMonitor.checkCorrectness(ConsumersRuntimeMonitor.java:46) at pl.allegro.tech.hermes.consumers.supervisor.monitor.ConsumersRuntimeMonitor.run(ConsumersRuntimeMonitor.java:74) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

    Users with the same issue

    Unknown visitor1 times, last one,
    Andreas Häber
    Andreas Häber1 times, last one,
    tvrmsmith
    tvrmsmith2 times, last one,
    tfr
    tfr1 times, last one,
    Unknown visitor1 times, last one,