axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thilina Gunarathne" <cset...@gmail.com>
Subject Re: Unexpected character '-' (code 45) in prolog; expected '<'
Date Tue, 12 Aug 2008 23:20:18 GMT
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 <sushil.dodake@gmail.com>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 <csethil@gmail.com>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 <sushil.dodake@gmail.com>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 <csethil@gmail.com>wrote:
>>>
>>>> Can u please capture and post a message stacktrace...
>>>>
>>>> ~Thilina
>>>>
>>>>
>>>> On Tue, Aug 12, 2008 at 2:59 PM, Sushil Dodake <sushil.dodake@gmail.com
>>>> > 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 <
>>>>> sushil.dodake@gmail.com> wrote:
>>>>>
>>>>>> I am using java 6 and Tomcat 6 for running this service
>>>>>>
>>>>>>
>>>>>> On Mon, Aug 11, 2008 at 9:50 PM, Sushil Dodake <
>>>>>> sushil.dodake@gmail.com> 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.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.builder.StAXOMBuilder.next(*
>>>>>>> StAXOMBuilder.java:153*)
>>>>>>>
>>>>>>>       ... 22 more
>>>>>>>
>>>>>>>  regards,
>>>>>>>
>>>>>>> Sushil
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Thilina Gunarathne - http://thilinag.blogspot.com
>>>>
>>>
>>>
>>
>>
>> --
>> Thilina Gunarathne - http://thilinag.blogspot.com
>>
>
>


-- 
Thilina Gunarathne - http://thilinag.blogspot.com

Mime
View raw message