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.

  • Here's the stack trace: 16:24:04,142 ERROR [ErrorLogger] Job (pat.h7 threw an exception. org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: java.lang.NullPointerException] at org.quartz.core.JobRunShell.run(JobRunShell.java:214) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) * Nested Exception (Underlying Cause) --------------- java.lang.NullPointerException at org.pentaho.platform.engine.core.system.PentahoBase.genLogIdFromSession(PentahoBase.java:59) at org.pentaho.platform.repository.content.ContentRepository.setSession(ContentRepository.java:82) at org.pentaho.platform.engine.core.system.StandaloneSession.destroy(StandaloneSession.java:93) at org.pentaho.platform.engine.core.system.UserSession.destroy(UserSession.java:78) at org.pentaho.platform.engine.core.system.PentahoSessionHolder.removeSession(PentahoSessionHolder.java:79) at org.pentaho.platform.engine.core.system.SessionCleanupListener.systemExitPoint(SessionCleanupListener.java:48) at org.pentaho.platform.engine.core.system.StandaloneApplicationContext.invokeExitPoints(StandaloneApplicationContext.java:169) at org.pentaho.platform.engine.core.system.PentahoSystem.systemExitPoint(PentahoSystem.java:860) at org.pentaho.platform.scheduler.QuartzExecute.execute(QuartzExecute.java:288) at org.quartz.core.JobRunShell.run(JobRunShell.java:203) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) To reproduce: 1. Right-click on a file that produces content that can be stored in the content repository and also has no parameters (e.g. Steel Wheels > Reporting > Income Statement). Click Schedule... 2. Specify a Run Once private schedule for immediate execution. 3. Watch the server log for the above stack trace.
    via by Mat Lowery,
  • Here's the stack trace: 16:24:04,142 ERROR [ErrorLogger] Job (pat.h7 threw an exception. org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: java.lang.NullPointerException] at org.quartz.core.JobRunShell.run(JobRunShell.java:214) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) * Nested Exception (Underlying Cause) --------------- java.lang.NullPointerException at org.pentaho.platform.engine.core.system.PentahoBase.genLogIdFromSession(PentahoBase.java:59) at org.pentaho.platform.repository.content.ContentRepository.setSession(ContentRepository.java:82) at org.pentaho.platform.engine.core.system.StandaloneSession.destroy(StandaloneSession.java:93) at org.pentaho.platform.engine.core.system.UserSession.destroy(UserSession.java:78) at org.pentaho.platform.engine.core.system.PentahoSessionHolder.removeSession(PentahoSessionHolder.java:79) at org.pentaho.platform.engine.core.system.SessionCleanupListener.systemExitPoint(SessionCleanupListener.java:48) at org.pentaho.platform.engine.core.system.StandaloneApplicationContext.invokeExitPoints(StandaloneApplicationContext.java:169) at org.pentaho.platform.engine.core.system.PentahoSystem.systemExitPoint(PentahoSystem.java:860) at org.pentaho.platform.scheduler.QuartzExecute.execute(QuartzExecute.java:288) at org.quartz.core.JobRunShell.run(JobRunShell.java:203) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) To reproduce: 1. Right-click on a file that produces content that can be stored in the content repository and also has no parameters (e.g. Steel Wheels > Reporting > Income Statement). Click Schedule... 2. Specify a Run Once private schedule for immediate execution. 3. Watch the server log for the above stack trace.
    via by Mat Lowery,
  • Simple report burtsting action sequence with SimpleReportingComponent responsible for report generation and EmailComponent responsible for report distribution is no working when executed by the scheduler. There are no input parameters and the query is specified within the report. The same action sequence is working perfectly when launched directly from browser.It seems to me, there is problem with contentrepo output parameters when executing action sequence by scheduler (and even when executing from another action sequence). But It seems SimpleReportingComponent is working only with contentrepo output param when the report is to be send by email. Sample .xaction file: <?xml version="1.0" encoding="UTF-8"?> <action-sequence> <title/> <version>1</version> <logging-level>DEBUG</logging-level> <documentation> <author/> <description>Empty blank action sequence document</description> <help/> <result-type/> <icon/> </documentation> <inputs/> <outputs> <report type="content"> <destinations> <contentrepo>report</contentrepo> </destinations> </report> </outputs> <resources> <report-definition> <solution-file> <location>ODICheck.prpt</location> <mime-type>application/zip</mime-type> </solution-file> </report-definition> </resources> <actions> <action-definition> <component-name>SimpleReportingComponent</component-name> <action-type>Pentaho Report</action-type> <action-resources> <report-definition type="resource"/> </action-resources> <action-outputs> <outputstream type="content" mapping="report"/> </action-outputs> <component-definition> <outputType><![CDATA[application/rtf]]></outputType> <paginate><![CDATA[true]]></paginate> <useContentRepository><![CDATA[true]]></useContentRepository> </component-definition> </action-definition> <action-definition> <component-name>EmailComponent</component-name> <action-type>E-Mail</action-type> <action-inputs> <report type="content"/> </action-inputs> <action-resources/> <component-definition> <to><![CDATA[xxxx@.xxx.ccc]]></to> <subject><![CDATA[Test]]></subject> <message-plain><![CDATA[Test]]></message-plain> <attachment-ref name-param="attach_name_1" input-param="report"/> <attach_name_1><![CDATA[report.rtf]]></attach_name_1> </component-definition> </action-definition> </actions> </action-sequence> Error log when launched by scheduler: 14:12:09,372 ERROR [PojoComponent] Error Start: Pentaho Pentaho Platform Engine Core 3.5.0.stable.39705 14:12:09,372 ERROR [PojoComponent] 94a7ed76-068e-11df-89fb-993b541011e6:COMPONEN T:context-16923560-1264079529356:ODICheck2.xactionBase.ERROR_0002 - Component ex ecution failed java.lang.NullPointerException at org.pentaho.platform.engine.services.solution.PojoComponent.executeAc tion(PojoComponent.java:429) at org.pentaho.platform.engine.services.solution.ComponentBase.execute(C omponentBase.java:463) at org.pentaho.platform.engine.services.runtime.RuntimeContext.executeCo mponent(RuntimeContext.java:1331) at org.pentaho.platform.engine.services.runtime.RuntimeContext.executeAc tion(RuntimeContext.java:1298) at org.pentaho.platform.engine.services.runtime.RuntimeContext.performAc tions(RuntimeContext.java:1216) at org.pentaho.platform.engine.services.runtime.RuntimeContext.executeLo op(RuntimeContext.java:1165) at org.pentaho.platform.engine.services.runtime.RuntimeContext.executeSe quence(RuntimeContext.java:1045) at org.pentaho.platform.engine.services.runtime.RuntimeContext.executeSe quence(RuntimeContext.java:938) at org.pentaho.platform.engine.services.solution.SolutionEngine.executeI nternal(SolutionEngine.java:413) at org.pentaho.platform.engine.services.solution.SolutionEngine.execute( SolutionEngine.java:316) at org.pentaho.platform.engine.services.solution.SolutionEngine.execute( SolutionEngine.java:192) at org.pentaho.platform.engine.services.BaseRequestHandler.handleActionR equest(BaseRequestHandler.java:159) at org.pentaho.platform.scheduler.QuartzExecute.execute(QuartzExecute.ja va:198) at org.quartz.core.JobRunShell.run(JobRunShell.java:203) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.j ava:520) 14:12:09,372 ERROR [PojoComponent] Error end: 14:12:09,372 ERROR [RuntimeContext] 94a7ed76-068e-11df-89fb-993b541011e6:RUNTIME :context-16923560-1264079529356:ODICheck2.xaction RuntimeContext.ERROR_0012 - Ac tionDefinition for SimpleReportingComponent did not execute successfully 14:12:09,372 ERROR [SolutionEngine] 94a7ed76-068e-11df-89fb-993b541011e6:SOLUTIO N-ENGINE:ODICheck2.xaction: SolutionEngine.ERROR_0007 - Action sequence executio n failed
    via by Karel Hübl,
  • Simple report burtsting action sequence with SimpleReportingComponent responsible for report generation and EmailComponent responsible for report distribution is no working when executed by the scheduler. There are no input parameters and the query is specified within the report. The same action sequence is working perfectly when launched directly from browser.It seems to me, there is problem with contentrepo output parameters when executing action sequence by scheduler (and even when executing from another action sequence). But It seems SimpleReportingComponent is working only with contentrepo output param when the report is to be send by email. Sample .xaction file: <?xml version="1.0" encoding="UTF-8"?> <action-sequence> <title/> <version>1</version> <logging-level>DEBUG</logging-level> <documentation> <author/> <description>Empty blank action sequence document</description> <help/> <result-type/> <icon/> </documentation> <inputs/> <outputs> <report type="content"> <destinations> <contentrepo>report</contentrepo> </destinations> </report> </outputs> <resources> <report-definition> <solution-file> <location>ODICheck.prpt</location> <mime-type>application/zip</mime-type> </solution-file> </report-definition> </resources> <actions> <action-definition> <component-name>SimpleReportingComponent</component-name> <action-type>Pentaho Report</action-type> <action-resources> <report-definition type="resource"/> </action-resources> <action-outputs> <outputstream type="content" mapping="report"/> </action-outputs> <component-definition> <outputType><![CDATA[application/rtf]]></outputType> <paginate><![CDATA[true]]></paginate> <useContentRepository><![CDATA[true]]></useContentRepository> </component-definition> </action-definition> <action-definition> <component-name>EmailComponent</component-name> <action-type>E-Mail</action-type> <action-inputs> <report type="content"/> </action-inputs> <action-resources/> <component-definition> <to><![CDATA[xxxx@.xxx.ccc]]></to> <subject><![CDATA[Test]]></subject> <message-plain><![CDATA[Test]]></message-plain> <attachment-ref name-param="attach_name_1" input-param="report"/> <attach_name_1><![CDATA[report.rtf]]></attach_name_1> </component-definition> </action-definition> </actions> </action-sequence> Error log when launched by scheduler: 14:12:09,372 ERROR [PojoComponent] Error Start: Pentaho Pentaho Platform Engine Core 3.5.0.stable.39705 14:12:09,372 ERROR [PojoComponent] 94a7ed76-068e-11df-89fb-993b541011e6:COMPONEN T:context-16923560-1264079529356:ODICheck2.xactionBase.ERROR_0002 - Component ex ecution failed java.lang.NullPointerException at org.pentaho.platform.engine.services.solution.PojoComponent.executeAc tion(PojoComponent.java:429) at org.pentaho.platform.engine.services.solution.ComponentBase.execute(C omponentBase.java:463) at org.pentaho.platform.engine.services.runtime.RuntimeContext.executeCo mponent(RuntimeContext.java:1331) at org.pentaho.platform.engine.services.runtime.RuntimeContext.executeAc tion(RuntimeContext.java:1298) at org.pentaho.platform.engine.services.runtime.RuntimeContext.performAc tions(RuntimeContext.java:1216) at org.pentaho.platform.engine.services.runtime.RuntimeContext.executeLo op(RuntimeContext.java:1165) at org.pentaho.platform.engine.services.runtime.RuntimeContext.executeSe quence(RuntimeContext.java:1045) at org.pentaho.platform.engine.services.runtime.RuntimeContext.executeSe quence(RuntimeContext.java:938) at org.pentaho.platform.engine.services.solution.SolutionEngine.executeI nternal(SolutionEngine.java:413) at org.pentaho.platform.engine.services.solution.SolutionEngine.execute( SolutionEngine.java:316) at org.pentaho.platform.engine.services.solution.SolutionEngine.execute( SolutionEngine.java:192) at org.pentaho.platform.engine.services.BaseRequestHandler.handleActionR equest(BaseRequestHandler.java:159) at org.pentaho.platform.scheduler.QuartzExecute.execute(QuartzExecute.ja va:198) at org.quartz.core.JobRunShell.run(JobRunShell.java:203) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.j ava:520) 14:12:09,372 ERROR [PojoComponent] Error end: 14:12:09,372 ERROR [RuntimeContext] 94a7ed76-068e-11df-89fb-993b541011e6:RUNTIME :context-16923560-1264079529356:ODICheck2.xaction RuntimeContext.ERROR_0012 - Ac tionDefinition for SimpleReportingComponent did not execute successfully 14:12:09,372 ERROR [SolutionEngine] 94a7ed76-068e-11df-89fb-993b541011e6:SOLUTIO N-ENGINE:ODICheck2.xaction: SolutionEngine.ERROR_0007 - Action sequence executio n failed
    via by Karel Hübl,
    • java.lang.NullPointerException at org.pentaho.platform.engine.core.system.PentahoBase.genLogIdFromSession(PentahoBase.java:59) at org.pentaho.platform.repository.content.ContentRepository.setSession(ContentRepository.java:82) at org.pentaho.platform.engine.core.system.StandaloneSession.destroy(StandaloneSession.java:93) at org.pentaho.platform.engine.core.system.UserSession.destroy(UserSession.java:78) at org.pentaho.platform.engine.core.system.PentahoSessionHolder.removeSession(PentahoSessionHolder.java:79) at org.pentaho.platform.engine.core.system.SessionCleanupListener.systemExitPoint(SessionCleanupListener.java:48) at org.pentaho.platform.engine.core.system.StandaloneApplicationContext.invokeExitPoints(StandaloneApplicationContext.java:169) at org.pentaho.platform.engine.core.system.PentahoSystem.systemExitPoint(PentahoSystem.java:860) at org.pentaho.platform.scheduler.QuartzExecute.execute(QuartzExecute.java:288) at org.quartz.core.JobRunShell.run(JobRunShell.java:203) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
    No Bugmate found.