Android Question FATAL ERROR In Debug or Release Mode

4rdn1_s

Member
Hi everyone,

I'm beginning to feel hopeless, please someone tell me what this error mean???, please, please, please

================
Logger connected to: vivo vivo 2007
--------- beginning of crash
FATAL EXCEPTION: main
Process: ObunderPOS.V1, PID: 15694
java.lang.RuntimeException: Unable to create service ObunderPOS.V1.starter: java.lang.RuntimeException: java.net.SocketException: Connection reset
at android.app.ActivityThread.handleCreateService(ActivityThread.java:4558)
at android.app.ActivityThread.access$1700(ActivityThread.java:269)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2185)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:257)
at android.app.ActivityThread.main(ActivityThread.java:8218)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:626)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1016)
Caused by: java.lang.RuntimeException: java.net.SocketException: Connection reset
at anywheresoftware.b4a.shell.Shell.virtualAssets(Shell.java:164)
at anywheresoftware.b4a.shell.Shell.start(Shell.java:102)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:92)
at ObunderPOS.V1.starter.onCreate(starter.java:34)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:4538)
... 8 more
Caused by: java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:215)
at java.net.SocketInputStream.read(SocketInputStream.java:144)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:248)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:288)
at java.io.BufferedInputStream.read(BufferedInputStream.java:347)
at java.io.DataInputStream.readFully(DataInputStream.java:198)
at java.io.DataInputStream.readInt(DataInputStream.java:389)
at anywheresoftware.b4a.shell.Shell.virtualAssets(Shell.java:136)
... 12 more
.
.
.
.
--------- beginning of main
Not starting debugger since process cannot load the jdwp agent.
Invalid ID 0x00000000.
Not starting debugger since process cannot load the jdwp agent.
*** Debugger waiting for connection (0) ***
Compat change id reported: 147798919; UID 10391; state: DISABLED
Invalid ID 0x00000000.
Not starting debugger since process cannot load the jdwp agent.
Invalid ID 0x00000000.
Not starting debugger since process cannot load the jdwp agent.
Invalid ID 0x00000000.
Not starting debugger since process cannot load the jdwp agent.
Invalid ID 0x00000000.
Not starting debugger since process cannot load the jdwp agent.
Invalid ID 0x00000000.
Not starting debugger since process cannot load the jdwp agent.
PFP: 0x005ff114, ME: 0x005ff066
mapper 4.x is not supported
mapper 3.x is not supported
Invalid ID 0x00000000.
Not starting debugger since process cannot load the jdwp agent.
Invalid ID 0x00000000.
===================

I thank you very much for your help guys.
 

DonManfred

Expert
Licensed User
Longtime User
omeone tell me what this error mean???, please, please, please
No one can help if you do not upload a small project showing the Problem.

How should we know what your code is doing?
 
Upvote 0

4rdn1_s

Member
What happens in release mode? Please post the logs.
Hi,

this is the log :

===========
Logger connected to: vivo vivo 2007
--------- beginning of crash
FATAL EXCEPTION: main
Process: ObunderPOS.V1, PID: 15694
java.lang.RuntimeException: Unable to create service ObunderPOS.V1.starter: java.lang.RuntimeException: java.net.SocketException: Connection reset
at android.app.ActivityThread.handleCreateService(ActivityThread.java:4558)
at android.app.ActivityThread.access$1700(ActivityThread.java:269)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2185)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:257)
at android.app.ActivityThread.main(ActivityThread.java:8218)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:626)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1016)
Caused by: java.lang.RuntimeException: java.net.SocketException: Connection reset
at anywheresoftware.b4a.shell.Shell.virtualAssets(Shell.java:164)
at anywheresoftware.b4a.shell.Shell.start(Shell.java:102)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:92)
at ObunderPOS.V1.starter.onCreate(starter.java:34)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:4538)
... 8 more
Caused by: java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:215)
at java.net.SocketInputStream.read(SocketInputStream.java:144)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:248)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:288)
at java.io.BufferedInputStream.read(BufferedInputStream.java:347)
at java.io.DataInputStream.readFully(DataInputStream.java:198)
at java.io.DataInputStream.readInt(DataInputStream.java:389)
at anywheresoftware.b4a.shell.Shell.virtualAssets(Shell.java:136)
... 12 more
FATAL EXCEPTION: main
Process: ObunderPOS.V1, PID: 19591
java.lang.RuntimeException: Unable to create service ObunderPOS.V1.starter: java.lang.RuntimeException: java.lang.NullPointerException: Attempt to invoke virtual method 'void java.io_OutputStream.write(byte[])' on a null object reference
at android.app.ActivityThread.handleCreateService(ActivityThread.java:4558)
at android.app.ActivityThread.access$1700(ActivityThread.java:269)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2185)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:257)
at android.app.ActivityThread.main(ActivityThread.java:8218)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:626)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1016)
Caused by: java.lang.RuntimeException: java.lang.NullPointerException: Attempt to invoke virtual method 'void java.io_OutputStream.write(byte[])' on a null object reference
at anywheresoftware.b4a.shell.Shell.virtualAssets(Shell.java:164)
at anywheresoftware.b4a.shell.Shell.start(Shell.java:102)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:92)
at ObunderPOS.V1.starter.onCreate(starter.java:34)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:4538)
... 8 more
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void java.io_OutputStream.write(byte[])' on a null object reference
at anywheresoftware.b4a.shell.ShellConnector.sendControlMessage(ShellConnector.java:61)
at anywheresoftware.b4a.shell.Shell.virtualAssets(Shell.java:124)
... 12 more
FATAL EXCEPTION: main
Process: ObunderPOS.V1, PID: 21060
java.lang.RuntimeException: Unable to create service ObunderPOS.V1.starter: java.lang.RuntimeException: java.lang.NullPointerException: Attempt to invoke virtual method 'void java.io_OutputStream.write(byte[])' on a null object reference
at android.app.ActivityThread.handleCreateService(ActivityThread.java:4558)
at android.app.ActivityThread.access$1700(ActivityThread.java:269)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2185)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:257)
at android.app.ActivityThread.main(ActivityThread.java:8218)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:626)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1016)
Caused by: java.lang.RuntimeException: java.lang.NullPointerException: Attempt to invoke virtual method 'void java.io_OutputStream.write(byte[])' on a null object reference
at anywheresoftware.b4a.shell.Shell.virtualAssets(Shell.java:164)
at anywheresoftware.b4a.shell.Shell.start(Shell.java:102)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:92)
at ObunderPOS.V1.starter.onCreate(starter.java:34)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:4538)
... 8 more
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void java.io_OutputStream.write(byte[])' on a null object reference
at anywheresoftware.b4a.shell.ShellConnector.sendControlMessage(ShellConnector.java:61)
at anywheresoftware.b4a.shell.Shell.virtualAssets(Shell.java:124)
... 12 more
--------- beginning of main
Not starting debugger since process cannot load the jdwp agent.
Invalid ID 0x00000000.
Not starting debugger since process cannot load the jdwp agent.
*** Debugger waiting for connection (0) ***
Compat change id reported: 147798919; UID 10391; state: DISABLED
Invalid ID 0x00000000.
Not starting debugger since process cannot load the jdwp agent.
Invalid ID 0x00000000.
Not starting debugger since process cannot load the jdwp agent.
Invalid ID 0x00000000.
Not starting debugger since process cannot load the jdwp agent.
Invalid ID 0x00000000.
Not starting debugger since process cannot load the jdwp agent.
Invalid ID 0x00000000.
Not starting debugger since process cannot load the jdwp agent.
PFP: 0x005ff114, ME: 0x005ff066
mapper 4.x is not supported
mapper 3.x is not supported
Invalid ID 0x00000000.
Not starting debugger since process cannot load the jdwp agent.
Invalid ID 0x00000000.
Not starting debugger since process cannot load the jdwp agent.
Invalid ID 0x00000000.
Not starting debugger since process cannot load the jdwp agent.
Invalid ID 0x00000000.
Not starting debugger since process cannot load the jdwp agent.
Invalid ID 0x00000000.
Not starting debugger since process cannot load the jdwp agent.
Invalid ID 0x00000000.
FATAL EXCEPTION: main
Process: ObunderPOS.V1, PID: 11005
java.lang.RuntimeException: Unable to create service ObunderPOS.V1.starter: java.lang.RuntimeException: java.lang.NullPointerException: Attempt to invoke virtual method 'void java.io_OutputStream.write(byte[])' on a null object reference
at android.app.ActivityThread.handleCreateService(ActivityThread.java:4558)
at android.app.ActivityThread.access$1700(ActivityThread.java:269)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2185)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:257)
at android.app.ActivityThread.main(ActivityThread.java:8218)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:626)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1016)
Caused by: java.lang.RuntimeException: java.lang.NullPointerException: Attempt to invoke virtual method 'void java.io_OutputStream.write(byte[])' on a null object reference
at anywheresoftware.b4a.shell.Shell.virtualAssets(Shell.java:164)
at anywheresoftware.b4a.shell.Shell.start(Shell.java:102)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:92)
at ObunderPOS.V1.starter.onCreate(starter.java:34)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:4538)
... 8 more
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void java.io_OutputStream.write(byte[])' on a null object reference
at anywheresoftware.b4a.shell.ShellConnector.sendControlMessage(ShellConnector.java:61)
at anywheresoftware.b4a.shell.Shell.virtualAssets(Shell.java:124)
... 12 more
Not starting debugger since process cannot load the jdwp agent.
QUALCOMM build : 03dd3ba, I13854cb805
Build Date : 10/28/20
OpenGL ES Shader Compiler Version: EV************
Local Branch : mybrancheb191cbf-5661-f183-9b13-08f1eafda2d8
Remote Branch : quic/gfx-adreno.lnx.1.0.r122-rel
Remote Branch : NONE
Reconstruct Branch : NOTHING
Build Config : S L 10.0.7 AArch64
Driver Path : /vendor/lib64/egl/libGLESv2_adreno.so
PFP: 0x005ff114, ME: 0x005ff066
mapper 4.x is not supported
mapper 3.x is not supported
Invalid ID 0x00000000.
Not starting debugger since process cannot load the jdwp agent.
Invalid ID 0x00000000.
Not starting debugger since process cannot load the jdwp agent.
Invalid ID 0x00000000.
Not starting debugger since process cannot load the jdwp agent.
Invalid ID 0x00000000.
Not starting debugger since process cannot load the jdwp agent.
Not starting debugger since process cannot load the jdwp agent.
Not starting debugger since process cannot load the jdwp agent.
Not starting debugger since process cannot load the jdwp agent.
QUALCOMM build : 03dd3ba, I13854cb805
Build Date : 10/28/20
OpenGL ES Shader Compiler Version: EV************
Local Branch : mybrancheb191cbf-5661-f183-9b13-08f1eafda2d8
Remote Branch : quic/gfx-adreno.lnx.1.0.r122-rel
Remote Branch : NONE
Reconstruct Branch : NOTHING
Build Config : S L 10.0.7 AArch64
Driver Path : /vendor/lib64/egl/libGLESv2_adreno.so
PFP: 0x005ff114, ME: 0x005ff066
================

this is my code :

============

Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("laylogin")

nmStore.Initialize
kdStore.Initialize

'-- cek settingan server dan database
get_dbsetting

'load daftar Store
loadStore
End Sub

Sub get_dbsetting
Dim list1 As List
Dim sf As StringFunctions

sf.Initialize

If File.Exists(File.DirInternal,"set.txt") Then
list1 = File.ReadList(File.DirInternal, "set.txt")
'Msgbox("List1.Size = " & list1.Size & CRLF & "The third item is: " & list1.Get(2), "")
koneksiDB.xnmserver = sf.Mid(list1.Get(1),3,sf.Len(list1.Get(1))-2)
koneksiDB.xnmdatabase = sf.Mid(list1.Get(2),3,sf.Len(list1.Get(2))-2)
koneksiDB.xusrid = sf.Mid(list1.Get(3),3,sf.Len(list1.Get(3))-2)
koneksiDB.xpasswd = sf.Mid(list1.Get(4),3,sf.Len(list1.Get(4))-2)
Else
'Activity_Pause(True)
setting_DB.itombol=1
StartActivity("setting_DB")
End If

End Sub

Sub loadStore
Dim listStore As ResultSet
Dim SpinnMap As Map

SpinnMap.Initialize

koneksiDB.KonekDB

koneksiDB.rset1 = koneksiDB.handlerDB1.Query("Select id_gudang, nm_gudang from m_gudang where status_gudang=1 And (jns_gudang ='GD.STORE' Or jns_gudang='GD. STORE') order by nm_gudang")
spstore.Clear
spstore.Add("-- Pilih Store --")
listStore = koneksiDB.rset1

For i=0 To listStore.RowCount-1
'Dim record() As Object = listStore
listStore.Position=i
spstore.Add(listStore.GetString2("nm_gudang"))
SpinnMap.Put(koneksiDB.rset1.GetString2("nm_gudang"),koneksiDB.rset1.GetString2("id_gudang"))
kdStore.Put(koneksiDB.rset1.GetString2("id_gudang"),koneksiDB.rset1.GetString2("nm_gudang"))
nmStore.Put(koneksiDB.rset1.GetString2("nm_gudang"),koneksiDB.rset1.GetString2("id_gudang"))
Next

koneksiDB.handlerDB1.Close
End Sub

=======

I Also Attach the video capture
 
Upvote 0

4rdn1_s

Member
Very bad post. Please respect other members and use code tags.

This is still a debug build. You will not see b4a.shell in a release deployment.
Sorry for my bad post. I'll be better next time.

How can I make release deployment??

Thank you.
 
Upvote 0

4rdn1_s

Member
Very bad post. Please respect other members and use code tags.

This is still a debug build. You will not see b4a.shell in a release deployment.
hi,
this is the error log in release mode, can you help me how to fix this error?

thanks,

Logger connected to: vivo vivo 2007
--------- beginning of main
Not starting debugger since process cannot load the jdwp agent.
QUALCOMM build : 03dd3ba, I13854cb805
Build Date : 10/28/20
OpenGL ES Shader Compiler Version: EV************
Local Branch : mybrancheb191cbf-5661-f183-9b13-08f1eafda2d8
Remote Branch : quic/gfx-adreno.lnx.1.0.r122-rel
Remote Branch : NONE
Reconstruct Branch : NOTHING
Build Config : S L 10.0.7 AArch64
Driver Path : /vendor/lib64/egl/libGLESv2_adreno.so
PFP: 0x005ff114, ME: 0x005ff066
mapper 4.x is not supported
mapper 3.x is not supported
Not starting debugger since process cannot load the jdwp agent.
** Activity (main) Create, isFirst = true **
 
Upvote 0

agraham

Expert
Licensed User
Longtime User
You have asked this question before and no one has been able to help.
Reposting the same problem with a different title will not magically solve the problem, which as I noted in the other thread, appears to be a problem with the vivo 2007 phone itself not supporting the required level of JDWP (Java Debug Wire Protocol). Use a different phone.
 
Upvote 0

4rdn1_s

Member
You have asked this question before and no one has been able to help.
Reposting the same problem with a different title will not magically solve the problem, which as I noted in the other thread, appears to be a problem with the vivo 2007 phone itself not supporting the required level of JDWP (Java Debug Wire Protocol). Use a different phone.
Yes I aware of that, and I try using several phone still generate the same JDWP error.

The othe phone I use to test are :
Realme 5 pro and Realme C1
 
Upvote 0

agraham

Expert
Licensed User
Longtime User
I try using several phone still generate the same JDWP error.
Ah! You haven't told us that before. Previously you said
Note : when using Oppo Neo 7 my app work smoothly.
Which makes it look like it's only the Vivo 2007 that you have mentioned that has the error. Nevertheless if it works well on one phone and not others it looks like a common problem with those phones rather than it being your app.
 
Upvote 0

4rdn1_s

Member
Ah! You haven't told us that before. Previously you said

Which makes it look like it's only the Vivo 2007 that you have mentioned that has the error. Nevertheless if it works well on one phone and not others it looks like a common problem with those phones rather than it being your app
Hehehe, I my bad.

Is the phone Chipset, for example Qualcom Snapdragon or Mediatek or the GPU can be the couse of this error?
 
Upvote 0

agraham

Expert
Licensed User
Longtime User
Is the phone Chipset, for example Qualcom Snapdragon or Mediatek or the GPU can be the couse of this error?
Unlikely. An Android app should be an Android app - period. I have never come cross such a dependency. Old apps may fail on more recent phones owing to Android "improvements:(". As I said before, if it works on one phone the app should be OK on other phones at least of the same Android version. Your error appears to be a low level system error caused at app load time.

Does an empty simple example app work on the failing phones(s)? If so then start cutting the failing app back till it works to try to identify what is causing the error.
 
Upvote 0

4rdn1_s

Member
Unlikely. An Android app should be an Android app - period. I have never come cross such a dependency. Old apps may fail on more recent phones owing to Android "improvements:(". As I said before, if it works on one phone the app should be OK on other phones at least of the same Android version. Your error appears to be a low level system error caused at app load time.

Does an empty simple example app work on the failing phones(s)? If so then start cutting the failing app back till it works to try to identify what is causing the error.
I've tried your suggestion and yes simple app can run on the failing phones. never think of it before, Thank you.

I have to start cutting now.
 
Upvote 0

4rdn1_s

Member
Unlikely. An Android app should be an Android app - period. I have never come cross such a dependency. Old apps may fail on more recent phones owing to Android "improvements:(". As I said before, if it works on one phone the app should be OK on other phones at least of the same Android version. Your error appears to be a low level system error caused at app load time.

Does an empty simple example app work on the failing phones(s)? If so then start cutting the failing app back till it works to try to identify what is causing the error.
Hi,
just to let you know I've done cutting my app for the recent phones, thank God it can run on Debug mode, but still have the same issue when I compile using release mode and run it. šŸ˜
 
Upvote 0

4rdn1_s

Member
release mode compile error:
Caused by: java.lang.RuntimeException: java.net.SocketException: Connection reset

Not starting debugger since process cannot load the jdwp agent.
Invalid ID 0x00000000.
Create ARC handle: 0x76352efca0
Not starting debugger since process cannot load the jdwp agent.
QUALCOMM build                   : 03dd3ba, I13854cb805
Build Date                       : 10/28/20
OpenGL ES Shader Compiler Version: EV************
Local Branch                     : mybrancheb191cbf-5661-f183-9b13-08f1eafda2d8
Remote Branch                    : quic/gfx-adreno.lnx.1.0.r122-rel
Remote Branch                    : NONE
Reconstruct Branch               : NOTHING
Build Config                     : S L 10.0.7 AArch64
Driver Path                      : /vendor/lib64/egl/libGLESv2_adreno.so
PFP: 0x005ff114, ME: 0x005ff066

Hi, I am Stuck here please someone help me..
 
Upvote 0

4rdn1_s

Member
hi agraham,
I have found then cause of error, I think it is my database connection, I use mysql library for database connection through internet.

My Connection Code:
Sub Process_Globals
    'These global variables will be declared once when the application starts.
    'These variables can be accessed from all modules.
    Dim handlerDB1 As MysqlHandler
    Dim rset1 As ResultSet
    Dim rset2 As ResultSet
    
    Dim xnmserver,xnmdatabase,xusrid,xpasswd As String
End Sub

Sub KonekDB
    
    handlerDB1.Initialize(xnmserver,xnmdatabase,xusrid,xpasswd)
    If handlerDB1.isConnected = False Then
        MsgboxAsync("Tidak dapat terkoneksi ke Server.!", "")
        ExitApplication
    End If

End Sub

do you mind take a look at it and tell me where I was wrong??

thanks.
 
Last edited:
Upvote 0
Top