首页上一页 1 下一页尾页 10 条记录 1/1页
《Java项目开发实例自学手册(1CD)》销售管理系统求助。急急急!!!
发表在Java图书答疑
2009-04-04
是否精华
是
否
版块置顶:
是
否
设置时间:
非永久
永久
起始时间:
结束时间:
是否扣分:
是
否
在运行销售管理系统成功后,用登陆界面的新用户注册,点击进去后注册信息填写完毕按完提交按钮,系统也提示注册信息成功。
但在登陆界面用新注册的帐号登陆系统提示“账号和密码信息不存在”,怎么回事?
但在登陆界面用新注册的帐号登陆系统提示“账号和密码信息不存在”,怎么回事?
精彩评论 10
2009-04-12
7L
[FIELDSET][LEGEND]引自:6楼[/LEGEND]
[FIELDSET][LEGEND]引自:5楼[/LEGEND]
[FIELDSET][LEGEND]引自:4楼[/LEGEND]
[FIELDSET][LEGEND]引自:1楼[/LEGEND]
请检查一下数据库驱动类是否正确加载。
[/FIELDSET]
回复:错误截图在附件中
[/FIELDSET]
回复:
请到本网站勘误中下载最新程序,测试有其他错误,请继续发帖,我们会尽力解决。
[/FIELDSET]
回复:找不到你们在勘误中发布的最新程序...有链接吗?
[/FIELDSET]
回复:现在可以注册用户了,但是添加订货信息、添加职务信息、添加单位信息等,只要执行添加操作都报错
例如添加订货信息,点击提交后就有错,错误如下;
sql=select * from tb_goodsCancel
java.sql.SQLException: 无法将 NULL 值插入列 'id',表 'db_sell.dbo.tb_goodsOrder';该列不允许空值。INSERT 失败。
at net.sourceforge.jtds.jdbc.SqlMessage.toSQLException(SqlMessage.java:392)
at net.sourceforge.jtds.jdbc.SQLWarningChain.addOrReturn(SQLWarningChain.java:91)
at net.sourceforge.jtds.jdbc.Tds.goToNextResult(Tds.java:752)
at net.sourceforge.jtds.jdbc.TdsStatement.getMoreResults(TdsStatement.java:710)
at net.sourceforge.jtds.jdbc.TdsStatement.executeImpl(TdsStatement.java:276)
at net.sourceforge.jtds.jdbc.TdsStatement.internalExecute(TdsStatement.java:244)
at net.sourceforge.jtds.jdbc.TdsStatement.internalExecute(TdsStatement.java:233)
at net.sourceforge.jtds.jdbc.TdsStatement.executeUpdate(TdsStatement.java:344)
at com.tool.JDBConnection.executeUpdate(JDBConnection.java:45)
at com.dao.GoodsOrderDao.goodsOrderInsert(GoodsOrderDao.java:172)
at com.webtier.GoodsOrderServlet.orderInsert(GoodsOrderServlet.java:225)
at com.webtier.GoodsOrderServlet.doGet(GoodsOrderServlet.java:34)
at com.webtier.GoodsOrderServlet.doPost(GoodsOrderServlet.java:266)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:857)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:565)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1509)
at java.lang.Thread.run(Thread.java:619)
还有添加其他的都报错:
HTTP Status 500 -
________________________________________
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
java.lang.NullPointerException
com.webtier.DutyServlet.dutyInsert(DutyServlet.java:110)
com.webtier.DutyServlet.doGet(DutyServlet.java:29)
com.webtier.DutyServlet.doPost(DutyServlet.java:147)
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.
________________________________________
Apache Tomcat/6.0.18
2009-4-12 9:06:39 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet dutyservlet threw exception
java.lang.NullPointerException
at com.webtier.DutyServlet.dutyInsert(DutyServlet.java:110)
at com.webtier.DutyServlet.doGet(DutyServlet.java:29)
at com.webtier.DutyServlet.doPost(DutyServlet.java:147)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:857)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:565)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1509)
at java.lang.Thread.run(Thread.java:619)
希望你们能够解决,谢谢
[FIELDSET][LEGEND]引自:5楼[/LEGEND]
[FIELDSET][LEGEND]引自:4楼[/LEGEND]
[FIELDSET][LEGEND]引自:1楼[/LEGEND]
请检查一下数据库驱动类是否正确加载。
[/FIELDSET]
回复:错误截图在附件中
[/FIELDSET]
回复:
请到本网站勘误中下载最新程序,测试有其他错误,请继续发帖,我们会尽力解决。
[/FIELDSET]
回复:找不到你们在勘误中发布的最新程序...有链接吗?
[/FIELDSET]
回复:现在可以注册用户了,但是添加订货信息、添加职务信息、添加单位信息等,只要执行添加操作都报错
例如添加订货信息,点击提交后就有错,错误如下;
sql=select * from tb_goodsCancel
java.sql.SQLException: 无法将 NULL 值插入列 'id',表 'db_sell.dbo.tb_goodsOrder';该列不允许空值。INSERT 失败。
at net.sourceforge.jtds.jdbc.SqlMessage.toSQLException(SqlMessage.java:392)
at net.sourceforge.jtds.jdbc.SQLWarningChain.addOrReturn(SQLWarningChain.java:91)
at net.sourceforge.jtds.jdbc.Tds.goToNextResult(Tds.java:752)
at net.sourceforge.jtds.jdbc.TdsStatement.getMoreResults(TdsStatement.java:710)
at net.sourceforge.jtds.jdbc.TdsStatement.executeImpl(TdsStatement.java:276)
at net.sourceforge.jtds.jdbc.TdsStatement.internalExecute(TdsStatement.java:244)
at net.sourceforge.jtds.jdbc.TdsStatement.internalExecute(TdsStatement.java:233)
at net.sourceforge.jtds.jdbc.TdsStatement.executeUpdate(TdsStatement.java:344)
at com.tool.JDBConnection.executeUpdate(JDBConnection.java:45)
at com.dao.GoodsOrderDao.goodsOrderInsert(GoodsOrderDao.java:172)
at com.webtier.GoodsOrderServlet.orderInsert(GoodsOrderServlet.java:225)
at com.webtier.GoodsOrderServlet.doGet(GoodsOrderServlet.java:34)
at com.webtier.GoodsOrderServlet.doPost(GoodsOrderServlet.java:266)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:857)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:565)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1509)
at java.lang.Thread.run(Thread.java:619)
还有添加其他的都报错:
HTTP Status 500 -
________________________________________
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
java.lang.NullPointerException
com.webtier.DutyServlet.dutyInsert(DutyServlet.java:110)
com.webtier.DutyServlet.doGet(DutyServlet.java:29)
com.webtier.DutyServlet.doPost(DutyServlet.java:147)
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.
________________________________________
Apache Tomcat/6.0.18
2009-4-12 9:06:39 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet dutyservlet threw exception
java.lang.NullPointerException
at com.webtier.DutyServlet.dutyInsert(DutyServlet.java:110)
at com.webtier.DutyServlet.doGet(DutyServlet.java:29)
at com.webtier.DutyServlet.doPost(DutyServlet.java:147)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:857)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:565)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1509)
at java.lang.Thread.run(Thread.java:619)
希望你们能够解决,谢谢