Re: [Jolie-devel] java.lang.ClassNotFoundException: org.json.simple.parser.ParseException
A service-oriented programming language.
Brought to you by:
fmontesi
From: Matthias D. W. <mwa...@ya...> - 2014-01-21 10:39:08
|
Hi Fabrizio, now I have managed to get a stub of my simulation which triggers this issue. First you have to start tinyClient.ol and then in another window eventManager.ol. When I have protocol "sodep", each one displays "Simulation ready" and both of them hang - which is correct in this case. If I change the four protocol specifications (2 in tinyClient.ol, 2 in eventManager.ol) to "jsonrpc" I get exceptions on both sides. I hope this helps! Cheers, Matthias Fabrizio Montesi schrieb: > Hi Matthias, > could you send me a small program that triggers this? > > Cheers, > Fabrizio. > > On Sun, Jan 12, 2014 at 9:44 PM, Matthias Dieter Wallnöfer > <mwa...@ya...> wrote: >> Hi Fabrizio & co, >> >> by experimenting always with the same code I face another issue if I >> change the protocol to be "jsonrpc" rather than "sodep". >> >> I am getting this very odd exception. I can not understand it since >> class "org.json.simple.parser.ParseException" is available in >> /opt/jolie/lib/json_simple.jar - and the JSON parsing code seems to be >> found. >> >> Cheers, >> Matthias >> >>> Exception in thread "tinyClient.ol-JolieThread-3" java.lang.NoClassDefFoundError: org/json/simple/parser/ParseException >>> at jolie.net.JsonRpcProtocol.recv(JsonRpcProtocol.java:102) >>> at jolie.net.SocketCommChannel.recvImpl(SocketCommChannel.java:92) >>> at jolie.net.CommChannel.recv(CommChannel.java:194) >>> at jolie.net.CommCore$CommChannelHandlerRunnable.run(CommCore.java:602) >>> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) >>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) >>> at java.lang.Thread.run(Thread.java:744) >>> Caused by: java.lang.ClassNotFoundException: org.json.simple.parser.ParseException >>> at java.net.URLClassLoader$1.run(URLClassLoader.java:366) >>> at java.net.URLClassLoader$1.run(URLClassLoader.java:355) >>> at java.security.AccessController.doPrivileged(Native Method) >>> at java.net.URLClassLoader.findClass(URLClassLoader.java:354) >>> at java.lang.ClassLoader.loadClass(ClassLoader.java:425) >>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) >>> at java.lang.ClassLoader.loadClass(ClassLoader.java:358) >>> at jolie.JolieClassLoader.loadClass(JolieClassLoader.java:107) >>> ... 7 more >> |