0 Replies Latest reply: Jun 4, 2009 9:19 AM by 843804 RSS

    SOAP attachments :: Error while downloading attachments more than 10MB

    843804
      Hi,
      We are getting the below error when downloading the attachments of size > 10mb.

      Client details:
      Java version: 1.6.0_05
      OS: SunOS
      OS version: 5.10
      OS architecture: sparc

      java.lang.OutOfMemoryError: Java heap space
      at java.util.Arrays.copyOf(Arrays.java:2786)
      at java.io.ByteArrayOutputStream.toByteArray(ByteArrayOutputStream.java:133)
      at com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnection.readFully(HttpSOAPConnection.java:636)
      at com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:379)
      at com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:169)
      at java.security.AccessController.doPrivileged(Native Method)
      at com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:140)
      at com.sun.sunit.webservice.soap.SOAPClient.invokeService(SOAPClient.java:94)
      at com.sun.sunit.webservice.soap.SOAPClient.invokeService(SOAPClient.java:69)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at com.sun.sunit.util.MethodUtil.invokeMethod(MethodUtil.java:74)
      at com.sun.sunit.util.MethodUtil.invokeMethod(MethodUtil.java:38)
      at java.lang.Thread.run(Thread.java:619)


      Download of large attachments used to work when code is 1.4.2 compiled and SAAJ is 1.2
      We have upgraded the code to 1.5 and using SAAJ 1.3 now.

      We are unable to download attachments > 10MB.

      Please let us know if we need to do any changes at SAAJ to fix this error ?

      Note : This message has been posted accidentally in Java Servlet and hence re-posting.

      Thanks.