• Post Reply Bookmark Topic Watch Topic
  • New Topic

SAAJ(1.1) INCOMPATIBILTY WITH JAVA 1.6  RSS feed

 
Naveen Raghupatruni
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We are using SAAJ 1.1 in our application.When the client is loaded with Java 1.5, SAAJ attachments are being downloaded successfully.
When the client is loaded with Java 1.6, SAAJ attachments are NOT being downloaded and we are getting erorr at 180MB.

Is this a known issue with SAAJ and Java1.6. Can anyone please help ?

Here is the below error we see at client console ::
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2786)
at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:94)
at com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnection.readFully(HttpSOAPConnection.java:633)
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 sun.reflect.GeneratedMethodAccessor33.invoke(Unknown Source)
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 com.sun.sunit.bugtraq.client.command.ClientConnection.invokeService(ClientConnection.java:108)
at com.sun.sunit.bugtraq.client.command.CrGetAttachmentCommand.afterExecute(CrGetAttachmentCommand.java:157)
at sun.reflect.GeneratedMethodAccessor33.invoke(Unknown Source)
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 com.sun.sunit.bugtraq.client.command.ClientConnection.invokeService(ClientConnection.java:108)

Is this a known issue with SAAJ and Java1.6. Can anyone please help ?

Thanks,
Naveen.
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24215
37
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like you were just running with barely enough memory before, and 1.6 is using a little more, so you should just bump the heap size up a little?
 
Naveen Raghupatruni
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have increased heap size at client to 1gb but the download fails at little higher levels.

When using 1.5, attachments upto 2gb are downloading without any heap size specifications at client.

Thanks,
Naveen.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!