axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dennis Sosnoski <...@sosnoski.com>
Subject Re: Receiving larger files using MTOM -AXIS2 sevice
Date Wed, 16 May 2007 08:27:29 GMT
Hi Ravi,

It looks like you haven't enabled MTOM. See 
http://ws.apache.org/axis2/1_2/mtom-guide.html#22* * for the details of 
how to turn this on.

- Dennis

Dennis M. Sosnoski
SOA and Web Services in Java
Axis2 Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117



ravi kanth wrote:
> Hi
> i am using axis2 mtom service for sending and receiving files.Using
> this service i can receive approximately 6mb of file.i want to receive
> larger files(i.e 1Gb)
> comp1--server
> comp2--client
> when comp2 sending a request for receiving file from comp1 it will
> gives error like
> run.client:
> [java] Args length = 6
> [java] Client --> main() --> Name : receive
> [java] Client --> main() --> receiveFile()
> [java] Client --> getFile () --> File Name : /home/vjs/test2.zip
> [java] java.lang.OutOfMemoryError: Java heap space
> [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJa
> .java:180)
> [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:710)
> [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:17
> [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:84)
> [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.
> va:275)
> [java] at org.apache.tools.ant.Task.perform(Task.java:364)
> [java] at org.apache.tools.ant.Target.execute(Target.java:341)
> [java] at org.apache.tools.ant.Target.performTasks(Target.java:369)
> [java] at org.apache.tools.ant.Project.executeSortedTargets(Project.j
> a:1216)
> [java] at org.apache.tools.ant.Project.executeTarget(Project.java:118
> [java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(
> faultExecutor.java:40)
> [java] at org.apache.tools.ant.Project.executeTargets(Project.java:10
> )
> [java] at org.apache.tools.ant.Main.runBuild(Main.java:668)
> [java] at org.apache.tools.ant.Main.startAnt(Main.java:187)
> [java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
> [java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
> [java] Caused by: java.lang.OutOfMemoryError: Java heap space
> [java] at java.util.Arrays.copyOfRange(Arrays.java:3209)
> [java] at java.lang.String.(String.java:216)
> [java] at java.lang.StringBuffer.toString(StringBuffer.java:585)
> [java] at com.ctc.wstx.util.TextBuffer.contentsAsString(TextBuffer.ja
> :403)
> [java] at com.ctc.wstx.sr.BasicStreamReader.getText(BasicStreamReader
> ava:821)
> [java] at org.apache.axiom.om.impl.llom.OMStAXWrapper.getText(OMStAXW
> pper.java:372)
> [java] at com.logicacmg.dice.grid.drs.mtom.service.MTOMSampleStub$Bas
> 4Binary$Factory.parse(Unknown Source)
> [java] at com.logicacmg.dice.grid.drs.mtom.service.MTOMSampleStub$Att
> hmentTypeD$Factory.parse(Unknown Source)
> [java] at com.logicacmg.dice.grid.drs.mtom.service.MTOMSampleStub$Att
> hmentResponseD$Factory.parse(Unknown Source)
> [java] at com.logicacmg.dice.grid.drs.mtom.service.MTOMSampleStub.fro
> M(Unknown Source)
> [java] at com.logicacmg.dice.grid.drs.mtom.service.MTOMSampleStub.get
> tachment(Unknown Source)
> [java] at com.logicacmg.dice.grid.drs.mtom.client.Client.getFile(Unkn
> n Source)
> [java] at com.logicacmg.dice.grid.drs.mtom.client.Client.main(Unknown
> ource)
> [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcc
> sorImpl.java:39)
> [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingM
> hodAccessorImpl.java:25)
> [java] at java.lang.reflect.Method.invoke(Method.java:597)
> [java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.j
> a:202)
> [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJa
> .java:134)
> [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:710)
> [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:17
> [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:84)
> [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.
> va:275)
> [java] at org.apache.tools.ant.Task.perform(Task.java:364)
> [java] at org.apache.tools.ant.Target.execute(Target.java:341)
> [java] at org.apache.tools.ant.Target.performTasks(Target.java:369)
> [java] at org.apache.tools.ant.Project.executeSortedTargets(Project.j
> a:1216)
> [java] at org.apache.tools.ant.Project.executeTarget(Project.java:118
> [java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(
> faultExecutor.java:40)
> [java] at org.apache.tools.ant.Project.executeTargets(Project.java:10
> )
> [java] at org.apache.tools.ant.Main.runBuild(Main.java:668)
> [java] at org.apache.tools.ant.Main.startAnt(Main.java:187)
> [java] --- Nested Exception ---
> [java] java.lang.OutOfMemoryError: Java heap space
> [java] at java.util.Arrays.copyOfRange(Arrays.java:3209)
> [java] at java.lang.String.(String.java:216)
> [java] at java.lang.StringBuffer.toString(StringBuffer.java:585)
> [java] at com.ctc.wstx.util.TextBuffer.contentsAsString(TextBuffer.ja
> :403)
> [java] at com.ctc.wstx.sr.BasicStreamReader.getText(BasicStreamReader
> ava:821)
> [java] at org.apache.axiom.om.impl.llom.OMStAXWrapper.getText(OMStAXW
> pper.java:372)
> [java] at com.logicacmg.dice.grid.drs.mtom.service.MTOMSampleStub$Bas
> 4Binary$Factory.parse(Unknown Source)
> [java] at com.logicacmg.dice.grid.drs.mtom.service.MTOMSampleStub$Att
> hmentTypeD$Factory.parse(Unknown Source)
> [java] at com.logicacmg.dice.grid.drs.mtom.service.MTOMSampleStub$Att
> hmentResponseD$Factory.parse(Unknown Source)
> [java] at com.logicacmg.dice.grid.drs.mtom.service.MTOMSampleStub.fro
> M(Unknown Source)
> [java] at com.logicacmg.dice.grid.drs.mtom.service.MTOMSampleStub.get
> tachment(Unknown Source)
> [java] at com.logicacmg.dice.grid.drs.mtom.client.Client.getFile(Unkn
> n Source)
> [java] at com.logicacmg.dice.grid.drs.mtom.client.Client.main(Unknown
> ource)
> [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcc
> sorImpl.java:39)
> [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingM
> hodAccessorImpl.java:25)
> [java] at java.lang.reflect.Method.invoke(Method.java:597)
> [java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.j
> a:202)
> [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJa
> .java:134)
> [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:710)
> [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:17
> [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:84)
> [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.
> va:275)
> [java] at org.apache.tools.ant.Task.perform(Task.java:364)
> [java] at org.apache.tools.ant.Target.execute(Target.java:341)
> [java] at org.apache.tools.ant.Target.performTasks(Target.java:369)
> [java] at org.apache.tools.ant.Project.executeSortedTargets(Project.j
> a:1216)
> [java] at org.apache.tools.ant.Project.executeTarget(Project.java:118
> [java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(
> faultExecutor.java:40)
> [java] at org.apache.tools.ant.Project.executeTargets(Project.java:10
> )
> [java] at org.apache.tools.ant.Main.runBuild(Main.java:668)
> [java] at org.apache.tools.ant.Main.startAnt(Main.java:187)
> BUILD SUCCESSFUL
> Total time: 7 seconds
> can you suggest me for solving these problem.
> 1)How can i receive the larger files using mtom service?
> Thank you in advance
> Regards
> Ravikanth
>
> ------------------------------------------------------------------------
> Here’s a new way to find what you're looking for - Yahoo! Answers 
> <http://us.rd.yahoo.com/mail/in/yanswers/*http://in.answers.yahoo.com/> 

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message