Android Question Service error

jayel

Active Member
Licensed User
Longtime User
Hello,

When I stop the debugger I get following error...
tsh_output : 000000000000000000
0.0.0.0 0 0 0 0
** Service (pushservice) Destroy **
Program compiled in debug mode, can only run with debugger attached.
** Service (pushservice) Create **
java.lang.RuntimeException: Unable to create service be.robotronic.robolink.pushservice: java.lang.RuntimeException: java.lang.Exception: Sub service_create signature does not match expected signature.
at android.app.ActivityThread.handleCreateService(ActivityThread.java:3284)
at android.app.ActivityThread.access$1900(ActivityThread.java:181)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1559)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:6134)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)
Caused by: java.lang.RuntimeException: java.lang.Exception: Sub service_create signature does not match expected signature.
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:148)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:171)
at be.robotronic.robolink.pushservice.onCreate(pushservice.java:46)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:3274)
... 9 more
Caused by: java.lang.Exception: Sub service_create signature does not match expected signature.
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:123)
... 12 more
Program compiled in debug mode, can only run with debugger attached.
** Service (pushservice) Create **
java.lang.RuntimeException: Unable to create service be.robotronic.robolink.pushservice: java.lang.RuntimeException: java.lang.Exception: Sub service_create signature does not match expected signature.
at android.app.ActivityThread.handleCreateService(ActivityThread.java:3284)
at android.app.ActivityThread.access$1900(ActivityThread.java:181)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1559)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:6134)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)
Caused by: java.lang.RuntimeException: java.lang.Exception: Sub service_create signature does not match expected signature.
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:148)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:171)
at be.robotronic.robolink.pushservice.onCreate(pushservice.java:46)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:3274)
... 9 more
Caused by: java.lang.Exception: Sub service_create signature does not match expected signature.
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:123)
... 12 more

Why is this happening?
Can anybody analyse the error?

Greets,

John Lauwers
 
Why is this happening?
Maybe because you already got the answer in the output
Code:
** Service (pushservice) Destroy **
Program compiled in debug mode, can only run with debugger attached.
 
Upvote 0
OK

But what does it mean?

I want to test my app and see the debug output when I disconnect from WIFI.
So I tested with a usb cable direct to my pc.
 
Upvote 0
Hello,

I always have traouble working with services.
I got a pushservice and I close the service in Activity.pause
Code:
Sub Activity_Resume
    If host.Length > 0 Then
        StartService(PushService)
       
    End If
    GroupIndex = 0
    tmrCheckStatus.Enabled = True
   
End Sub

Sub Activity_Pause (UserClosed As Boolean)
    StopService(PushService)
    tmrCheckStatus.Enabled = False
End Sub

I close my app with a button on top :
Code:
Sub btnStop_Click
    Activity.Finish
   
End Sub

Why does the pushservice try to start automaticaly?

See error bellow?

** Activity (main) Create, isFirst = false **
** Activity (main) Resume **
** Service (pushservice) Create **
** Service (pushservice) Start **
Trying to connect
Socket Connected
JobName = LoginSpecial, Success = true
{"tag":"loginspecial","error":false,"user":{"idnummer":"3","naam":"Verhaeghe","voornaam":"Rika","kortenaam":"Rika","encrypted_key":"fIkinEDbQ6MebT6OD\/MjBiQzAvVkNTI0MjU1OTQy","taal":"Nederlands"}}
JobName = GetGroups, Success = true
itemid = 0
Buttonstatus = false
JobName = GetInOut, Success = true
000000000000000000
Text: 000000000000000000
18
tsh_output : 000000000000000000
0.0.0.0 0 0 0 0
000000000000000000
Text: 000000000000000000
18
tsh_output : 000000000000000000
0.0.0.0 0 0 0 0
** Activity (main) Pause, UserClosed = true **
** Service (pushservice) Destroy **
Ignoring event as service was destroyed: astreams_error
Program compiled in debug mode, can only run with debugger attached.
** Service (pushservice) Create **
java.lang.RuntimeException: Unable to create service be.robotronic.robolink.pushservice: java.lang.RuntimeException: java.lang.Exception: Sub service_create signature does not match expected signature.
at android.app.ActivityThread.handleCreateService(ActivityThread.java:3284)
at android.app.ActivityThread.access$1900(ActivityThread.java:181)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1559)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:6134)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)
Caused by: java.lang.RuntimeException: java.lang.Exception: Sub service_create signature does not match expected signature.
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:148)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:171)
at be.robotronic.robolink.pushservice.onCreate(pushservice.java:46)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:3274)
... 9 more
Caused by: java.lang.Exception: Sub service_create signature does not match expected signature.
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:123)
... 12 more


Greets

John
 
Upvote 0
Back
Top