Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 55574 invoked from network); 12 Mar 2007 12:47:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Mar 2007 12:47:21 -0000 Received: (qmail 18025 invoked by uid 500); 12 Mar 2007 12:47:19 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 17776 invoked by uid 500); 12 Mar 2007 12:47:18 -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: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 17765 invoked by uid 99); 12 Mar 2007 12:47:18 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Mar 2007 05:47:18 -0700 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=SUBJECT_ENCODED_TWICE,SUBJECT_EXCESS_QP,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [217.72.192.243] (HELO fmmailgate05.web.de) (217.72.192.243) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Mar 2007 05:47:04 -0700 Received: from web.de by fmmailgate05.web.de (Postfix) with SMTP id 3F6A8B2C24B for ; Mon, 12 Mar 2007 13:46:43 +0100 (CET) Received: from [83.236.215.41] by freemailng2701.web.de with HTTP; Mon, 12 Mar 2007 13:46:42 +0100 Date: Mon, 12 Mar 2007 13:46:42 +0100 Message-Id: <8245354@web.de> MIME-Version: 1.0 From: Jochen Zink To: axis-user@ws.apache.org Subject: =?iso-8859-15?Q?Re:_[Axis2]_ArrayIndexOutOfBounds_with_MTOM_and_sessio?= =?iso-8859-15?Q?n_based_Service?= Organization: http://freemail.web.de/ Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Databinding is ADB.=20 But you were right. With file caching it works fine. But I have to set the= threshold to less than 400 ... however... it works! Thanks a lot for your fast help! > -----Urspr=FCngliche Nachricht----- > Von: axis-user@ws.apache.org > Gesendet: 12.03.07 13:06:27 > An: axis-user@ws.apache.org > Betreff: Re: [Axis2] ArrayIndexOutOfBounds with MTOM and session based S= ervice > Ooops... If it is just 27 KB, then I would recommend you to log a bug > in the jira with the necessary info to recreate the problem.. >=20 > Which databinding mechanism are you using... >=20 > Thanks, > Thilina >=20 > On 3/12/07, Jochen Zink wrote: > > Thanks for your answer. I will try filecaching. > > > > The Filesize is 27KB > > > > > -----Urspr=FCngliche Nachricht----- > > > Von: axis-user@ws.apache.org > > > Gesendet: 12.03.07 12:39:51 > > > An: axis-user@ws.apache.org > > > Betreff: Re: [Axis2] ArrayIndexOutOfBounds with MTOM and session bas= ed Service > > > > > > > What is the size of the attachment you are trying to transfer... If = it > > > is large please enable file caching at the server side [1].. > > > Make sure to use the latest Axiom jars when using the File Caching, = as > > > they contain major performance improvements and bug fixes over the > > > Axiom 1.2 version.. > > > > > > ~Thilina > > > [1] http://wso2.org/library/264 > > > > > > On 3/12/07, Jochen Zink wrote: > > > > Hallo, > > > > > > > > I have a session based WebService with scope=3D"soapsession". I trie= d to send binary data with mtom from a client to the service. > > > > > > > > The client calls three methods: > > > > > > > > openTransferSession(); > > > > transferDocument(); > > > > closeTransferSession(); > > > > > > > > On transferDocument, a binary attachment is sendet with MTOM. > > > > > > > > If I enable MTOM an client side, a ArrayIndexOutOfBounds Exception= is thrown on the Servers MessageReceiver (StackTrace on the end of messag= e). If I disable MTOM, everythink is okay. No exception is thrown. > > > > > > > > I believe, that I do something wrong on the services wsdl, but I'm= not sure. > > > > > > > > From the wsdl, I generate my Service Sekeleton and the MessageRece= iver and some Types. > > > > > > > > > > > > Does anyone knows, what is wrong=3F > > > > > > > > Thanks for all! > > > > > > > > > > > > > > > > Here are the wsdl: > > > > > > > xmlns:axis2=3D"http://comchannel.comserver.edocbox.nepatec.d= e" > > > > xmlns:soap12=3D"http://schemas.xmlsoap.org/wsdl/soap12/" > > > > xmlns:http=3D"http://schemas.xmlsoap.org/wsdl/http/" > > > > xmlns:mime=3D"http://schemas.xmlsoap.org/wsdl/mime/" > > > > xmlns:xmime=3D"http://www.w3.org/2005/05/xmlmime" > > > > xmlns:ns=3D"http://comchannel.comserver.edocbox.nepatec.de/x= sd" > > > > xmlns:soap=3D"http://schemas.xmlsoap.org/wsdl/soap/" > > > > xmlns:wsdl=3D"http://schemas.xmlsoap.org/wsdl/" > > > > targetNamespace=3D"http://comchannel.comserver.edocbox.nepat= ec.de"> > > > > > > > > > > > attributeFormDefault=3D"qualified" elementFo= rmDefault=3D"qualified" > > > > targetNamespace=3D"http://comchannel.comserv= er.edocbox.nepatec.de/xsd"> > > > > > > > > > > > schemaLocation=3D"xmime.xsd" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > type=3D"xs:s= tring" /> > > > > > > > type=3D"xmim= e:base64Binary" /> > > > > > > > type=3D"xs:i= nt" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > type=3D"xs:b= oolean" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > type=3D"xs:s= tring" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > type=3D"xs:l= ong" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > element=3D"ns:openTransferSessionResponse" /= > > > > > > > > > > > > > > > > > > > > > > > > > > > > message=3D"axis2:transferDocumentRes= ponseMessage" /> > > > > > > > > > > > > > > > > > > > message=3D"axis2:openTransferSession= ResponseMessage" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > type=3D"axis2:DocumentServicePortType"> > > > > > > > style=3D"document" /> > > > > > > > > > > > style=3D"document" /> > > > > > > > > > > > namespace=3D"http://comchann= el.comserver.edocbox.nepatec.de" /> > > > > > > > > > > > > > > > namespace=3D"http://comchann= el.comserver.edocbox.nepatec.de" /> > > > > > > > > > > > > > > > > > > > style=3D"document" /> > > > > > > > > > > > namespace=3D"http://comchann= el.comserver.edocbox.nepatec.de" /> > > > > > > > > > > > > > > > namespace=3D"http://comchann= el.comserver.edocbox.nepatec.de" /> > > > > > > > > > > > > > > > > > > > style=3D"document" /> > > > > > > > > > > > namespace=3D"http://comchann= el.comserver.edocbox.nepatec.de" /> > > > > > > > > > > > > > > > > > > > type=3D"axis2:DocumentServicePortType"> > > > > > > > style=3D"document" /> > > > > > > > > > > > style=3D"document" /> > > > > > > > > > > > namespace=3D"http://comchann= el.comserver.edocbox.nepatec.de" /> > > > > > > > > > > > > > > > namespace=3D"http://comchann= el.comserver.edocbox.nepatec.de" /> > > > > > > > > > > > > > > > > > > > style=3D"document" /> > > > > > > > > > > > namespace=3D"http://comchann= el.comserver.edocbox.nepatec.de" /> > > > > > > > > > > > > > > > namespace=3D"http://comchann= el.comserver.edocbox.nepatec.de" /> > > > > > > > > > > > > > > > > > > > style=3D"document" /> > > > > > > > > > > > namespace=3D"http://comchann= el.comserver.edocbox.nepatec.de" /> > > > > > > > > > > > > > > > > > > > > > > > binding=3D"axis2:DocumentServiceSOAP11Bindin= g"> > > > > > > > location=3D"http://localhost:8080/ax= is2/services/DocumentService" /> > > > > > > > > > > > binding=3D"axis2:DocumentServiceSOAP12Bindin= g"> > > > > > > > location=3D"http://localhost:8080/ax= is2/services/DocumentService" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > And the Stacktrace, thrown on calling the transferDocument() Metho= d: > > > > > > > > > > > > org.apache.axis2.AxisFault: java.lang.ArrayIndexOutOfBoundsExcepti= on > > > > at org.apache.axis2.description.OutInAxisOperationClient.s= end(OutInAxisOperation.java:271) > > > > at org.apache.axis2.description.OutInAxisOperationClient.e= xecute(OutInAxisOperation.java:202) > > > > at de.nepatec.edocbox.comserver.client.DocumentServiceStub= .transferDocument(DocumentServiceStub.java:166) > > > > at de.nepatec.edocbox.comserver.client.Client.doRun(Client= .java:60) > > > > at de.nepatec.edocbox.comserver.client.Client.main(Client.= java:72) > > > > Caused by: java.lang.Exception: org.apache.axis2.AxisFault: java.l= ang.ArrayIndexOutOfBoundsException; nested exception is: > > > > java.lang.RuntimeException: java.lang.ArrayIndexOutOfBound= sException > > > > at org.apache.axis2.AxisFault.makeFault(AxisFault.java:321= ) > > > > at de.nepatec.edocbox.comserver.comchannel.DocumentService= MessageReceiverInOut.invokeBusinessLogic(DocumentServiceMessageReceiverInO= ut.java:86) > > > > at org.apache.axis2.receivers.AbstractInOutSyncMessageRece= iver.receive(AbstractInOutSyncMessageReceiver.java:39) > > > > at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.j= ava:497) > > > > at org.apache.axis2.transport.http.HTTPTransportUtils.proc= essHTTPPostRequest(HTTPTransportUtils.java:328) > > > > at org.apache.axis2.transport.http.AxisServlet.doPost(Axis= Servlet.java:254) > > > > at javax.servlet.http.HttpServlet.service(HttpServlet.java= :615) > > > > at javax.servlet.http.HttpServlet.service(HttpServlet.java= :688) > > > > at org.apache.catalina.core.ApplicationFilterChain.interna= lDoFilter(ApplicationFilterChain.java:252) > > > > at org.apache.catalina.core.ApplicationFilterChain.doFilte= r(ApplicationFilterChain.java:173) > > > > at org.apache.catalina.core.StandardWrapperValve.invoke(St= andardWrapperValve.java:213) > > > > at org.apache.catalina.core.StandardContextValve.invoke(St= andardContextValve.java:178) > > > > at org.apache.geronimo.tomcat.valve.DefaultSubjectValve.in= voke(DefaultSubjectValve.java:56) > > > > at org.apache.geronimo.tomcat.GeronimoStandardContext$Syst= emMethodValve.invoke(GeronimoStandardContext.java:342) > > > > at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterVal= ve.invoke(GeronimoBeforeAfterValve.java:31) > > > > at org.apache.catalina.core.StandardHostValve.invoke(Stand= ardHostValve.java:126) > > > > at org.apache.catalina.valves.ErrorReportValve.invoke(Erro= rReportValve.java:105) > > > > at org.apache.catalina.core.StandardEngineValve.invoke(Sta= ndardEngineValve.java:107) > > > > at org.apache.catalina.valves.AccessLogValve.invoke(Access= LogValve.java:541) > > > > at org.apache.catalina.connector.CoyoteAdapter.service(Coy= oteAdapter.java:148) > > > > at org.apache.coyote.http11.Http11Processor.process(Http11= Processor.java:869) > > > > at org.apache.coyote.http11.Http11BaseProtocol$Http11Conne= ctionHandler.processConnection(Http11BaseProtocol.java:667) > > > > at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocke= t(PoolTcpEndpoint.java:527) > > > > at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.r= unIt(LeaderFollowerWorkerThread.java:80) > > > > at org.apache.tomcat.util.threads.ThreadPool$ControlRunnab= le.run(ThreadPool.java:684) > > > > at java.lang.Thread.run(Thread.java:595) > > > > Caused by: java.lang.RuntimeException: java.lang.ArrayIndexOutOfBo= undsException > > > > at de.nepatec.edocbox.comserver.comchannel.DocumentService= MessageReceiverInOut.fromOM(DocumentServiceMessageReceiverInOut.java:187) > > > > at de.nepatec.edocbox.comserver.comchannel.DocumentService= MessageReceiverInOut.invokeBusinessLogic(DocumentServiceMessageReceiverInO= ut.java:47) > > > > ... 24 more > > > > Caused by: java.lang.ArrayIndexOutOfBoundsException > > > > at java.lang.System.arraycopy(Native Method) > > > > at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChun= k.java:413) > > > > at org.apache.catalina.connector.InputBuffer.read(InputBuf= fer.java:298) > > > > at org.apache.catalina.connector.CoyoteInputStream.read(Co= yoteInputStream.java:192) > > > > at java.io.BufferedInputStream.fill(BufferedInputStream.ja= va:218) > > > > at java.io.BufferedInputStream.read(BufferedInputStream.ja= va:235) > > > > at java.io.FilterInputStream.read(FilterInputStream.java:6= 6) > > > > at java.io.PushbackInputStream.read(PushbackInputStream.ja= va:120) > > > > at org.apache.axiom.attachments.MIMEBodyPartInputStream.re= ad(MIMEBodyPartInputStream.java:49) > > > > at java.io.InputStream.read(InputStream.java:164) > > > > at javax.mail.internet.MimeBodyPart.(MimeBodyPart.ja= va:77) > > > > at org.apache.axiom.attachments.PartOnMemory.(PartOn= Memory.java:31) > > > > at org.apache.axiom.attachments.Attachments.getPart(Attach= ments.java:493) > > > > at org.apache.axiom.attachments.Attachments.getNextPartDat= aHandler(Attachments.java:397) > > > > at org.apache.axiom.attachments.Attachments.getDataHandler= (Attachments.java:240) > > > > at org.apache.axiom.soap.impl.builder.MTOMStAXSOAPModelBui= lder.getDataHandler(MTOMStAXSOAPModelBuilder.java:105) > > > > at org.w3.www.=5F2005.=5F05.xmlmime.Base64Binary$Factory.parse= (Base64Binary.java:347) > > > > at de.nepatec.edocbox.comserver.comchannel.xsd.TransferDoc= ument$Factory.parse(TransferDocument.java:471) > > > > at de.nepatec.edocbox.comserver.comchannel.DocumentService= MessageReceiverInOut.fromOM(DocumentServiceMessageReceiverInOut.java:160) > > > > ... 25 more > > > > > > > > at org.apache.axis2.AxisFault.(AxisFault.java:159) > > > > ... 5 more > > > > Exception in thread "main" > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F > > > > Erweitern Sie FreeMail zu einem noch leistungsst=E4rkeren E-Mail-Pos= tfach! > > > > Mehr Infos unter http://freemail.web.de/home/landingpad/=3Fmc=3D021131= > > > > > > > > > > > > ------------------------------------------------------------------= --- > > > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > > > > For additional commands, e-mail: axis-user-help@ws.apache.org > > > > > > > > > > > > > > > > > -- > > > Thilina Gunarathne - http://www.wso2.com - http://thilinag.blogspo= t.com > > > > > > --------------------------------------------------------------------= - > > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > > > For additional commands, e-mail: axis-user-help@ws.apache.org > > > > > > > > > > > > =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F > > Erweitern Sie FreeMail zu einem noch leistungsst=E4rkeren E-Mail-Postfac= h! > > Mehr Infos unter http://freemail.web.de/home/landingpad/=3Fmc=3D021131 > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > > For additional commands, e-mail: axis-user-help@ws.apache.org > > > > >=20 >=20 > --=20 > Thilina Gunarathne - http://www.wso2.com - http://thilinag.blogspot.co= m >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > For additional commands, e-mail: axis-user-help@ws.apache.org >=20 >=20 =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F Viren-Scan f=FCr Ihren PC! Jetzt f=FCr jeden. Sofort, online und kostenlos. Gleich testen! http://www.pc-sicherheit.web.de/freescan/=3Fmc=3D022222 --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org