[jdom-interest] large non-xml-file handeling
Jason Hunter
jhunter at collab.net
Mon Jun 25 19:57:51 PDT 2001
Sounds like a Windows file lock issue. Windows won't let you delete a
file that's still open. You're missing a close() somewhere.
-jh-
Hjerling Johan wrote:
>
> Hi,
>
> I try to upload a xml-file with multipartrequest, parse it and then use the
> information! While testing it seams that any file over ~20 kb, that is
> non-welformed xml, gets stuck and can not be deleted! Even though i catch
> the exception and handle it nicely! The file remains open but only if the
> file is larger than ~20 kb!!
>
> Stacktrace:
> org.jdom.JDOMException: Error on line 1 of document
> file:/c:/tomcat/jakarta/webapps/wwtest/temp/bm11.tmp: The markup in
> the document preceding the root element must be well-formed.
> at org.jdom.input.SAXBuilder.build(SAXBuilder.java:296)
> at org.jdom.input.SAXBuilder.build(SAXBuilder.java:617)
> at org.jdom.input.SAXBuilder.build(SAXBuilder.java:599)
> at fi.vikingline.xml.XMLParser.parse(XMLParser.java:34)
> at fi.vikingline.Send.action.Send.doExecute(Send.java:112)
> at fi.vikingline.webwork.VLAction.execute(VLAction.java:34)
> at webwork.servlets.Dispatcher.service(Dispatcher.java:477)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
> 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:79
> 7)
> at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> at
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
> onnectionHandler.java:210)
> 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)
> Root cause: org.xml.sax.SAXParseException: The markup in the document
> preceding the root element must be well-formed.
> at
> org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1008)
> at
> org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLDocume
> ntScanner.java:625)
> at
> org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.dispatch(XM
> LDocumentScanner.java:804)
> at
> org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
> java:380)
> at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:900)
> at org.jdom.input.SAXBuilder.build(SAXBuilder.java:287)
> at org.jdom.input.SAXBuilder.build(SAXBuilder.java:617)
> at org.jdom.input.SAXBuilder.build(SAXBuilder.java:599)
> at fi.vikingline.xml.XMLParser.parse(XMLParser.java:34)
> at fi.vikingline.Send.action.Send.doExecute(Send.java:112)
> at fi.vikingline.webwork.VLAction.execute(VLAction.java:34)
> at webwork.servlets.Dispatcher.service(Dispatcher.java:477)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
> 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:79
> 7)
> at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> at
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
> onnectionHandler.java:210)
> 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)
> java.security.AccessControlException: access denied (java.io.FilePermission
> c:\tomcat\jakarta\webapps\wwtest\temp\bm11.t
> mp delete)
> at
> java.security.AccessControlContext.checkPermission(AccessControlContext.java
> :272)
> at
> java.security.AccessController.checkPermission(AccessController.java:399)
> at
> java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
> at java.lang.SecurityManager.checkDelete(SecurityManager.java:1005)
> at fi.vikingline.Send.action.Send.doError(Send.java:67)
> at fi.vikingline.Send.action.Send.doExecute(Send.java:117)
> at fi.vikingline.webwork.VLAction.execute(VLAction.java:34)
> at webwork.servlets.Dispatcher.service(Dispatcher.java:477)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
> 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:79
> 7)
> at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> at
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
> onnectionHandler.java:210)
> 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)
>
> Johan Hjerling
> johan.hjerling at vikingline.fi
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com
More information about the jdom-interest
mailing list