感谢分享以及请教一些问题

小芬达 发布于 2015/10/25 16:32
阅读 162
收藏 0

@火蚁 你好,想跟你请教个问题:感谢您分享的java=swing小型商铺管理系统,我导入后,sp4补丁也打好了,运行后出现

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException

at com.view.Login.mouseClicked(Login.java:175)
at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(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.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(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)
然后就是登陆页面出来后输入名字密码后点击登陆没反应

不知道哪里出了问题


加载中
0
火蚁
火蚁
你是不是数据库没建好表,需要手动建表,并且配置好数据库连接
小芬达
在查询分析器那一个表一个表建好吗?还有数据库的连接配置要注意哪些问题
0
火蚁
火蚁
建数据库好像是有个文本文件的,配置倒没有什么需要注意的,是你本地的就行
小芬达
我看了下所有表都没数据在里面,数据怎么我插不进去呢 ,也是到查询分析器那放了哪些语句,还是没有。。。要一个个自己输入进去吗 ?
火蚁
火蚁
@小芬达 那是否有数据呢,用户表需要用数据才能登录
小芬达
我就是这样创得啊,表都创建出来了。运行后一点击登录 控制台就有哪些错误信息
火蚁
火蚁
@小芬达 可以的,你把那些sql语句复制过去就行了
小芬达
意思就是说不能在查询分析器中写SQL语句来创建表?
返回顶部
顶部