Well, I've never seen that one before. ;-)

What looks suspicious about this is that DefaultFileItem shows up in the
stack trace twice with the line number identified, and then the final
time, the line number is suddenly not available. That suggests to me that
these are different instances of the class, loaded by separate class
loaders.

The best way to protect against that is to ensure that all of the jars
required by your web app are in your WEB-INF/lib directory, and not in
some other container-owned shared directory.

--
Martin Cooper


On Wed, 14 Jan 2004, Sumant Daga wrote:

> I get following error when trying to use the file
> upload.
>
> ception while retrieving data
> Error Message:current thread not owner
> java.lang.IllegalMonitorStateException: current thread
> not owner
>       at
> org.apache.commons.fileupload.DefaultFileItem.getUniqueId(DefaultFileItem.java,
> Compiled Code)
>       at
> org.apache.commons.fileupload.DefaultFileItem.getTempFile(DefaultFileItem.java:623)
>       at
> org.apache.commons.fileupload.DefaultFileItem.getOutputStream(DefaultFileItem.java:563)
>       at
> org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java,
> Compiled Code)
>       at UploadFile.doPost(UploadFile.java:54)
>       at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
>       at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>       at allaire.jrun.servlet.JRunSE.service(JRunSE.java,
> Compiled Code)
>       at
> allaire.jrun.session.JRunSessionService.service(JRunSessionService.java,
> Compiled Code)
>       at
> allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java,
> Compiled Code)
>       at
> allaire.jrun.servlet.JRunNamedDispatcher.forward(JRunNamedDispatcher.java:39)
>       at
> allaire.jrun.servlet.Invoker.service(Invoker.java:84)
>       at allaire.jrun.servlet.JRunSE.service(JRunSE.java,
> Compiled Code)
>       at
> allaire.jrun.session.JRunSessionService.service(JRunSessionService.java,
> Compiled Code)
>       at
> allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java,
> Compiled Code)
>       at
> allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java,
> Compiled Code)
>       at allaire.jrun.servlet.JRunSE.service(JRunSE.java,
> Compiled Code)
>       at allaire.jrun.servlet.JRunSE.service(JRunSE.java,
> Compiled Code)
>       at
> allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java,
> Compiled Code)
>       at
> allaire.jrun.http.WebEndpoint.run(WebEndpoint.java,
> Compiled Code)
>       at allaire.jrun.ThreadPool.run(ThreadPool.java,
> Compiled Code)
>       at allaire.jrun.WorkerThread.run(WorkerThread.java,
> Compiled Code)
>
>
> Any one who can help me with this.
>
> Thanks
>
> Sumant
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
> http://hotjobs.sweepstakes.yahoo.com/signingbonus
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to