[Spacewalk-list] [PATCH] Re: Taskomatic java.lang.NullPointerException

Joshua Roys joshua.roys at gtri.gatech.edu
Tue Feb 2 19:30:31 UTC 2010


On 02/02/2010 04:50 AM, Marco Giunta wrote:
> INFO   | jvm 1    | 2010/02/01 23:00:04 | 2010-02-01 23:00:04,514
> [DefaultQuartzScheduler_Worker-3] ERROR org.quartz.core.JobRunShell -
> Job Taskomatic
> Group.com.redhat.rhn.taskomatic.task.CompareConfigFilesTask-13 threw an
> unhandled Exception: C3P0Registry banner
> INFO   | jvm 1    | 2010/02/01 23:00:04 | java.lang.NullPointerException
> INFO   | jvm 1    | 2010/02/01 23:00:04 |       at
> com.redhat.rhn.taskomatic.task.CompareConfigFilesTask.execute(CompareConfigFilesTask.java:94)
> INFO   | jvm 1    | 2010/02/01 23:00:04 |       at
> org.quartz.core.JobRunShell.run(JobRunShell.java:203)
> INFO   | jvm 1    | 2010/02/01 23:00:04 |       at
> org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)

> The other message is about
> com.redhat.rhn.taskomatic.task.CompareConfigFilesTask
> java.lang.NullPointerException, but I don't understand which is the
> problem; I've tried to enable debug loggin, but I'm not able to do it.
> I've add this line to /usr/share/rhn/classes/log4j.properties

Hello,

This is a piece of my code- so I apologize that it is not working 
properly.  The messages are basically harmless, although annoying.  You 
can disable the task if you aren't using it, via 
/etc/rhn/default/rhn_taskomatic.conf, and commenting out the "... 
CompareConfigFilesTask.schedule = 0 0 23 ? * *" line, and probably also 
by removing it from the list of taskomatic.default_tasks at the top of 
the same file.  The task, when working properly, queues up an automated 
comparison of configuration files.

Attached is a patch that should fix the issue.

Josh
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-Fix-a-NPE-in-CompareConfigFilesTask.patch
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20100202/4a059977/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2719 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20100202/4a059977/attachment.p7s>


More information about the Spacewalk-list mailing list