N nazilabdulla Member Licensed User Longtime User Mar 3, 2020 #1 Code: Copy Error occurred on line: 55 java.lang.RuntimeException: java.lang.ClassNotFoundException: b4j.example.addquestion$_dbcommand at anywheresoftware.b4a.randomaccessfile.B4XSerializator.readType(B4XSerializator.java:297) at anywheresoftware.b4a.randomaccessfile.B4XSerializator.readObject(B4XSerializator.java:357) at anywheresoftware.b4a.randomaccessfile.B4XSerializator.readMap(B4XSerializator.java:231) at anywheresoftware.b4a.randomaccessfile.B4XSerializator.readObject(B4XSerializator.java:347) at anywheresoftware.b4a.randomaccessfile.B4XSerializator.ReadObject(B4XSerializator.java:112) at anywheresoftware.b4a.randomaccessfile.B4XSerializator.ConvertBytesToObject(B4XSerializator.java:82) 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.shell.Shell.runMethod(Shell.java:632) at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:234) at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:167) 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:91) at anywheresoftware.b4a.shell.ShellBA.raiseEvent2(ShellBA.java:98) at anywheresoftware.b4a.BA.raiseEvent(BA.java:78) at anywheresoftware.b4j.object.JServlet$Handle.run(JServlet.java:130) at anywheresoftware.b4a.keywords.SimpleMessageLoop.runMessageLoop(SimpleMessageLoop.java:30) at anywheresoftware.b4a.StandardBA.startMessageLoop(StandardBA.java:26) at anywheresoftware.b4a.shell.ShellBA.startMessageLoop(ShellBA.java:119) at anywheresoftware.b4a.keywords.Common.StartMessageLoop(Common.java:153) at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:309) at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:167) 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:91) at anywheresoftware.b4a.shell.ShellBA.raiseEvent2(ShellBA.java:98) at anywheresoftware.b4a.BA.raiseEvent(BA.java:78) at b4j.example.main.main(main.java:29) Caused by: java.lang.ClassNotFoundException: b4j.example.addquestion$_dbcommand at java.net.URLClassLoader.findClass(URLClassLoader.java:382) at java.lang.ClassLoader.loadClass(ClassLoader.java:418) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355) at java.lang.ClassLoader.loadClass(ClassLoader.java:351) 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:274) ... 34 more (Exception) java.lang.Exception: java.lang.reflect.InvocationTargetException This is the error message while I use jRDC2 . Connection is Success while I checked in browser. Code: Copy Dim ser As B4XSerializator Dim bytes() As Byte bytes=Bit.InputStreamToBytes(in) Dim m As Map = ser.ConvertBytesToObject(bytes) Error is occured in Last line where ConvertBytesToObject. Your earliest reply is appreciable Thanks in advance
Code: Copy Error occurred on line: 55 java.lang.RuntimeException: java.lang.ClassNotFoundException: b4j.example.addquestion$_dbcommand at anywheresoftware.b4a.randomaccessfile.B4XSerializator.readType(B4XSerializator.java:297) at anywheresoftware.b4a.randomaccessfile.B4XSerializator.readObject(B4XSerializator.java:357) at anywheresoftware.b4a.randomaccessfile.B4XSerializator.readMap(B4XSerializator.java:231) at anywheresoftware.b4a.randomaccessfile.B4XSerializator.readObject(B4XSerializator.java:347) at anywheresoftware.b4a.randomaccessfile.B4XSerializator.ReadObject(B4XSerializator.java:112) at anywheresoftware.b4a.randomaccessfile.B4XSerializator.ConvertBytesToObject(B4XSerializator.java:82) 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.shell.Shell.runMethod(Shell.java:632) at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:234) at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:167) 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:91) at anywheresoftware.b4a.shell.ShellBA.raiseEvent2(ShellBA.java:98) at anywheresoftware.b4a.BA.raiseEvent(BA.java:78) at anywheresoftware.b4j.object.JServlet$Handle.run(JServlet.java:130) at anywheresoftware.b4a.keywords.SimpleMessageLoop.runMessageLoop(SimpleMessageLoop.java:30) at anywheresoftware.b4a.StandardBA.startMessageLoop(StandardBA.java:26) at anywheresoftware.b4a.shell.ShellBA.startMessageLoop(ShellBA.java:119) at anywheresoftware.b4a.keywords.Common.StartMessageLoop(Common.java:153) at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:309) at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:167) 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:91) at anywheresoftware.b4a.shell.ShellBA.raiseEvent2(ShellBA.java:98) at anywheresoftware.b4a.BA.raiseEvent(BA.java:78) at b4j.example.main.main(main.java:29) Caused by: java.lang.ClassNotFoundException: b4j.example.addquestion$_dbcommand at java.net.URLClassLoader.findClass(URLClassLoader.java:382) at java.lang.ClassLoader.loadClass(ClassLoader.java:418) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355) at java.lang.ClassLoader.loadClass(ClassLoader.java:351) 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:274) ... 34 more (Exception) java.lang.Exception: java.lang.reflect.InvocationTargetException This is the error message while I use jRDC2 . Connection is Success while I checked in browser. Code: Copy Dim ser As B4XSerializator Dim bytes() As Byte bytes=Bit.InputStreamToBytes(in) Dim m As Map = ser.ConvertBytesToObject(bytes) Error is occured in Last line where ConvertBytesToObject. Your earliest reply is appreciable Thanks in advance
LWGShane Well-Known Member Licensed User Longtime User Mar 3, 2020 #2 Do you have the following in your Main module? B4X: Copy Type DBResult (Tag As Object, Columns As Map, Rows As List) Type DBCommand (Name As String, Parameters() As Object) More info: https://www.b4x.com/android/forum/t...ation-of-rdc-remote-database-connector.61801/ Upvote 0
Do you have the following in your Main module? B4X: Copy Type DBResult (Tag As Object, Columns As Map, Rows As List) Type DBCommand (Name As String, Parameters() As Object) More info: https://www.b4x.com/android/forum/t...ation-of-rdc-remote-database-connector.61801/
N nazilabdulla Member Licensed User Longtime User Mar 3, 2020 #3 ShaneG30 said: Do you have the following in your Main module? B4X: Copy Type DBResult (Tag As Object, Columns As Map, Rows As List) Type DBCommand (Name As String, Parameters() As Object) More info: https://www.b4x.com/android/forum/t...ation-of-rdc-remote-database-connector.61801/ Click to expand... Yes , I have . But it is used is Class Module, is it any difference ? Upvote 0
ShaneG30 said: Do you have the following in your Main module? B4X: Copy Type DBResult (Tag As Object, Columns As Map, Rows As List) Type DBCommand (Name As String, Parameters() As Object) More info: https://www.b4x.com/android/forum/t...ation-of-rdc-remote-database-connector.61801/ Click to expand... Yes , I have . But it is used is Class Module, is it any difference ?
N nazilabdulla Member Licensed User Longtime User Mar 3, 2020 #4 Yes. In got the result. Code: Copy Type DBResult (Tag As Object, Columns As Map, Rows As List) Type DBCommand (Name As String, Parameters() As Object) It must be declared in Main Module, I declared in class module Upvote 0
Yes. In got the result. Code: Copy Type DBResult (Tag As Object, Columns As Map, Rows As List) Type DBCommand (Name As String, Parameters() As Object) It must be declared in Main Module, I declared in class module