Hi, Here's a bug report in ajp13 from someone using my com.oreilly.servlet package to do file uploads. No real details, but I'm thinking perhaps someone with ajp13 running can test the file upload example? You can download the c.o.s. pkg from http://www.servlets.com/resources/com.oreilly.servlet. I'm happy to provide support. -jh-
Hi Jason, the new year startet well. Because we found out why the upload servlet didn't work. The upload didn't work with the "ajp13 Worker". With the "ajp12 Worker" all works fine. Thanks for your help and a happy new year. Cheers Bernhard =============================================================== Bernhard Herlemann Software Developer Tel.: +49 781 96 92 96 2 Email: [EMAIL PROTECTED] www.skyon.com ASOC has become Skyon AG Central Call 0700-SKYON-888 -----Ursprüngliche Nachricht----- Von: "Jason Hunter" <[EMAIL PROTECTED]> An: "Bernhard Herlemann" <[EMAIL PROTECTED]> Gesendet: Mittwoch, 13. Dezember 2000 20:49 Betreff: Re: Tomcat 3.2 / upload servlets It's working for me with Tomcat 3.2.1 on Win2K. Although I notice upload.war was incorrectly putting the content in an upload directory. Perhaps that's the problem? -jh- Bernhard Herlemann wrote: > > Hi, > > If I try your original example > -->with Tomcat 3.1 everything is ok, > > Output: > UploadTest > Params: > submitter = Bernhard > > Files: > name: file > filename: aktien.js > type: application/x-javascript > length: 14232 > > -->With Tomcat 3.2 the browser says that the page could not be shown. > No page seams to be generated by the servlet. The servlet engine doesn't > show a any message. > > Did you test the example with Tomcat 3.2 > > Cheers > > Bernhard > > =============================================================== > > Bernhard Herlemann > Software Developer > > Tel.: +49 781 96 92 96 2 > Email: [EMAIL PROTECTED] > > www.skyon.com > > ASOC has become Skyon AG > Central Call 0700-SKYON-888 > > So what happens if you try my exact example? > > Your code seemed to call trim() on sTypeOfUpload which must be null, and > I believe null is a reasonable value there. > > -jh- > > -----Ursprüngliche Nachricht----- > Von: Bernhard Herlemann > An: Jason Hunter > Gesendet: Dienstag, 12. Dezember 2000 14:43 > Betreff: Re: Tomcat 3.2 / upload servlets > > Hi, > > for testing I wrote a little servlet which is very similar to your example > code. > I added it to this mail. > It also doesn't work with the new tomcat engine. > But unfortunately the new servlet doesn't give an error message on the > console. > > I'm not sure if the old error message is usefull. > Here's the code near to the error message. > 107 File fDirUpload; > 108 if(sTypeOfUpload.trim().equals("wap") ) > 109 fDirUpload = new > ile( "C:\\Apache\\htdocs\\skyon\\sems\\wap_upload" ); > > Regards > > Bernhard > > Our configuration: > Servlet-Engine: Tomcat 3.2 > Adapter: mod_jk > Windows NT SP 6 > Protocoll: ajp12 und ajp13 > > =============================================================== > > Bernhard Herlemann > Software Developer > > Tel.: +49 781 96 92 96 2 > Email: [EMAIL PROTECTED] > > www.skyon.com > > ASOC has become Skyon AG > Central Call 0700-SKYON-888 > > -----Ursprüngliche Nachricht----- > Von: "Jason Hunter" <[EMAIL PROTECTED]> > An: "Bernhard Herlemann" <[EMAIL PROTECTED]> > Gesendet: Montag, 11. Dezember 2000 18:52 > Betreff: Re: Tomcat 3.2 / upload servlets > > It would help to know what's on line 108 of upload.java. > > -jh- > > > Bernhard Herlemann wrote: > > > > Hi, > > > > I wrote a upload-Servlet using your class > > "com.oreilly.servlet.*;" > > with Tomcat 3.1 on Win NT and all worked well. > > > > After switching to Tomcat 3.2 I got a NullPointerException. > > Maybe you could give a hint. > > > > > > Cheers > > > > Bernhard Herlemann > > > > > > > > > > > > java.lang.NullPointerException > > at upload.doPost(upload.java:108) > > at > > javax.servlet.http.HttpServlet.service(HttpServlet.java:760) > > at > > javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > > at > > org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:4 > > 04) > > at org.apache.tomcat.core.Handler.service(Handler.java:286) > > at > > org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372 > > ) > > at > > org.apache.tomcat.core.ContextManager.internalService(ContextManager. > > java:797) > > at > > org.apache.tomcat.core.ContextManager.service(ContextManager.java:743 > > ) > > at > > org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processCon > > nection(Ajp13ConnectionHandler.java:160) > > at > > org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java: > > 416) > > at > > org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java > > :498) > > at java.lang.Thread.run(Thread.java:484) > > > > > > > > > > > >
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]