Exception in thread "Processing.BasicServer" java.lang.NoSuchMethodError

edited November 2013 in JavaScript Mode

Hi Guys

I am running processing 2.1 (Win32 version) on Windows 8 64 Bit. When I try and run any sketch in JavaScript mode, I get the following:

Exception in thread "Processing.BasicServer" java.lang.NoSuchMethodError: processing.app.Base.showWarning(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Exception;)V
    at de.bezier.mode.javascript.JavaScriptBuild.build(Unknown Source)
    at de.bezier.mode.javascript.JavaScriptBuild.export(Unknown Source)
    at de.bezier.mode.javascript.JavaScriptMode.handleExport(Unknown Source)
    at de.bezier.mode.javascript.JavaScriptEditor.handleExport(Unknown Source)
    at de.bezier.mode.javascript.JavaScriptEditor.serverStarted(Unknown Source)
    at de.bezier.mode.javascript.BasicServer.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

And this URL in my browser times out http://127.0.0.1:58855/

I have been able to deoply Processing Sketches as Android Apps no problems and the same sketches run in Windows Mode. I have reinstalled Processing and all the modes

Any ideas?

Bryan

Answers

  • Maybe you have fixed this already, but I got the same error when I tried to use displayWidth and displayHeight to set the size in javascript mode. When I used explicit values in the size function it worked fine.

  • Same for me, thanks for the fix **icogs **!

  • edited March 2014

    Hi, I am getting the same error, however I am not using displayWidth, in fact the code is from a while ago and used to compile at some point

    > Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: processing.app.Base.showWarning(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Exception;)V
        at de.bezier.mode.javascript.JavaScriptBuild.build(Unknown Source)
        at de.bezier.mode.javascript.JavaScriptBuild.export(Unknown Source)
        at de.bezier.mode.javascript.JavaScriptMode.handleExport(Unknown Source)
        at de.bezier.mode.javascript.JavaScriptEditor.handleExport(Unknown Source)
        at de.bezier.mode.javascript.JavaScriptToolbar.handlePressed(Unknown Source)
        at processing.app.EditorToolbar.mousePressed(EditorToolbar.java:474)
        at java.awt.Component.processMouseEvent(Unknown Source)
        at javax.swing.JComponent.processMouseEvent(Unknown Source)
        at java.awt.Component.processEvent(Unknown Source)
        at java.awt.Container.processEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        at java.awt.EventQueue.access$200(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
        at java.awt.EventQueue$4.run(Unknown Source)
        at java.awt.EventQueue$4.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
    
  • sorted, it was from using variables in size(), it's been a while since I used processing :)

  • Although you were at fault, this is still a bug in Processing.js, because it was trying to give a proper warning, but crashed. I have reported it at #2088 on the PJS tracker.

Sign In or Register to comment.