<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Persisted job throws NPE on server restart"]]></title>
		<link>http://forums.terracotta.org/forums/posts/list/17.page</link>
		<description><![CDATA[Latest messages posted in the topic "Persisted job throws NPE on server restart"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Persisted job throws NPE on server restart</title>
				<description><![CDATA[ Hi all,
        I am using a wrapper class written over quartz 1.7.3 with jboss 5.1.0 GA. I use a simple trigger to store a JDBC job that fires every 5 minutes. This works fine as long as the server does not restart. 

        After a restart, the job stored earlier throws the following exception

<span class="genmed"><b>Code:</b></span><br>
		<div>
		<pre bbCodeId="pre-code" style="overflow: auto; width: 95%; max-height: 350px; height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">2010-07-23 00:07:55,038 ERROR &#91;org.quartz.core.JobRunShell&#93; &#40;Sched1_Worker-4&#41; Job abcd.12 threw an unhandled Exception:
java.lang.NullPointerException
        at com.scheduler.QuratzJobImpl.execute&#40;QuratzJobImpl.java:26&#41;
        at org.quartz.core.JobRunShell.run&#40;JobRunShell.java:199&#41;
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run&#40;SimpleThreadPool.java:546&#41;
2010-07-23 00:07:55,038 ERROR &#91;org.quartz.core.ErrorLogger&#93; &#40;Sched1_Worker-4&#41; Job &#40;abcd.12 threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception. &#91;See nested exception: java.lang.NullPointerException&#93;
        at org.quartz.core.JobRunShell.run&#40;JobRunShell.java:210&#41;
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run&#40;SimpleThreadPool.java:546&#41;
Caused by: java.lang.NullPointerException
        at com.scheduler.SCQuratzJobImpl.execute&#40;QuratzJobImpl.java:26&#41;
        at org.quartz.core.JobRunShell.run&#40;JobRunShell.java:199&#41;
        ... 1 more
</pre>
		</div>

Can anyone point out where the issue could be?

Thanks!!
]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/3990.page#21591</guid>
				<link>http://forums.terracotta.org/forums/posts/list/3990.page#21591</link>
				<pubDate><![CDATA[Fri, 23 Jul 2010 02:41:41]]> GMT</pubDate>
				<author><![CDATA[ newbie2]]></author>
			</item>
			<item>
				<title>Re:Persisted job throws NPE on server restart</title>
				<description><![CDATA[ It's really hard to tell what is going on without knowing what object/reference is null in <i>your </i>code. 

The best random guess I can come up with is that you're dealing a transient variable maybe and it is null when something gets deserialized and that maybe only happens on restart. That is a total guess though...


]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/3990.page#21596</guid>
				<link>http://forums.terracotta.org/forums/posts/list/3990.page#21596</link>
				<pubDate><![CDATA[Fri, 23 Jul 2010 10:41:42]]> GMT</pubDate>
				<author><![CDATA[ teck]]></author>
			</item>
	</channel>
</rss>