B4J Question Issue with cloudkvs in my app but Erel's sample works.

Discussion in 'B4J Questions' started by JakeBullet70, Jul 6, 2016.

  1. JakeBullet70

    JakeBullet70 Well-Known Member Licensed User

    Some days...

    OK, I have the cloudkvs up and running on my dev and production Linux servers. Erel's samples works fine, I have added Erel's ridiculously simple code to my app but am running into this error.

    Error from b4a:
    upload_2016-7-6_5-21-19.png

    Code in b4a that causes the error.

    Starter class.
    Code:
    ckvs.Initialize(Me, "ckvs""http://sadlogic.us:50241")
        ckvs.SetAutoRefresh(
    Array("u1"), 0.1)
    Code that causes the error
    Code:
    Starter.ckvs.Put("u1","test","this is a test")
    kvs server log

    Code:
    Class not found: com.sadLogic.KitchenEssentials.g$_task, trying: sadlogic.cloudkvs.server.g$_task
    java.lang.RuntimeException: java.lang.RuntimeException: java.lang.ClassNotFoundException: sadlogic.cloudkvs.server.g$_task
        at anywheresoftware.b4a.BA.raiseEvent2(BA.java:
    114)
        at anywheresoftware.b4a.BA.raiseEvent(BA.java:
    84)
        at anywheresoftware.b4j.object.JServlet$Handle.run(JServlet.java:
    124)
        at anywheresoftware.b4j.object.JServlet.Handle(JServlet.java:
    100)
        at anywheresoftware.b4j.object.JServlet.doPost(JServlet.java:
    70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:
    707)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:
    790)
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:
    821)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:
    583)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:
    224)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:
    1158)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:
    511)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:
    185)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:
    1090)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:
    141)
        at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:
    109)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:
    119)
        at org.eclipse.jetty.server.Server.handle(
    Server.java:517)
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:
    308)
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:
    242)
        at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:
    261)
        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:
    95)
        at org.eclipse.jetty.io.SelectChannelEndPoint$
    2.run(SelectChannelEndPoint.java:75)
        at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:
    213)
        at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:
    147)
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:
    654)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$
    3.run(QueuedThreadPool.java:572)
        at java.lang.Thread.run(
    Thread.java:745)
    Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: sadlogic.cloudkvs.server.g$_task
        at anywheresoftware.b4a.randomaccessfile.B4XSerializator.readType(B4XSerializator.java:
    295)
        at anywheresoftware.b4a.randomaccessfile.B4XSerializator.readObject(B4XSerializator.java:
    355)
        at anywheresoftware.b4a.randomaccessfile.B4XSerializator.ReadObject(B4XSerializator.java:
    110)
        at anywheresoftware.b4a.randomaccessfile.B4XSerializator.ConvertBytesToObject(B4XSerializator.java:
    81)
        at sadlogic.cloudkvs.server.action._handle(action.java:
    43)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
    62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
    43)
        at java.lang.reflect.Method.invoke(Method.java:
    498)
        at anywheresoftware.b4a.BA.raiseEvent2(BA.java:
    93)
        ... 
    27 more
    Caused by: java.lang.ClassNotFoundException: sadlogic.cloudkvs.server.g$_task
        at java.net.URLClassLoader.findClass(URLClassLoader.java:
    381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:
    424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:
    331)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:
    357)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:
    264)
        at anywheresoftware.b4a.randomaccessfile.RandomAccessFile.readTypeClass(
    RandomAccessFile.java:525)
        at anywheresoftware.b4a.randomaccessfile.B4XSerializator.readType(B4XSerializator.java:
    272)
        ... 
    36 more
    Class 
    not found: com.sadLogic.KitchenEssentials.g$_task, trying: sadlogic.cloudkvs.server.g$_task
    java.lang.RuntimeException: java.lang.RuntimeException: java.lang.ClassNotFoundException: sadlogic.cloudkvs.server.g$_task
        at anywheresoftware.b4a.BA.raiseEvent2(BA.java:
    114)
        at anywheresoftware.b4a.BA.raiseEvent(BA.java:
    84)
        at anywheresoftware.b4j.object.JServlet$Handle.run(JServlet.java:
    124)
        at anywheresoftware.b4j.object.JServlet.Handle(JServlet.java:
    100)
        at anywheresoftware.b4j.object.JServlet.doPost(JServlet.java:
    70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:
    707)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:
    790)
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:
    821)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:
    583)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:
    224)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:
    1158)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:
    511)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:
    185)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:
    1090)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:
    141)
        at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:
    109)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:
    119)
        at org.eclipse.jetty.server.Server.handle(
    Server.java:517)
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:
    308)
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:
    242)
        at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:
    261)
        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:
    95)
        at org.eclipse.jetty.io.SelectChannelEndPoint$
    2.run(SelectChannelEndPoint.java:75)
        at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:
    213)
        at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:
    147)
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:
    654)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$
    3.run(QueuedThreadPool.java:572)
        at java.lang.Thread.run(
    Thread.java:745)
    Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: sadlogic.cloudkvs.server.g$_task
        at anywheresoftware.b4a.randomaccessfile.B4XSerializator.readType(B4XSerializator.java:
    295)
        at anywheresoftware.b4a.randomaccessfile.B4XSerializator.readObject(B4XSerializator.java:
    355)
        at anywheresoftware.b4a.randomaccessfile.B4XSerializator.ReadObject(B4XSerializator.java:
    110)
        at anywheresoftware.b4a.randomaccessfile.B4XSerializator.ConvertBytesToObject(B4XSerializator.java:
    81)
        at sadlogic.cloudkvs.server.action._handle(action.java:
    43)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
    62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
    43)
        at java.lang.reflect.Method.invoke(Method.java:
    498)
        at anywheresoftware.b4a.BA.raiseEvent2(BA.java:
    93)
        ... 
    27 more
    Caused by: java.lang.ClassNotFoundException: sadlogic.cloudkvs.server.g$_task
        at java.net.URLClassLoader.findClass(URLClassLoader.java:
    381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:
    424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:
    331)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:
    357)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:
    264)
        at anywheresoftware.b4a.randomaccessfile.RandomAccessFile.readTypeClass(
    RandomAccessFile.java:525)
        at anywheresoftware.b4a.randomaccessfile.B4XSerializator.readType(B4XSerializator.java:
    272)
        ... 
    36 more
    Class 
    not found: com.sadLogic.KitchenEssentials.g$_task, trying: sadlogic.cloudkvs.server.g$_task
    java.lang.RuntimeException: java.lang.RuntimeException: java.lang.ClassNotFoundException: sadlogic.cloudkvs.server.g$_task
        at anywheresoftware.b4a.BA.raiseEvent2(BA.java:
    114)
        at anywheresoftware.b4a.BA.raiseEvent(BA.java:
    84)
        at anywheresoftware.b4j.object.JServlet$Handle.run(JServlet.java:
    124)
        at anywheresoftware.b4j.object.JServlet.Handle(JServlet.java:
    100)
        at anywheresoftware.b4j.object.JServlet.doPost(JServlet.java:
    70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:
    707)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:
    790)
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:
    821)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:
    583)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:
    224)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:
    1158)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:
    511)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:
    185)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:
    1090)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:
    141)
        at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:
    109)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:
    119)
        at org.eclipse.jetty.server.Server.handle(
    Server.java:517)
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:
    308)
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:
    242)
        at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:
    261)
        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:
    95)
        at org.eclipse.jetty.io.SelectChannelEndPoint$
    2.run(SelectChannelEndPoint.java:75)
        at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:
    213)
        at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:
    147)
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:
    654)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$
    3.run(QueuedThreadPool.java:572)
        at java.lang.Thread.run(
    Thread.java:745)
    Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: sadlogic.cloudkvs.server.g$_task
        at anywheresoftware.b4a.randomaccessfile.B4XSerializator.readType(B4XSerializator.java:
    295)
        at anywheresoftware.b4a.randomaccessfile.B4XSerializator.readObject(B4XSerializator.java:
    355)
        at anywheresoftware.b4a.randomaccessfile.B4XSerializator.ReadObject(B4XSerializator.java:
    110)
        at anywheresoftware.b4a.randomaccessfile.B4XSerializator.ConvertBytesToObject(B4XSerializator.java:
    81)
        at sadlogic.cloudkvs.server.action._handle(action.java:
    43)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
    62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
    43)
        at java.lang.reflect.Method.invoke(Method.java:
    498)
        at anywheresoftware.b4a.BA.raiseEvent2(BA.java:
    93)
        ... 
    27 more
    Caused by: java.lang.ClassNotFoundException: sadlogic.cloudkvs.server.g$_task
        at java.net.URLClassLoader.findClass(URLClassLoader.java:
    381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:
    424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:
    331)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:
    357)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:
    264)
        at anywheresoftware.b4a.randomaccessfile.RandomAccessFile.readTypeClass(
    RandomAccessFile.java:525)
        at anywheresoftware.b4a.randomaccessfile.B4XSerializator.readType(B4XSerializator.java:
    272)
        ... 
    36 more
    Class 
    not found: com.sadLogic.KitchenEssentials.g$_task, trying: sadlogic.cloudkvs.server.g$_task
    java.lang.RuntimeException: java.lang.RuntimeException: java.lang.ClassNotFoundException: sadlogic.cloudkvs.server.g$_task
        at anywheresoftware.b4a.BA.raiseEvent2(BA.java:
    114)
        at anywheresoftware.b4a.BA.raiseEvent(BA.java:
    84)
        at anywheresoftware.b4j.object.JServlet$Handle.run(JServlet.java:
    124)
        at anywheresoftware.b4j.object.JServlet.Handle(JServlet.java:
    100)
        at anywheresoftware.b4j.object.JServlet.doPost(JServlet.java:
    70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:
    707)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:
    790)
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:
    821)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:
    583)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:
    224)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:
    1158)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:
    511)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:
    185)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:
    1090)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:
    141)
        at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:
    109)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:
    119)
        at org.eclipse.jetty.server.Server.handle(
    Server.java:517)
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:
    308)
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:
    242)
        at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:
    261)
        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:
    95)
        at org.eclipse.jetty.io.SelectChannelEndPoint$
    2.run(SelectChannelEndPoint.java:75)
        at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:
    213)
        at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:
    147)
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:
    654)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$
    3.run(QueuedThreadPool.java:572)
        at java.lang.Thread.run(
    Thread.java:745)
    Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: sadlogic.cloudkvs.server.g$_task
        at anywheresoftware.b4a.randomaccessfile.B4XSerializator.readType(B4XSerializator.java:
    295)
        at anywheresoftware.b4a.randomaccessfile.B4XSerializator.readObject(B4XSerializator.java:
    355)
        at anywheresoftware.b4a.randomaccessfile.B4XSerializator.ReadObject(B4XSerializator.java:
    110)
        at anywheresoftware.b4a.randomaccessfile.B4XSerializator.ConvertBytesToObject(B4XSerializator.java:
    81)
        at sadlogic.cloudkvs.server.action._handle(action.java:
    43)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
    62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
    43)
        at java.lang.reflect.Method.invoke(Method.java:
    498)
        at anywheresoftware.b4a.BA.raiseEvent2(BA.java:
    93)
        ... 
    27 more
    Caused by: java.lang.ClassNotFoundException: sadlogic.cloudkvs.server.g$_task
        at java.net.URLClassLoader.findClass(URLClassLoader.java:
    381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:
    424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:
    331)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:
    357)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:
    264)
        at anywheresoftware.b4a.randomaccessfile.RandomAccessFile.readTypeClass(
    RandomAccessFile.java:525)
        at anywheresoftware.b4a.randomaccessfile.B4XSerializator.readType(B4XSerializator.java:
    272)
        ... 
    36 more
    Class 
    not found: com.sadLogic.KitchenEssentials.g$_task, trying: sadlogic.cloudkvs.server.g$_task
    java.lang.RuntimeException: java.lang.RuntimeException: java.lang.ClassNotFoundException: sadlogic.cloudkvs.server.g$_task
        at anywheresoftware.b4a.BA.raiseEvent2(BA.java:
    114)
        at anywheresoftware.b4a.BA.raiseEvent(BA.java:
    84)
        at anywheresoftware.b4j.object.JServlet$Handle.run(JServlet.java:
    124)
        at anywheresoftware.b4j.object.JServlet.Handle(JServlet.java:
    100)
        at anywheresoftware.b4j.object.JServlet.doPost(JServlet.java:
    70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:
    707)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:
    790)
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:
    821)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:
    583)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:
    224)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:
    1158)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:
    511)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:
    185)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:
    1090)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:
    141)
        at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:
    109)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:
    119)
        at org.eclipse.jetty.server.Server.handle(
    Server.java:517)
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:
    308)
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:
    242)
        at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:
    261)
        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:
    95)
        at org.eclipse.jetty.io.SelectChannelEndPoint$
    2.run(SelectChannelEndPoint.java:75)
        at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:
    213)
        at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:
    147)
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:
    654)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$
    3.run(QueuedThreadPool.java:572)
        at java.lang.Thread.run(
    Thread.java:745)
    Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: sadlogic.cloudkvs.server.g$_task
        at anywheresoftware.b4a.randomaccessfile.B4XSerializator.readType(B4XSerializator.java:
    295)
        at anywheresoftware.b4a.randomaccessfile.B4XSerializator.readObject(B4XSerializator.java:
    355)
        at anywheresoftware.b4a.randomaccessfile.B4XSerializator.ReadObject(B4XSerializator.java:
    110)
        at anywheresoftware.b4a.randomaccessfile.B4XSerializator.ConvertBytesToObject(B4XSerializator.java:
    81)
        at sadlogic.cloudkvs.server.action._handle(action.java:
    43)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
    62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
    43)
        at java.lang.reflect.Method.invoke(Method.java:
    498)
        at anywheresoftware.b4a.BA.raiseEvent2(BA.java:
    93)
        ... 
    27 more
    Caused by: java.lang.ClassNotFoundException: sadlogic.cloudkvs.server.g$_task
        at java.net.URLClassLoader.findClass(URLClassLoader.java:
    381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:
    424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:
    331)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:
    357)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:
    264)
        at anywheresoftware.b4a.randomaccessfile.RandomAccessFile.readTypeClass(
    RandomAccessFile.java:525)
        at anywheresoftware.b4a.randomaccessfile.B4XSerializator.readType(B4XSerializator.java:
    272)
        ... 
    36 more
    Class 
    not found: com.sadLogic.KitchenEssentials.g$_task, trying: sadlogic.cloudkvs.server.g$_task
    java.lang.RuntimeException: java.lang.RuntimeException: java.lang.ClassNotFoundException: sadlogic.cloudkvs.server.g$_task
        at anywheresoftware.b4a.BA.raiseEvent2(BA.java:
    114)
        at anywheresoftware.b4a.BA.raiseEvent(BA.java:
    84)
        at anywheresoftware.b4j.object.JServlet$Handle.run(JServlet.java:
    124)
        at anywheresoftware.b4j.object.JServlet.Handle(JServlet.java:
    100)
        at anywheresoftware.b4j.object.JServlet.doPost(JServlet.java:
    70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:
    707)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:
    790)
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:
    821)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:
    583)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:
    224)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:
    1158)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:
    511)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:
    185)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:
    1090)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:
    141)
        at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:
    109)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:
    119)
        at org.eclipse.jetty.server.Server.handle(
    Server.java:517)
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:
    308)
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:
    242)
        at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:
    261)
        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:
    95)
        at org.eclipse.jetty.io.SelectChannelEndPoint$
    2.run(SelectChannelEndPoint.java:75)
        at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:
    213)
        at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:
    147)
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:
    654)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$
    3.run(QueuedThreadPool.java:572)
        at java.lang.Thread.run(
    Thread.java:745)
    Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: sadlogic.cloudkvs.server.g$_task
        at anywheresoftware.b4a.randomaccessfile.B4XSerializator.readType(B4XSerializator.java:
    295)
        at anywheresoftware.b4a.randomaccessfile.B4XSerializator.readObject(B4XSerializator.java:
    355)
        at anywheresoftware.b4a.randomaccessfile.B4XSerializator.ReadObject(B4XSerializator.java:
    110)
        at anywheresoftware.b4a.randomaccessfile.B4XSerializator.ConvertBytesToObject(B4XSerializator.java:
    81)
        at sadlogic.cloudkvs.server.action._handle(action.java:
    43)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
    62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
    43)
        at java.lang.reflect.Method.invoke(Method.java:
    498)
        at anywheresoftware.b4a.BA.raiseEvent2(BA.java:
    93)
        ... 
    27 more
    Caused by: java.lang.ClassNotFoundException: sadlogic.cloudkvs.server.g$_task
        at java.net.URLClassLoader.findClass(URLClassLoader.java:
    381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:
    424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:
    331)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:
    357)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:
    264)
        at anywheresoftware.b4a.randomaccessfile.RandomAccessFile.readTypeClass(
    RandomAccessFile.java:525)
        at anywheresoftware.b4a.randomaccessfile.B4XSerializator.readType(B4XSerializator.java:
    272)
        ... 
    36 more
    Class 
    not found: com.sadLogic.KitchenEssentials.g$_task, trying: sadlogic.cloudkvs.server.g$_task
    java.lang.RuntimeException: java.lang.RuntimeException: java.lang.ClassNotFoundException: sadlogic.cloudkvs.server.g$_task
        at anywheresoftware.b4a.BA.raiseEvent2(BA.java:
    114)
        at anywheresoftware.b4a.BA.raiseEvent(BA.java:
    84)
        at anywheresoftware.b4j.object.JServlet$Handle.run(JServlet.java:
    124)
        at anywheresoftware.b4j.object.JServlet.Handle(JServlet.java:
    100)
        at anywheresoftware.b4j.object.JServlet.doPost(JServlet.java:
    70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:
    707)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:
    790)
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:
    821)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:
    583)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:
    224)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:
    1158)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:
    511)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:
    185)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:
    1090)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:
    141)
        at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:
    109)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:
    119)
        at org.eclipse.jetty.server.Server.handle(
    Server.java:517)
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:
    308)
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:
    242)
        at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:
    261)
        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:
    95)
        at org.eclipse.jetty.io.SelectChannelEndPoint$
    2.run(SelectChannelEndPoint.java:75)
        at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:
    213)
        at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:
    147)
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:
    654)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$
    3.run(QueuedThreadPool.java:572)
        at java.lang.Thread.run(
    Thread.java:745)
    Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: sadlogic.cloudkvs.server.g$_task
        at anywheresoftware.b4a.randomaccessfile.B4XSerializator.readType(B4XSerializator.java:
    295)
        at anywheresoftware.b4a.randomaccessfile.B4XSerializator.readObject(B4XSerializator.java:
    355)
        at anywheresoftware.b4a.randomaccessfile.B4XSerializator.ReadObject(B4XSerializator.java:
    110)
        at anywheresoftware.b4a.randomaccessfile.B4XSerializator.ConvertBytesToObject(B4XSerializator.java:
    81)
        at sadlogic.cloudkvs.server.action._handle(action.java:
    43)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
    62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
    43)
        at java.lang.reflect.Method.invoke(Method.java:
    498)
        at anywheresoftware.b4a.BA.raiseEvent2(BA.java:
    93)
        ... 
    27 more
    Caused by: java.lang.ClassNotFoundException: sadlogic.cloudkvs.server.g$_task
        at java.net.URLClassLoader.findClass(URLClassLoader.java:
    381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:
    424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:
    331)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:
    357)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:
    264)
        at anywheresoftware.b4a.randomaccessfile.RandomAccessFile.readTypeClass(
    RandomAccessFile.java:525)
        at anywheresoftware.b4a.randomaccessfile.B4XSerializator.readType(B4XSerializator.java:
    272)
        ... 
    36 more
    Class 
    not found: com.sadLogic.KitchenEssentials.g$_task, trying: sadlogic.cloudkvs.server.g$_task
    java.lang.RuntimeException: java.lang.RuntimeException: java.lang.ClassNotFoundException: sadlogic.cloudkvs.server.g$_task
        at anywheresoftware.b4a.BA.raiseEvent2(BA.java:
    114)
        at anywheresoftware.b4a.BA.raiseEvent(BA.java:
    84)
        at anywheresoftware.b4j.object.JServlet$Handle.run(JServlet.java:
    124)
        at anywheresoftware.b4j.object.JServlet.Handle(JServlet.java:
    100)
        at anywheresoftware.b4j.object.JServlet.doPost(JServlet.java:
    70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:
    707)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:
    790)
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:
    821)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:
    583)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:
    224)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:
    1158)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:
    511)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:
    185)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:
    1090)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:
    141)
        at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:
    109)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:
    119)
        at org.eclipse.jetty.server.Server.handle(
    Server.java:517)
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:
    308)
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:
    242)
        at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:
    261)
        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:
    95)
        at org.eclipse.jetty.io.SelectChannelEndPoint$
    2.run(SelectChannelEndPoint.java:75)
        at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:
    213)
        at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:
    147)
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:
    654)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$
    3.run(QueuedThreadPool.java:572)
        at java.lang.Thread.run(
    Thread.java:745)
    Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: sadlogic.cloudkvs.server.g$_task
        at anywheresoftware.b4a.randomaccessfile.B4XSerializator.readType(B4XSerializator.java:
    295)
        at anywheresoftware.b4a.randomaccessfile.B4XSerializator.readObject(B4XSerializator.java:
    355)
        at anywheresoftware.b4a.randomaccessfile.B4XSerializator.ReadObject(B4XSerializator.java:
    110)
        at anywheresoftware.b4a.randomaccessfile.B4XSerializator.ConvertBytesToObject(B4XSerializator.java:
    81)
        at sadlogic.cloudkvs.server.action._handle(action.java:
    43)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
    62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
    43)
        at java.lang.reflect.Method.invoke(Method.java:
    498)
        at anywheresoftware.b4a.BA.raiseEvent2(BA.java:
    93)
        ... 
    27 more
    Caused by: java.lang.ClassNotFoundException: sadlogic.cloudkvs.server.g$_task
        at java.net.URLClassLoader.findClass(URLClassLoader.java:
    381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:
    424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:
    331)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:
    357)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:
    264)
        at anywheresoftware.b4a.randomaccessfile.RandomAccessFile.readTypeClass(
    RandomAccessFile.java:525)
        at anywheresoftware.b4a.randomaccessfile.B4XSerializator.readType(B4XSerializator.java:
    272)
        ... 
    36 more
    Class 
    not found: com.sadLogic.KitchenEssentials.g$_task, trying: sadlogic.cloudkvs.server.g$_task
    java.lang.RuntimeException: java.lang.RuntimeException: java.lang.ClassNotFoundException: sadlogic.cloudkvs.server.g$_task
        at anywheresoftware.b4a.BA.raiseEvent2(BA.java:
    114)
        at anywheresoftware.b4a.BA.raiseEvent(BA.java:
    84)
        at anywheresoftware.b4j.object.JServlet$Handle.run(JServlet.java:
    124)
        at anywheresoftware.b4j.object.JServlet.Handle(JServlet.java:
    100)
        at anywheresoftware.b4j.object.JServlet.doPost(JServlet.java:
    70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:
    707)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:
    790)
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:
    821)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:
    583)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:
    224)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:
    1158)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:
    511)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:
    185)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:
    1090)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:
    141)
        at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:
    109)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:
    119)
        at org.eclipse.jetty.server.Server.handle(
    Server.java:517)
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:
    308)
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:
    242)
        at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:
    261)
        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:
    95)
        at org.eclipse.jetty.io.SelectChannelEndPoint$
    2.run(SelectChannelEndPoint.java:75)
        at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:
    213)
        at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:
    147)
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:
    654)
    also:
    upload_2016-7-6_5-34-3.png


    The samples work fine so I am thinking it is in my b4a app somewhere but have no idea where too look.

    AAAAAAAAAAAAAAAAAAAAAaaaaaaaaaaaaaaaahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
     
    Last edited: Jul 6, 2016
  2. Erel

    Erel Administrator Staff Member Licensed User

    Have you added these two types to the Main module:
    Code:
    Type Item (UserField As String, KeyField As String, ValueField() As Byte, IdField As Long, TimeField As Long)
    Type Task (TaskName As String, TaskItem As Item)
    It will not work if they are in any other module.
     
  3. JakeBullet70

    JakeBullet70 Well-Known Member Licensed User


    Yes, in Process_Globals of main.
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    Are the types in the client also declared in the main module?
     
  5. JakeBullet70

    JakeBullet70 Well-Known Member Licensed User

    Not sure I quite understand the question.
    In my client b4a project in the main activity:

    upload_2016-7-6_11-1-40.png

    These types are declared no where else.
    ckvs class is declared in Starter.


    The server app running in linux is a clone of your sample with only the version number and package named changed.
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    The class name should have been: com.sadLogic.KitchenEssentials.main. Do you know where this 'g' comes from?
     
  7. JakeBullet70

    JakeBullet70 Well-Known Member Licensed User

    I changed the cloud server package name to com.sadlogic.cloudkvsserver.
    It works now... Thanks for the help Erel!!!!!!!!!
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice