02-03 13:21:37.636 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/dalvikvm: Could not find class 'org.hibernate.proxy.HibernateProxy', referenced from method weborb.writer.MessageWriter.initWriters
02-03 13:21:37.646 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/dalvikvm: Could not find class 'javax.servlet.http.HttpSession', referenced from method weborb.writer.MessageWriter.writeObject
02-03 13:21:37.646 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/dalvikvm: Could not find class 'weborb.types.jdbc.JDBCResultSet', referenced from method weborb.writer.ResultSetWriter.write
02-03 13:21:37.816 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/dalvikvm: Could not find class 'javax.servlet.http.HttpServletRequest', referenced from method weborb.util.ThreadContext.getContext
02-03 13:21:37.816 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/dalvikvm: Could not find class 'javax.servlet.http.HttpServletRequest', referenced from method weborb.util.ThreadContext.getHttpRequest
02-03 13:21:37.826 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/dalvikvm: Could not find class 'javax.servlet.http.HttpServletResponse', referenced from method weborb.util.ThreadContext.getHttpResponse
02-03 13:21:37.826 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/dalvikvm: Could not find class 'javax.servlet.http.HttpSession', referenced from method weborb.util.ThreadContext.getHttpSession
02-03 13:21:37.826 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/dalvikvm: Could not find class 'javax.servlet.http.HttpSession', referenced from method weborb.util.ThreadContext.getHttpSessionId
02-03 13:21:37.826 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/dalvikvm: Could not find class 'weborb.service.cacheinvalidatorevent.CacheInvalidator', referenced from method weborb.util.cache.Cache.ensureSubscription
02-03 13:21:37.826 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/dalvikvm: Could not find class 'weborb.service.ICacheInvalidator', referenced from method weborb.util.cache.Cache.getValue
02-03 13:21:37.826 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/dalvikvm: Could not find class 'weborb.service.WebORBCacheAttribute', referenced from method weborb.util.cache.Cache.getValue
02-03 13:21:37.846 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/dalvikvm: Could not find class 'weborb.service.WebORBCacheAttribute', referenced from method weborb.util.cache.Cache.invalidateCache
02-03 13:21:37.856 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/dalvikvm: Could not find class 'weborb.service.WebORBCacheAttribute', referenced from method weborb.util.cache.Cache.saveValue
02-03 13:21:37.936 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: FATAL EXCEPTION: main
02-03 13:21:37.936 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{br.com.cdlbomprincipio.cdlbomprincpio/br.com.cdlbomprincipio.cdlbomprincpio.MainActivity}: BackendlessException{ code: 'Internal client exception', message: 'null' }
02-03 13:21:37.936 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2092)
02-03 13:21:37.936 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2117)
02-03 13:21:37.936 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.app.ActivityThread.access$700(ActivityThread.java:134)
02-03 13:21:37.936 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1218)
02-03 13:21:37.936 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99)
02-03 13:21:37.936 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.os.Looper.loop(Looper.java:137)
02-03 13:21:37.936 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:4867)
02-03 13:21:37.936 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at java.lang.reflect.Method.invokeNative(Native Method)
02-03 13:21:37.936 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:511)
02-03 13:21:37.936 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1007)
02-03 13:21:37.936 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:774)
02-03 13:21:37.936 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at dalvik.system.NativeStart.main(Native Method)
02-03 13:21:37.936 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: Caused by: BackendlessException{ code: 'Internal client exception', message: 'null' }
02-03 13:21:37.936 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at com.backendless.Invoker$SyncResponder.errorHandler(Invoker.java:127)
02-03 13:21:37.936 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at com.backendless.core.responder.AdaptingResponder.errorHandler(AdaptingResponder.java:93)
02-03 13:21:37.936 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at weborb.client.ioEngine.HttpIOEngine.send(HttpIOEngine.java:213)
02-03 13:21:37.936 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at weborb.client.ioEngine.HttpIOEngine.invoke(HttpIOEngine.java:145)
02-03 13:21:37.936 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at weborb.client.WeborbClient.invoke(WeborbClient.java:138)
02-03 13:21:37.936 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at com.backendless.Invoker.invokeSync(Invoker.java:100)
02-03 13:21:37.936 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at com.backendless.Persistence.save(Persistence.java:105)
02-03 13:21:37.936 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at com.backendless.DataStoreFactory$1.save(DataStoreFactory.java:40)
02-03 13:21:37.936 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at Database.Notas.save(Notas.java:62)
02-03 13:21:37.936 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at br.com.cdlbomprincipio.cdlbomprincpio.MainActivity.onCreate(MainActivity.java:59)
02-03 13:21:37.936 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.app.Activity.performCreate(Activity.java:5047)
02-03 13:21:37.936 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)
02-03 13:21:37.936 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2056)
02-03 13:21:37.936 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2117)
02-03 13:21:37.936 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.app.ActivityThread.access$700(ActivityThread.java:134)
02-03 13:21:37.936 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1218)
02-03 13:21:37.936 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99)
02-03 13:21:37.936 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.os.Looper.loop(Looper.java:137)
02-03 13:21:37.936 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:4867)
02-03 13:21:37.936 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at java.lang.reflect.Method.invokeNative(Native Method)
02-03 13:21:37.936 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:511)
02-03 13:21:37.936 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1007)
02-03 13:21:37.936 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:774)
02-03 13:21:37.936 9506-9506/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at dalvik.system.NativeStart.main(Native Method)
02-03 13:51:27.506 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/dalvikvm: Could not find class ‘com.backendless.geo.GeoPoint’, referenced from method com.backendless.FootprintsManager$Inner.duplicateFootprintForObject
02-03 13:51:27.506 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/dalvikvm: Could not find class 'com.backendless.BackendlessCollection', referenced from method com.backendless.FootprintsManager$Inner.putEntityFootprintToCache
02-03 13:51:27.506 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/dalvikvm: Could not find class 'com.backendless.geo.GeoPoint', referenced from method com.backendless.FootprintsManager$Inner.updateFootprintForObject
02-03 13:51:27.546 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/dalvikvm: Could not find class 'com.backendless.BackendlessCollection', referenced from method com.backendless.Persistence.<init>
02-03 13:51:27.546 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/dalvikvm: Could not find class 'com.backendless.BackendlessCollection', referenced from method com.backendless.Persistence.callStoredProcedure
02-03 13:51:27.546 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/dalvikvm: Could not find class 'com.backendless.BackendlessCollection', referenced from method com.backendless.Persistence.find
02-03 13:51:27.546 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/dalvikvm: Could not find class 'com.backendless.BackendlessCollection', referenced from method com.backendless.Persistence.getView
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: FATAL EXCEPTION: main
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: java.lang.ExceptionInInitializerError
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at br.com.cdlbomprincipio.cdlbomprincpio.MainActivity.onCreate(MainActivity.java:48)
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.app.Activity.performCreate(Activity.java:5047)
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2056)
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2117)
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.app.ActivityThread.access$700(ActivityThread.java:134)
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1218)
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99)
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.os.Looper.loop(Looper.java:137)
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:4867)
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at java.lang.reflect.Method.invokeNative(Native Method)
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:511)
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1007)
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:774)
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at dalvik.system.NativeStart.main(Native Method)
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: Caused by: java.lang.ExceptionInInitializerError
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at com.backendless.Backendless.<clinit>(Backendless.java:43)
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at br.com.cdlbomprincipio.cdlbomprincpio.MainActivity.onCreate(MainActivity.java:48)
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.app.Activity.performCreate(Activity.java:5047)
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2056)
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2117)
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.app.ActivityThread.access$700(ActivityThread.java:134)
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1218)
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99)
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.os.Looper.loop(Looper.java:137)
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:4867)
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at java.lang.reflect.Method.invokeNative(Native Method)
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:511)
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1007)
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:774)
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at dalvik.system.NativeStart.main(Native Method)
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: Caused by: java.lang.NoClassDefFoundError: com.backendless.BackendlessCollection
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at com.backendless.Persistence.<init>(Persistence.java:72)
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at com.backendless.Persistence.<clinit>(Persistence.java:62)
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at com.backendless.Backendless.<clinit>(Backendless.java:43)
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at br.com.cdlbomprincipio.cdlbomprincpio.MainActivity.onCreate(MainActivity.java:48)
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.app.Activity.performCreate(Activity.java:5047)
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2056)
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2117)
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.app.ActivityThread.access$700(ActivityThread.java:134)
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1218)
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99)
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.os.Looper.loop(Looper.java:137)
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:4867)
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at java.lang.reflect.Method.invokeNative(Native Method)
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:511)
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1007)
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:774)
02-03 13:51:27.556 17278-17278/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at dalvik.system.NativeStart.main(Native Method)
Is it possible for you to send your project to my email sergey.chupov@themidnightcoders.com?
Or else maybe it would help if you show your MainActivity’s onCreate() method and build.gradle file.
Seems we have some problems in the latest version of SDK on Maven Central. We’ll need some time to test it.
For now, you may build backendless.jar from sources on GitHub and just put it into your “libs” project folder. Note that in this case you won’t need the following line:
02-03 15:03:57.095 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/dalvikvm: Could not find class 'org.hibernate.proxy.HibernateProxy', referenced from method weborb.writer.MessageWriter.initWriters
02-03 15:03:57.095 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/dalvikvm: Could not find class 'javax.servlet.http.HttpSession', referenced from method weborb.writer.MessageWriter.writeObject
02-03 15:03:57.125 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/dalvikvm: Could not find class 'weborb.types.jdbc.JDBCResultSet', referenced from method weborb.writer.ResultSetWriter.write
02-03 15:03:57.235 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/dalvikvm: Could not find class 'javax.servlet.http.HttpServletRequest', referenced from method weborb.util.ThreadContext.getContext
02-03 15:03:57.245 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/dalvikvm: Could not find class 'javax.servlet.http.HttpServletRequest', referenced from method weborb.util.ThreadContext.getHttpRequest
02-03 15:03:57.245 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/dalvikvm: Could not find class 'javax.servlet.http.HttpServletResponse', referenced from method weborb.util.ThreadContext.getHttpResponse
02-03 15:03:57.245 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/dalvikvm: Could not find class 'javax.servlet.http.HttpSession', referenced from method weborb.util.ThreadContext.getHttpSession
02-03 15:03:57.245 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/dalvikvm: Could not find class 'javax.servlet.http.HttpSession', referenced from method weborb.util.ThreadContext.getHttpSessionId
02-03 15:03:57.255 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/dalvikvm: Could not find class 'weborb.service.cacheinvalidatorevent.CacheInvalidator', referenced from method weborb.util.cache.Cache.ensureSubscription
02-03 15:03:57.275 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/dalvikvm: Could not find class 'weborb.service.ICacheInvalidator', referenced from method weborb.util.cache.Cache.getValue
02-03 15:03:57.275 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/dalvikvm: Could not find class 'weborb.service.WebORBCacheAttribute', referenced from method weborb.util.cache.Cache.getValue
02-03 15:03:57.285 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/dalvikvm: Could not find class 'weborb.service.WebORBCacheAttribute', referenced from method weborb.util.cache.Cache.invalidateCache
02-03 15:03:57.305 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/dalvikvm: Could not find class 'weborb.service.WebORBCacheAttribute', referenced from method weborb.util.cache.Cache.saveValue
02-03 15:03:57.425 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: FATAL EXCEPTION: main
02-03 15:03:57.425 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{br.com.cdlbomprincipio.cdlbomprincpio/br.com.cdlbomprincipio.cdlbomprincpio.MainActivity}: BackendlessException{ code: 'Internal client exception', message: 'null' }
02-03 15:03:57.425 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2092)
02-03 15:03:57.425 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2117)
02-03 15:03:57.425 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.app.ActivityThread.access$700(ActivityThread.java:134)
02-03 15:03:57.425 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1218)
02-03 15:03:57.425 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99)
02-03 15:03:57.425 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.os.Looper.loop(Looper.java:137)
02-03 15:03:57.425 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:4867)
02-03 15:03:57.425 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at java.lang.reflect.Method.invokeNative(Native Method)
02-03 15:03:57.425 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:511)
02-03 15:03:57.425 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1007)
02-03 15:03:57.425 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:774)
02-03 15:03:57.425 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at dalvik.system.NativeStart.main(Native Method)
02-03 15:03:57.425 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: Caused by: BackendlessException{ code: 'Internal client exception', message: 'null' }
02-03 15:03:57.425 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at com.backendless.Invoker$SyncResponder.errorHandler(Invoker.java:127)
02-03 15:03:57.425 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at com.backendless.core.responder.AdaptingResponder.errorHandler(AdaptingResponder.java:93)
02-03 15:03:57.425 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at weborb.client.ioEngine.HttpIOEngine.send(HttpIOEngine.java:213)
02-03 15:03:57.425 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at weborb.client.ioEngine.HttpIOEngine.invoke(HttpIOEngine.java:145)
02-03 15:03:57.425 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at weborb.client.WeborbClient.invoke(WeborbClient.java:138)
02-03 15:03:57.425 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at com.backendless.Invoker.invokeSync(Invoker.java:100)
02-03 15:03:57.425 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at com.backendless.Persistence.save(Persistence.java:105)
02-03 15:03:57.425 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at com.backendless.DataStoreFactory$1.save(DataStoreFactory.java:40)
02-03 15:03:57.425 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at Database.Notas.save(Notas.java:62)
02-03 15:03:57.425 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at br.com.cdlbomprincipio.cdlbomprincpio.MainActivity.onCreate(MainActivity.java:52)
02-03 15:03:57.425 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.app.Activity.performCreate(Activity.java:5047)
02-03 15:03:57.425 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)
02-03 15:03:57.425 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2056)
02-03 15:03:57.425 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2117)
02-03 15:03:57.425 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.app.ActivityThread.access$700(ActivityThread.java:134)
02-03 15:03:57.425 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1218)
02-03 15:03:57.425 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99)
02-03 15:03:57.425 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.os.Looper.loop(Looper.java:137)
02-03 15:03:57.425 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:4867)
02-03 15:03:57.425 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at java.lang.reflect.Method.invokeNative(Native Method)
02-03 15:03:57.425 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:511)
02-03 15:03:57.425 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1007)
02-03 15:03:57.425 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:774)
02-03 15:03:57.425 29648-29648/br.com.cdlbomprincipio.cdlbomprincpio E/AndroidRuntime: at dalvik.system.NativeStart.main(Native Method)
Here’s a link to my test app project. It is as basic as it can be and I am not seeing any errors you’re talking about:
Could you download and run it in Android studio? If it works, try to compare how it is configured (I did the minimum setup - just modified manifest and added backendless via maven).
The BackendlessUser.class works, but other data not.
I created two files based on code generator:
Notas
package com.backendless.myapplication;
import com.backendless.Backendless;
import com.backendless.BackendlessCollection;
import com.backendless.BackendlessUser;
import com.backendless.async.callback.AsyncCallback;
import com.backendless.geo.GeoPoint;
import com.backendless.persistence.BackendlessDataQuery;
public class Notas {
private String format;
private java.util.Date updated;
private String ownerId;
private java.util.Date created;
private String chNFE;
private String objectId;
private String qrcode;
public String getFormat() {
return format;
}
public void setFormat(String format) {
this.format = format;
}
public java.util.Date getUpdated() {
return updated;
}
public String getOwnerId() {
return ownerId;
}
public java.util.Date getCreated() {
return created;
}
public String getChNFE() {
return chNFE;
}
public void setChNFE(String chNFE) {
this.chNFE = chNFE;
}
public String getObjectId() {
return objectId;
}
public String getQrcode() {
return qrcode;
}
public void setQrcode(String qrcode) {
this.qrcode = qrcode;
}
public Notas save() {
return Backendless.Data.of(Notas.class).save(this);
}
public Future<Notas> saveAsync() {
if (Backendless.isAndroid()) {
throw new UnsupportedOperationException("Using this method is restricted in Android");
} else {
Future<Notas> future = new Future<Notas>();
Backendless.Data.of(Notas.class).save(this, future);
return future;
}
}
public void saveAsync(AsyncCallback<Notas> callback) {
Backendless.Data.of(Notas.class).save(this, callback);
}
public Long remove() {
return Backendless.Data.of(Notas.class).remove(this);
}
public Future<Long> removeAsync() {
if (Backendless.isAndroid()) {
throw new UnsupportedOperationException("Using this method is restricted in Android");
} else {
Future<Long> future = new Future<Long>();
Backendless.Data.of(Notas.class).remove(this, future);
return future;
}
}
public void removeAsync(AsyncCallback<Long> callback) {
Backendless.Data.of(Notas.class).remove(this, callback);
}
public static Notas findById(String id) {
return Backendless.Data.of(Notas.class).findById(id);
}
public static Future<Notas> findByIdAsync(String id) {
if (Backendless.isAndroid()) {
throw new UnsupportedOperationException("Using this method is restricted in Android");
} else {
Future<Notas> future = new Future<Notas>();
Backendless.Data.of(Notas.class).findById(id, future);
return future;
}
}
public static void findByIdAsync(String id, AsyncCallback<Notas> callback) {
Backendless.Data.of(Notas.class).findById(id, callback);
}
public static Notas findFirst() {
return Backendless.Data.of(Notas.class).findFirst();
}
public static Future<Notas> findFirstAsync() {
if (Backendless.isAndroid()) {
throw new UnsupportedOperationException("Using this method is restricted in Android");
} else {
Future<Notas> future = new Future<Notas>();
Backendless.Data.of(Notas.class).findFirst(future);
return future;
}
}
public static void findFirstAsync(AsyncCallback<Notas> callback) {
Backendless.Data.of(Notas.class).findFirst(callback);
}
public static Notas findLast() {
return Backendless.Data.of(Notas.class).findLast();
}
public static Future<Notas> findLastAsync() {
if (Backendless.isAndroid()) {
throw new UnsupportedOperationException("Using this method is restricted in Android");
} else {
Future<Notas> future = new Future<Notas>();
Backendless.Data.of(Notas.class).findLast(future);
return future;
}
}
public static void findLastAsync(AsyncCallback<Notas> callback) {
Backendless.Data.of(Notas.class).findLast(callback);
}
public static BackendlessCollection<Notas> find(BackendlessDataQuery query) {
return Backendless.Data.of(Notas.class).find(query);
}
public static Future<BackendlessCollection<Notas>> findAsync(BackendlessDataQuery query) {
if (Backendless.isAndroid()) {
throw new UnsupportedOperationException("Using this method is restricted in Android");
} else {
Future<BackendlessCollection<Notas>> future = new Future<BackendlessCollection<Notas>>();
Backendless.Data.of(Notas.class).find(query, future);
return future;
}
}
public static void findAsync(BackendlessDataQuery query, AsyncCallback<BackendlessCollection<Notas>> callback) {
Backendless.Data.of(Notas.class).find(query, callback);
}
}
and Future
package com.backendless.myapplication;
/**
* Created by Maurício Liell on 03/02/2016.
*/
import com.backendless.async.callback.AsyncCallback;
import com.backendless.exceptions.BackendlessException;
import com.backendless.exceptions.BackendlessFault;
public class Future<T> implements AsyncCallback<T> {
private T result;
private RuntimeException exception;
private boolean complete;
private boolean fault;
public synchronized T get() throws InterruptedException {
while (!complete) {
wait();
}
if (fault) {
throw exception;
}
return result;
}
public synchronized void set(T t) {
result = t;
complete = true;
notifyAll();
}
public synchronized void fault(RuntimeException e) {
exception = e;
fault = true;
complete = true;
notifyAll();
}
public boolean isComplete() {
return complete;
}
public boolean isFault() {
return fault;
}
@Override
public void handleResponse(T response) {
set(response);
}
@Override
public void handleFault(BackendlessFault fault) {
fault(new BackendlessException(fault.getCode(), fault.getMessage()));
}
}
MainActivity
package com.backendless.myapplication;
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import com.backendless.Backendless;
import com.backendless.BackendlessUser;
import com.backendless.async.callback.AsyncCallback;
import com.backendless.exceptions.BackendlessFault;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Backendless.initApp(this, "06C2A062-E7BB-60B5-FF31-46ABD4EB2400", "DB64FB73-5C0E-782C-FF9E-0A160ADC3500", "v1");
Backendless.Data.of( BackendlessUser.class ).findFirst(new AsyncCallback<BackendlessUser>() {
@Override
public void handleResponse(BackendlessUser response) {
Log.i("Sample App", "got user " + response.getEmail());
}
@Override
public void handleFault(BackendlessFault fault) {
Log.e("Sample app", "got error " + fault.getDetail());
}
});
Notas nota = new Notas();
nota.setChNFE("Test chnfe");
nota.setQrcode("Test qrcode");
nota.setFormat("Test format");
Backendless.Persistence.of(Notas.class).save(nota);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.menu_main, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();
//noinspection SimplifiableIfStatement
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
}
}
The exception is: BackendlessException{ code: ‘Internal client exception’, message: ‘null’ }