File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Unable to download attachments using axis 1.2 web services when the attachment size is large Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Unable to download attachments using axis 1.2 web services when the attachment size is large" Watch "Unable to download attachments using axis 1.2 web services when the attachment size is large" New topic
Author

Unable to download attachments using axis 1.2 web services when the attachment size is large

suman mitragupta
Greenhorn

Joined: Jul 23, 2009
Posts: 11
Unable to download attachments using axis 1.2 web services when the attachment size
exceeds around 4 MB.

Can anyone help ? why it is failing for large data in Axis 1.2 ( i am using axis 1.2 not axis2) ?

Following is the stack trace:

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.lang.String.<init>(Unknown Source)
at java.io.CharArrayWriter.toString(Unknown Source)
at org.apache.axis.message.SOAPHandler.addTextNode(SOAPHandler.java:136)
at org.apache.axis.message.SOAPHandler.endElement(SOAPHandler.java:112)
at org.apache.axis.encoding.DeserializationContext.endElement
(DeserializationContext.java:1087)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.
dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.apache.axis.encoding.DeserializationContext.parse
(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke
(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
at org.apache.axis.client.Call.invoke(Call.java:2748)
at org.apache.axis.client.Call.invoke(Call.java:2424)
at org.apache.axis.client.Call.invoke(Call.java:2347)
at org.apache.axis.client.Call.invoke(Call.java:1804)

Java Architect
scjp 1.5 sample questions scjp 1.6 sample questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to download attachments using axis 1.2 web services when the attachment size is large
 
Similar Threads
AXIS Web Service Client unable to call WebSphere 5.0 Deployed EJB
Axis Client Classes and Web Service
InvocationTargetException
Using web services in Java
Attachments prob using Axis