Subject | RE: [Firebird-Java] FW: java.lang.ArrayIndexOutOfBoundsException: 0 after Updates |
---|---|
Author | Mark Rotteveel |
Post date | 2013-07-16T08:54:37Z |
On Tue, 16 Jul 2013 10:16:49 +0200, Helmut Kaindl
<helmut.kaindl@...> wrote:
something already solved or still open.
In any case, this part of your stacktrace makes me think you are using
multiple threads:
at esrasoftcommunications.JobData.updateStatus(JobData.java:315)
at
esrasoftcommunications.JobDispatcher.run(JobDispatcher.java:118)
Make sure you use a connection only for a single job at a time.
Mark
<helmut.kaindl@...> wrote:
> Hello,esrasoftcommunications.Database.executeUpdate(Database.java:229)
>
> here is the full stacktrace:
>
> 2013-07-15 22:10:18 [ERROR] esrasoftcommunications.JobDispatcher.run():
> java.lang.ArrayIndexOutOfBoundsException: 0
> 2013-07-15 22:10:18 [TRACE] esrasoftcommunications.JobDispatcher.run():
> java.lang.Exception: java.lang.ArrayIndexOutOfBoundsException: 0
> at
> at esrasoftcommunications.JobData.updateStatus(JobData.java:315)esrasoftcommunications.JobDispatcher.run(JobDispatcher.java:118)
> at
> atesrasoftcommunications.EsraSoftCommunications.main(EsraSoftCommunications.java:29)
>
> Caused by: java.lang.ArrayIndexOutOfBoundsException: 0org.firebirdsql.gds.impl.wire.AbstractJavaGDSImpl.getSqlCounts(AbstractJavaGDSImpl.java:1648)
> at
>
> atorg.firebirdsql.gds.impl.GDSHelper.getSqlCounts(GDSHelper.java:358)
>
> atorg.firebirdsql.jdbc.AbstractStatement.getUpdateCount(AbstractStatement.java:942)
>
> atorg.firebirdsql.jdbc.AbstractPreparedStatement.executeUpdate(AbstractPreparedStatement.java:209)
>
> atesrasoftcommunications.Database.executeUpdate(Database.java:223)
> at esrasoftcommunications.JobData.updateStatus(JobData.java:315)esrasoftcommunications.JobDispatcher.run(JobDispatcher.java:118)
> at
> atesrasoftcommunications.EsraSoftCommunications.main(EsraSoftCommunications.java:29)
>
>linux
>
> There is just one thread running. A Java Application started on the
> terminal. I tried it with open java 7 and oracle java 7 runtimeI believe I have seen this stacktrace before, I will check whether it is
> environment.
something already solved or still open.
In any case, this part of your stacktrace makes me think you are using
multiple threads:
at esrasoftcommunications.JobData.updateStatus(JobData.java:315)
at
esrasoftcommunications.JobDispatcher.run(JobDispatcher.java:118)
Make sure you use a connection only for a single job at a time.
Mark