java.lang.NullPointerException

Kuali JIRA | Eric Westfall | 9 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    This results in the following error showing up every time the hot deployer runs: 2007-09-26 15:02:37,139 [pool-3-thread-2] INFO edu.iu.uis.eden.plugin.HotDeployer :: Detected a new plugin. Loading plugin... 2007-09-26 15:02:37,140 [pool-3-thread-2] INFO edu.iu.uis.eden.plugin.ZipFilePluginLoader :: iuf Initiating loading of plugin from file system: /opt/j2ee/en-plugins/snd/iuf 2007-09-26 15:02:37,140 [pool-3-thread-2] INFO edu.iu.uis.eden.plugin.ZipFilePluginLoader :: iuf Absolute path on file system is: /opt/j2ee/en-plugins/snd/iuf 2007-09-26 15:02:37,145 [pool-3-thread-2] INFO edu.iu.uis.eden.plugin.BasePluginLoader :: Created plugin ClassLoader: [PluginClassLoader: url ... 2007-09-26 14:52:56,454 [pool-3-thread-1] INFO edu.iu.uis.eden.plugin.BasePluginLoader :: Constructing plugin 'iuf' with classloader: [PluginClassLoader: urls=file:/usr/local/tomcat/sit/webapps/en-snd/WEB-INF/plugins/shared/classes/, file:/usr/local/tomcat/sit/webapps/en-snd/WEB-INF/plugins/shared/lib/rice-shared-0.9.1-SNAPSHOT.jar, file:/opt/j2ee/en-plugins/snd/iuf/classes/,file:/opt/j2ee/en-plugins/snd/iuf/lib/activation-1.0.2.jar,file:/opt/j2ee/en-plugins/snd/iuf/lib/antlr-2.7.4.jar, file:/opt/j2ee/en-plugins/snd/iuf/lib/asm-1.5.3-ojb-1.0.4.jar,file:/opt/j2ee/en-plugins/snd/iuf/lib/avalon-framework-cvs-20020806.jar, file:/opt/j2ee/en-plugins/snd/iuf/lib/batik-1.6.jar,file:/opt/j2ee/en-plugins/snd/iuf/lib/bcprov-jdk15-133.jar,file:/opt/j2ee/en-plugins/snd/iuf/lib/casfilter.jar, file:/opt/j2ee/en-plugins/snd/iuf/lib/cglib-2.1.jar,file:/opt/j2ee/en-plugins/snd/iuf/lib/commons-beanutils-1.7.jar, file:/opt/j2ee/en-plugins/snd/iuf/lib/commons-betwixt-0.8-dev.jar,file:/opt/j2ee/en-plugins/snd/iuf/lib/commons-codec-1.3.jar, file:/opt/j2ee/en-plugins/snd/iuf/lib/commons-collections-3.1.jar,file:/opt/j2ee/en-plugins/snd/iuf/lib/commons-configuration-1.1.jar, file:/opt/j2ee/en-plugins/snd/iuf/lib/commons-dbcp-1.2.1.jar,file:/opt/j2ee/en-plugins/snd/iuf/lib/commons-digester-1.7.jar, file:/opt/j2ee/en-plugins/snd/iuf/lib/commons-discovery-0.2.jar,file:/opt/j2ee/en-plugins/snd/iuf/lib/commons-fileupload-1.0.jar, file:/opt/j2ee/en-plugins/snd/iuf/lib/commons-httpclient-3.0.1.jar,file:/opt/j2ee/en-plugins/snd/iuf/lib/commons-lang-2.2.jar, file:/opt/j2ee/en-plugins/snd/iuf/lib/commons-pool-1.2.jar,file:/opt/j2ee/en-plugins/snd/iuf/lib/db-ojb-1.0.4-kuali-mods-debug.jar, file:/opt/j2ee/en-plugins/snd/iuf/lib/displaytag-1.1.jar,file:/opt/j2ee/en-plugins/snd/iuf/lib/fop-0.20.5.jar,file:/opt/j2ee/en-plugins/snd/iuf/lib/itext-1.3.jar, file:/opt/j2ee/en-plugins/snd/iuf/lib/jakarta-oro-2.0.8.jar,file:/opt/j2ee/en-plugins/snd/iuf/lib/javamail-1.3.2.jar, file:/opt/j2ee/en-plugins/snd/iuf/lib/log4j-1.2.9.jar,file:/opt/j2ee/en-plugins/snd/iuf/lib/oscache-2.1.1.jar,file:/opt/j2ee/en-plugins/snd/iuf/lib/rice-core-0.9.1.jar, file:/opt/j2ee/en-plugins/snd/iuf/lib/rice-kew-0.9.1.jar,file:/opt/j2ee/en-plugins/snd/iuf/lib/rice-ksb-0.9.1.jar, file:/opt/j2ee/en-plugins/snd/iuf/lib/rice-shared-0.9.1.jar,file:/opt/j2ee/en-plugins/snd/iuf/lib/saaj-1.2.jar,file:/opt/j2ee/en-plugins/snd/iuf/lib/spring-1.2.8.jar, file:/opt/j2ee/en-plugins/snd/iuf/lib/spring-mock-1.2.8.jar,file:/opt/j2ee/en-plugins/snd/iuf/lib/struts-1.2.4.jar, file:/opt/j2ee/en-plugins/snd/iuf/lib/struts-el-1.2.4.jar,file:/opt/j2ee/en-plugins/snd/iuf/lib/taglibs-jstl-1.1.2.jar, file:/opt/j2ee/en-plugins/snd/iuf/lib/taglibs-standard-1.1.2.jar,file:/opt/j2ee/en-plugins/snd/iuf/lib/velocity-1.4.jar, file:/opt/j2ee/en-plugins/snd/iuf/lib/wsdl4j-1.5.1.jar,file:/opt/j2ee/en-plugins/snd/iuf/lib/xmlsec-1.3.0.jar, file:/opt/j2ee/en-plugins/snd/iuf/lib/xpp3_min-1.1.3.4.jar,file:/opt/j2ee/en-plugins/snd/iuf/lib/xstream-1.1.1.jar] 2007-09-26 14:52:56,458 [pool-3-thread-1] WARN edu.iu.uis.eden.plugin.HotDeployer :: Failed to check for hot deploy. java.lang.NullPointerException at edu.iu.uis.eden.plugin.HotDeployer.run(HotDeployer.java:71) at edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:431) at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.runAndReset(FutureTask.java:198) at edu.emory.mathcs.backport.java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:189) at edu.emory.mathcs.backport.java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:213) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) The real reason that the plugin load failed in this case was a ClassCastException on the PluginListener class because the rice jars were inside the plugin. An easy way to reproduce this is to just add the rice jars to a workflow plugin's lib directory. What this should probably do is mark the plugin as a failed deploy and wait until an updated timestamp is found on the plugin's zip file before attempting another reload, rather than attempting to load it every time the hot deployer runs.

    Kuali JIRA | 9 years ago | Eric Westfall
    java.lang.NullPointerException
  2. 0

    This results in the following error showing up every time the hot deployer runs: 2007-09-26 15:02:37,139 [pool-3-thread-2] INFO edu.iu.uis.eden.plugin.HotDeployer :: Detected a new plugin. Loading plugin... 2007-09-26 15:02:37,140 [pool-3-thread-2] INFO edu.iu.uis.eden.plugin.ZipFilePluginLoader :: iuf Initiating loading of plugin from file system: /opt/j2ee/en-plugins/snd/iuf 2007-09-26 15:02:37,140 [pool-3-thread-2] INFO edu.iu.uis.eden.plugin.ZipFilePluginLoader :: iuf Absolute path on file system is: /opt/j2ee/en-plugins/snd/iuf 2007-09-26 15:02:37,145 [pool-3-thread-2] INFO edu.iu.uis.eden.plugin.BasePluginLoader :: Created plugin ClassLoader: [PluginClassLoader: url ... 2007-09-26 14:52:56,454 [pool-3-thread-1] INFO edu.iu.uis.eden.plugin.BasePluginLoader :: Constructing plugin 'iuf' with classloader: [PluginClassLoader: urls=file:/usr/local/tomcat/sit/webapps/en-snd/WEB-INF/plugins/shared/classes/, file:/usr/local/tomcat/sit/webapps/en-snd/WEB-INF/plugins/shared/lib/rice-shared-0.9.1-SNAPSHOT.jar, file:/opt/j2ee/en-plugins/snd/iuf/classes/,file:/opt/j2ee/en-plugins/snd/iuf/lib/activation-1.0.2.jar,file:/opt/j2ee/en-plugins/snd/iuf/lib/antlr-2.7.4.jar, file:/opt/j2ee/en-plugins/snd/iuf/lib/asm-1.5.3-ojb-1.0.4.jar,file:/opt/j2ee/en-plugins/snd/iuf/lib/avalon-framework-cvs-20020806.jar, file:/opt/j2ee/en-plugins/snd/iuf/lib/batik-1.6.jar,file:/opt/j2ee/en-plugins/snd/iuf/lib/bcprov-jdk15-133.jar,file:/opt/j2ee/en-plugins/snd/iuf/lib/casfilter.jar, file:/opt/j2ee/en-plugins/snd/iuf/lib/cglib-2.1.jar,file:/opt/j2ee/en-plugins/snd/iuf/lib/commons-beanutils-1.7.jar, file:/opt/j2ee/en-plugins/snd/iuf/lib/commons-betwixt-0.8-dev.jar,file:/opt/j2ee/en-plugins/snd/iuf/lib/commons-codec-1.3.jar, file:/opt/j2ee/en-plugins/snd/iuf/lib/commons-collections-3.1.jar,file:/opt/j2ee/en-plugins/snd/iuf/lib/commons-configuration-1.1.jar, file:/opt/j2ee/en-plugins/snd/iuf/lib/commons-dbcp-1.2.1.jar,file:/opt/j2ee/en-plugins/snd/iuf/lib/commons-digester-1.7.jar, file:/opt/j2ee/en-plugins/snd/iuf/lib/commons-discovery-0.2.jar,file:/opt/j2ee/en-plugins/snd/iuf/lib/commons-fileupload-1.0.jar, file:/opt/j2ee/en-plugins/snd/iuf/lib/commons-httpclient-3.0.1.jar,file:/opt/j2ee/en-plugins/snd/iuf/lib/commons-lang-2.2.jar, file:/opt/j2ee/en-plugins/snd/iuf/lib/commons-pool-1.2.jar,file:/opt/j2ee/en-plugins/snd/iuf/lib/db-ojb-1.0.4-kuali-mods-debug.jar, file:/opt/j2ee/en-plugins/snd/iuf/lib/displaytag-1.1.jar,file:/opt/j2ee/en-plugins/snd/iuf/lib/fop-0.20.5.jar,file:/opt/j2ee/en-plugins/snd/iuf/lib/itext-1.3.jar, file:/opt/j2ee/en-plugins/snd/iuf/lib/jakarta-oro-2.0.8.jar,file:/opt/j2ee/en-plugins/snd/iuf/lib/javamail-1.3.2.jar, file:/opt/j2ee/en-plugins/snd/iuf/lib/log4j-1.2.9.jar,file:/opt/j2ee/en-plugins/snd/iuf/lib/oscache-2.1.1.jar,file:/opt/j2ee/en-plugins/snd/iuf/lib/rice-core-0.9.1.jar, file:/opt/j2ee/en-plugins/snd/iuf/lib/rice-kew-0.9.1.jar,file:/opt/j2ee/en-plugins/snd/iuf/lib/rice-ksb-0.9.1.jar, file:/opt/j2ee/en-plugins/snd/iuf/lib/rice-shared-0.9.1.jar,file:/opt/j2ee/en-plugins/snd/iuf/lib/saaj-1.2.jar,file:/opt/j2ee/en-plugins/snd/iuf/lib/spring-1.2.8.jar, file:/opt/j2ee/en-plugins/snd/iuf/lib/spring-mock-1.2.8.jar,file:/opt/j2ee/en-plugins/snd/iuf/lib/struts-1.2.4.jar, file:/opt/j2ee/en-plugins/snd/iuf/lib/struts-el-1.2.4.jar,file:/opt/j2ee/en-plugins/snd/iuf/lib/taglibs-jstl-1.1.2.jar, file:/opt/j2ee/en-plugins/snd/iuf/lib/taglibs-standard-1.1.2.jar,file:/opt/j2ee/en-plugins/snd/iuf/lib/velocity-1.4.jar, file:/opt/j2ee/en-plugins/snd/iuf/lib/wsdl4j-1.5.1.jar,file:/opt/j2ee/en-plugins/snd/iuf/lib/xmlsec-1.3.0.jar, file:/opt/j2ee/en-plugins/snd/iuf/lib/xpp3_min-1.1.3.4.jar,file:/opt/j2ee/en-plugins/snd/iuf/lib/xstream-1.1.1.jar] 2007-09-26 14:52:56,458 [pool-3-thread-1] WARN edu.iu.uis.eden.plugin.HotDeployer :: Failed to check for hot deploy. java.lang.NullPointerException at edu.iu.uis.eden.plugin.HotDeployer.run(HotDeployer.java:71) at edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:431) at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.runAndReset(FutureTask.java:198) at edu.emory.mathcs.backport.java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:189) at edu.emory.mathcs.backport.java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:213) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) The real reason that the plugin load failed in this case was a ClassCastException on the PluginListener class because the rice jars were inside the plugin. An easy way to reproduce this is to just add the rice jars to a workflow plugin's lib directory. What this should probably do is mark the plugin as a failed deploy and wait until an updated timestamp is found on the plugin's zip file before attempting another reload, rather than attempting to load it every time the hot deployer runs.

    Kuali JIRA | 9 years ago | Eric Westfall
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at edu.iu.uis.eden.plugin.HotDeployer.run()
    2. edu.iu.uis
      HotDeployer.run
      1. edu.iu.uis.eden.plugin.HotDeployer.run(HotDeployer.java:71)
      1 frame
    3. Backport of JSR 166
      ThreadPoolExecutor$Worker.run
      1. edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:431)
      2. edu.emory.mathcs.backport.java.util.concurrent.FutureTask.runAndReset(FutureTask.java:198)
      3. edu.emory.mathcs.backport.java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:189)
      4. edu.emory.mathcs.backport.java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:213)
      5. edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
      6. edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
      6 frames
    4. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:595)
      1 frame