I downloaded the latest CodeRunner from the Business Logic page on the console and get the following errors about JARs when deploying code (I think I may have also got this error before - it’s been a few months since I’ve deployed new code). The error so far isn’t causing me any problems, I just thought I’d report it.
$ ./CodeRunner.sh
Listening for transport dt_socket at address: 5005
[INFO] JDK from "JAVA_HOME" - /Library/Java/Home
[INFO] JRE from "JRE_HOME" - not set.
[WARN] WARNING! It appears you do not have JAVA_HOME and JRE_HOME environment variables set.
This is not necessarily a problem, but it may lead to errors during CodeRunner execution.
If you experience problems related to security policy permissions, the JAR utility or others,
please try setting up the JAVA_HOME environment variable by pointing it to the root directory
of your JDK location (must be version 1.8 or higher).
[INFO] CodeRunner(tm) Backendless Debugging Utility
[INFO] Copyright(C) 2016 Backendless Corp. All rights reserved.
[INFO] Version: 3.0.20 Build date: 20160815-0809
[INFO] CodeRunner session is running for 2 hours and will be terminated on 06:07:28.089[UTC]
[INFO] Registering runner on: 'https://api.backendless.com' with version 'dev'
.....
[INFO] Runner successfully registered
[INFO] Parsing event model...
[ERROR] Error while parsing jar file /Users/simon/..../DigitalCopelServerCode/bin/../repo/debug-tmp/ezmorph-1.0.6.jar. junit/framework/Assert
java.lang.NoClassDefFoundError: junit/framework/Assert
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:411)
at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:814)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at com.backendless.coderunner.util.ServiceParser.findServiceClassesInDir(ServiceParser.java:65)
at com.backendless.coderunner.runtime.task.CustomServiceParserTask.parse(CustomServiceParserTask.java:80)
at com.backendless.coderunner.parser.HostedServiceParser.parseServiceModel(HostedServiceParser.java:51)
at com.backendless.coderunner.debugger.BusinessLogicDebugger.build(BusinessLogicDebugger.java:62)
at com.backendless.coderunner.debugger.InstructionsFetcher.executeCommandSafe(InstructionsFetcher.java:34)
at com.backendless.coderunner.LocalCodeRunner.start(LocalCodeRunner.java:56)
at com.backendless.coderunner.CodeRunnerLoader.launch(CodeRunnerLoader.java:42)
at com.backendless.coderunner.CodeRunnerLoader.main(CodeRunnerLoader.java:29)
Caused by: java.lang.ClassNotFoundException: junit.framework.Assert
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)
... 22 common frames omitted
[ERROR] Error while parsing jar file /Users/simon/...../DigitalCopelServerCode/bin/../repo/debug-tmp/json-lib-2.4-jdk15.jar. org/codehaus/groovy/runtime/GeneratedClosure
java.lang.NoClassDefFoundError: org/codehaus/groovy/runtime/GeneratedClosure
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:411)
at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:814)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at com.backendless.coderunner.util.ServiceParser.findServiceClassesInDir(ServiceParser.java:65)
at com.backendless.coderunner.runtime.task.CustomServiceParserTask.parse(CustomServiceParserTask.java:80)
at com.backendless.coderunner.parser.HostedServiceParser.parseServiceModel(HostedServiceParser.java:51)
at com.backendless.coderunner.debugger.BusinessLogicDebugger.build(BusinessLogicDebugger.java:62)
at com.backendless.coderunner.debugger.InstructionsFetcher.executeCommandSafe(InstructionsFetcher.java:34)
at com.backendless.coderunner.LocalCodeRunner.start(LocalCodeRunner.java:56)
at com.backendless.coderunner.CodeRunnerLoader.launch(CodeRunnerLoader.java:42)
at com.backendless.coderunner.CodeRunnerLoader.main(CodeRunnerLoader.java:29)
Caused by: java.lang.ClassNotFoundException: org.codehaus.groovy.runtime.GeneratedClosure
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)
... 22 common frames omitted
[INFO] Build successfully: 12 handlers, 5 timers
[INFO] Deploying model to server, and starting debug...
[INFO] Model successfully deployed.
[INFO] Waiting for events...