以文本方式查看主题

-  W3CHINA.ORG讨论区 - 语义网·描述逻辑·本体·RDF·OWL  (http://bbs.xml.org.cn/index.asp)
--  『 Java/Eclipse 』  (http://bbs.xml.org.cn/list.asp?boardid=41)
----  求救!  (http://bbs.xml.org.cn/dispbbs.asp?boardid=41&rootid=&id=45890)


--  作者:woodstreet
--  发布时间:4/24/2007 9:39:00 AM

--  求救!
程序运行时出现以下结果,请问怎么解决?

executeSql------select * from user where username='user1' and password='***'
Exception in thread "main" java.lang.NullPointerException
        at my.cn.lo$1.widgetSelected(lo.java:89)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
        at my.cn.li.main(li.java:164


W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
2,517.578ms