Hi All
There is a NPE was thrown out from hibernate source code, the NPE is a intermittent issue in my test environment, if it didn't happen during 4 hours, it will don't happen any more. Below is my source code:
Code:
SQLQuery query = session.createSQLQuery("update process_instance set step_id=?, status=?, cost=?, time_ended=? where process_id=?");
query.setString(0, inst.getStepId());
query.setInteger(1, inst.getStatus());
query.setLong(2, inst.getCost());
query.setTimestamp(3, inst.getTimeEnded());
query.setLong(4, inst.getProcessId());
int exist = query.executeUpdate();
Below is the statck trace:
2010-05-24 19:16:13,515 ERROR [STDERR] java.lang.NullPointerException
2010-05-24 19:16:13,515 ERROR [STDERR] at org.hibernate.util.ArrayHelper.toTypeArray(ArrayHelper.java:75)
2010-05-24 19:16:13,515 ERROR [STDERR] at org.hibernate.impl.AbstractQueryImpl.typeArray(AbstractQueryImpl.java:831)
2010-05-24 19:16:13,515 ERROR [STDERR] at org.hibernate.impl.AbstractQueryImpl.getQueryParameters(AbstractQueryImpl.java:839)
2010-05-24 19:16:13,515 ERROR [STDERR] at org.hibernate.impl.SQLQueryImpl.getQueryParameters(SQLQueryImpl.java:194)
2010-05-24 19:16:13,515 ERROR [STDERR] at org.hibernate.impl.SQLQueryImpl.executeUpdate(SQLQueryImpl.java:334)
2010-05-24 19:16:13,515 ERROR [STDERR] at test.component.handlers.bpmn.ProcessInstanceLoggerImpl.commit(ProcessInstanceLoggerImpl.java:136)