Bug 821 : [LaunchRunner Error] processing.app.Base.main(String[]) threw an exception
Last modified: 2008-06-13 11:58




Status:
ASSIGNED
Resolution:
-
Priority:
P2
Severity:
normal

 

Reporter:
fjen
Assigned To:
fry

Attachment Type Created Size Actions
"Cannot launch Java application" message image/png 2008-06-13 11:14 29.31 KB

Description:   Opened: 2008-06-13 11:14
dragging a .pde file on the app-icon in the dock sometimes leads to an error message (will attach) saying than
an uncought exception occured and processing has to quit. console log at the buttom.
starting the PDE again will lead to no problems at all and it will work perfectly. i think it might be related to
starting the PDE by dragging a file on the icon or starting it the first time after a restart.

... not sure if it's my maschine: it's brand new, so i don't think so. .. maybe apple messed up java again?

happens on: rev. 0141 (i think i've seen it on 0140 too), os-x 10.5.3, java 1.5.0_13

F

----------------------

Jun 13 20:03:31 Doubles [0x0-0x1d01d].org.processing.app[212]: [JavaAppLauncher] JVMArchs not found in
Java dictionary
Jun 13 20:03:33 Doubles [0x0-0x1d01d].org.processing.app[212]: [LaunchRunner Error] The main class
"processing.app.Base" could not be found.
Jun 13 20:03:33 Doubles [0x0-0x1d01d].org.processing.app[212]: [JavaAppLauncher Error]
CallStaticVoidMethod() threw an exception
Jun 13 20:03:33 Doubles [0x0-0x1d01d].org.processing.app[212]: Exception in thread "main"
java.lang.NullPointerException
Jun 13 20:03:33 Doubles [0x0-0x1d01d].org.processing.app[212]: at
apple.launcher.LaunchRunner.run(LaunchRunner.java:112)
Jun 13 20:03:33 Doubles [0x0-0x1d01d].org.processing.app[212]: at
apple.launcher.LaunchRunner.callMain(LaunchRunner.java:50)
Jun 13 20:03:33 Doubles [0x0-0x1d01d].org.processing.app[212]: at
apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)
Jun 13 20:03:44 Doubles [0x0-0x1e01e].org.processing.app[214]: [JavaAppLauncher] A 64-bit JVM is available
for 1.5.0
Jun 13 20:03:44 Doubles [0x0-0x1e01e].org.processing.app[214]: [JavaAppLauncher] JVMArchs not found in
Java dictionary
Jun 13 20:03:48 Doubles [0x0-0x1e01e].org.processing.app[214]: [LaunchRunner Error]
processing.app.Base.main(String[]) threw an exception:
Jun 13 20:03:48 Doubles [0x0-0x1e01e].org.processing.app[214]: java.lang.NullPointerException
Jun 13 20:03:48 Doubles [0x0-0x1e01e].org.processing.app[214]: at
ch.randelshofer.quaqua.Quaqua14PopupMenuUI.uninstallListeners(Quaqua14PopupMenuUI.java:96)
Jun 13 20:03:48 Doubles [0x0-0x1e01e].org.processing.app[214]: at
javax.swing.plaf.basic.BasicPopupMenuUI.uninstallUI(BasicPopupMenuUI.java:149)
Jun 13 20:03:48 Doubles [0x0-0x1e01e].org.processing.app[214]: at
javax.swing.JPopupMenu.setInvoker(JPopupMenu.java:911)
Jun 13 20:03:48 Doubles [0x0-0x1e01e].org.processing.app[214]: at
javax.swing.JMenu.ensurePopupMenuCreated(JMenu.java:516)
Jun 13 20:03:48 Doubles [0x0-0x1e01e].org.processing.app[214]: at javax.swing.JMenu.add(JMenu.java:550)
Jun 13 20:03:48 Doubles [0x0-0x1e01e].org.processing.app[214]: at
processing.app.Base.addSketches(Base.java:809)
Jun 13 20:03:48 Doubles [0x0-0x1e01e].org.processing.app[214]: at
processing.app.Base.addSketches(Base.java:817)
Jun 13 20:03:52: --- last message repeated 1 time ---
Jun 13 20:03:48 Doubles [0x0-0x1e01e].org.processing.app[214]: at
processing.app.Base.rebuildSketchbookMenu(Base.java:703)
Jun 13 20:03:48 Doubles [0x0-0x1e01e].org.processing.app[214]: at
processing.app.Editor.buildFileMenu(Editor.java:450)
Jun 13 20:03:48 Doubles [0x0-0x1e01e].org.processing.app[214]: at
processing.app.Editor.buildMenuBar(Editor.java:418)
Jun 13 20:03:48 Doubles [0x0-0x1e01e].org.processing.app[214]: at
processing.app.Editor.<init>(Editor.java:168)
Jun 13 20:03:48 Doubles [0x0-0x1e01e].org.processing.app[214]: at
processing.app.Base.handleOpen(Base.java:511)
Jun 13 20:03:48 Doubles [0x0-0x1e01e].org.processing.app[214]: at
processing.app.Base.restoreSketches(Base.java:242)
Jun 13 20:03:48 Doubles [0x0-0x1e01e].org.processing.app[214]: at
processing.app.Base.<init>(Base.java:172)
Jun 13 20:03:48 Doubles [0x0-0x1e01e].org.processing.app[214]: at
processing.app.Base.main(Base.java:131)
Jun 13 20:03:48 Doubles [0x0-0x1e01e].org.processing.app[214]: at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Jun 13 20:03:48 Doubles [0x0-0x1e01e].org.processing.app[214]: at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
Jun 13 20:03:48 Doubles [0x0-0x1e01e].org.processing.app[214]: at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
Jun 13 20:03:48 Doubles [0x0-0x1e01e].org.processing.app[214]: at
java.lang.reflect.Method.invoke(Method.java:585)
Jun 13 20:03:48 Doubles [0x0-0x1e01e].org.processing.app[214]: at
apple.launcher.LaunchRunner.run(LaunchRunner.java:115)
Jun 13 20:03:48 Doubles [0x0-0x1e01e].org.processing.app[214]: at
apple.launcher.LaunchRunner.callMain(LaunchRunner.java:50)
Jun 13 20:03:48 Doubles [0x0-0x1e01e].org.processing.app[214]: at
apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)
Additional Comment #1 From fjen 2008-06-13 11:14
edit]
"Cannot launch Java application" message
Additional Comment #2 From fjen 2008-06-13 11:17
something else that might be related: the files i'm dragging on it are my students projects which
they've sent via email. i have the impression it happens when i drag a file on the icon that i've
never opened before ... maybe it's an apple security thing like the "this app was downloaded
from the web, sure you want to start it?" message. will have an eye on it ..
Additional Comment #3 From fry 2008-06-13 11:58
k, that looks like a launcher problem on 10.5. the actual error is halfway
through all that spew--that it's not getting the file for the drag
correctly (or something like that). this may be as simple a fix as getting
the 10.5 JavaApplicationStub from a newer version of JarBundler. (although
i thought i did that already).

the JVMArchs issue is an apple warning that means little. they added a key
to Info.plist for 10.5, and it's not been added to Processing.app yet.

the security thing is just a "feature" of Leopard, completely separate from
Processing.
This bug is now being tracked here.