Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 49110 invoked from network); 29 Sep 2004 22:13:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 29 Sep 2004 22:13:38 -0000 Received: (qmail 70723 invoked by uid 500); 29 Sep 2004 22:13:22 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 70690 invoked by uid 500); 29 Sep 2004 22:13:21 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 70681 invoked by uid 99); 29 Sep 2004 22:13:21 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [66.43.16.50] (HELO pr-ex1.corp.myfamilyinc.com) (66.43.16.50) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 29 Sep 2004 15:13:19 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: WS Attachment (DIME) error when receiving large attachments (The device is not ready) Date: Wed, 29 Sep 2004 16:13:17 -0600 Message-ID: <3B7A491B88659F4FA3578A728CDC88960600DDEA@pr-ex1.corp.myfamilyinc.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: WS Attachment (DIME) error when receiving large attachments (The device is not ready) thread-index: AcSmC29w2NkItKVXSe2P1DGYU+KcSQAZeOWA From: "Tami Wright" To: X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi Espen, In another thread I related that I have working Axis code that includes the service/client as used for returning DIME attachments from an Axis web service. This was generating a "substantial-in-size" PDF document that was being returned to the client. If you would like me to send it to you, let me know. Tami=20 -----Original Message----- From: Espen Westgaard [mailto:Espen@datek.no]=20 Sent: Wednesday, September 29, 2004 4:03 AM To: axis-user@ws.apache.org Subject: WS Attachment (DIME) error when receiving large attachments (The device is not ready) Hi, =20 I've created a web service that has been running for some time now (using Axis 1.2beta), accepting attachments using both MIME and DIME as attachment types. However, I've encountered a problem with large attachments (larger than 20 KB).=20 I can parse the SOAP body part of the message just fine. The error occurs when I try to iterate through the attached DIME parts: org.apache.axis.attachments.Attachments attachments =3D org.apache.axis.MessageContext.getCurrentContext().getAttachmentsImpl(); The exception is thrown on the following line: for ( Iterator it =3D attachments.getAttachments().iterator(); it.hasNext(); ) {...} =20 Exception.getMessage(): ; nested exception is: java.io.IOException: The device is not ready Exception stack trace: AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException > faultSubcode: faultString: java.io.IOException: The device is not ready faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:java.io.IOException : The device is not readyat java.io.WinNTFileSystem.createFileExclusively(Native Method)at java.io.File.checkAndCreate(File.java:1314)at java.io.File.createTempFile(File.java:1402)at org.apache.axis.attachments.ManagedMemoryDataSource.flushToDisk(ManagedM emor yDataSource.java:383)at org.apache.axis.attachments.ManagedMemoryDataSource.write(ManagedMemoryD ataS ource.java:271)at org.apache.axis.attachments.ManagedMemoryDataSource.<init>(Managed Memo ryDataSource.java:144)at org.apache.axis.attachments.MultiPartDimeInputStream.readTillFound(Multi Part DimeInputStream.java:163)at org.apache.axis.attachments.MultiPartDimeInputStream.readAll(MultiPartDi meIn putStream.java:100)at org.apache.axis.attachments.MultiPartDimeInputStream.getAttachments(Mult iPar tDimeInputStream.java:108)at org.apache.axis.attachments.AttachmentsImpl.mergeinAttachments(Attachmen tsIm pl.java:156)at org.apache.axis.attachments.AttachmentsImpl.getAttachments(AttachmentsIm pl.j ava:361)at com.datek.mms.interfaceHandler.soap.SoapInterfaceHandler.mtMessage(SoapI nter faceHandler.java:200)at com.datek.mms.interfaceHandler.soap.SoapReceiver.mtMessage(SoapReceiver. java :155)at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl .java:25)at java.lang.reflect.Method.invoke(Method.java:324)at org.apache.axis.providers.java.MsgProvider.processMessage(MsgProvider.ja va:1 43)at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:290 )at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.j ava: 32)at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:481)at org.apache.axis.server.AxisServer.invoke(AxisServer.java:285)at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:623)< CR>< LF>at javax.servlet.http.HttpServlet.service(HttpServlet.java:768)at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.j ava: 301)at javax.servlet.http.HttpServlet.service(HttpServlet.java:861)at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:354)at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationH andl er.java:294)at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567) at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)a t org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationCon text .java:525)at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)a t org.mortbay.http.HttpServer.service(HttpServer.java:879)at org.mortbay.http.HttpConnection.service(HttpConnection.java:790) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:961)< LF>< TAB>at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807)< TAB> at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:197 )at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:276)< TAB> at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511)< CR>< LF>java.io.IOException: The device is not readyat org.apache.axis.AxisFault.makeFault(AxisFault.java:98)at org.apache.axis.attachments.MultiPartDimeInputStream.readTillFound(Multi Part DimeInputStream.java:187)at org.apache.axis.attachments.MultiPartDimeInputStream.readAll(MultiPartDi meIn putStream.java:100)at org.apache.axis.attachments.MultiPartDimeInputStream.getAttachments(Mult iPar tDimeInputStream.java:108)at org.apache.axis.attachments.AttachmentsImpl.mergeinAttachments(Attachmen tsIm pl.java:156)at org.apache.axis.attachments.AttachmentsImpl.getAttachments(AttachmentsIm pl.j ava:361)at com.datek.mms.interfaceHandler.soap.SoapInterfaceHandler.mtMessage(SoapI nter faceHandler.java:200)at com.datek.mms.interfaceHandler.soap.SoapReceiver.mtMessage(SoapReceiver. java :155)at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl .java:25)at java.lang.reflect.Method.invoke(Method.java:324)at org.apache.axis.providers.java.MsgProvider.processMessage(MsgProvider.ja va:1 43)at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:290 )at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.j ava: 32)at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:481)at org.apache.axis.server.AxisServer.invoke(AxisServer.java:285)at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:623)< CR>< LF>at javax.servlet.http.HttpServlet.service(HttpServlet.java:768)at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.j ava: 301)at javax.servlet.http.HttpServlet.service(HttpServlet.java:861)at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:354)at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationH andl er.java:294)at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567) at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)a t org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationCon text .java:525)at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)a t org.mortbay.http.HttpServer.service(HttpServer.java:879)at org.mortbay.http.HttpConnection.service(HttpConnection.java:790) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:961)< LF>< TAB>at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807)< TAB> at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:197 )at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:276)< TAB> at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511)C ause d by: java.io.IOException: The device is not readyat java.io.WinNTFileSystem.createFileExclusively(Native Method)at java.io.File.checkAndCreate(File.java:1314)at java.io.File.createTempFile(File.java:1402)at org.apache.axis.attachments.ManagedMemoryDataSource.flushToDisk(ManagedM emor yDataSource.java:383)at org.apache.axis.attachments.ManagedMemoryDataSource.write(ManagedMemoryD ataS ource.java:271)at org.apache.axis.attachments.ManagedMemoryDataSource.(ManagedMemory Data Source.java:144)at org.apache.axis.attachments.MultiPartDimeInputStream.readTillFound(Multi Part DimeInputStream.java:163)... 33 more =20 Any help is much appreciated! Espen