Subject | Android Connection |
---|---|
Author | stefano |
Post date | 2019-05-08T15:23:26Z |
Hi all,
I developed several Java programs that use a JDBC connection to FB
without any issue.
Having to develop an Android app I thought that this matter should be
easy to implement. Sadly until now I have not been able to get a
connection to a DB.
The driver is registered:
I/System.out: Firebird JCA-JDBC driver version 2.2 registered with
driver manager.
but when I try to getConnection, it always gives me an exception error
like:
Rejecting re-init on previously-failed class
java.lang.Class<org.firebirdsql.jca.FBManagedConnection>:
java.lang.NoClassDefFoundError: Failed resolution of:
Ljavax/transaction/xa/XAResource;
Following a lot of net advises, I have tried several version of
libraries, getting different exceptions, without any succesful.
Please, is there anybody that has a working example, and the libraries
used, better if is developed with Android Studio.
Thanks in advance Stefano
I developed several Java programs that use a JDBC connection to FB
without any issue.
Having to develop an Android app I thought that this matter should be
easy to implement. Sadly until now I have not been able to get a
connection to a DB.
The driver is registered:
I/System.out: Firebird JCA-JDBC driver version 2.2 registered with
driver manager.
but when I try to getConnection, it always gives me an exception error
like:
Rejecting re-init on previously-failed class
java.lang.Class<org.firebirdsql.jca.FBManagedConnection>:
java.lang.NoClassDefFoundError: Failed resolution of:
Ljavax/transaction/xa/XAResource;
Following a lot of net advises, I have tried several version of
libraries, getting different exceptions, without any succesful.
Please, is there anybody that has a working example, and the libraries
used, better if is developed with Android Studio.
Thanks in advance Stefano