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.

  • NullPointerException with 2.5.5
    via by 3004,
  • 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,
  • 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,
  • GitHub comment 557#247999015
    via GitHub by danilovesky
    ,
    • java.lang.NullPointerException at java.util.Collections$UnmodifiableCollection.<init>(Collections.java:976) at java.util.Collections$UnmodifiableSet.<init>(Collections.java:1046) at java.util.Collections.unmodifiableSet(Collections.java:1038) at com.generator.dom.Company.getContacts(Company.java:107) at com.generator.dao.CompanyDaoImpl.getCompanyById(CompanyDaoImpl.java:71) at com.generator.ejb.organization.OrganizationBean.getCompany(OrganizationBean.java:35) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:629) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186) at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:243) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:104) at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:117) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191) at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122) at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:322) at org.jboss.ejb.Container.invoke(Container.java:674) at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:353) at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:83) at $Proxy44.getCompany(Unknown Source) at com.generator.service.OrganizationService.getCompany(OrganizationService.java:40) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at flashgateway.adapter.java.JavaAdapter.invokeFunction(JavaAdapter.java:49) at flashgateway.filter.AdapterFilter.invoke(AdapterFilter.java:200) at flashgateway.filter.SecurityFilter.invoke(SecurityFilter.java:84) at flashgateway.filter.LicenseFilter.invoke(LicenseFilter.java:58) at flashgateway.filter.ErrorFilter.invoke(ErrorFilter.java:44) at flashgateway.filter.LogFilter.invoke(LogFilter.java:43) at flashgateway.filter.BatchProcessFilter.invoke(BatchProcessFilter.java:63) at flashgateway.filter.DebugFilter.invoke(DebugFilter.java:38) at flashgateway.filter.SerializationFilter.invoke(SerializationFilter.java:59) at flashgateway.Gateway.invoke(Gateway.java:184) at flashgateway.controller.GatewayServlet.service(GatewayServlet.java:56) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:558) at org.mortbay.http.HttpContext.handle(HttpContext.java:1714) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:507) at org.mortbay.http.HttpContext.handle(HttpContext.java:1664) at org.mortbay.http.HttpServer.service(HttpServer.java:863) at org.jboss.jetty.Jetty.service(Jetty.java:460) at org.mortbay.http.HttpConnection.service(HttpConnection.java:775) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:939) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:792) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:201) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:455)

    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,