- Assembly code
2012-3-19 10:07:56 org.jdesktop.application.Application$1 run严重: Application class xcpubsocket.XCpubSocketApp failed to launchjava.lang.NullPointerException at xcpubsocket.XCpubSocketView.<init>(XCpubSocketView.java:50) at xcpubsocket.XCpubSocketApp.startup(XCpubSocketApp.java:19) at org.jdesktop.application.Application$1.run(Application.java:171) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$000(Unknown Source) at java.awt.EventQueue$1.run(Unknown Source) at java.awt.EventQueue$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$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)Exception in thread "AWT-EventQueue-0" java.lang.Error: Application class xcpubsocket.XCpubSocketApp failed to launch at org.jdesktop.application.Application$1.run(Application.java:177) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$000(Unknown Source) at java.awt.EventQueue$1.run(Unknown Source) at java.awt.EventQueue$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$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)Caused by: java.lang.NullPointerException at xcpubsocket.XCpubSocketView.<init>(XCpubSocketView.java:50) at xcpubsocket.XCpubSocketApp.startup(XCpubSocketApp.java:19) at org.jdesktop.application.Application$1.run(Application.java:171) ... 14 more
------解决方案--------------------
个人认为:XCpubSocketView.java:50 行,构造方法中有对象为空。
------解决方案--------------------
不懂,帮你查了一下,参考一下,不知道对不。
http://hi.baidu.com/zhuzhenping/blog/item/32630312b9978454f819b8c2.html