Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 342488

Summary: Exception running webstart app
Product: [Eclipse Project] Platform Reporter: Silenio Quarti <Silenio_Quarti>
Component: SWTAssignee: Silenio Quarti <Silenio_Quarti>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.7   
Target Milestone: 3.7 M7   
Hardware: PC   
OS: Mac OS X   
Whiteboard:
Attachments:
Description Flags
test jar
none
jnlp file
none
fix none

Description Silenio Quarti CLA 2011-04-11 16:04:55 EDT
Tried to run a webstart app with latest code and failed with this exception in Display.java.

11-04-11 4:09:36 PM	[0x0-0x71071].com.apple.JavaWebStart	Exception in thread "AWT-AppKit" 
11-04-11 4:09:36 PM	[0x0-0x71071].com.apple.JavaWebStart	java.lang.reflect.InvocationTargetException
11-04-11 4:09:36 PM	[0x0-0x71071].com.apple.JavaWebStart		at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
11-04-11 4:09:36 PM	[0x0-0x71071].com.apple.JavaWebStart		at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
11-04-11 4:09:36 PM	[0x0-0x71071].com.apple.JavaWebStart		at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
11-04-11 4:09:36 PM	[0x0-0x71071].com.apple.JavaWebStart		at java.lang.reflect.Method.invoke(Method.java:597)
11-04-11 4:09:36 PM	[0x0-0x71071].com.apple.JavaWebStart		at com.sun.javaws.Launcher.invokeMainMethod(Launcher.java:1557)
11-04-11 4:09:36 PM	[0x0-0x71071].com.apple.JavaWebStart	Caused by: java.lang.NullPointerException
11-04-11 4:09:36 PM	[0x0-0x71071].com.apple.JavaWebStart		at org.eclipse.swt.widgets.Display.init(Display.java:2178)
11-04-11 4:09:36 PM	[0x0-0x71071].com.apple.JavaWebStart		at org.eclipse.swt.graphics.Device.<init>(Device.java:131)
11-04-11 4:09:36 PM	[0x0-0x71071].com.apple.JavaWebStart		at org.eclipse.swt.widgets.Display.<init>(Display.java:699)
11-04-11 4:09:36 PM	[0x0-0x71071].com.apple.JavaWebStart		at org.eclipse.swt.widgets.Display.<init>(Display.java:690)
11-04-11 4:09:36 PM	[0x0-0x71071].com.apple.JavaWebStart		at org.eclipse.swt.examples.controlexample.ControlExample.main(ControlExample.java:215)
11-04-11 4:09:36 PM	[0x0-0x71071].com.apple.JavaWebStart		... 5 more
Comment 1 Silenio Quarti CLA 2011-04-11 16:06:00 EDT
Created attachment 192972 [details]
test jar
Comment 2 Silenio Quarti CLA 2011-04-11 16:06:15 EDT
Created attachment 192973 [details]
jnlp file
Comment 3 Silenio Quarti CLA 2011-04-11 16:08:05 EDT
Created attachment 192974 [details]
fix
Comment 4 Silenio Quarti CLA 2011-04-11 16:08:55 EDT
Fixed > 20110411
Comment 5 Silenio Quarti CLA 2011-04-11 16:10:19 EDT
Note that the jar I attached already has the fixed.