Android app doesn't login by error: org/postgresql/jdbc/TimestampUtils


April 2019


48 time


when I try to do login in my android app occurs the following error:

java.lang.VerifyError: org/postgresql/jdbc/TimestampUtils
 at org.postgresql.jdbc.PgConnection.<init>(
 at org.postgresql.Driver.makeConnection(
 at org.postgresql.Driver.connect(
 at java.sql.DriverManager.getConnection(
 at com.j256.ormlite.jdbc.JdbcConnectionSource.makeConnection(
 at com.j256.ormlite.jdbc.JdbcConnectionSource.getReadWriteConnection(
 at com.j256.ormlite.jdbc.JdbcConnectionSource.getReadOnlyConnection(
 at com.j256.ormlite.stmt.StatementExecutor.buildIterator(
 at com.j256.ormlite.stmt.StatementExecutor.query(
 at com.j256.ormlite.dao.BaseDaoImpl.query(
 at com.j256.ormlite.stmt.QueryBuilder.query(
 at com.j256.ormlite.stmt.Where.query(
 at com.j256.ormlite.dao.BaseDaoImpl.queryForEq(
 at android.view.View.performClick(
 at android.view.View$
 at android.os.Handler.handleCallback(
 at android.os.Handler.dispatchMessage(
 at android.os.Looper.loop(
 at java.lang.reflect.Method.invokeNative(Native Method)
 at java.lang.reflect.Method.invoke(
 at dalvik.system.NativeStart.main(Native Method)

Some code:

ConnectionSource connectionSource = new PostgreSqlDBHelper().createConnectionSource();
Dao<UserVO, String> userDAO = DaoManager.createDao(connectionSource, UserVO.class);
List<UserVO> listUserVO = userDAO.queryForEq("username", userName.getText().toString().toLowerCase());

I use Ormlite to manage all database connections. All methods are from ormlite framework.

I cannot find any information about this error: java.lang.VerifyError: org/postgresql/jdbc/TimestampUtils

The minimum API version of the app is 16 (Jelly Bean)

I have done test (with physical and virtual devices) with all API's available since the minimum of my app.

The conclusion is that crash with:

  • Android Jelly Bean (API version: 16/17/18)
  • Android KitKat (API version: 19/20)

The next versions of android works correctly.

Please help me to find some solution or any idea of why it's occurs.

Thank you

0 answers