|
It must be getting to the doGet method because that's showing in the stack
trace. Are you sure that you're looking in the correct place for a
System.err.println() message? Perhaps you should create an IFS
FileOutputStream and write stuff out there.
It doesn't make sense that the stack trace shows doGet but you're not
finding any output from a println() statement placed in the first line of
the message.
-----Original Message-----_______________________________________________
From: java400-l-bounces@midrange.com [mailto:java400-l-bounces@midrange.com] On Behalf Of Patrick L Archibald
Sent: Thursday, February 06, 2003 6:44 PM
To: Java Programming on and around the iSeries / AS400
Subject: Re: File upload servlet won't run on AS/400 but runsOKonPCconfigured identically
I tried System.err.println and I got nothing. The request must be getting clobbered or something weird like that. Here is my <FORM> tag:
<form NAME=HTC400Form METHOD=POST ACTION='/servlet/FileUploadDownloadServlet3' ENCTYPE='multipart/form-data'>
Thanx, PLA
Gary L Peskin wrote:
Well, it's getting that far in the stack trace. Try System.err.println(). System.out is buffered whereasSystem.err is not.
call to the
-----Original Message-----
From: java400-l-bounces@midrange.com
[mailto:java400-l-bounces@midrange.com] On Behalf Of Patrick L Archibald
Sent: Thursday, February 06, 2003 5:12 PM
To: Java Programming on and around the iSeries / AS400
Subject: Re: File upload servlet won't run on AS/400 but runs OKonPCconfigured identically
It is not getting that far. I've got some System.out.println
statements at the top of the doGet and the doPost and I get nothing.
Thanx, PLA
Gary L Peskin wrote:
Hmmm. That's very strange.constructor with
Are you sure that you're calling the MultipartRequest
a valid HttpServletRequest?
You might try just doing a System.err.println of it in
FileUploadDownloadServlet3.performUpload just before the
suggestions?MultipartRequest constructor as a sanity check.
Gary
-----Original Message-----
From: java400-l-bounces@midrange.com [mailto:java400-l-bounces@midrange.com] On Behalf Of Patrick L Archibald
Sent: Thursday, February 06, 2003 10:10 AM
To: java400-l@midrange.com
Subject: File upload servlet won't run on AS/400 but runs OK
on PCconfigured identically
Hi
I've got a file upload servlet that works fine running on a PC with Tomcat
4.1.12 but I get the error below on the AS/400 running
Tomcat 4.1.12. I've
written hundreds of servlets on the AS/400 and the PC and I've never had
one beat me like this one. The error says "NoClassDefFoundError:
javax/servlet/http/HttpServletRequest" but that is not logical since I
have dozens of servlets running OK. Any one have any
(JkCoyoteHandler.java:234)exceptionThanx, PLA
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Servlet execution threw an
(Throwable.java:90)java/lang/Throwable.(Ljava/lang/String;)V+4
(Exception.java:38)java/lang/Exception.(Ljava/lang/String;)V+1
(StandardEngineValve.java:146)javax/servlet/ServletException.(Ljava/lang/String;Ljava/lang/Tx/servlet/ServletRequest;Ljavax/servlet/ServletR> esponse;)V+0
hrowable;)V+0 (ServletException.java:132)
org/apache/catalina/core/ApplicationFilterChain.internalDoFilt
er(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletRespons
e;)V+0 (ApplicationFilterChain.java:201)
org/apache/catalina/core/ApplicationFilterChain.doFilter(Ljava
(ApplicationFilterChain.java:168)
org/apache/catalina/core/StandardWrapperValve.invoke(Lorg/apache/catalina/Request;Lorg/apache/catalina/Respons>
e;Lorg/apache/catalina/ValveContext;)V+0
(StandardWrapperValve.java:174)atalina/Request;Lorg/apache/catalina/Response;)> V+0
org/apache/catalina/core/StandardPipeline$StandardPipelineValv
eContext.invokeNext(Lorg/apache/catalina/Request;Lorg/apache/c
atalina/Response;)V+0 (StandardPipeline.java:636)
org/apache/catalina/core/StandardPipeline.invoke(Lorg/apache/c
(StandardPipeline.java:480)
org/apache/catalina/core/ContainerBase.invoke(Lorg/apache/catahe/catalina/Request;Lorg/apache/catalina/Respons>
lina/Request;Lorg/apache/catalina/Response;)V+0
(ContainerBase.java:995)
org/apache/catalina/core/StandardContextValve.invoke(Lorg/apac
e;Lorg/apache/catalina/ValveContext;)V+0
(StandardContextValve.java:153)atalina/Request;Lorg/apache/catalina/Response;)> V+0
org/apache/catalina/core/StandardPipeline$StandardPipelineValv
eContext.invokeNext(Lorg/apache/catalina/Request;Lorg/apache/c
atalina/Response;)V+0 (StandardPipeline.java:636)
org/apache/catalina/core/StandardPipeline.invoke(Lorg/apache/c
(StandardPipeline.java:480)
org/apache/catalina/core/ContainerBase.invoke(Lorg/apache/catacatalina/Request;Lorg/apache/catalina/Response;L>
lina/Request;Lorg/apache/catalina/Response;)V+0
(ContainerBase.java:995)
org/apache/catalina/core/StandardContext.invoke(Lorg/apache/ca
talina/Request;Lorg/apache/catalina/Response;)V+0
(StandardContext.java:2376)
org/apache/catalina/core/StandardHostValve.invoke(Lorg/apache/
org/apache/catalina/ValveContext;)V+0 (StandardHostValve.java:148)
org/apache/catalina/core/StandardPipeline$StandardPipelineValvache/catalina/Request;Lorg/apache/catalina/Respo>
eContext.invokeNext(Lorg/apache/catalina/Request;Lorg/apache/c
atalina/Response;)V+0 (StandardPipeline.java:636)
org/apache/catalina/valves/ErrorDispatcherValve.invoke(Lorg/ap
nse;Lorg/apache/catalina/ValveContext;)V+0
(ErrorDispatcherValve.java:170)/catalina/Request;Lorg/apache/catalina/Response;>
org/apache/catalina/core/StandardPipeline$StandardPipelineValv
eContext.invokeNext(Lorg/apache/catalina/Request;Lorg/apache/c
atalina/Response;)V+0 (StandardPipeline.java:636)
org/apache/catalina/valves/ErrorReportValve.invoke(Lorg/apache
Lorg/apache/catalina/ValveContext;)V+0 (ErrorReportValve.java:172)
org/apache/catalina/core/StandardPipeline$StandardPipelineValvatalina/Request;Lorg/apache/catalina/Response;Lo>
eContext.invokeNext(Lorg/apache/catalina/Request;Lorg/apache/c
atalina/Response;)V+0 (StandardPipeline.java:636)
org/apache/catalina/valves/AccessLogValve.invoke(Lorg/apache/c
rg/apache/catalina/ValveContext;)V+0 (AccessLogValve.java:469)
org/apache/catalina/core/StandardPipeline$StandardPipelineValvatalina/Request;Lorg/apache/catalina/Response;)> V+0
eContext.invokeNext(Lorg/apache/catalina/Request;Lorg/apache/c
atalina/Response;)V+0 (StandardPipeline.java:636)
org/apache/catalina/core/StandardPipeline.invoke(Lorg/apache/c
(StandardPipeline.java:480)
org/apache/catalina/core/ContainerBase.invoke(Lorg/apache/catae/catalina/Request;Lorg/apache/catalina/Response>
lina/Request;Lorg/apache/catalina/Response;)V+0
(ContainerBase.java:995)
org/apache/catalina/core/StandardEngineValve.invoke(Lorg/apach
;Lorg/apache/catalina/ValveContext;)V+0
(CoyoteAdapter.java:197)
org/apache/catalina/core/StandardPipeline$StandardPipelineValvatalina/Request;Lorg/apache/catalina/Response;)> V+0
eContext.invokeNext(Lorg/apache/catalina/Request;Lorg/apache/c
atalina/Response;)V+0 (StandardPipeline.java:636)
org/apache/catalina/core/StandardPipeline.invoke(Lorg/apache/c
(StandardPipeline.java:480)
org/apache/catalina/core/ContainerBase.invoke(Lorg/apache/cata
lina/Request;Lorg/apache/catalina/Response;)V+0
(ContainerBase.java:995)
org/apache/coyote/tomcat4/CoyoteAdapter.service(Lorg/apache/co
yote/Request;Lorg/apache/coyote/Response;)V+0
org/apache/jk/server/JkCoyoteHandler.invoke(Lorg/apache/jk/cor
e/Msg;Lorg/apache/jk/core/MsgContext;)I+0
(JkCoyoteHandler.java:234)javax/servlet/http/HttpServletRequestorg/apache/jk/common/HandlerRequest.invoke(Lorg/apache/jk/core
/Msg;Lorg/apache/jk/core/MsgContext;)I+0 (HandlerRequest.java:331)
org/apache/jk/common/ChannelSocket.invoke(Lorg/apache/jk/core/
Msg;Lorg/apache/jk/core/MsgContext;)I+0 (ChannelSocket.java:552)
org/apache/jk/common/ChannelSocket.processConnection(Lorg/apac
he/jk/core/MsgContext;)V+0 (ChannelSocket.java:522)
org/apache/jk/common/SocketConnection.runIt([Ljava/lang/Object
;)V+0 (ChannelSocket.java:638)
org/apache/tomcat/util/threads/ThreadPool$ControlRunnable.run(
)V+0 (ThreadPool.java:507)
java/lang/Thread.run()V+11 (Thread.java:484)
root cause
java.lang.NoClassDefFoundError:
(Throwable.java:90)java/lang/Throwable.(Ljava/lang/String;)V+4
(StandardEngineValve.java:146)java/lang/LinkageError.(Ljava/lang/String;)V+1x/servlet/ServletRequest;Ljavax/servlet/ServletR> esponse;)V+0
(LinkageError.java:39)
java/lang/NoClassDefFoundError.(Ljava/lang/String;)V+1
(NoClassDefFoundError.java:43)
com/oreilly/servlet/multipart/MultipartParser.(Ljavax/servlet/
http/HttpServletRequest;IZZ)V+23 (MultipartParser.java:114)
com/oreilly/servlet/multipart/MultipartParser.(Ljavax/servlet/
http/HttpServletRequest;I)V+1 (MultipartParser.java:94)
com/oreilly/servlet/MultipartRequest.(Ljavax/servlet/http/Http
ServletRequest;Ljava/lang/String;ILjava/lang/String;Lcom/oreil
ly/servlet/multipart/FileRenamePolicy;)V+148
(MultipartRequest.java:219)
com/oreilly/servlet/MultipartRequest.(Ljavax/servlet/http/Http
ServletRequest;Ljava/lang/String;ILcom/oreilly/servlet/multipa
rt/FileRenamePolicy;)V+1 (MultipartRequest.java:148)
FileUploadDownloadServlet3.performUpload(Ljavax/servlet/http/H
ttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+0
(FileUploadDownloadServlet3.java:295)
FileUploadDownloadServlet3.doGet(Ljavax/servlet/http/HttpServl
etRequest;Ljavax/servlet/http/HttpServletResponse;)V+0
(FileUploadDownloadServlet3.java:57)
FileUploadDownloadServlet3.doPost(Ljavax/servlet/http/HttpServ
letRequest;Ljavax/servlet/http/HttpServletResponse;)V+0
(FileUploadDownloadServlet3.java:51)
javax/servlet/http/HttpServlet.service(Ljavax/servlet/http/Htt
pServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+0
(HttpServlet.java:733)
javax/servlet/http/HttpServlet.service(Ljavax/servlet/ServletR
equest;Ljavax/servlet/ServletResponse;)V+0 (HttpServlet.java:848)
org/apache/catalina/core/ApplicationFilterChain.internalDoFilt
er(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletRespons
e;)V+0 (ApplicationFilterChain.java:201)
org/apache/catalina/core/ApplicationFilterChain.doFilter(Ljava
(ApplicationFilterChain.java:168)
org/apache/catalina/core/StandardWrapperValve.invoke(Lorg/apache/catalina/Request;Lorg/apache/catalina/Respons>
e;Lorg/apache/catalina/ValveContext;)V+0
(StandardWrapperValve.java:174)atalina/Request;Lorg/apache/catalina/Response;)> V+0
org/apache/catalina/core/StandardPipeline$StandardPipelineValv
eContext.invokeNext(Lorg/apache/catalina/Request;Lorg/apache/c
atalina/Response;)V+0 (StandardPipeline.java:636)
org/apache/catalina/core/StandardPipeline.invoke(Lorg/apache/c
(StandardPipeline.java:480)
org/apache/catalina/core/ContainerBase.invoke(Lorg/apache/catahe/catalina/Request;Lorg/apache/catalina/Respons>
lina/Request;Lorg/apache/catalina/Response;)V+0
(ContainerBase.java:995)
org/apache/catalina/core/StandardContextValve.invoke(Lorg/apac
e;Lorg/apache/catalina/ValveContext;)V+0
(StandardContextValve.java:153)atalina/Request;Lorg/apache/catalina/Response;)> V+0
org/apache/catalina/core/StandardPipeline$StandardPipelineValv
eContext.invokeNext(Lorg/apache/catalina/Request;Lorg/apache/c
atalina/Response;)V+0 (StandardPipeline.java:636)
org/apache/catalina/core/StandardPipeline.invoke(Lorg/apache/c
(StandardPipeline.java:480)
org/apache/catalina/core/ContainerBase.invoke(Lorg/apache/catacatalina/Request;Lorg/apache/catalina/Response;L>
lina/Request;Lorg/apache/catalina/Response;)V+0
(ContainerBase.java:995)
org/apache/catalina/core/StandardContext.invoke(Lorg/apache/ca
talina/Request;Lorg/apache/catalina/Response;)V+0
(StandardContext.java:2376)
org/apache/catalina/core/StandardHostValve.invoke(Lorg/apache/
org/apache/catalina/ValveContext;)V+0 (StandardHostValve.java:148)
org/apache/catalina/core/StandardPipeline$StandardPipelineValvache/catalina/Request;Lorg/apache/catalina/Respo>
eContext.invokeNext(Lorg/apache/catalina/Request;Lorg/apache/c
atalina/Response;)V+0 (StandardPipeline.java:636)
org/apache/catalina/valves/ErrorDispatcherValve.invoke(Lorg/ap
nse;Lorg/apache/catalina/ValveContext;)V+0
(ErrorDispatcherValve.java:170)/catalina/Request;Lorg/apache/catalina/Response;>
org/apache/catalina/core/StandardPipeline$StandardPipelineValv
eContext.invokeNext(Lorg/apache/catalina/Request;Lorg/apache/c
atalina/Response;)V+0 (StandardPipeline.java:636)
org/apache/catalina/valves/ErrorReportValve.invoke(Lorg/apache
Lorg/apache/catalina/ValveContext;)V+0 (ErrorReportValve.java:172)
org/apache/catalina/core/StandardPipeline$StandardPipelineValvatalina/Request;Lorg/apache/catalina/Response;Lo>
eContext.invokeNext(Lorg/apache/catalina/Request;Lorg/apache/c
atalina/Response;)V+0 (StandardPipeline.java:636)
org/apache/catalina/valves/AccessLogValve.invoke(Lorg/apache/c
rg/apache/catalina/ValveContext;)V+0 (AccessLogValve.java:469)
org/apache/catalina/core/StandardPipeline$StandardPipelineValvatalina/Request;Lorg/apache/catalina/Response;)> V+0
eContext.invokeNext(Lorg/apache/catalina/Request;Lorg/apache/c
atalina/Response;)V+0 (StandardPipeline.java:636)
org/apache/catalina/core/StandardPipeline.invoke(Lorg/apache/c
(StandardPipeline.java:480)
org/apache/catalina/core/ContainerBase.invoke(Lorg/apache/catae/catalina/Request;Lorg/apache/catalina/Response>
lina/Request;Lorg/apache/catalina/Response;)V+0
(ContainerBase.java:995)
org/apache/catalina/core/StandardEngineValve.invoke(Lorg/apach
;Lorg/apache/catalina/ValveContext;)V+0
(CoyoteAdapter.java:197)
org/apache/catalina/core/StandardPipeline$StandardPipelineValvatalina/Request;Lorg/apache/catalina/Response;)> V+0
eContext.invokeNext(Lorg/apache/catalina/Request;Lorg/apache/c
atalina/Response;)V+0 (StandardPipeline.java:636)
org/apache/catalina/core/StandardPipeline.invoke(Lorg/apache/c
(StandardPipeline.java:480)
org/apache/catalina/core/ContainerBase.invoke(Lorg/apache/cata
lina/Request;Lorg/apache/catalina/Response;)V+0
(ContainerBase.java:995)
org/apache/coyote/tomcat4/CoyoteAdapter.service(Lorg/apache/co
yote/Request;Lorg/apache/coyote/Response;)V+0
org/apache/jk/server/JkCoyoteHandler.invoke(Lorg/apache/jk/cor
e/Msg;Lorg/apache/jk/core/MsgContext;)I+0
_____________________________________________________________________________________________________________________________________________org/apache/jk/common/HandlerRequest.invoke(Lorg/apache/jk/core_______________________________________________
/Msg;Lorg/apache/jk/core/MsgContext;)I+0 (HandlerRequest.java:331)
org/apache/jk/common/ChannelSocket.invoke(Lorg/apache/jk/core/
Msg;Lorg/apache/jk/core/MsgContext;)I+0 (ChannelSocket.java:552)
org/apache/jk/common/ChannelSocket.processConnection(Lorg/apac
he/jk/core/MsgContext;)V+0 (ChannelSocket.java:522)
org/apache/jk/common/SocketConnection.runIt([Ljava/lang/Object
;)V+0 (ChannelSocket.java:638)
org/apache/tomcat/util/threads/ThreadPool$ControlRunnable.run(
)V+0 (ThreadPool.java:507)
java/lang/Thread.run()V+11 (Thread.java:484)
This is the Java Programming on and around the iSeries / AS400
(JAVA400-L) mailing list To post a message email: JAVA400-L@midrange.com To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.
This is the Java Programming on and around the iSeries /
AS400 (JAVA400-L) mailing list To post a message email: JAVA400-L@midrange.com To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) mailing list To post a message email: JAVA400-L@midrange.com To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) mailing list To post a message email: JAVA400-L@midrange.com To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) mailing list
To post a message email: JAVA400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.