how to read a XSD using AXIOM to create the request XML
is there any way in axis2 (AXIOM API) where i can read a template XSD (xml schma definition) and fill in the data to create a request XML to be send to the server? i am new to the axis2 /webservice implementation. regards, Sush
Re: Unexpected character '-' (code 45) in prolog; expected '<'
Guys i found out the issue. the problem was while sending the request i was enabling the REST which produce this error options.setProperty(Constants.Configuration.ENABLE_REST, Constants.VALUE_TRUE); i commented this and everything worked fine. regards, Sushil On Tue, Aug 12, 2008 at 6:20 PM, Thilina Gunarathne <[EMAIL PROTECTED]>wrote: > Please follow the http://ws.apache.org/commons/tcpmon/tcpmontutorial.html > > It can capture the message even though it does not reach to your service > implementation... > thanks, > Thilina > > > On Tue, Aug 12, 2008 at 4:16 PM, Sushil Dodake <[EMAIL PROTECTED]>wrote: > >> Although its getting in to the server side i didnt reach the service >> class. >> and i am not able to understand the type of exception. >> how can i get my sevrvice running? >> On Tue, Aug 12, 2008 at 6:13 PM, Thilina Gunarathne <[EMAIL >> PROTECTED]>wrote: >> >>> You can use tcpmon (http://ws.apache.org/commons/tcpmon) to capture the >>> messages. >>> >>> It's not dieing between...You get an Exception in the server side and >>> it's sent back to the client side as a AxisFault.. That means your request >>> actually reached the server.. >>> >>> thanks, >>> Thilina >>> >>> ps: Please post messages to Axis-dev... Also no need to specifically cc >>> as I'm on the list.. >>> >>> On Tue, Aug 12, 2008 at 3:37 PM, Sushil Dodake <[EMAIL PROTECTED]>wrote: >>> >>>> on the server side iam getting this exception stack trace only while >>>> on client side it says axis make fault. >>>> the control is uanable to reach to my service class. its dieing in >>>> between. >>>> did you get my source code? >>>> i am trying to run it on Tomcat6 , Java 6 env. >>>> >>>> regards, >>>> >>>> Sushil >>>> >>>> >>>> On Tue, Aug 12, 2008 at 5:33 PM, Thilina Gunarathne <[EMAIL >>>> PROTECTED]>wrote: >>>> >>>>> Can u please capture and post a message stacktrace... >>>>> >>>>> ~Thilina >>>>> >>>>> >>>>> On Tue, Aug 12, 2008 at 2:59 PM, Sushil Dodake < >>>>> [EMAIL PROTECTED]> wrote: >>>>> >>>>>> Guys, >>>>>> >>>>>> i am attaching the code and the client. >>>>>> the service IMPL file is ReportServiceImpl >>>>>> and the client to test is ServiceTestClient >>>>>> Please help me .. i cant figure out the issue. >>>>>> its very urgent. >>>>>> >>>>>> On Mon, Aug 11, 2008 at 9:57 PM, Sushil Dodake < >>>>>> [EMAIL PROTECTED]> wrote: >>>>>> >>>>>>> I am using java 6 and Tomcat 6 for running this service >>>>>>> >>>>>>> >>>>>>> On Mon, Aug 11, 2008 at 9:50 PM, Sushil Dodake < >>>>>>> [EMAIL PROTECTED]> wrote: >>>>>>> >>>>>>>> HI all, >>>>>>>> >>>>>>>> i am trying to use MTOM for sending a XLS file. >>>>>>>> when i call a service with the required input message XML i am >>>>>>>> getting following exeception. >>>>>>>> i have made necessary changes for enabling MTOM on client side and >>>>>>>> also in the the services.xml also i have enabled the MTOM param in the >>>>>>>> axis2.xml >>>>>>>> i am using axis 1.3 version. >>>>>>>> can sombody respond whats wrong here. >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> 2008-08-11 17:04:49,715 DEBUG org.apache.axis2.builder.BuilderUtil - >>>>>>>> Input contentType (application/xml; charset=UTF-8) >>>>>>>> >>>>>>>> 2008-08-11 17:04:49,715 DEBUG org.apache.axis2.builder.BuilderUtil - >>>>>>>> CharSetEncoding from content-type (UTF-8) >>>>>>>> >>>>>>>> 2008-08-11 17:04:49,715 DEBUG >>>>>>>> org.apache.axis2.dispatchers.RequestURIBasedServiceDispatcher - >>>>>>>> [MessageContext: logID=urn:uuid:C4939039599A80B7421218492289781] >>>>>>>> Checking >>>>>>&
Re: Unexpected character '-' (code 45) in prolog; expected '<'
Although its getting in to the server side i didnt reach the service class. and i am not able to understand the type of exception. how can i get my sevrvice running? On Tue, Aug 12, 2008 at 6:13 PM, Thilina Gunarathne <[EMAIL PROTECTED]>wrote: > You can use tcpmon (http://ws.apache.org/commons/tcpmon) to capture the > messages. > > It's not dieing between...You get an Exception in the server side and it's > sent back to the client side as a AxisFault.. That means your request > actually reached the server.. > > thanks, > Thilina > > ps: Please post messages to Axis-dev... Also no need to specifically cc as > I'm on the list.. > > On Tue, Aug 12, 2008 at 3:37 PM, Sushil Dodake <[EMAIL PROTECTED]>wrote: > >> on the server side iam getting this exception stack trace only while on >> client side it says axis make fault. >> the control is uanable to reach to my service class. its dieing in >> between. >> did you get my source code? >> i am trying to run it on Tomcat6 , Java 6 env. >> >> regards, >> >> Sushil >> >> >> On Tue, Aug 12, 2008 at 5:33 PM, Thilina Gunarathne <[EMAIL PROTECTED]>wrote: >> >>> Can u please capture and post a message stacktrace... >>> >>> ~Thilina >>> >>> >>> On Tue, Aug 12, 2008 at 2:59 PM, Sushil Dodake <[EMAIL PROTECTED]>wrote: >>> >>>> Guys, >>>> >>>> i am attaching the code and the client. >>>> the service IMPL file is ReportServiceImpl >>>> and the client to test is ServiceTestClient >>>> Please help me .. i cant figure out the issue. >>>> its very urgent. >>>> >>>> On Mon, Aug 11, 2008 at 9:57 PM, Sushil Dodake < >>>> [EMAIL PROTECTED]> wrote: >>>> >>>>> I am using java 6 and Tomcat 6 for running this service >>>>> >>>>> >>>>> On Mon, Aug 11, 2008 at 9:50 PM, Sushil Dodake < >>>>> [EMAIL PROTECTED]> wrote: >>>>> >>>>>> HI all, >>>>>> >>>>>> i am trying to use MTOM for sending a XLS file. >>>>>> when i call a service with the required input message XML i am getting >>>>>> following exeception. >>>>>> i have made necessary changes for enabling MTOM on client side and >>>>>> also in the the services.xml also i have enabled the MTOM param in the >>>>>> axis2.xml >>>>>> i am using axis 1.3 version. >>>>>> can sombody respond whats wrong here. >>>>>> >>>>>> >>>>>> >>>>>> 2008-08-11 17:04:49,715 DEBUG org.apache.axis2.builder.BuilderUtil - >>>>>> Input contentType (application/xml; charset=UTF-8) >>>>>> >>>>>> 2008-08-11 17:04:49,715 DEBUG org.apache.axis2.builder.BuilderUtil - >>>>>> CharSetEncoding from content-type (UTF-8) >>>>>> >>>>>> 2008-08-11 17:04:49,715 DEBUG >>>>>> org.apache.axis2.dispatchers.RequestURIBasedServiceDispatcher - >>>>>> [MessageContext: logID=urn:uuid:C4939039599A80B7421218492289781] Checking >>>>>> for Service using target endpoint address : >>>>>> /axis2/services/ReportService_v1_0 >>>>>> >>>>>> 2008-08-11 17:04:49,715 DEBUG org.apache.axis2.util.Utils - >>>>>> parseRequestURLForServiceAndOperation : >>>>>> [/axis2/services/ReportService_v1_0][/axis2/services] >>>>>> >>>>>> 2008-08-11 17:04:49,715 DEBUG >>>>>> org.apache.axis2.i18n.ProjectResourceBundle - >>>>>> org.apache.axis2.i18n.resource::handleGetObject(servicefound) >>>>>> >>>>>> 2008-08-11 17:04:49,715 DEBUG >>>>>> org.apache.axis2.engine.AbstractDispatcher - [MessageContext: >>>>>> logID=urn:uuid:C4939039599A80B7421218492289781] Found AxisService : >>>>>> ReportService_v1_0 >>>>>> >>>>>> 2008-08-11 17:04:49,715 DEBUG org.apache.axis2.util.Utils - >>>>>> parseRequestURLForServiceAndOperation : >>>>>> [/axis2/services/ReportService_v1_0][/axis2/services] >>>>>> >>>>>> 2008-08-11 17:04:49,715 DEBUG >>>>>> org.apache.axis2.dispatchers.RequestURIBasedOperationDispatcher - >>>>>> [MessageContext: logID=urn:uuid:C4939039599A80B7421218492289781] >&
Re: Unexpected character '-' (code 45) in prolog; expected '<'
I am using java 6 and Tomcat 6 for running this service On Mon, Aug 11, 2008 at 9:50 PM, Sushil Dodake <[EMAIL PROTECTED]>wrote: > HI all, > > i am trying to use MTOM for sending a XLS file. > when i call a service with the required input message XML i am getting > following exeception. > i have made necessary changes for enabling MTOM on client side and also in > the the services.xml also i have enabled the MTOM param in the axis2.xml > i am using axis 1.3 version. > can sombody respond whats wrong here. > > > > 2008-08-11 17:04:49,715 DEBUG org.apache.axis2.builder.BuilderUtil - Input > contentType (application/xml; charset=UTF-8) > > 2008-08-11 17:04:49,715 DEBUG org.apache.axis2.builder.BuilderUtil - > CharSetEncoding from content-type (UTF-8) > > 2008-08-11 17:04:49,715 DEBUG > org.apache.axis2.dispatchers.RequestURIBasedServiceDispatcher - > [MessageContext: logID=urn:uuid:C4939039599A80B7421218492289781] Checking > for Service using target endpoint address : > /axis2/services/ReportService_v1_0 > > 2008-08-11 17:04:49,715 DEBUG org.apache.axis2.util.Utils - > parseRequestURLForServiceAndOperation : > [/axis2/services/ReportService_v1_0][/axis2/services] > > 2008-08-11 17:04:49,715 DEBUG org.apache.axis2.i18n.ProjectResourceBundle - > org.apache.axis2.i18n.resource::handleGetObject(servicefound) > > 2008-08-11 17:04:49,715 DEBUG org.apache.axis2.engine.AbstractDispatcher - > [MessageContext: logID=urn:uuid:C4939039599A80B7421218492289781] Found > AxisService : ReportService_v1_0 > > 2008-08-11 17:04:49,715 DEBUG org.apache.axis2.util.Utils - > parseRequestURLForServiceAndOperation : > [/axis2/services/ReportService_v1_0][/axis2/services] > > 2008-08-11 17:04:49,715 DEBUG > org.apache.axis2.dispatchers.RequestURIBasedOperationDispatcher - > [MessageContext: logID=urn:uuid:C4939039599A80B7421218492289781] Attempted > to check for Operation using target endpoint URI, but the operation fragment > was missing > > 2008-08-11 17:04:49,715 DEBUG org.apache.axis2.transport.TransportUtils - > createSOAPEnvelope using Builder (class > org.apache.axis2.builder.ApplicationXMLBuilder) selected from type > (application/xml) > > 2008-08-11 17:04:49,809 DEBUG org.apache.axiom.om.util.StAXUtils - > XMLStreamReader is com.ctc.wstx.sr.ValidatingStreamReader > > Aug 11, 2008 5:04:49 PM org.apache.catalina.core.StandardWrapperValve > invoke > > SEVERE: Servlet.service() for servlet AxisServlet threw exception > > *org.apache.axiom.om.OMException*: * > com.ctc.wstx.exc.WstxUnexpectedCharException*: Unexpected character '-' > (code 45) in prolog; expected '<' > > at [row,col {unknown-source}]: [1,1] > > at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(* > StAXOMBuilder.java:239*) > > at org.apache.axiom.om.impl.llom.OMDocumentImpl.getOMDocumentElement( > *OMDocumentImpl.java:130*) > > at org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement( > *StAXOMBuilder.java:359*) > > at org.apache.axis2.builder.ApplicationXMLBuilder.processDocument(* > ApplicationXMLBuilder.java:61*) > > at org.apache.axis2.transport.TransportUtils.createDocumentElement(* > TransportUtils.java:160*) > > at org.apache.axis2.transport.TransportUtils.createSOAPMessage(* > TransportUtils.java:111*) > > at org.apache.axis2.transport.http.util.RESTUtil.processXMLRequest(* > RESTUtil.java:60*) > > at > org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processXMLRequest( > *AxisServlet.java:788*) > > at org.apache.axis2.transport.http.AxisServlet.doPost(* > AxisServlet.java:193*) > > at javax.servlet.http.HttpServlet.service(*HttpServlet.java:710*) > > at javax.servlet.http.HttpServlet.service(*HttpServlet.java:803*) > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( > *ApplicationFilterChain.java:290*) > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(* > ApplicationFilterChain.java:206*) > > at org.apache.catalina.core.StandardWrapperValve.invoke(* > StandardWrapperValve.java:233*) > > at org.apache.catalina.core.StandardContextValve.invoke(* > StandardContextValve.java:175*) > > at org.apache.catalina.core.StandardHostValve.invoke(* > StandardHostValve.java:128*) > > at org.apache.catalina.valves.ErrorReportValve.invoke(* > ErrorReportValve.java:102*) > > at org.apache.catalina.core.StandardEngineValve.invoke(* > StandardEngineValve.java:109*) > > at org.apache.catalina.connector.CoyoteAdapter.service(* > CoyoteAdapter.java:286*) > > at org.apache.coyote.http11.Http11Processor.pr
Unexpected character '-' (code 45) in prolog; expected '<'
HI all, i am trying to use MTOM for sending a XLS file. when i call a service with the required input message XML i am getting following exeception. i have made necessary changes for enabling MTOM on client side and also in the the services.xml also i have enabled the MTOM param in the axis2.xml i am using axis 1.3 version. can sombody respond whats wrong here. 2008-08-11 17:04:49,715 DEBUG org.apache.axis2.builder.BuilderUtil - Input contentType (application/xml; charset=UTF-8) 2008-08-11 17:04:49,715 DEBUG org.apache.axis2.builder.BuilderUtil - CharSetEncoding from content-type (UTF-8) 2008-08-11 17:04:49,715 DEBUG org.apache.axis2.dispatchers.RequestURIBasedServiceDispatcher - [MessageContext: logID=urn:uuid:C4939039599A80B7421218492289781] Checking for Service using target endpoint address : /axis2/services/ReportService_v1_0 2008-08-11 17:04:49,715 DEBUG org.apache.axis2.util.Utils - parseRequestURLForServiceAndOperation : [/axis2/services/ReportService_v1_0][/axis2/services] 2008-08-11 17:04:49,715 DEBUG org.apache.axis2.i18n.ProjectResourceBundle - org.apache.axis2.i18n.resource::handleGetObject(servicefound) 2008-08-11 17:04:49,715 DEBUG org.apache.axis2.engine.AbstractDispatcher - [MessageContext: logID=urn:uuid:C4939039599A80B7421218492289781] Found AxisService : ReportService_v1_0 2008-08-11 17:04:49,715 DEBUG org.apache.axis2.util.Utils - parseRequestURLForServiceAndOperation : [/axis2/services/ReportService_v1_0][/axis2/services] 2008-08-11 17:04:49,715 DEBUG org.apache.axis2.dispatchers.RequestURIBasedOperationDispatcher - [MessageContext: logID=urn:uuid:C4939039599A80B7421218492289781] Attempted to check for Operation using target endpoint URI, but the operation fragment was missing 2008-08-11 17:04:49,715 DEBUG org.apache.axis2.transport.TransportUtils - createSOAPEnvelope using Builder (class org.apache.axis2.builder.ApplicationXMLBuilder) selected from type (application/xml) 2008-08-11 17:04:49,809 DEBUG org.apache.axiom.om.util.StAXUtils - XMLStreamReader is com.ctc.wstx.sr.ValidatingStreamReader Aug 11, 2008 5:04:49 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet AxisServlet threw exception *org.apache.axiom.om.OMException*: * com.ctc.wstx.exc.WstxUnexpectedCharException*: Unexpected character '-' (code 45) in prolog; expected '<' at [row,col {unknown-source}]: [1,1] at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(* StAXOMBuilder.java:239*) at org.apache.axiom.om.impl.llom.OMDocumentImpl.getOMDocumentElement(* OMDocumentImpl.java:130*) at org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(* StAXOMBuilder.java:359*) at org.apache.axis2.builder.ApplicationXMLBuilder.processDocument(* ApplicationXMLBuilder.java:61*) at org.apache.axis2.transport.TransportUtils.createDocumentElement(* TransportUtils.java:160*) at org.apache.axis2.transport.TransportUtils.createSOAPMessage(* TransportUtils.java:111*) at org.apache.axis2.transport.http.util.RESTUtil.processXMLRequest(* RESTUtil.java:60*) at org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processXMLRequest( *AxisServlet.java:788*) at org.apache.axis2.transport.http.AxisServlet.doPost(* AxisServlet.java:193*) at javax.servlet.http.HttpServlet.service(*HttpServlet.java:710*) at javax.servlet.http.HttpServlet.service(*HttpServlet.java:803*) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(* ApplicationFilterChain.java:290*) at org.apache.catalina.core.ApplicationFilterChain.doFilter(* ApplicationFilterChain.java:206*) at org.apache.catalina.core.StandardWrapperValve.invoke(* StandardWrapperValve.java:233*) at org.apache.catalina.core.StandardContextValve.invoke(* StandardContextValve.java:175*) at org.apache.catalina.core.StandardHostValve.invoke(* StandardHostValve.java:128*) at org.apache.catalina.valves.ErrorReportValve.invoke(* ErrorReportValve.java:102*) at org.apache.catalina.core.StandardEngineValve.invoke(* StandardEngineValve.java:109*) at org.apache.catalina.connector.CoyoteAdapter.service(* CoyoteAdapter.java:286*) at org.apache.coyote.http11.Http11Processor.process(* Http11Processor.java:844*) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(* Http11Protocol.java:583*) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(* JIoEndpoint.java:447*) at java.lang.Thread.run(*Thread.java:619*) Caused by: *com.ctc.wstx.exc.WstxUnexpectedCharException*: Unexpected character '-' (code 45) in prolog; expected '<' at [row,col {unknown-source}]: [1,1] at com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(* StreamScanner.java:623*) at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(* BasicStreamReader.java:2047*) at com.ctc.wstx.sr.BasicStreamReader.next(*BasicStreamReader.java:1069 *) at org.apache.axiom.om.impl.
Re: Socket time out exception
MIchele, my tomcat already hav the connection time out value bery high any other guess? reagrss, Sush On Fri, Jul 11, 2008 at 4:23 AM, Michele Mazzucco < [EMAIL PROTECTED]> wrote: > It looks like a problem with tomcat. Open $CATALINA_HOME/conf/server.xml > and try to change the value for "connectionTimeout" for the Connector you're > using. > > Michele > > > > p.s. E-mails like this one should be sent to axis-user, not axis-dev. > > > > On 10 Jul 2008, at 19:31, Sushil Dodake wrote: > > HI all, >> i am getting this socket time out error while unmarshalling the XML. >> i am not able to get figure out the reason. >> could it be because of the memory issue? >> can anybody help here? >> >> 2008-07-09 01:01:40,362 [http-8082-34] ERROR >> com.XXX.service.rebate.RebateServiceImpl - There was an error when >> unmarshalling request XML >> org.apache.axiom.om.OMException: java.lang.RuntimeException: [was class >> java.net.SocketTimeoutException] Read timed out >> at >> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:239) >> at >> org.apache.axiom.om.impl.llom.OMElementImpl.getNextOMSibling(OMElementImpl.java:265) >> at >> org.apache.axiom.om.impl.traverse.OMChildElementIterator.next(OMChildElementIterator.java:104) >> at >> com.XXX.service.rebate.RebateServiceImpl.extractInvoices(RebateServiceImpl.java:163) >> at >> com.XXX.service.rebate.RebateServiceImpl.generateRebates(RebateServiceImpl.java:74) >> at sun.reflect.GeneratedMethodAccessor920.invoke(Unknown Source) >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:597) >> at >> org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLogic(RawXMLINOutMessageReceiver.java:97) >> at >> org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusinessLogic(AbstractInOutSyncMessageReceiver.java:42) >> at >> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:96) >> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145) >> at >> org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:125) >> at >> org.apache.axis2.transport.http.util.RESTUtil.processXMLRequest(RESTUtil.java:78) >> at >> org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processXMLRequest(AxisServlet.java:788) >> at >> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:193) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) >> at >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) >> at >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> at >> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) >> at >> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) >> at >> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) >> at >> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) >> at >> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) >> at >> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) >> at >> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) >> at >> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) >> at >> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) >> at java.lang.Thread.run(Thread.java:619) >> Caused by: java.lang.RuntimeException: [was class >> java.net.SocketTimeoutException] Read timed out >> at >> com.ctc.wstx.util.ExceptionUtil.throwRuntimeException(ExceptionUtil.java:18) >> at com.ctc.wstx.sr.StreamScanner.throwLazyError(StreamScanner.java:706) >> at >> com.ctc.wstx.sr.BasicStreamReader.safeFinishToken(BasicStreamReader.java:3655) >> at com.ctc.wstx.sr.BasicStreamReader.getText(BasicStreamReader.java:809) >> at >> org.apache.axiom.om.impl.builder.StAXBuilder.createOMText(StAXBuilder.java:245) >> at >> org.apache.axiom.om.impl.builder.StAXBuilder.createOMText(StAXBuilder.java:216) >> at >> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:179) >> ... 29 more >> Caused by: java.net.SocketTimeoutException: Re
Socket time out exception
HI all, i am getting this socket time out error while unmarshalling the XML. i am not able to get figure out the reason. could it be because of the memory issue? can anybody help here? 2008-07-09 01:01:40,362 [http-8082-34] ERROR com.XXX.service.rebate.RebateServiceImpl - There was an error when unmarshalling request XML org.apache.axiom.om.OMException: java.lang.RuntimeException: [was class java.net.SocketTimeoutException] Read timed out at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:239) at org.apache.axiom.om.impl.llom.OMElementImpl.getNextOMSibling(OMElementImpl.java:265) at org.apache.axiom.om.impl.traverse.OMChildElementIterator.next(OMChildElementIterator.java:104) at com.XXX.service.rebate.RebateServiceImpl.extractInvoices(RebateServiceImpl.java:163) at com.XXX.service.rebate.RebateServiceImpl.generateRebates(RebateServiceImpl.java:74) at sun.reflect.GeneratedMethodAccessor920.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLogic(RawXMLINOutMessageReceiver.java:97) at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusinessLogic(AbstractInOutSyncMessageReceiver.java:42) at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:96) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145) at org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:125) at org.apache.axis2.transport.http.util.RESTUtil.processXMLRequest(RESTUtil.java:78) at org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processXMLRequest(AxisServlet.java:788) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:193) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.RuntimeException: [was class java.net.SocketTimeoutException] Read timed out at com.ctc.wstx.util.ExceptionUtil.throwRuntimeException(ExceptionUtil.java:18) at com.ctc.wstx.sr.StreamScanner.throwLazyError(StreamScanner.java:706) at com.ctc.wstx.sr.BasicStreamReader.safeFinishToken(BasicStreamReader.java:3655) at com.ctc.wstx.sr.BasicStreamReader.getText(BasicStreamReader.java:809) at org.apache.axiom.om.impl.builder.StAXBuilder.createOMText(StAXBuilder.java:245) at org.apache.axiom.om.impl.builder.StAXBuilder.createOMText(StAXBuilder.java:216) at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:179) ... 29 more Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:129) at org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:716) at org.apache.coyote.http11.InternalInputBuffer$InputStreamInputBuffer.doRead(InternalInputBuffer.java:746) at org.apache.coyote.http11.filters.ChunkedInputFilter.readBytes(ChunkedInputFilter.java:243) at org.apache.coyote.http11.filters.ChunkedInputFilter.parseCRLF(ChunkedInputFilter.java:326) at org.apache.coyote.http11.filters.ChunkedInputFilter.doRead(ChunkedInputFilter.java:128) at org.apache.coyote.http11.InternalInputBuffer.doRead(InternalInputBuffer.java:675) at org.apache.coyote.Request.doRead(Request.java:428) at org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:298) at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:405) at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:313) at org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:193) at java.io.FilterInputStream.read(FilterInputStream.java:116) at java.io.PushbackInputStream.read(PushbackInputStream.java:169) at java.io.FilterInputStream.read(FilterInputStream.java:90) at com.ctc.wstx.io.UTF8Reader.loadMor
AXIS2 : IllegalArgumentException
Guys, i am getting folowing java.lang.IllegalArgumentException: The MessageContext does not have an associated SOAPFault fault which does not give any information of the source or the reason of the fault. can this be a memory issue? or a time out? i am totally confused what could be the reason as this error in not predictable and cannot be reproduce also it appears once in a while. in my axis2.xml i have already set the following parameters true true any help on this will be appreciated. 2008-07-10 01:08:17,452 [http-8082-34] ERROR com.XXX.service.rebate.RebateServiceImpl - Error occured while sending rebates to rebate payment service java.lang.IllegalArgumentException: The MessageContext does not have an associated SOAPFault. at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:478) at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:343) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:389) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508) at com.XXX.service.rebate.dao.RebatePaymentDaoImpl.storePayments(RebatePaymentDaoImpl.java:120) at com.XXX.service.rebate.RebateServiceImpl.generateRebates(RebateServiceImpl.java:92) at sun.reflect.GeneratedMethodAccessor920.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLogic(RawXMLINOutMessageReceiver.java:97) at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusinessLogic(AbstractInOutSyncMessageReceiver.java:42) at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:96) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145) at org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:125) at org.apache.axis2.transport.http.util.RESTUtil.processXMLRequest(RESTUtil.java:78) at org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processXMLRequest(AxisServlet.java:788) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:193) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619)
Re: Axis2 : ClientAbortException: java.net.SocketException
My client application is built using Spring + java services Wrapper which is deployed in JAVA6 env.( http://wrapper.tanukisoftware.org/doc/english/integrate-simple-win.html) the client application is a batch controller application. the java wrapper calls the controller class which in turn calls a Axis 1.3 service A deployed on some other machin. after getting the response XML from service A to the batch controller it gives call to service B deployed with service A in tomcat 6 in java 6 env. in the Tomcat 6 container there are 4 more services along with A and B. the B service is a central service which inturns gives call to remaining 4 services and then returns to batch controller. but once B completes process it just returns null to Batch controller. then the batch contoller updates DB tables to update the status of the process. If all the services and the batch controller are deployed on same machine then it does not cause any problem. but over the network it gives follwing error. On Mon, May 12, 2008 at 5:55 AM, Michele Mazzucco < [EMAIL PROTECTED]> wrote: > Can you post more information about your configuration (both server and > client)? > > > Thanks, > Michele > > > > On 9 May 2008, at 19:45, Sushil Dodake wrote: > > Hi all, > > i have 6 Axis2 1.3 services deployed in a Tomcat 6 continer and on JAVA > > 6 env. > > out of the 6 services 1 is a central controller which calls other 5 > > services for diffrent data. > > there is one application which is deployed on some other machin which > > calls central controller service and one more service in the container. > > the data which flows across the services and the independent application > > is big XMLs > > it seems that if the application is running continously for 2-4 hrs... > > after 2 hrs roughly.. it thows an exception. > > the scenario is not reproducible every time (lets say for same data so > > definately its not a data issue.) > > I am really confused. > > any thoughts on this? > > > > org.apache.axis2.AxisFault > > at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417) > > at > > org.apache.axis2.transport.http.ApplicationXMLFormatter.writeTo(ApplicationXMLFormatter.java:116) > > at > > org.apache.axis2.transport.http.CommonsHTTPTransportSender.sendUsingOutputStream(CommonsHTTPTransportSender.java:294) > > at > > org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:211) > > at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396) > > at > > org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusinessLogic(AbstractInOutSyncMessageReceiver.java:45) > > at > > org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:96) > > at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145) > > at > > org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:125) > > at > > org.apache.axis2.transport.http.util.RESTUtil.processXMLRequest(RESTUtil.java:78) > > at > > org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processXMLRequest(AxisServlet.java:788) > > at > > org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:193) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > > at > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) > > at > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > > at > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) > > at > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) > > at > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) > > at > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > > at > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > > at > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) > > at > > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) > > at > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) > > at > > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) > > at java.lang.Thread.run(Thread.java:619) > > Caused by: com.ctc.wstx.exc.WstxIOException: null > > at > > com.ctc.wstx.sw.BaseStreamWriter.writeC
Axis2 : ClientAbortException: java.net.SocketException
Hi all, i have 6 Axis2 1.3 services deployed in a Tomcat 6 continer and on JAVA 6 env. out of the 6 services 1 is a central controller which calls other 5 services for diffrent data. there is one application which is deployed on some other machin which calls central controller service and one more service in the container. the data which flows across the services and the independent application is big XMLs it seems that if the application is running continously for 2-4 hrs... after 2 hrs roughly.. it thows an exception. the scenario is not reproducible every time (lets say for same data so definately its not a data issue.) I am really confused. any thoughts on this? org.apache.axis2.AxisFault at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417) at org.apache.axis2.transport.http.ApplicationXMLFormatter.writeTo(ApplicationXMLFormatter.java:116) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.sendUsingOutputStream(CommonsHTTPTransportSender.java:294) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:211) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396) at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusinessLogic(AbstractInOutSyncMessageReceiver.java:45) at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:96) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145) at org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:125) at org.apache.axis2.transport.http.util.RESTUtil.processXMLRequest(RESTUtil.java:78) at org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processXMLRequest(AxisServlet.java:788) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:193) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) Caused by: com.ctc.wstx.exc.WstxIOException: null at com.ctc.wstx.sw.BaseStreamWriter.writeCharacters(BaseStreamWriter.java:511) at org.apache.axiom.om.impl.MTOMXMLStreamWriter.writeCharacters(MTOMXMLStreamWriter.java:196) at org.apache.axiom.om.impl.llom.OMTextImpl.writeOutput(OMTextImpl.java:212) at org.apache.axiom.om.impl.llom.OMTextImpl.internalSerializeLocal(OMTextImpl.java:371) at org.apache.axiom.om.impl.llom.OMTextImpl.internalSerializeAndConsume(OMTextImpl.java:365) at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:785) at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:814) at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:785) at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:814) at org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:421) at org.apache.axis2.transport.http.ApplicationXMLFormatter.writeTo(ApplicationXMLFormatter.java:114) ... 24 more Caused by: ClientAbortException: java.net.SocketException: Connection reset by peer: socket write error at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:358) at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:434) at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:349) at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:381) at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:370) at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:89) at com.ctc.wstx.io.UTF8Writer.write(UTF8Writer.java:139) at com.ctc.wstx.sw.BufferingXmlWriter.flushBuffer(BufferingXmlWriter.java:1103) at com.ctc.wstx.sw.BufferingXmlWriter.writeRaw(BufferingXmlWriter.java:229) at com.ctc.wstx.sw.BufferingXmlWriter.writeCharacters(BufferingXmlWriter.java:543) at com.ctc.wstx.sw.BaseStreamWriter.writeCharacters(BaseStreamWriter.java:509) ... 34 more Caused by: java.net.Socket
Axis2 : Socket connection reset
Hi all, I am calling a service from a client application. my webservice is on some other server which i am calling through a load balancer. i get following error and the occurance of this is quite unprdictable. The connection is reset and the strange part is it is not thrown as an exception @ client which falsely trigger other actions on my client after the service call. can somebody help me to understand this behavior and any solution for this. 2008-05-08 16:15:40,675 [DefaultQuartzScheduler_Worker-9] DEBUG org.apache.commons.httpclient.methods.EntityEnclosingMethod - Request body sent 2008-05-08 16:20:42,997 [DefaultQuartzScheduler_Worker-9] DEBUG org.apache.commons.httpclient.HttpMethodDirector - Closing the connection. 2008-05-08 16:20:43,028 [DefaultQuartzScheduler_Worker-9] DEBUG org.apache.commons.httpclient.HttpMethodDirector - Method retry handler returned false. Automatic recovery will not be attempted 2008-05-08 16:20:43,028 [DefaultQuartzScheduler_Worker-9] DEBUG org.apache.commons.httpclient.HttpConnection - Releasing connection back to connection manager. 2008-05-08 16:20:43,044 [DefaultQuartzScheduler_Worker-9] DEBUG org.apache.commons.httpclient.MultiThreadedHttpConnectionManager - Freeing connection, hostConfig=HostConfiguration[host=http://qa-webservices.XX.com] 2008-05-08 16:20:43,075 [DefaultQuartzScheduler_Worker-9] DEBUG org.apache.commons.httpclient.util.IdleConnectionHandler - Adding connection at: 1210281643075 2008-05-08 16:20:43,091 [DefaultQuartzScheduler_Worker-9] DEBUG org.apache.commons.httpclient.MultiThreadedHttpConnectionManager - Notifying no-one, there are no waiting threads 2008-05-08 16:20:43,106 [DefaultQuartzScheduler_Worker-9] INFO org.apache.axis2.transport.http.HTTPSender - Unable to sendViaPost to url[ http://qa-webservices.XX.com/axis2/services/RebateService_v1_0] java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:168) at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) at java.io.BufferedInputStream.read(BufferedInputStream.java:237) at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:77) at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:105) at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1115) at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1373) at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1832) at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1590) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:995) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346) at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:520) at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:191) at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:327) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:374) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508) at com.XX.rebateautomation.service.RebateServiceImpl.generateRebates(RebateServiceImpl.java:83) at com.XX.rebateautomation.RebateAutomationControllerImpl.generateRebates(RebateAutomationControllerImpl.java:132) 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 org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:283) at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:272) at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86) at org.quartz.core.JobRunShell.run(JobRunShell.java:195) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleTh
axis2 + large xml response unable to reach the clientside
Hi all, In my applicaton i have many web services. >From a Web service A i call service B and is a syncronous call. my service B try to get data from DB form a response XML and then send it to the service A. Because of a very large data servcie B forms the response after 4 to 6 hours but when it tries to respond back i cant even see the exception log. from the fault statement i am not able to figure out whether it is a time out exception or it is coming because the response XML is too big to handle by HTTP. so i set max time outs as below 2147483600 2147483600 as the stack trace was not trasmitted to the client side, I put the following parameters in the axis2.xml true true but even after adding these paramaters i could bnot see the error log and my guess is the size of the XML is so large that while sending it errors out and the eror is swalloed somewhere in between and it doenst reach the client. so the client do not get any response back from the serverside. on the console i can see the final logs as below the first line debug statement informs that the response is created and is ready to send it back to the client Any thoughts on this as how to work around this issue. 2008-02-12 18:12:02,511 [http-8090-Processor25] DEBUG ***.*..*.*ServiceImpl - Created respone OMElement for invoices 2008-02-12 18:12:02,605 [http-8090-Processor25] DEBUG org.apache.axis2.engine.AxisEngine - [MessageContext: logID=urn:uuid:1217458E42234155741202861522623] send:null 2008-02-12 18:12:02,636 [http-8090-Processor25] DEBUG org.apache.axis2.engine.Phase - [MessageContext: logID=urn:uuid:1217458E42234155741202861522623] Checking pre-condition for Phase "soapmonitorPhase" 2008-02-12 18:12:02,636 [http-8090-Processor25] DEBUG org.apache.axis2.engine.Phase - [MessageContext: logID=urn:uuid:1217458E42234155741202861522623] Invoking phase "soapmonitorPhase" 2008-02-12 18:12:02,636 [http-8090-Processor25] DEBUG org.apache.axis2.engine.Phase - [MessageContext: logID=urn:uuid:1217458E42234155741202861522623] Checking post-conditions for phase "soapmonitorPhase" 2008-02-12 18:12:02,636 [http-8090-Processor25] DEBUG org.apache.axis2.engine.Phase - [MessageContext: logID=urn:uuid:1217458E42234155741202861522623] Checking pre-condition for Phase "OperationOutPhase" 2008-02-12 18:12:02,636 [http-8090-Processor25] DEBUG org.apache.axis2.engine.Phase - [MessageContext: logID=urn:uuid:1217458E42234155741202861522623] Invoking phase "OperationOutPhase" 2008-02-12 18:12:02,636 [http-8090-Processor25] DEBUG org.apache.axis2.engine.Phase - [MessageContext: logID=urn:uuid:1217458E42234155741202861522623] Checking post-conditions for phase "OperationOutPhase" 2008-02-12 18:12:02,636 [http-8090-Processor25] DEBUG org.apache.axis2.engine.Phase - [MessageContext: logID=urn:uuid:1217458E42234155741202861522623] Checking pre-condition for Phase "PolicyDetermination" 2008-02-12 18:12:02,636 [http-8090-Processor25] DEBUG org.apache.axis2.engine.Phase - [MessageContext: logID=urn:uuid:1217458E42234155741202861522623] Invoking phase "PolicyDetermination" 2008-02-12 18:12:02,636 [http-8090-Processor25] DEBUG org.apache.axis2.engine.Phase - [MessageContext: logID=urn:uuid:1217458E42234155741202861522623] Checking post-conditions for phase "PolicyDetermination" 2008-02-12 18:12:02,636 [http-8090-Processor25] DEBUG org.apache.axis2.engine.Phase - [MessageContext: logID=urn:uuid:1217458E42234155741202861522623] Checking pre-condition for Phase "MessageOut" 2008-02-12 18:12:02,636 [http-8090-Processor25] DEBUG org.apache.axis2.engine.Phase - [MessageContext: logID=urn:uuid:1217458E42234155741202861522623] Invoking phase "MessageOut" 2008-02-12 18:12:02,636 [http-8090-Processor25] DEBUG org.apache.axis2.engine.Phase - [MessageContext: logID=urn:uuid:1217458E42234155741202861522623] Invoking Handler 'AddressingOutHandler' in Phase 'MessageOut' 2008-02-12 18:12:02,683 [http-8090-Processor25] DEBUG org.apache.axis2.handlers.addressing.AddressingOutHandler - [MessageContext: logID=urn:uuid:1217458E42234155741202861522623] Addressing is disabled. Not adding WS-Addressing headers. 2008-02-12 18:12:02,683 [http-8090-Processor25] DEBUG org.apache.axis2.engine.Phase - [MessageContext: logID=urn:uuid:1217458E42234155741202861522623] Checking post-conditions for phase "MessageOut" 2008-02-12 18:12:02,683 [http-8090-Processor25] DEBUG org.apache.axis2.engine.Phase - [MessageContext: logID=urn:uuid:1217458E42234155741202861522623] Checking pre-condition for Phase "Security" 2008-02-12 18:12:02,683 [http-8090-Processor25] DEBUG org.apache.axis2.engine.Phase - [MessageContext: logID=urn:uuid:1217458E42234155741202861522623] Invoking phase "Security" 2008-02-12 18:12:02,683 [http-8090-Processor25] DEBUG org.apache.axis2.engine.Phase - [MessageContext: logID=urn:uuid:1217458E42234155741202861522623] Checking post-conditions for phase "Security" 2008-02-12 18:12:02,792 [http-8090-Processor25] DEBUG org.apache.axis2.addressing.EndpointRefer
Re: AXIS2 : problems in logging DEBUG messages in AXIS2 1.3
I tried the above options but doesnt seem to be woring. from the following link, i want to kno how do you couple your logger with the specific appender. https://wso2.org/repos/wso2/trunk/wsas/java/modules/core/conf/log4j.properties i.e. if i want to log a stuff in one projkect to a log file then i log4j.properties file i need to couple the logger of that project to the specific appender. how do u do that? On Jan 19, 2008 11:52 AM, Afkham Azeez <[EMAIL PROTECTED]> wrote: > It has to be either at the top of your classpath or you have to point the > System property log4j.configuration to your log4j.properties file. Since > you are using Tomcat, you may set the CATALINA_OPTS system variable. i.e. > > On Linux, export CATALINA_OPTS=/home/azeez/log4j.configuration > On Windows, CATALINA_OPTS=C:\azeez\log4j.configuration > > and then start Tomcat, > > $./catalina.sh run > > Azeez > > > > On Jan 19, 2008 10:48 PM, Sushil Dodake <[EMAIL PROTECTED]> wrote: > > > i m suppose to put the log4j.proprties file in classes or conf > > folder.? > > > > regards > > > > sushil > > > > On Jan 19, 2008 10:24 AM, Afkham Azeez <[EMAIL PROTECTED]> wrote: > > > > > Still you can have a single log4j configuration file which handles the > > > logging configuration of all Web services. For each of the services, you > > > can > > > use a different logger, these 6 loggers can write to 6 different files. > > > You > > > will need 6 different file appenders and each of these will point to a > > > separate log file. The 6 loggers will use one each of these appenders. > > > Here > > > is a sample file from WSAS ( > > > https://wso2.org/repos/wso2/trunk/wsas/java/modules/core/conf/log4j.properties). > > > Here we have used 2 different log files which are associated with 2 > > > different appenders. Take a look at how the loggers & appenders have been > > > configured. > > > > > > Azeez > > > > > > > > > On Jan 19, 2008 9:39 PM, Sushil Dodake <[EMAIL PROTECTED]> > > > wrote: > > > > > > > Azeez, > > > > my problem is my application has 6 web services and i need to have > > > > the loggs of each web service in diffrent log file. > > > > currently in development box they all are deployed in a singel > > > > tomcat. > > > > also the problem is on console the DEBUG does not appear... while if > > > > i make it to INFO then that appears but loggs cannot be directed in > > > > a > > > > .log file > > > > any help on this? > > > > > > > > regards, > > > > > > > > sushil > > > > > > > > On Jan 19, 2008 9:45 AM, Afkham Azeez <[EMAIL PROTECTED]> wrote: > > > > > > > > > Most probably the reason for this is that the system is picking up > > > > > another log4j.properties file. Hence your changes are not taking > > > > > effect. You should set the log4j.configuration system property to > > > > > point to your file using one of the following methods: > > > > > 1. in code, System.setProperty("log4j.configuration", > > > > > "C:\\axis2\\con\\log4j.properties"); > > > > > 2. -Dlog4j.configuration=C:\axis2\conf\log4j.properties in the bat > > > > > or sh file > > > > > > > > > > HTH > > > > > Azeez > > > > > > > > > > > > > > > On Jan 19, 2008 12:50 AM, Sushil Dodake <[EMAIL PROTECTED]> > > > > > wrote: > > > > > > > > > > > HI all i am using AXIS2 1.3 i am trying to enable logging in to > > > > > > a log file > > > > > > my probems are > > > > > > 1. the log file is not created on machine even i set optins in > > > > > > the LOG4j.properties > > > > > > 2. Only INFO messeges are logged on console... DEBUG messges > > > > > > dont appear. > > > > > > i dont get what is the problem, my log4j.properties file looks > > > > > > as below. > > > > > > even if i put a fully qualified path name for the > > > > > > log4j.appender.LOGFILE.File attribute as > > > > > > log4j.appender.LOGFILE.File=C:\logs\axis2.log it didnt work > > > > > > can sombody help me. > > > > > > > > > > &
Re: AXIS2 : problems in logging DEBUG messages in AXIS2 1.3
i m suppose to put the log4j.proprties file in classes or conf folder.? regards sushil On Jan 19, 2008 10:24 AM, Afkham Azeez <[EMAIL PROTECTED]> wrote: > Still you can have a single log4j configuration file which handles the > logging configuration of all Web services. For each of the services, you can > use a different logger, these 6 loggers can write to 6 different files. You > will need 6 different file appenders and each of these will point to a > separate log file. The 6 loggers will use one each of these appenders. Here > is a sample file from WSAS ( > https://wso2.org/repos/wso2/trunk/wsas/java/modules/core/conf/log4j.properties). > Here we have used 2 different log files which are associated with 2 > different appenders. Take a look at how the loggers & appenders have been > configured. > > Azeez > > > On Jan 19, 2008 9:39 PM, Sushil Dodake <[EMAIL PROTECTED]> wrote: > > > Azeez, > > my problem is my application has 6 web services and i need to have the > > loggs of each web service in diffrent log file. > > currently in development box they all are deployed in a singel tomcat. > > also the problem is on console the DEBUG does not appear... while if i > > make it to INFO then that appears but loggs cannot be directed in a .log > > file > > any help on this? > > > > regards, > > > > sushil > > > > On Jan 19, 2008 9:45 AM, Afkham Azeez <[EMAIL PROTECTED]> wrote: > > > > > Most probably the reason for this is that the system is picking up > > > another log4j.properties file. Hence your changes are not taking > > > effect. You should set the log4j.configuration system property to > > > point to your file using one of the following methods: > > > 1. in code, System.setProperty("log4j.configuration", > > > "C:\\axis2\\con\\log4j.properties"); > > > 2. -Dlog4j.configuration=C:\axis2\conf\log4j.properties in the bat or > > > sh file > > > > > > HTH > > > Azeez > > > > > > > > > On Jan 19, 2008 12:50 AM, Sushil Dodake <[EMAIL PROTECTED]> > > > wrote: > > > > > > > HI all i am using AXIS2 1.3 i am trying to enable logging in to a > > > > log file > > > > my probems are > > > > 1. the log file is not created on machine even i set optins in the > > > > LOG4j.properties > > > > 2. Only INFO messeges are logged on console... DEBUG messges dont > > > > appear. > > > > i dont get what is the problem, my log4j.properties file looks as > > > > below. > > > > even if i put a fully qualified path name for the > > > > log4j.appender.LOGFILE.File attribute as > > > > log4j.appender.LOGFILE.File=C:\logs\axis2.log it didnt work > > > > can sombody help me. > > > > > > > > # Set root category priority to INFO and its only appender to > > > > CONSOLE. > > > > > > > > log4j.rootCategory=DEBUG, CONSOLE, LOGFILE > > > > > > > > #log4j.rootCategory=INFO, CONSOLE, LOGFILE > > > > > > > > # Set the enterprise logger priority to FATAL > > > > > > > > log4j.logger.org.apache.axis2.enterprise=FATAL > > > > > > > > log4j.logger.de.hunsicker.jalopy.io=FATAL > > > > > > > > log4j.logger.httpclient.wire.header=FATAL > > > > > > > > log4j.logger.org.apache.commons.httpclient=FATAL > > > > > > > > # CONSOLE is set to be a ConsoleAppender using a PatternLayout. > > > > > > > > log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender > > > > > > > > log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout > > > > > > > > log4j.appender.CONSOLE.layout.ConversionPattern=%d %-5p %c - %m%n > > > > > > > > # LOGFILE is set to be a File appender using a PatternLayout. > > > > > > > > log4j.appender.LOGFILE=org.apache.log4j.FileAppender > > > > > > > > log4j.appender.LOGFILE.File=axis2.log > > > > > > > > log4j.appender.LOGFILE.Append=true > > > > > > > > log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout > > > > > > > > log4j.appender.LOGFILE.layout.ConversionPattern=%d [%t] %-5p %c %x - > > > > %m%n > > > > > > > > > > > > > > > > -- > > > Thanks > > > Afkham Azeez > > > > > > http://www.wso2.org > > > GPG Fingerprint: 643F C2AF EB78 F886 40C9 B2A2 4AE2 C887 665E 0760 > > > > > > > > > -- > Thanks > Afkham Azeez > > http://www.wso2.org > GPG Fingerprint: 643F C2AF EB78 F886 40C9 B2A2 4AE2 C887 665E 0760 >
Re: AXIS2 : problems in logging DEBUG messages in AXIS2 1.3
Azeez, my problem is my application has 6 web services and i need to have the loggs of each web service in diffrent log file. currently in development box they all are deployed in a singel tomcat. also the problem is on console the DEBUG does not appear... while if i make it to INFO then that appears but loggs cannot be directed in a .log file any help on this? regards, sushil On Jan 19, 2008 9:45 AM, Afkham Azeez <[EMAIL PROTECTED]> wrote: > Most probably the reason for this is that the system is picking up another > log4j.properties file. Hence your changes are not taking effect. You > should set the log4j.configuration system property to point to your file > using one of the following methods: > 1. in code, System.setProperty("log4j.configuration", > "C:\\axis2\\con\\log4j.properties"); > 2. -Dlog4j.configuration=C:\axis2\conf\log4j.properties in the bat or sh > file > > HTH > Azeez > > > On Jan 19, 2008 12:50 AM, Sushil Dodake <[EMAIL PROTECTED]> wrote: > > > HI all i am using AXIS2 1.3 i am trying to enable logging in to a log > > file > > my probems are > > 1. the log file is not created on machine even i set optins in the > > LOG4j.properties > > 2. Only INFO messeges are logged on console... DEBUG messges dont > > appear. > > i dont get what is the problem, my log4j.properties file looks as below. > > even if i put a fully qualified path name for the > > log4j.appender.LOGFILE.File attribute as > > log4j.appender.LOGFILE.File=C:\logs\axis2.log it didnt work > > can sombody help me. > > > > # Set root category priority to INFO and its only appender to CONSOLE. > > > > log4j.rootCategory=DEBUG, CONSOLE, LOGFILE > > > > #log4j.rootCategory=INFO, CONSOLE, LOGFILE > > > > # Set the enterprise logger priority to FATAL > > > > log4j.logger.org.apache.axis2.enterprise=FATAL > > > > log4j.logger.de.hunsicker.jalopy.io=FATAL > > > > log4j.logger.httpclient.wire.header=FATAL > > > > log4j.logger.org.apache.commons.httpclient=FATAL > > > > # CONSOLE is set to be a ConsoleAppender using a PatternLayout. > > > > log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender > > > > log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout > > > > log4j.appender.CONSOLE.layout.ConversionPattern=%d %-5p %c - %m%n > > > > # LOGFILE is set to be a File appender using a PatternLayout. > > > > log4j.appender.LOGFILE=org.apache.log4j.FileAppender > > > > log4j.appender.LOGFILE.File=axis2.log > > > > log4j.appender.LOGFILE.Append=true > > > > log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout > > > > log4j.appender.LOGFILE.layout.ConversionPattern=%d [%t] %-5p %c %x - > > %m%n > > > > > > -- > Thanks > Afkham Azeez > > http://www.wso2.org > GPG Fingerprint: 643F C2AF EB78 F886 40C9 B2A2 4AE2 C887 665E 0760
AXIS2 : problems in logging DEBUG messages in AXIS2 1.3
HI all i am using AXIS2 1.3 i am trying to enable logging in to a log file my probems are 1. the log file is not created on machine even i set optins in the LOG4j.properties 2. Only INFO messeges are logged on console... DEBUG messges dont appear. i dont get what is the problem, my log4j.properties file looks as below. even if i put a fully qualified path name for the log4j.appender.LOGFILE.File attribute as log4j.appender.LOGFILE.File=C:\logs\axis2.log it didnt work can sombody help me. # Set root category priority to INFO and its only appender to CONSOLE. log4j.rootCategory=DEBUG, CONSOLE, LOGFILE #log4j.rootCategory=INFO, CONSOLE, LOGFILE # Set the enterprise logger priority to FATAL log4j.logger.org.apache.axis2.enterprise=FATAL log4j.logger.de.hunsicker.jalopy.io=FATAL log4j.logger.httpclient.wire.header=FATAL log4j.logger.org.apache.commons.httpclient=FATAL # CONSOLE is set to be a ConsoleAppender using a PatternLayout. log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout log4j.appender.CONSOLE.layout.ConversionPattern=%d %-5p %c - %m%n # LOGFILE is set to be a File appender using a PatternLayout. log4j.appender.LOGFILE=org.apache.log4j.FileAppender log4j.appender.LOGFILE.File=axis2.log log4j.appender.LOGFILE.Append=true log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout log4j.appender.LOGFILE.layout.ConversionPattern=%d [%t] %-5p %c %x - %m%n
AXIS2 : problem in Logging in DEBUG mode
HI all, I want to enable logging in my server as well as client side. and i need to log it in a file so as per the instructions i did following changes in my 1. commons-logging.properties file # Uncomment the next line to enable log4j based logging org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger 2. And in log4j.properties file (both of this files atre present in webapps\WEB-INF\classes folder) # Set root category priority to INFO and its only appender to CONSOLE. #log4j.rootCategory=INFO, CONSOLE log4j.rootCategory=DEBUG, CONSOLE, LOGFILE #log4j.rootCategory=DEBUG, LOGFILE # Set the enterprise logger priority to FATAL log4j.logger.org.apache.axis2.enterprise=FATAL log4j.logger.de.hunsicker.jalopy.io=FATAL log4j.logger.httpclient.wire.header=FATAL log4j.logger.org.apache.commons.httpclient=FATAL # CONSOLE is set to be a ConsoleAppender using a PatternLayout. log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout log4j.appender.CONSOLE.layout.ConversionPattern=[%p] %m%n # LOGFILE is set to be a File appender using a PatternLayout. log4j.appender.LOGFILE=org.apache.log4j.FileAppender log4j.appender.LOGFILE.File=C:\axis2.log log4j.appender.LOGFILE.Append=true log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout log4j.appender.LOGFILE.layout.ConversionPattern=%d [%t] %-5p %c %x - %m%n the problem the logfile s never created at the location C:\axis2.log can sombody suggest me or give me a link to enable logging in AXIS2 1.3version on both client and server side. regards, Sushil
Re: AXIS2 : Hiding the getters and setters of the dependency objects in webservice implementation class?
He...Thanks Rob... On 11/14/07, robert lazarski <[EMAIL PROTECTED]> wrote: > > Add to your services.xml: > > >mySetter > > > HTH, > Robert > > On Nov 14, 2007 12:12 PM, Sushil Dodake <[EMAIL PROTECTED]> wrote: > > HI all, > > > > > > A very basic question for using AXIS2 ande Spring. > > I am using sping IOC for injecting the dependencies so i need to > generate > > the getters and setters which are public. > > In my service implementation class of the web service these public > methods > > gets exposed which i dont want as this might confuse the users trying to > see > > the exposed methods of the sevice. > > Is there any other way i can hide my dependency objects getters and > setters > > in the service IMPL class of the web service. > > > > regards, > > > > Sushil > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
AXIS2 : Hiding the getters and setters of the dependency objects in webservice implementation class?
HI all, A very basic question for using AXIS2 ande Spring. I am using sping IOC for injecting the dependencies so i need to generate the getters and setters which are public. In my service implementation class of the web service these public methods gets exposed which i dont want as this might confuse the users trying to see the exposed methods of the sevice. Is there any other way i can hide my dependency objects getters and setters in the service IMPL class of the web service. regards, Sushil
Re: AXIS2 + Error while downloading a large size file
Thanks... The Problem is solved regards, Sushil On 10/24/07, Thilina Gunarathne <[EMAIL PROTECTED]> wrote: > > Hi, > > > > options.setProperty(Constants.Configuration.ATTACHMENT_TEMP_DIR, new > File( > > "C:\\ContentZip1")); > Above attachment temp dir value needs to be a String... That's the > culprit for the class cast. > > Change it as below... > options.setProperty(Constants.Configuration.ATTACHMENT_TEMP_DIR, > "C:\\ContentZip1"); > > thanks, > Thilina > > > > > > options.setProperty(Constants.Configuration.FILE_SIZE_THRESHOLD, > "4000"); > > > > > > > > //Enabling MTOM > > > > options.setProperty(Constants.Configuration.ENABLE_MTOM, > > Constants.VALUE_TRUE ); > > > > options.setTransportInProtocol(Constants.TRANSPORT_HTTP); > > > > > > > > try { > > > > serviceClient.setOptions(options); > > > > result = serviceClient.sendReceive(methodElmt); > > > > //System.out.println("Object Return " + result); > > > > } catch(Exception e) { > > > > e.printStackTrace(); > > > > throw new VisualLibraryDownloadException(e); > > > > } > > > > return processObject(result); > > > > } > > > > > > > > Server Side code as below ther is one more method which generates the > > response. > > > > > ** > > > > private OMElement createContentResponseObj(DCTMObject > > documentumObj){ > > > > String objectId = documentumObj.getId(); > > > > List contentList = documentumObj.getContentList(); > > > > > > > > OMFactory factory = OMAbstractFactory.getOMFactory(); > > > > OMNamespace payloadNs= factory.createOMNamespace(XML_NAMESPACE, > > XML_NAMESPACE_PREFIX ); > > > > OMElement payload = factory.createOMElement("Object", payloadNs); > > > > > > > > //Object Id Processing > > > > > > > > OMElement objId = factory.createOMElement("ObjectID", payloadNs); > > > > OMText objIdValue = factory.createOMText(objectId); > > > > objId.addChild(objIdValue); > > > > payload.addChild(objId); > > > > > > > > //Object Content Processing > > > > > > > > OMElement contents = factory.createOMElement("ObjectContents", > payloadNs); > > > > > > > > int contentListSize = contentList.size(); > > > > > > > > for(int i = 0; i < contentListSize; i++){ > > > > ObjectContent content = (ObjectContent)contentList.get(i); > > > > > > > > OMElement objContent = factory.createOMElement("ObjectContent", > payloadNs); > > > > String contentName = content.getName(); > > > > String contentMIMEType = content.getMimeType(); > > > > > > > > OMElement contName = factory.createOMElement("contenttName", payloadNs); > > > > OMText contNameValue = factory.createOMText(contentName); > > > > contName.addChild(contNameValue); > > > > objContent.addChild(contName); > > > > > > > > OMElement contType = factory.createOMElement("contentType", payloadNs); > > > > OMText contTypeValue = factory.createOMText(contentMIMEType); > > > > contType.addChild(contTypeValue); > > > > objContent.addChild(contType); > > > > > > > > //Binary Data formatting. > > > > > > > > OMElement fileContent = factory.createOMElement("content", payloadNs); > > > > > > > > ByteArrayDataSource byteData = new > > ByteArrayDataSource(content.getContent()); > > > > DataHandler handler = new DataHandler(byteData); > > > > OMText fileData = factory.createOMText(handler, true); > > > > fileContent.addChild(fileData); > > > > objContent.addChild(fileContent); > > > > contents.addChild(objContent); > > > > } > > > > payload.addChild(contents); > > > > return payload; > > > > } > > > > Seeting in the Axis2.xml > > > > > ** > > > > true > > false > > > > > > true > > > name="attachmentDIR">C:\\ContentZip1 > > 4000 > > > > Error on the console > > > > > ** > > > > org.apache.axis2.AxisFault > > > > at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417) > > > > at > > org.apache.axis2.transport.TransportUtils.createSOAPMessage( > TransportUtils.java:89) > > > > at > > org.apache.axis2.description.OutInAxisOperationClient.handleResponse( > OutInAxisOperation.java:326) > > > > at > > org.apache.axis2.description.OutInAxisOperationClient.send( > OutInAxisOperation.java:389) > > > > at > > org.apache.axis2.description.OutInAxisOperationClient.executeImpl( > OutInAxisOperation.java:211) > > > > at > > org.apache.axis2.client.OperationClient.execute(OperationClient.java > :163) > > > > at > > org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java > :528) > > > > at > > org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java > :508) > > > > at > > com.toro.vl.download.dao.DownLoadDaoImpl.downLoadObject( > DownLoadDaoImpl.java:104) > > > > at > > com.toro.vl.download.struts.action.DownloadObjectAction.getStreamInfo( > DownloadObjectAction.java:57) > > > > at > >
AXIS2 + Error while downloading a large size file
Hi all, I am trying to download a file with a size 28 Mb the size can go up to 100 MB I am facing following error on client side. I followed the instructions in the following link to set the MTOM and file caching.. i am using Axis 1.3, Please let me know in case i am missing anything here. My Client code looks as below. ** *public* String downLoadObject(DocumentumObject docObject) *throws*VisualLibraryDownloadException { OMElement result; List documentumObjList = *new* ArrayList(); documentumObjList.add(docObject); OMFactory fac = OMAbstractFactory.*getOMFactory*(); OMElement methodElmt = fac.createOMElement(*new* QName(*GET_OBJECT*)); OMElement authenticationElmt = generateAuthenticateRequest(); OMElement objectsElmt = generateDocumentumRequest(documentumObjList); methodElmt.addChild(authenticationElmt); methodElmt.addChild(objectsElmt); Options options = *new* Options(); options.setTo(dctmTargetEPR); options.setTimeOutInMilliSeconds(*TIME_OUT*); options.setProperty(Constants.Configuration.*CACHE_ATTACHMENTS*, Constants.* VALUE_TRUE*); options.setProperty(Constants.Configuration.*ATTACHMENT_TEMP_DIR*, *new*File( "C:\\ContentZip1")); options.setProperty(Constants.Configuration.*FILE_SIZE_THRESHOLD*, "4000"); //Enabling MTOM options.setProperty(Constants.Configuration.*ENABLE_MTOM*, Constants.* VALUE_TRUE*); options.setTransportInProtocol(Constants.*TRANSPORT_HTTP*); *try* { serviceClient.setOptions(options); result = serviceClient.sendReceive(methodElmt); //System.out.println("Object Return " + result); } *catch*(Exception e) { e.printStackTrace(); *throw* *new* VisualLibraryDownloadException(e); } *return* processObject(result); } Server Side code as below ther is one more method which generates the response. ** * private* OMElement createContentResponseObj(DCTMObject documentumObj){ String objectId = documentumObj.getId(); List contentList = documentumObj.getContentList(); OMFactory factory = OMAbstractFactory.*getOMFactory*(); OMNamespace payloadNs= factory.createOMNamespace(*XML_NAMESPACE*, * XML_NAMESPACE_PREFIX*); OMElement payload = factory.createOMElement("Object", payloadNs); //Object Id Processing OMElement objId = factory.createOMElement("ObjectID", payloadNs); OMText objIdValue = factory.createOMText(objectId); objId.addChild(objIdValue); payload.addChild(objId); //Object Content Processing OMElement contents = factory.createOMElement("ObjectContents", payloadNs); *int* contentListSize = contentList.size(); *for*(*int* i = 0; i < contentListSize; i++){ ObjectContent content = (ObjectContent)contentList.get(i); OMElement objContent = factory.createOMElement("ObjectContent", payloadNs); String contentName = content.getName(); String contentMIMEType = content.getMimeType(); OMElement contName = factory.createOMElement("contenttName", payloadNs); OMText contNameValue = factory.createOMText(contentName); contName.addChild(contNameValue); objContent.addChild(contName); OMElement contType = factory.createOMElement("contentType", payloadNs); OMText contTypeValue = factory.createOMText(contentMIMEType); contType.addChild(contTypeValue); objContent.addChild(contType); //Binary Data formatting. OMElement fileContent = factory.createOMElement("content", payloadNs); ByteArrayDataSource byteData = *new* ByteArrayDataSource(content.getContent ()); DataHandler handler = *new* DataHandler(byteData); OMText fileData = factory.createOMText(handler, *true*); fileContent.addChild(fileData); objContent.addChild(fileContent); contents.addChild(objContent); } payload.addChild(contents); *return* payload; } Seeting in the Axis2.xml ** true false true C:\\ContentZip1 4000 Error on the console ** org.apache.axis2.AxisFault at org.apache.axis2.AxisFault.makeFault(*AxisFault.java:417*) at org.apache.axis2.transport.TransportUtils.createSOAPMessage(* TransportUtils.java:89*) at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(* OutInAxisOperation.java:326*) at org.apache.axis2.description.OutInAxisOperationClient.send(* OutInAxisOperation.java:389*) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(* OutInAxisOperation.java:211*) at org.apache.axis2.client.OperationClient.execute(*OperationClient.java:163 *) at org.apache.axis2.client.ServiceClient.sendReceive(*ServiceClient.java:528 *) at org.apache.axis2.client.ServiceClient.sendReceive(*ServiceClient.java:508 *) at com.toro.vl.download.dao.DownLoadDaoImpl.downLoadObject(* DownLoadDaoImpl.java:104*) at c
AXIS2 + Spring : Error registering bean with name 'applicationContext' defined in class path resource
I switched from Axis2 1.1 to Axis2 1.3 for doing so i follwed following steps. 1.Downloaded teh Axis2.war file 2. Deployed the same in the Tomcat webapps dir 3. Started Tomcat 4. Changed the name of the exploded Axis2 folder 5. replaced jars old versions to the following version axis2-kernel-1.3.jar axis2-spring-1.3.jar axis2-saaj-1.3.jar 6. created the AAR file by adding required jars 7. deployed the AAR in teh service folder of tomcat deployment 8. started tomcat Some how the spring is not able to get the org.apache.axis2.extensions.spring.receivers.ApplicationContextHolder class reffered in the Application context file using "applicationContext" bean. Hence gives problem while loading the application context. The error log is as below. Exception while loading carServiceContext.xml org.springframework.beans.factory.BeanDefinitionStoreException: Error registering bean with name 'applicationContext' defined in class path resource [applicationContext.xml ]: Class that bean class [org.apache.axis2.extensions.spring.receivers.ApplicationContextHolder] depends on not found; nested exception is java.lang.NoClassDefFoundError: org/springframework/context/ApplicationContextAware java.lang.NoClassDefFoundError: org/springframework/context/ApplicationContextAware at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:539) at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:123) at org.apache.catalina.loader.WebappClassLoader.findClassInternal( WebappClassLoader.java:1634) at org.apache.catalina.loader.WebappClassLoader.findClass( WebappClassLoader.java:860) at org.apache.catalina.loader.WebappClassLoader.loadClass( WebappClassLoader.java:1307) at java.lang.ClassLoader.loadClass(ClassLoader.java:282) at java.lang.ClassLoader.loadClass(ClassLoader.java:282) at java.lang.ClassLoader.loadClass (ClassLoader.java:282) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName (Class.java:219) at org.springframework.util.ClassUtils.forName(ClassUtils.java:109) at org.springframework.beans.factory.support.BeanDefinitionReaderUtils.createBeanDefinition (BeanDefinitionReaderUtils.java:65) at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinitionElement (DefaultXmlBeanDefinitionParser.java:466) at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinitionElement (DefaultXmlBeanDefinitionParser.java:432) at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinitions (DefaultXmlBeanDefinitionParser.java:347) at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.registerBeanDefinitions (DefaultXmlBeanDefinitionParser.java:197) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions (XmlBeanDefinitionReader.java:295) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions (XmlBeanDefinitionReader.java:223) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions (XmlBeanDefinitionReader.java:173) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions (XmlBeanDefinitionReader.java:148) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions (AbstractBeanDefinitionReader.java:129) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions (AbstractBeanDefinitionReader.java:145) at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions (AbstractXmlApplicationContext.java:113) at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions (AbstractXmlApplicationContext.java:81) at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory (AbstractRefreshableApplicationContext.java:89) at org.springframework.context.support.AbstractApplicationContext.refresh (AbstractApplicationContext.java:262) at com.toro.service.cart.CartServiceInit.startUp(CartServiceInit.java:30) at org.apache.axis2.deployment.ServiceBuilder.loadServiceLifeCycleClass( ServiceBuilder.java:357) at org.apache.axis2.deployment.ServiceBuilder.populateService( ServiceBuilder.java:139) at org.apache.axis2.deployment.ServiceGroupBuilder.populateServiceGroup( ServiceGroupBuilder.java:96) at org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup (ArchiveReader.java:99) at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup (ArchiveReader.java:133) at org.apache.axis2.deployment.DeploymentEngine.doDeploy( DeploymentEngine.java:528) at org.apache.axis2.deployment.repository.util.WSInfoList.update( WSInfoList.java:196) at org.apache.axis2.deployment.RepositoryListener.update( RepositoryListener.java:227) at org.apache.axis2.deployment.R
Re: Changing the 2 axis2 1,3 jars causing problem for attachmwents?
ache.axis2.context.ConfigurationContextFactory.createConfigurationContext (ConfigurationContextFactory.java:72) at org.apache.axis2.transport.http.AxisServlet.initConfigContext( AxisServlet.java:392) at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:331) at org.apache.catalina.core.StandardWrapper.loadServlet( StandardWrapper.java:1029) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862) at org.apache.catalina.core.StandardContext.loadOnStartup( StandardContext.java:4013) at org.apache.catalina.core.StandardContext.start(StandardContext.java :4357) at org.apache.catalina.core.ContainerBase.addChildInternal( ContainerBase.java:823) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595) at org.apache.catalina.core.StandardHostDeployer.install( StandardHostDeployer.java:277) at org.apache.catalina.core.StandardHost.install(StandardHost.java:832) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java :701) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java :349) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent( LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091) at org.apache.catalina.core.StandardHost.start(StandardHost.java:789) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478) at org.apache.catalina.core.StandardService.start(StandardService.java:480) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313) at org.apache.catalina.startup.Catalina.start(Catalina.java:556) 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:324) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425) On 9/17/07, Thilina Gunarathne <[EMAIL PROTECTED]> wrote: > > Hi Sushil, > Can you explain your scenerio a little more... What were you using > earlier... What other jars are you using now... > > Normally it's a very risky path to upgrade only a sub set of Axis2 > jars to a new version, keeping the some of the old once... Please do > try your scenerio with complete Axis2 1.3 release first... > > thanks, > Thilina > > On 9/17/07, Sushil Dodake <[EMAIL PROTECTED]> wrote: > > Guys, > > i am sending a zip file across the network.. > > everything was working fine... > > till i changed my jars... > > now i am using following jars... > > > > axis2-spring-1.3.jar > > axis2-kernel-1.3.jar > > axiom-dom-1.2.5.jar > > > > but now i am facing the problem... > > > > > > > > org.apache.axiom.om.OMException: org.apache.axiom.om.OMException: > > javax.mail.MessagingException: Error reading input stream; > > > > nested exception is: > > > > java.io.IOException: End of Stream, but boundary not found > > > > > > Some help will be appreaciated. > > > > regards, > > > > Sushil > > > > > -- > Thilina Gunarathne - http://thilinag.blogspot.com > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Changing the 2 axis2 1,3 jars causing problem for attachmwents?
Guys, i am sending a zip file across the network.. everything was working fine... till i changed my jars... now i am using following jars... axis2-spring-1.3.jar axis2-kernel-1.3.jar axiom-dom-1.2.5.jar but now i am facing the problem... * org.apache.axiom.om.OMException *: *org.apache.axiom.om.OMException*: *javax.mail.MessagingException*: Error reading input stream; nested exception is: *java.io.IOException*: End of Stream, but boundary not found Some help will be appreaciated. regards, Sushil
AXIS2 : JVM bursts when getting images in MB size
Guys, I dont know whether this is a AXIS2 problem. I am trying to get the Image files from the documentum server using web service. when i try to get say 4 image files in a go and if the total size of the file is in some MBs then the JVM goes bm. i have done follwong things to avoid 1. Set a environmental Variable CATALINA_OPTS = "-Xms512m -Xmx512m" 2. Also set the same variable in the cataline.bat file set CATALINA_OPTS=-mx512m 3. even set the same values in the tomcat 5.0 configuration But still my JVM gives the same error *java.lang.OutOfMemoryError* can anybody suggest me what i need to do when i am sending large data using AXIS2 Please note i am sending the Images as the binary content in the XML response. any help in this respect will be appreciated regards, Sushil
AXIS2 : Help required : getting a zip file using AXIS2 + AXIOM
-- Forwarded message -- From: Sushil Dodake <[EMAIL PROTECTED]> Date: Sep 4, 2007 6:47 PM Subject: Re: Help required : getting a zip file using AXIS2 + AXIOM To: Thilina Gunarathne <[EMAIL PROTECTED]> Hi, Thanks you very much for a very prompt reply.. I have also sent this mail to the group you told me. As i need to fix this issue ASAP i am also sending this presonally. The code snippet on the server side is as below. ** *Breife description --> * *1. Take the JPEG files data in byte array format from the Documentum server and store it in a List * *2. Generate a Zip file and store it on the HDD* *3. get the zip file as input stream, Convert it in to binary array* *4. send it using a data handler.* *private* OMElement createZipData(List ObjectList) *throws* ContentFault{ ZipOutputStream ZipOutStream; OMFactory factory = OMAbstractFactory.*getOMFactory*(); OMNamespace payloadNs= factory.createOMNamespace( *XML_NAMESPACE*, *XML_NAMESPACE_PREFIX* ); OMElement zipContent = factory.createOMElement( "ZipContent", payloadNs); *try* { String zipPath = *this*.zipFilePath; Date currentDate = *new* Date(); *long* time = currentDate.getTime(); //Create a local Zip File to add all the Images (binary data) zipPath = zipPath + "\\file"+ String.*valueOf*(time)+ ".zip" ; System. *out*.println("Zip Path " + zipPath); ZipOutStream = *new* ZipOutputStream(*new* FileOutputStream(zipPath)); *int* totalObjects = ObjectList.size(); *for*(*int* i = 0; i < totalObjects; i++){ DCTMObject nextObject = (DCTMObject)ObjectList.get(i); List contentList = nextObject.getContentList(); *if*(contentList != *null*){ *int* contentListSize = contentList.size(); *for*(*int* j = 0; j < contentListSize; j++){ //Get the binary content of the image data ObjectContent content = (ObjectContent)contentList.get(j); *if*(content != *null*){ *byte* []byteContent = content.getContent(); ZipEntry fileName = *new* ZipEntry(content.getName()); ZipOutStream.putNextEntry(fileName); *byte* []tempArray = *new* *byte *[4096]; *int* flag; BufferedInputStream bi = *new* BufferedInputStream(*new* ByteArrayInputStream(byteContent)); *while* ((flag = bi.read(tempArray, 0, 4096)) != -1) { ZipOutStream.write(tempArray, 0, flag); } ZipOutStream.closeEntry(); } } } } //Local Zip File created ZipOutStream.close(); //Read the zip Loacl zip file and convert it in the byte array ZipInputStream zipInStream = *new* ZipInputStream(*new* BufferedInputStream( *new*FileInputStream(zipPath))); *byte* [] zipByte = *new* *byte *[zipInStream.available()]; System. *out*.println("Getting Zipped Data Total Size =" + zipInStream.available()); zipInStream.read(zipByte, 0, zipInStream.available()); ByteArrayDataSource byteData = *new* ByteArrayDataSource(zipByte); //Use a data handler to send the binary data (byte array) DataHandler handler = *new* DataHandler(byteData); OMText fileData = factory.createOMText(handler, *true*); zipContent.addChild(fileData); //objContent.addChild(fileContent); } *catch* (IOException e) { System. *out*.println("In the createZipData Catch"); e.printStackTrace(); *throw* *new* ContentFault("In the createZipData Catch" ); } System. *out*.println("Response Zip Conmtent" + zipContent.toString ()); *return* zipContent; } On 9/4/07, Thilina Gunarathne <[EMAIL PROTECTED]> wrote: > > Hi, > > AA== > > > What you have got above is the base64 representation of the data you > have attached in your server side. There is a possibility that data is > not correctly attached in the server side. > > Are you using any data binding mechanisms. If so what... Also post me > the WSDL if it's possible.. > > I also would like to see how you are attaching the data at the server > side.. > > Also you can post your Axis2 related questions to axis-user list > (http://ws.apache.org/axis2/mail-lists.html ) with [Axis2] prefix in > the subject. In there you'll find more people to answer your questions > and more people will benefit from the answers you are getting.. FYI: I > frequently checks that list.. > > thanks, > Thilina > > On 9/4/07, Sushil Dodake <[EMAIL PROTECTED]> wrote: > > Hi Thilina, > > I got your mail address from the link. > > > http://archives.devshed.com/forums/apache-92/axis2-contentid-is-null-using-mtom-1880965.html > > i have a problem in sending a zip file using AXIS2 + AXIOM > > when i send a zip file then @ the client side i get > > > > > > > xmlns:tns="http://content.dctm.service.toro.com";> > > > > AA== > > > > > > > > but the actual zip file conteains 2 jpeg images... > > > > i have absolutely no idea as in how to retrieve the jpeg files from t
Fwd: AXIS2 : Help required : getting a zip file using AXIS2 + AXIOM
-- Forwarded message -- From: Sushil Dodake <[EMAIL PROTECTED]> Date: Sep 4, 2007 6:49 PM Subject: AXIS2 : Help required : getting a zip file using AXIS2 + AXIOM To: axis-dev@ws.apache.org -- Forwarded message -- From: Sushil Dodake <[EMAIL PROTECTED]> Date: Sep 4, 2007 6:47 PM Subject: Re: Help required : getting a zip file using AXIS2 + AXIOM To: Thilina Gunarathne <[EMAIL PROTECTED]> Hi, Thanks you very much for a very prompt reply.. I have also sent this mail to the group you told me. As i need to fix this issue ASAP i am also sending this presonally. The code snippet on the server side is as below. ** *Breife description --> * *1. Take the JPEG files data in byte array format from the Documentum server and store it in a List * *2. Generate a Zip file and store it on the HDD* *3. get the zip file as input stream, Convert it in to binary array* *4. send it using a data handler.* *private* OMElement createZipData(List ObjectList) *throws* ContentFault{ ZipOutputStream ZipOutStream; OMFactory factory = OMAbstractFactory.*getOMFactory*(); OMNamespace payloadNs= factory.createOMNamespace( *XML_NAMESPACE*, *XML_NAMESPACE_PREFIX* ); OMElement zipContent = factory.createOMElement( "ZipContent", payloadNs); *try* { String zipPath = *this*.zipFilePath; Date currentDate = *new* Date(); *long* time = currentDate.getTime(); //Create a local Zip File to add all the Images (binary data) zipPath = zipPath + "\\file"+ String.*valueOf*(time)+ ".zip" ; System. *out*.println("Zip Path " + zipPath); ZipOutStream = *new* ZipOutputStream(*new* FileOutputStream(zipPath)); *int* totalObjects = ObjectList.size(); *for*(*int* i = 0; i < totalObjects; i++){ DCTMObject nextObject = (DCTMObject)ObjectList.get(i); List contentList = nextObject.getContentList(); *if*(contentList != *null*){ *int* contentListSize = contentList.size(); *for*(*int* j = 0; j < contentListSize; j++){ //Get the binary content of the image data ObjectContent content = (ObjectContent)contentList.get(j); *if*(content != *null*){ *byte* []byteContent = content.getContent(); ZipEntry fileName = *new* ZipEntry(content.getName()); ZipOutStream.putNextEntry(fileName); *byte* []tempArray = *new* *byte *[4096]; *int* flag; BufferedInputStream bi = *new* BufferedInputStream(*new* ByteArrayInputStream(byteContent)); *while* ((flag = bi.read(tempArray, 0, 4096)) != -1) { ZipOutStream.write(tempArray, 0, flag); } ZipOutStream.closeEntry(); } } } } //Local Zip File created ZipOutStream.close(); //Read the zip Loacl zip file and convert it in the byte array ZipInputStream zipInStream = *new* ZipInputStream(*new* BufferedInputStream( *new*FileInputStream(zipPath))); *byte* [] zipByte = *new* *byte *[zipInStream.available()]; System. *out*.println("Getting Zipped Data Total Size =" + zipInStream.available()); zipInStream.read(zipByte, 0, zipInStream.available()); ByteArrayDataSource byteData = *new* ByteArrayDataSource(zipByte); //Use a data handler to send the binary data (byte array) DataHandler handler = *new* DataHandler(byteData); OMText fileData = factory.createOMText(handler, *true*); zipContent.addChild(fileData); //objContent.addChild(fileContent); } *catch* (IOException e) { System. *out*.println("In the createZipData Catch"); e.printStackTrace(); *throw* *new* ContentFault("In the createZipData Catch" ); } System. *out*.println("Response Zip Conmtent" + zipContent.toString ()); *return* zipContent; } On 9/4/07, Thilina Gunarathne <[EMAIL PROTECTED] > wrote: > > Hi, > > AA== > > > What you have got above is the base64 representation of the data you > have attached in your server side. There is a possibility that data is > not correctly attached in the server side. > > Are you using any data binding mechanisms. If so what... Also post me > the WSDL if it's possible.. > > I also would like to see how you are attaching the data at the server > side.. > > Also you can post your Axis2 related questions to axis-user list > ( http://ws.apache.org/axis2/mail-lists.html ) with [Axis2] prefix in > the subject. In there you'll find more people to answer your questions > and more people will benefit from the answers you are getting.. FYI: I > frequently checks that list.. > > thanks, > Thilina > > On 9/4/07, Sushil Dodake <[EMAIL PROTECTED] > wrote: > > Hi Thilina, > > I got your mail address from the link. > > > http://archives.devshed.com/forums/apache-92/axis2-contentid-is-null-using-mtom-1880965.html > > i have a problem in sending a zip file using AXIS2 + AXIOM > > when i send a zip file then @ the client side i get > > > > > > > xmlns:tns="http://content.dctm.service.toro.com ">