Hi, I have also realized that when I debug the Message Context in eclipse and inspect in, it works and the envelope message is there...
Can please anyone give me some idea, is it a bug in 1.4.1 or there is something I am missing. The same code works in axis2. 1.3.1 Thanks in advance On Tue, Jan 20, 2009 at 8:47 AM, asheikh <asad.a.she...@gmail.com> wrote: > Hi, > > I have migrated my services from axis2. 1.3 to axis2 1.4, and I am getting > the following error whenever I invoke any service. Please advice, Thanks in > advance > > *This code does't work: * > public void invokeBusinessLogic( > org.apache.axis2.context.MessageContext msgContext, > org.apache.axis2.context.MessageContext newMsgContext) > throws org.apache.axis2.AxisFault { > > try { > > // get the implementation class > Object obj = getTheImplementationObject(msgContext); > //System.out.println("Message xml : > "+msgContext.getEnvelope()); > > > ..... more code > } > > > This code Works(removing comments from the System.out.): > public void invokeBusinessLogic( > org.apache.axis2.context.MessageContext msgContext, > org.apache.axis2.context.MessageContext newMsgContext) > throws org.apache.axis2.AxisFault { > > try { > > // get the implementation class > Object obj = getTheImplementationObject(msgContext); > * System.out.println("Message xml : > "+msgContext.getEnvelope()); * > > ..... more code > } > > *Exception: * > - <#11ef2948616bc20d_> <soapenv:Envelope xmlns:soapenv="* > http://schemas.xmlsoap.org/soap/envelope/*"> > - <#11ef2948616bc20d_> <soapenv:Body> > - <#11ef2948616bc20d_> <soapenv:Fault> > <faultcode>soapenv:Server</faultcode> > <faultstring>Parser has already reached end of the document. No > siblings found</faultstring> > <detail /> > </soapenv:Fault> > </soapenv:Body> > </soapenv:Envelope> > >