回 帖 发 新 帖 刷新版面

主题:还是文件上传的时候出现的问题[em8]

还是在文件上传的时候(依次上传3个文件),文件可以上传上去。并且,新的文件名也可以传到数据库,但会提示以下的错误:

E:\Jbuilder\jdk1.4\bin\javaw -classpath "E:\Jbuilder\thirdparty\jakarta-tomcat-4.0.6-LE-jdk14\bin\bootstrap.jar;E:\Jbuilder\jdk1.4\lib\tools.jar"  -Dcatalina.home="E:/Jbuilder/thirdparty/jakarta-tomcat-4.0.6-LE-jdk14"  org.apache.catalina.startup.Bootstrap -config "D:\Documents and Settings\DOOM\My Documents\DXSystem\Tomcat\conf\server8080.xml" start
HttpConnector Opening server socket on all host IP addresses

Starting service Tomcat-Standalone

Apache Tomcat/4.0.6

WebappLoader[/DX]: Deploying class repositories to work directory D:\Documents and Settings\DOOM\My Documents\DXSystem\Tomcat\work\DX

WebappLoader[/DX]: Deploy JAR /WEB-INF/lib/commons-collections.jar to D:\Documents and Settings\DOOM\My Documents\DXSystem\DX\WEB-INF\lib\commons-collections.jar

WebappLoader[/DX]: Deploy JAR /WEB-INF/lib/commons-fileupload-1.0.jar to D:\Documents and Settings\DOOM\My Documents\DXSystem\DX\WEB-INF\lib\commons-fileupload-1.0.jar

WebappLoader[/DX]: Deploy JAR /WEB-INF/lib/msbase.jar to D:\Documents and Settings\DOOM\My Documents\DXSystem\DX\WEB-INF\lib\msbase.jar

WebappLoader[/DX]: Deploy JAR /WEB-INF/lib/mssqlserver.jar to D:\Documents and Settings\DOOM\My Documents\DXSystem\DX\WEB-INF\lib\mssqlserver.jar

WebappLoader[/DX]: Deploy JAR /WEB-INF/lib/msutil.jar to D:\Documents and Settings\DOOM\My Documents\DXSystem\DX\WEB-INF\lib\msutil.jar

WebappLoader[/DX]: Reloading checks are enabled for this Context

StandardManager[/DX]: Seeding random number generator class java.security.SecureRandom

StandardManager[/DX]: Seeding of random number generator has been completed

ContextConfig[/DX]: Added certificates -> request attribute Valve

StandardWrapper[/DX:default]: Loading container servlet default

StandardWrapper[/DX:invoker]: Loading container servlet invoker

HttpConnector[8080] Starting background thread

回复列表 (共2个回复)

沙发

name:=CNameText     valuefdsfsdafsda

name:=ENameText     valuedfasdddddddddd

name:=gameSize     valuedsfaaaaaa

StandardWrapperValve[debugjsp]: Servlet.service() for servlet debugjsp threw exception

java.lang.StringIndexOutOfBoundsException: String index out of range: -1

java.lang.StringIndexOutOfBoundsException: String index out of range: -1

    at java.lang.String.substring(String.java:1438)

    at java.lang.String.substring(String.java:1411)

    at org.apache.jsp.Upload$jsp._jspService(Upload$jsp.java:175)

    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)

    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)

    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)

    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)

    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)

    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

    at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)

    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)


板凳

    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

    at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)

    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)

    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)

    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)

    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)

    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

    at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)

    at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)

    at java.lang.Thread.run(Thread.java:534)

name:=CNameText     valuefdsfsdafsda

name:=ENameText     valuedfasdddddddddd

name:=gameSize     valuedsfaaaaaa

name:=textarea     valuedsaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

name:=Submit2     value提交

是怎么回事啊

我来回复

您尚未登录,请登录后再回复。点此登录或注册