Jaybird exception

10 views
Skip to first unread message

amolna...@gmail.com

unread,
Aug 24, 2022, 3:15:45 AM8/24/22
to firebird-java
Hi Mark!

JayBird 4.0.6.java8

I've got a bugreport with this. What can be the problem? (Not a reproducible error, this is the first time)
Thank You!


[ERROR] 2022.08.24 03:44:59,095 - hu.libra.commons.concurrency.ThreadExecContinuous - "LicenseThread"
0 (ArrayIndexOutOfBoundsException)

java.lang.ArrayIndexOutOfBoundsException: 0
    at org.firebirdsql.gds.ng.StatementInfoProcessor.process(StatementInfoProcessor.java:63)
    at org.firebirdsql.gds.ng.AbstractFbStatement.parseStatementInfo(AbstractFbStatement.java:695)
    at org.firebirdsql.gds.ng.wire.version10.V10Statement.processPrepareResponse(V10Statement.java:252)
    at org.firebirdsql.gds.ng.wire.version11.V11Statement.prepare(V11Statement.java:89)
    at org.firebirdsql.jdbc.FBStatement.prepareFixedStatement(FBStatement.java:881)
    at org.firebirdsql.jdbc.AbstractPreparedStatement.prepareFixedStatement(AbstractPreparedStatement.java:787)
    at org.firebirdsql.jdbc.AbstractPreparedStatement.<init>(AbstractPreparedStatement.java:142)
    at org.firebirdsql.jdbc.FBPreparedStatement.<init>(FBPreparedStatement.java:48)
    at org.firebirdsql.jdbc.FBConnection.prepareStatement(FBConnection.java:791)
    at org.firebirdsql.jdbc.FBConnection.prepareStatement(FBConnection.java:704)
    at org.firebirdsql.jdbc.FBConnection.prepareStatement(FBConnection.java:696)
    at org.firebirdsql.jdbc.FBConnection.prepareStatement(FBConnection.java:296)
    at org.apache.commons.dbcp2.DelegatingConnection.prepareStatement(DelegatingConnection.java:696)
    at org.apache.commons.dbcp2.DelegatingConnection.prepareStatement(DelegatingConnection.java:696)
    at hu.libra.commons.db.connection.ConfigurableConnection.prepareStatement(ConfigurableConnection.java:169)
    at hu.libra.commons.db.connection.ConfigurableConnection.prepareStatement(ConfigurableConnection.java:169)
    at hu.libra.commons.db.utils.DBUtils.prepare(DBUtils.java:1166)
    at hu.libra.commons.db.utils.DBUtils.executeQuery(DBUtils.java:1330)
    at hu.libra.commons.db.utils.DBUtils.executeQuery(DBUtils.java:1313)
    at hu.libra.commons.db.utils.DBUtils.executeQuery(DBUtils.java:2543)
    at hu.libra.commons.db.utils.DBUtils.executeQuery(DBUtils.java:2560)
    at hu.libra.navservices.db.DAO.<init>(DAO.java:82)
    at hu.libra.navservices.license.NAVLicenseManager.loadLicense(NAVLicenseManager.java:385)
    at hu.libra.navservices.license.NAVLicenseManager.loadLicenses(NAVLicenseManager.java:173)
    at hu.libra.libralicense.manager.LicenseManager$LicenseThread.exec(LicenseManager.java:144)
    at hu.libra.commons.concurrency.ThreadExecContinuous.run(ThreadExecContinuous.java:53)
    at hu.libra.libralicense.manager.LicenseManager$LicenseThread.run(LicenseManager.java:134)

[FATAL] 2022.08.24 04:45:03,045 - hu.libra.commons.log.LogUtils - "LicenseThread"
Could not initialize class org.firebirdsql.gds.GDSExceptionHelper
java.lang.NoClassDefFoundError: Could not initialize class org.firebirdsql.gds.GDSExceptionHelper
    at org.firebirdsql.gds.ng.FbExceptionBuilder$ExceptionInformation.<init>(FbExceptionBuilder.java:431)
    at org.firebirdsql.gds.ng.FbExceptionBuilder.setNextExceptionInformation(FbExceptionBuilder.java:371)
    at org.firebirdsql.gds.ng.FbExceptionBuilder.nonTransientException(FbExceptionBuilder.java:133)
    at org.firebirdsql.gds.ng.wire.AbstractWireOperations.processOperation(AbstractWireOperations.java:210)
    at org.firebirdsql.gds.ng.wire.AbstractWireOperations.readSingleResponse(AbstractWireOperations.java:171)
    at org.firebirdsql.gds.ng.wire.version11.V11WireOperations.processDeferredActions(V11WireOperations.java:65)
    at org.firebirdsql.gds.ng.wire.AbstractWireOperations.readNextOperation(AbstractWireOperations.java:184)
    at org.firebirdsql.gds.ng.wire.AbstractWireOperations.readSingleResponse(AbstractWireOperations.java:171)
    at org.firebirdsql.gds.ng.wire.AbstractWireOperations.readResponse(AbstractWireOperations.java:155)
    at org.firebirdsql.gds.ng.wire.version10.V10Database.internalDetach(V10Database.java:213)
    at org.firebirdsql.gds.ng.AbstractFbDatabase.close(AbstractFbDatabase.java:193)
    at org.firebirdsql.gds.impl.GDSHelper.detachDatabase(GDSHelper.java:178)
    at org.firebirdsql.jca.FBManagedConnection.destroy(FBManagedConnection.java:597)
    at org.firebirdsql.jca.FBStandAloneConnectionManager.connectionClosed(FBStandAloneConnectionManager.java:82)
    at org.firebirdsql.jca.FBManagedConnection$1.notify(FBManagedConnection.java:1413)
    at org.firebirdsql.jca.FBManagedConnection.notify(FBManagedConnection.java:1401)
    at org.firebirdsql.jca.FBManagedConnection.close(FBManagedConnection.java:1311)
    at org.firebirdsql.jdbc.FBConnection.close(FBConnection.java:473)
    at org.apache.commons.dbcp2.DelegatingConnection.closeInternal(DelegatingConnection.java:176)
    at org.apache.commons.dbcp2.PoolableConnection.reallyClose(PoolableConnection.java:304)
    at org.apache.commons.dbcp2.PoolableConnectionFactory.destroyObject(PoolableConnectionFactory.java:151)
    at org.apache.commons.pool2.impl.GenericObjectPool.destroy(GenericObjectPool.java:605)
    at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:357)
    at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:428)
    at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:232)
    at org.apache.commons.dbcp2.PoolingDataSource.getConnection(PoolingDataSource.java:141)
    at org.apache.commons.dbcp2.BasicDataSource.getConnection(BasicDataSource.java:731)
    at hu.libra.commons.db.datasource.ConfigurableDataSource.getConnection(ConfigurableDataSource.java:60)
    at hu.libra.navservices.LibraNAVServices$1Conn.<init>(LibraNAVServices.java:661)
    at hu.libra.navservices.LibraNAVServices.connect(LibraNAVServices.java:679)
    at hu.libra.navservices.LibraNAVServices.getConnection(LibraNAVServices.java:1348)
    at hu.libra.navservices.license.NAVLicenseManager.loadLicenses(NAVLicenseManager.java:172)
    at hu.libra.libralicense.manager.LicenseManager$LicenseThread.exec(LicenseManager.java:144)
    at hu.libra.commons.concurrency.ThreadExecContinuous.run(ThreadExecContinuous.java:53)
    at hu.libra.libralicense.manager.LicenseManager$LicenseThread.run(LicenseManager.java:134)

Mark Rotteveel

unread,
Aug 24, 2022, 7:32:11 AM8/24/22
to firebi...@googlegroups.com
On 24-08-2022 09:15, amolna...@gmail.com wrote:
> JayBird 4.0.6.java8
>
> I've got a bugreport with this. What can be the problem? (Not a
> reproducible error, this is the first time)

The first error (java.lang.ArrayIndexOutOfBoundsException: 0) indicates
that an info response buffer was unexpectedly empty. As far as I know,
this shouldn't normally happen; it should at minimum contain an
isc_info_end (= 1). A reproducible case for this would be welcome.

Regarding the second error: java.lang.NoClassDefFoundError: Could not
initialize class org.firebirdsql.gds.GDSExceptionHelper

That would indicate that the class could not be loaded or initialized,
which sounds weird. Are there any earlier errors (e.g.
ClassNotFoundException or ExceptionInInitializerError) referencing this
class? Or error logs with the text "Exception in init of
GDSExceptionHelper, unable to load error information".

I wonder if maybe an earlier occurrence of the NoClassDefFoundError
could trigger the first error, e.g. by not properly reading the status
vector or something.

Mark
--
Mark Rotteveel

amolna...@gmail.com

unread,
Aug 25, 2022, 3:28:33 AM8/25/22
to firebird-java
The two exceptions happend in the same program (Java program as webservice server), and same run. No prior exceptions before them.
#1 could be a Firebird server side issue?
#2 this is all the log, system.out was not written

amolna...@gmail.com

unread,
Aug 25, 2022, 3:31:38 AM8/25/22
to firebird-java
Looks like it was a Firebird server issue. The FB server had to be restarted, no programs could connect.
(The customer made a file copy on the database file when programs were still connected to the database)

Mark Rotteveel

unread,
Aug 25, 2022, 6:28:22 AM8/25/22
to firebi...@googlegroups.com
On 25-08-2022 09:28, amolna...@gmail.com wrote:
> The two exceptions happend in the same program (Java program as
> webservice server), and same run. No prior exceptions before them.
> #1 could be a Firebird server side issue?
> #2 this is all the log, system.out was not written

Number 1 could potentially be a Firebird server issue, but number 2
seems to be an issue with your application environment or deployment.
The only scenario I can think of is an IOException while it loads the
error message or sql state resources (but then I would expect an earlier
exception or error logged)

Mark
--
Mark Rotteveel

Reply all
Reply to author
Forward
0 new messages