This site requires JavaScript, please enable it in your browser!
Greenfoot back
peterdcasey
peterdcasey wrote ...

2013/10/24

Sharing with Web Applet

peterdcasey peterdcasey

2013/10/24

#
I have exported the Wombat scenario with no changes and when I try to run the program with a web browser I always get an error "Null Pointer Exception" I have no luck running web applets I've exported from Greenfoot. Any thoughts?
mjrb4 mjrb4

2013/10/25

#
What's the full stack trace in the Java console?
peterdcasey peterdcasey

2013/10/25

#
Java Plug-in 10.45.2.18 Using JRE version 1.7.0_45-b18 Java HotSpot(TM) Client VM User home directory = C:\Users\pcasey.AD ---------------------------------------------------- c: clear console window f: finalize objects on finalization queue g: garbage collect h: display this help message l: dump classloader list m: print memory usage o: trigger logging q: hide console r: reload policy configuration s: dump system and deployment properties t: dump thread list v: dump thread stack x: clear classloader cache 0-5: set trace level to <n> ---------------------------------------------------- 0 Dump thread stack ... ---------------------------------------------------- 2013-10-25 11:45:43 Full thread dump Java HotSpot(TM) Client VM (24.45-b08 mixed mode, sharing): "TimerQueue" daemon prio=4 tid=0x06191c00 nid=0x1d10 waiting on condition java.lang.Thread.State: WAITING (parking) at sun.misc.Unsafe.park(Native Method) - parking to wait for <0x246704f0> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) at java.util.concurrent.locks.LockSupport.park(Unknown Source) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source) at java.util.concurrent.DelayQueue.take(Unknown Source) at javax.swing.TimerQueue.run(Unknown Source) at java.lang.Thread.run(Unknown Source) "D3D Screen Updater" daemon prio=8 tid=0x06191800 nid=0xd78 in Object.wait() java.lang.Thread.State: TIMED_WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x297a92d8> (a java.lang.Object) at sun.java2d.d3d.D3DScreenUpdateManager.run(Unknown Source) - locked <0x297a92d8> (a java.lang.Object) at java.lang.Thread.run(Unknown Source) "TimerQueue" daemon prio=6 tid=0x0618f000 nid=0x2be0 waiting on condition java.lang.Thread.State: WAITING (parking) at sun.misc.Unsafe.park(Native Method) - parking to wait for <0x299a31b8> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) at java.util.concurrent.locks.LockSupport.park(Unknown Source) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source) at java.util.concurrent.DelayQueue.take(Unknown Source) at javax.swing.TimerQueue.run(Unknown Source) at java.lang.Thread.run(Unknown Source) "ConsoleTraceListener" daemon prio=6 tid=0x06191000 nid=0x2850 in Object.wait() java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x297a65e8> (a com.sun.deploy.uitoolkit.ui.ConsoleTraceListener$BoundedStringBuffer) at java.lang.Object.wait(Object.java:503) at com.sun.deploy.uitoolkit.ui.ConsoleTraceListener$ConsoleWriterThread.run(Unknown Source) - locked <0x297a65e8> (a com.sun.deploy.uitoolkit.ui.ConsoleTraceListener$BoundedStringBuffer) "JVM-Heartbeat" daemon prio=6 tid=0x0618cc00 nid=0x2058 in Object.wait() java.lang.Thread.State: TIMED_WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x2989e080> (a sun.plugin2.message.Queue) at sun.plugin2.message.Queue.waitForMessage(Unknown Source) - locked <0x2989e080> (a sun.plugin2.message.Queue) at sun.plugin2.message.Pipe$2.run(Unknown Source) at com.sun.deploy.util.Waiter$1.wait(Unknown Source) at com.sun.deploy.util.Waiter.runAndWait(Unknown Source) at sun.plugin2.message.Pipe.receive(Unknown Source) at sun.plugin2.main.server.HeartbeatThread.run(Unknown Source) "AWT-EventQueue-2" prio=4 tid=0x0618d000 nid=0x1344 waiting on condition java.lang.Thread.State: WAITING (parking) at sun.misc.Unsafe.park(Native Method) - parking to wait for <0x2985bf38> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) at java.util.concurrent.locks.LockSupport.park(Unknown Source) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source) at java.awt.EventQueue.getNextEvent(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) "Applet 1 LiveConnect Worker Thread" prio=4 tid=0x0618c400 nid=0x1248 in Object.wait() java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x2985c018> (a java.lang.Object) at java.lang.Object.wait(Object.java:503) at sun.plugin2.main.client.LiveConnectSupport$PerAppletInfo$LiveConnectWorker.run(Unknown Source) - locked <0x2985c018> (a java.lang.Object) at java.lang.Thread.run(Unknown Source) "Browser Side Object Cleanup Thread" prio=6 tid=0x0618c000 nid=0x2370 in Object.wait() java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x2985c0a0> (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(Unknown Source) - locked <0x2985c0a0> (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(Unknown Source) at sun.plugin2.main.client.LiveConnectSupport$BrowserSideObjectCleanupThread.run(Unknown Source) "CacheCleanUpThread" daemon prio=6 tid=0x0618b400 nid=0x18a0 in Object.wait() java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x2985c0c0> (a com.sun.deploy.cache.CleanupThread) at java.lang.Object.wait(Object.java:503) at com.sun.deploy.cache.CleanupThread.run(Unknown Source) - locked <0x2985c0c0> (a com.sun.deploy.cache.CleanupThread) "CacheMemoryCleanUpThread" daemon prio=6 tid=0x0618ec00 nid=0x2e90 in Object.wait() java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x2985c1b0> (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(Unknown Source) - locked <0x2985c1b0> (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(Unknown Source) at com.sun.deploy.cache.MemoryCache$LoadedResourceCleanupThread.run(Unknown Source) "MemoryCache-DelayedCleanup" daemon prio=6 tid=0x0618e400 nid=0x1ff8 in Object.wait() java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x2985c240> (a java.util.TaskQueue) at java.lang.Object.wait(Object.java:503) at java.util.TimerThread.mainLoop(Unknown Source) - locked <0x2985c240> (a java.util.TaskQueue) at java.util.TimerThread.run(Unknown Source) "AWT-EventQueue-1" prio=6 tid=0x0618b800 nid=0xf38 runnable java.lang.Thread.State: RUNNABLE at com.sun.deploy.uitoolkit.ui.ConsoleHelper.dumpAllStacksImpl(Native Method) at com.sun.deploy.uitoolkit.ui.ConsoleHelper.dumpAllStacks(Unknown Source) at com.sun.deploy.uitoolkit.impl.awt.ui.SwingConsoleWindow$3.actionPerformed(Unknown Source) at javax.swing.JComponent$ActionStandin.actionPerformed(Unknown Source) at javax.swing.SwingUtilities.notifyAction(Unknown Source) at javax.swing.JComponent.processKeyBinding(Unknown Source) at javax.swing.KeyboardManager.fireBinding(Unknown Source) at javax.swing.KeyboardManager.fireKeyboardAction(Unknown Source) at javax.swing.JComponent.processKeyBindingsForAllComponents(Unknown Source) at javax.swing.JComponent.processKeyBindings(Unknown Source) at javax.swing.JComponent.processKeyEvent(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.KeyboardFocusManager.redispatchEvent(Unknown Source) at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source) at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source) at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source) at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(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) "SysExecutionTheadCreator" daemon prio=6 tid=0x02a84400 nid=0x259c in Object.wait() java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x2985c378> (a sun.plugin.util.PluginSysUtil$SysExecutionThreadCreator) at java.lang.Object.wait(Object.java:503) at sun.plugin.util.PluginSysUtil$SysExecutionThreadCreator.run(Unknown Source) - locked <0x2985c378> (a sun.plugin.util.PluginSysUtil$SysExecutionThreadCreator) "AWT-EventQueue-0" prio=6 tid=0x02a83000 nid=0x22d8 waiting on condition java.lang.Thread.State: WAITING (parking) at sun.misc.Unsafe.park(Native Method) - parking to wait for <0x2985c450> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) at java.util.concurrent.locks.LockSupport.park(Unknown Source) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source) at java.awt.EventQueue.getNextEvent(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) "AWT-Windows" daemon prio=6 tid=0x02a83c00 nid=0x123c runnable java.lang.Thread.State: RUNNABLE at sun.awt.windows.WToolkit.eventLoop(Native Method) at sun.awt.windows.WToolkit.run(Unknown Source) "Java Plug-In Pipe Worker Thread (Client-Side)" daemon prio=6 tid=0x02a82800 nid=0x2dd8 runnable java.lang.Thread.State: RUNNABLE at sun.plugin2.os.windows.Windows.ReadFile0(Native Method) at sun.plugin2.os.windows.Windows.ReadFile(Unknown Source) at sun.plugin2.ipc.windows.WindowsNamedPipe.read(Unknown Source) at sun.plugin2.message.transport.NamedPipeTransport$SerializerImpl.read(Unknown Source) at sun.plugin2.message.transport.NamedPipeTransport$SerializerImpl.readByte(Unknown Source) at sun.plugin2.message.AbstractSerializer.readInt(Unknown Source) at sun.plugin2.message.transport.SerializingTransport.read(Unknown Source) at sun.plugin2.message.Pipe$WorkerThread.run(Unknown Source) "AWT-Shutdown" prio=6 tid=0x02a83400 nid=0x834 in Object.wait() java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x2985c840> (a java.lang.Object) at java.lang.Object.wait(Object.java:503) at sun.awt.AWTAutoShutdown.run(Unknown Source) - locked <0x2985c840> (a java.lang.Object) at java.lang.Thread.run(Unknown Source) "Java2D Disposer" daemon prio=10 tid=0x02a82400 nid=0x2ccc in Object.wait() java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x2985c8d0> (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(Unknown Source) - locked <0x2985c8d0> (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(Unknown Source) at sun.java2d.Disposer.run(Unknown Source) at java.lang.Thread.run(Unknown Source) "Timer-0" prio=6 tid=0x02a85400 nid=0x2b9c in Object.wait() java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x2985c968> (a java.util.TaskQueue) at java.lang.Object.wait(Object.java:503) at java.util.TimerThread.mainLoop(Unknown Source) - locked <0x2985c968> (a java.util.TaskQueue) at java.util.TimerThread.run(Unknown Source) "traceMsgQueueThread" daemon prio=6 tid=0x02a84800 nid=0x2bbc in Object.wait() java.lang.Thread.State: BLOCKED (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x2978ebd0> (a java.util.ArrayList) at java.lang.Object.wait(Object.java:503) at com.sun.deploy.trace.Trace$TraceMsgQueueChecker.run(Unknown Source) - locked <0x2978ebd0> (a java.util.ArrayList) at java.lang.Thread.run(Unknown Source) "Service Thread" daemon prio=6 tid=0x02a3bc00 nid=0x6c0 runnable java.lang.Thread.State: RUNNABLE "C1 CompilerThread0" daemon prio=10 tid=0x02a34800 nid=0x1564 waiting on condition java.lang.Thread.State: RUNNABLE "Attach Listener" daemon prio=10 tid=0x02a33400 nid=0x1bbc runnable java.lang.Thread.State: RUNNABLE "Signal Dispatcher" daemon prio=10 tid=0x02a30c00 nid=0x29bc runnable java.lang.Thread.State: RUNNABLE "Finalizer" daemon prio=8 tid=0x029c1000 nid=0x2234 in Object.wait() java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x2985cbf0> (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(Unknown Source) - locked <0x2985cbf0> (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(Unknown Source) at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source) "Reference Handler" daemon prio=10 tid=0x029bf000 nid=0x2f20 in Object.wait() java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x2985cc78> (a java.lang.ref.Reference$Lock) at java.lang.Object.wait(Object.java:503) at java.lang.ref.Reference$ReferenceHandler.run(Unknown Source) - locked <0x2985cc78> (a java.lang.ref.Reference$Lock) "main" prio=6 tid=0x0291c800 nid=0x1e48 in Object.wait() java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x2985cc80> (a sun.plugin2.message.Queue) at sun.plugin2.message.Queue.waitForMessage(Unknown Source) - locked <0x2985cc80> (a sun.plugin2.message.Queue) at sun.plugin2.message.Pipe$1.run(Unknown Source) at com.sun.deploy.util.Waiter$1.wait(Unknown Source) at com.sun.deploy.util.Waiter.runAndWait(Unknown Source) at sun.plugin2.message.Pipe.receive(Unknown Source) at sun.plugin2.main.client.PluginMain.mainLoop(Unknown Source) at sun.plugin2.main.client.PluginMain.run(Unknown Source) at sun.plugin2.main.client.PluginMain.main(Unknown Source) "VM Thread" prio=10 tid=0x029bd800 nid=0x1c50 runnable "VM Periodic Task Thread" prio=10 tid=0x02a44400 nid=0x1a1c waiting on condition Source) at sun.plugin2.main.client.PluginMain.run(Unknown Source) at sun.plugin2.main.client.PluginMain.main(Unknown Source) "VM Thread" prio=10 tid=0x029bd800 nid=0x1c50 runnable "VM Periodic Task Thread" prio=10 tid=0x02a44400 nid=0x1a1c waiting on condition ---------------------------------------------------- Done.
peterdcasey peterdcasey

2013/10/30

#
Any help here. I figure Greenfoot scenarios do not run any longer with the lastest Java and browser combination. If this is so, it would be nice to know. I'm running current Java and current browsers. Thanks for any feedback on this.
You need to login to post a reply.