[Java error] Command not found

43 views
Skip to first unread message

biggbest

unread,
Jul 8, 2014, 8:10:53 AM7/8/14
to hax-si...@googlegroups.com
Calling an non-existing command causes an error (not fatal) :

[AWT-EventQueue-0] ERROR sk.hax.system.impl.Bios - pc_ws
java
.lang.ClassNotFoundException: sk.hax.software.os.command.Clear
 at java
.net.URLClassLoader$1.run(URLClassLoader.java:372)
 at java
.net.URLClassLoader$1.run(URLClassLoader.java:361)
 at java
.security.AccessController.doPrivileged(Native Method)
 at java
.net.URLClassLoader.findClass(URLClassLoader.java:360)
 at sk
.hax.system.impl.HaxClassLoader.findClass(HaxClassLoader.java:92)
 at java
.lang.ClassLoader.loadClass(ClassLoader.java:424)
 at groovy
.lang.GroovyClassLoader.loadClass(GroovyClassLoader.java:655)
 at groovy
.lang.GroovyClassLoader.loadClass(GroovyClassLoader.java:765)
 at groovy
.lang.GroovyClassLoader.loadClass(GroovyClassLoader.java:753)
 at java
.lang.Class.forName0(Native Method)
 at java
.lang.Class.forName(Class.java:340)
 at sk
.hax.system.impl.Bios.buildTaskByName(Bios.java:122)
 at sk
.hax.system.Firmware$buildTaskByName$0.call(Unknown Source)
 at org
.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
 at org
.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
 at org
.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
 at sk
.hax.software.os.Kernel.prepareTaskByName(Kernel.groovy:149)
 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:483)
 at org
.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrap.invoke(PogoMetaMethodSite.java:187)
 at org
.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.call(PogoMetaMethodSite.java:68)
 at org
.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
 at org
.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
 at org
.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
 at sk
.hax.software.os.Shell.constructTask(Shell.groovy:238)
 at sk
.hax.software.os.Shell.command_start(Shell.groovy:189)
 at sk
.hax.software.os.Shell.command_(Shell.groovy:218)
 at sk
.hax.software.os.CommandTask.handle(CommandTask.groovy:41)
 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:483)
 at org
.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
 at groovy
.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
 at groovy
.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1085)
 at groovy
.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:952)
 at groovy
.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:909)
 at groovy
.lang.Closure.call(Closure.java:423)
 at groovy
.lang.Closure.call(Closure.java:439)
 at groovy
.lang.Closure$call.call(Unknown Source)
 at org
.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
 at org
.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
 at org
.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
 at org
.codehaus.groovy.runtime.callsite.AbstractCallSite.callSafe(AbstractCallSite.java:82)
 at sk
.hax.software.os.AbstractObservable.callback(AbstractObservable.groovy:49)
 at sk
.hax.software.os.AbstractObservable$callback.callCurrent(Unknown Source)
 at org
.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49)
 at org
.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133)
 at org
.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
 at sk
.hax.software.os.SystemTerminal.trigger(SystemTerminal.groovy:30)
 at sk
.hax.hardware.impl.KeyboardImpl.inbound(KeyboardImpl.java:13)
 at sk
.hax.cloud.impl.AccessPointImpl.publish(AccessPointImpl.java:27)
 at sk
.hax.application.gui.TerminalConsole$LocalTerminal.type(TerminalConsole.java:72)
 at sk
.hax.application.gui.TerminalConsole$LocalTerminal.processCommand(TerminalConsole.java:58)
 at com
.eleet.dragonconsole.DragonConsole.keyPressed(Unknown Source)
 at sk
.hax.application.gui.TerminalConsole.keyPressed(TerminalConsole.java:24)
 at java
.awt.Component.processKeyEvent(Component.java:6485)
 at javax
.swing.JComponent.processKeyEvent(JComponent.java:2829)
 at java
.awt.Component.processEvent(Component.java:6304)
 at java
.awt.Container.processEvent(Container.java:2234)
 at java
.awt.Component.dispatchEventImpl(Component.java:4883)
 at java
.awt.Container.dispatchEventImpl(Container.java:2292)
 at java
.awt.Component.dispatchEvent(Component.java:4705)
 at java
.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1954)
 at java
.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:806)
 at java
.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1074)
 at java
.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:945)
 at java
.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:771)
 at java
.awt.Component.dispatchEventImpl(Component.java:4754)
 at java
.awt.Container.dispatchEventImpl(Container.java:2292)
 at java
.awt.Window.dispatchEventImpl(Window.java:2739)
 at java
.awt.Component.dispatchEvent(Component.java:4705)
 at java
.awt.EventQueue.dispatchEventImpl(EventQueue.java:746)
 at java
.awt.EventQueue.access$400(EventQueue.java:97)
 at java
.awt.EventQueue$3.run(EventQueue.java:697)
 at java
.awt.EventQueue$3.run(EventQueue.java:691)
 at java
.security.AccessController.doPrivileged(Native Method)
 at java
.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
 at java
.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86)
 at java
.awt.EventQueue$4.run(EventQueue.java:719)
 at java
.awt.EventQueue$4.run(EventQueue.java:717)
 at java
.security.AccessController.doPrivileged(Native Method)
 at java
.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
 at java
.awt.EventQueue.dispatchEvent(EventQueue.java:716)
 at java
.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
 at java
.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
 at java
.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
 at java
.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
 at java
.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
 at java
.awt.EventDispatchThread.run(EventDispatchThread.java:82)
[main] INFO sk.hax.application.Launcher - startup completed


OS and Java informations :

Mac OS 10.9.3
--------------------------------------------------------------
java version
"1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)


Hax Simulator

unread,
Jul 8, 2014, 10:31:14 AM7/8/14
to hax-si...@googlegroups.com
Yes, that is only in the log, so that it is known what happens.
It does not affect or crash the application itself however, the exception is correctly handled.
I might remove logging from scripts in the future, but decided to leave it there for the alpha versions.

biggbest

unread,
Jul 8, 2014, 10:32:56 AM7/8/14
to hax-si...@googlegroups.com
Ah right ok it's just a log, though it was a real internal error (missing null aware or something) :-)

Hax Simulator

unread,
Jul 8, 2014, 11:11:30 AM7/8/14
to hax-si...@googlegroups.com
Actually, the exception is caught, logged, and handled, so the code is aware of it. The code just shouts it out to the log, and after that handles it regularly. :)
Reply all
Reply to author
Forward
0 new messages