-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: NullPointerException during addToBatch
PostPosted: Thu Sep 27, 2012 7:12 am 
Newbie

Joined: Mon Apr 02, 2007 12:53 pm
Posts: 10
Hi,

I'm seeing the occasional error in my logs when running a Quartz job. I can't think of any difference there would be between the runs that run fine and those that get the error. However the number of sucessful runs greatly outnumber the failures.

Does anyone know why I might be getting the fullowing exception?

Code:
2012-09-20 11:16:00,594 ERROR [egeClusteredScheduler_Worker-7]             com.gpt.ege.ege.EgeJob     - Error in job
java.lang.NullPointerException
        at org.hibernate.jdbc.BatchingBatcher.addToBatch(BatchingBatcher.java:53)
        at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2434)
        at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2874)
        at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:79)
        at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:273)
        at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:265)
        at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:184)
        at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)
        at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:51)
        at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1216)
        at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:383)
        at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:133)
        at com.gpt.ege.AbstractContext.commitDatabaseSession(AbstractContext.java:416)
        at com.gpt.ege.AbstractContext.commitDatabaseSession(AbstractContext.java:339)
        at com.gpt.ege.monitoring.agents.DatabaseAgent.postRun(DatabaseAgent.java:83)
        at com.gpt.ege.monitoring.MonitoringDaemon.execute(MonitoringDaemon.java:70)
        at com.gpt.ege.ege.EgeJob.execute(EgeJob.java:126)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)


Thanks,

Sam


Top
 Profile  
 
 Post subject: Re: NullPointerException during addToBatch
PostPosted: Tue Oct 02, 2012 9:20 am 
Newbie

Joined: Mon Apr 02, 2007 12:53 pm
Posts: 10
I've also recently seen, from the same place:

Code:
java.lang.NullPointerException
        at org.hibernate.jdbc.AbstractBatcher.closePreparedStatement(AbstractBatcher.java:563)
        at org.hibernate.jdbc.AbstractBatcher.closeStatement(AbstractBatcher.java:291)
        at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:271)
        at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:268)
        at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:184)
        at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)
        at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:51)
        at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1216)
        at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:383)
        at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:133)


In case this means anything to anyone.

Thanks,

Sam


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.