java.lang.NullPointerException

viralpatel.net | 2 weeks ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    When upgrading from crowd 2.5.1 to crowd 2.8.4 I get the following error message in catalina.out: Feb 18, 2016 12:02:31 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib Feb 18, 2016 12:02:31 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["http-bio-8095"] Feb 18, 2016 12:02:31 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 429 ms Feb 18, 2016 12:02:31 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service Catalina Feb 18, 2016 12:02:31 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.62 Feb 18, 2016 12:02:31 PM org.apache.catalina.startup.HostConfig deployDescriptor INFO: Deploying configuration descriptor /opt/atlassian/crowd/apache-tomcat/conf/Catalina/localhost/openidclient.xml Feb 18, 2016 12:02:33 PM org.apache.catalina.startup.TldConfig execute INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. 2016-02-18 12:02:34,503 localhost-startStop-1 ERROR [springframework.web.context.ContextLoader] Context initialization failed org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.atlassian.crowd.openid.client.util.ProxiableConsumerManagerFactory] for bean with name 'consumerManager' defined in class path resource [applicationContext-OpenIDClient.xml]; nested exception is java.lang.ClassNotFoundException: com.atlassian.crowd.openid.client.util.ProxiableConsumerManagerFactory at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1278) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryMethod(AbstractAutowireCapableBeanFactory.java:628) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:575) at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1347) at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:913) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:614) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:410) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5016) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5528) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:677) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1912) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.ClassNotFoundException: com.atlassian.crowd.openid.client.util.ProxiableConsumerManagerFactory at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571) at org.springframework.util.ClassUtils.forName(ClassUtils.java:266) at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:419) at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1299) at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1270) ... 23 more 2016-02-18 12:02:34,730 localhost-startStop-1 ERROR [apache.struts2.spring.StrutsSpringObjectFactory] Cannot find class [com.atlassian.crowd.openid.client.util.ProxiableConsumerManagerFactory] for bean with name 'consumerManager' defined in class path resource [applicationContext-OpenIDClient.xml]; nested exception is java.lang.ClassNotFoundException: com.atlassian.crowd.openid.client.util.ProxiableConsumerManagerFactory 2016-02-18 12:02:34,740 localhost-startStop-1 ERROR [apache.struts2.dispatcher.Dispatcher] Dispatcher initialization failed java.lang.NullPointerException at com.opensymphony.xwork2.spring.SpringObjectFactory.getClassInstance(SpringObjectFactory.java:245) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyResultType(XmlConfigurationProvider.java:608) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addResultTypes(XmlConfigurationProvider.java:578) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:534) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:295) at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:112) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:264) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67) at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:967) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:435) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:479) Did I miss something?

    Atlassian JIRA | 1 year ago | a.pannwitz@convivo.de
    java.lang.NullPointerException
  2. 0

    When upgrading from crowd 2.5.1 to crowd 2.8.4 I get the following error message in catalina.out: Feb 18, 2016 12:02:31 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib Feb 18, 2016 12:02:31 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["http-bio-8095"] Feb 18, 2016 12:02:31 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 429 ms Feb 18, 2016 12:02:31 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service Catalina Feb 18, 2016 12:02:31 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.62 Feb 18, 2016 12:02:31 PM org.apache.catalina.startup.HostConfig deployDescriptor INFO: Deploying configuration descriptor /opt/atlassian/crowd/apache-tomcat/conf/Catalina/localhost/openidclient.xml Feb 18, 2016 12:02:33 PM org.apache.catalina.startup.TldConfig execute INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. 2016-02-18 12:02:34,503 localhost-startStop-1 ERROR [springframework.web.context.ContextLoader] Context initialization failed org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.atlassian.crowd.openid.client.util.ProxiableConsumerManagerFactory] for bean with name 'consumerManager' defined in class path resource [applicationContext-OpenIDClient.xml]; nested exception is java.lang.ClassNotFoundException: com.atlassian.crowd.openid.client.util.ProxiableConsumerManagerFactory at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1278) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryMethod(AbstractAutowireCapableBeanFactory.java:628) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:575) at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1347) at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:913) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:614) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:410) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5016) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5528) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:677) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1912) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.ClassNotFoundException: com.atlassian.crowd.openid.client.util.ProxiableConsumerManagerFactory at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571) at org.springframework.util.ClassUtils.forName(ClassUtils.java:266) at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:419) at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1299) at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1270) ... 23 more 2016-02-18 12:02:34,730 localhost-startStop-1 ERROR [apache.struts2.spring.StrutsSpringObjectFactory] Cannot find class [com.atlassian.crowd.openid.client.util.ProxiableConsumerManagerFactory] for bean with name 'consumerManager' defined in class path resource [applicationContext-OpenIDClient.xml]; nested exception is java.lang.ClassNotFoundException: com.atlassian.crowd.openid.client.util.ProxiableConsumerManagerFactory 2016-02-18 12:02:34,740 localhost-startStop-1 ERROR [apache.struts2.dispatcher.Dispatcher] Dispatcher initialization failed java.lang.NullPointerException at com.opensymphony.xwork2.spring.SpringObjectFactory.getClassInstance(SpringObjectFactory.java:245) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyResultType(XmlConfigurationProvider.java:608) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addResultTypes(XmlConfigurationProvider.java:578) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:534) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:295) at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:112) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:264) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67) at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:967) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:435) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:479) Did I miss something?

    Atlassian JIRA | 1 year ago | a.pannwitz@convivo.de
    java.lang.NullPointerException
  3. 0

    Exception while configuring Struts2.1.6 with Tomcat 5.0

    Stack Overflow | 7 years ago | Sid
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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 com.opensymphony.xwork2.spring.SpringObjectFactory.getClassInstance()
    2. XWork
      XmlConfigurationProvider.loadPackages
      1. com.opensymphony.xwork2.spring.SpringObjectFactory.getClassInstance(SpringObjectFactory.java:189)
      2. com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyResultType(XmlConfigurationProvider.java:479)
      3. com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addResultTypes(XmlConfigurationProvider.java:450)
      4. com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:407)
      5. com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:239)
      5 frames
    3. Struts2
      StrutsXmlConfigurationProvider.loadPackages
      1. org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111)
      1 frame
    4. XWork
      ConfigurationManager.getConfiguration
      1. com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:152)
      2. com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)
      2 frames
    5. Struts2
      FilterDispatcher.init
      1. org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:395)
      2. org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452)
      3. org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:205)
      3 frames
    6. Glassfish Core
      Catalina.start
      1. org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)
      2. org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)
      3. org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:115)
      4. org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3838)
      5. org.apache.catalina.core.StandardContext.start(StandardContext.java:4488)
      6. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
      7. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
      8. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
      9. org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:905)
      10. org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:740)
      11. org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500)
      12. org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
      13. org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
      14. org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
      15. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
      16. org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
      17. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
      18. org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
      19. org.apache.catalina.core.StandardService.start(StandardService.java:519)
      20. org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
      21. org.apache.catalina.startup.Catalina.start(Catalina.java:581)
      21 frames
    7. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames
    8. Glassfish Core
      Bootstrap.main
      1. org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
      2. org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
      2 frames