Android Question how to understand where error occured ?

peacemaker

Expert
Licensed User
Longtime User
If Analytics shows error like this - i see the sub where the error is (ru.flaw.bouquet._activity_refresh (bouquet.java:436)):
B4X:
Exception java.lang.IllegalStateException: Cannot perform this operation because the connection pool has been closed.
android.database.sqlite.SQLiteConnectionPool.throwIfClosedLocked (SQLiteConnectionPool.java:962)
android.database.sqlite.SQLiteConnectionPool.waitForConnection (SQLiteConnectionPool.java:599)
android.database.sqlite.SQLiteConnectionPool.acquireConnection (SQLiteConnectionPool.java:348)
android.database.sqlite.SQLiteSession.acquireConnection (SQLiteSession.java:894)
android.database.sqlite.SQLiteSession.executeForCursorWindow (SQLiteSession.java:834)
android.database.sqlite.SQLiteQuery.fillWindow (SQLiteQuery.java:62)
android.database.sqlite.SQLiteCursor.fillWindow (SQLiteCursor.java:145)
android.database.sqlite.SQLiteCursor.getCount (SQLiteCursor.java:134)
anywheresoftware.b4a.sql.SQL$CursorWrapper.getRowCount (SQL.java:335)
ru.flaw.bouquet._activity_refresh (bouquet.java:436)
java.lang.reflect.Method.invoke (Method.java)
anywheresoftware.b4a.BA.raiseEvent2 (BA.java:186)
anywheresoftware.b4a.keywords.Common.CallSub4 (Common.java:1051)
anywheresoftware.b4a.keywords.Common.CallSubNew (Common.java:985)
ru.flaw.flaw._parse_bouquetinfo (flawery.java:839)
ru.flaw.flaw._jobdone (flawery.java:622)
java.lang.reflect.Method.invoke (Method.java)
anywheresoftware.b4a.BA.raiseEvent2 (BA.java:186)
anywheresoftware.b4a.keywords.Common$11.run (Common.java:1151)
android.os.Handler.handleCallback (Handler.java:754)
android.os.Handler.dispatchMessage (Handler.java:95)
android.os.Looper.loop (Looper.java:163)
android.app.ActivityThread.main (ActivityThread.java:6237)
java.lang.reflect.Method.invoke (Method.java)
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:877)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:767)

But how to understand the B4A line with error (if lots of SQL operations in this sub)?
 

peacemaker

Expert
Licensed User
Longtime User
Thanks, Erel !
Comment lines with B4A code lines in the Java source-code are super !
But actually, this info is not saved together with the project ZIP to debug the project later.
Is it possible to save this info into a log file that also to be saved into ZIP (as the manifest file)?
Say, with lines formatted like:
module_name;B4A_linenumber; Java_linenumber

If so - it would be super for debugging.
 
Upvote 0
Top