You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by "Goel1, Vipin" <Vi...@xerox.com> on 2013/05/07 21:23:14 UTC

Issues with camel context

Hi,

  Sometime we get the following errors in logs while calling one  web service  sometimes we get the error on console. This is an intermittent issue and only work around as of now working to restart the camel context or server. We need this issue to be resolved at priority. Please help.

.transform.stax.StAXSource; nested exception is javax.xml.transform.TransformerException: Can't transform a Source of type javax.xml.transform.stax.StAXSource
ERROR DefaultErrorHandler - Failed delivery for (MessageId: ID-NODHCMSLTP1427-61837-1361879946102-0-158 on ExchangeId: ID-NODHCMSLTP1427-61837-1361879946102-0-1
57). Exhausted after delivery attempt: 1 caught: org.springframework.ws.client.WebServiceTransformerException: Transformation error: Can't transform a Source of
type javax.xml.transform.stax.StAXSource; nested exception is javax.xml.transform.TransformerException: Can't transform a Source of type javax.xml.transform.st
ax.StAXSource
org.springframework.ws.client.WebServiceTransformerException: Transformation error: Can't transform a Source of type javax.xml.transform.stax.StAXSource; nested
exception is javax.xml.transform.TransformerException: Can't transform a Source of type javax.xml.transform.stax.StAXSource
at org.springframework.ws.client.core.WebServiceTemplate.doSendAndReceive(WebServiceTemplate.java:608)
at org.springframework.ws.client.core.WebServiceTemplate.sendAndReceive(WebServiceTemplate.java:537)
at org.springframework.ws.client.core.WebServiceTemplate.doSendAndReceive(WebServiceTemplate.java:492)
for contact Us webservice


RE: Issues with camel context

Posted by dacrockett_trader <da...@autotrader.com>.
We seem to be seeing this in our production system now as well.  Did you
solve this issue?



--
View this message in context: http://camel.465427.n5.nabble.com/Issues-with-camel-context-tp5732142p5734178.html
Sent from the Camel - Users mailing list archive at Nabble.com.

RE: Issues with camel context

Posted by "Vashisth, Sunil" <Su...@xerox.com>.
Please see my response inline

-----Original Message-----
From: Christian Müller [mailto:christian.mueller@gmail.com] 
Sent: Thursday, May 09, 2013 3:52 AM
To: users@camel.apache.org
Subject: Re: Issues with camel context

Which version do you use?[Vashisth, Sunil] 	2.10.2
Which component do you use?[Vashisth, Sunil] 	spring-ws
Which OS/runtime do you use?[Vashisth, Sunil] 	Windows 7, JRE 1.6
How looks your route?[Vashisth, Sunil] 	Route has some pre and processing around spring-ws component 

[Vashisth, Sunil] <to uri="spring-ws:{{769: MESSAGE_URL}}?webServiceTemplate=#baseCamelMarshallerWSTemplate" />


<bean id="httpParams" class="org.apache.commons.httpclient.params.HttpClientParams">
      <!-- Timeout in milliseconds: in this case 4 minutes -->
      <property name="soTimeout" value="240000" /> 
    </bean>

    <bean id="httpClient" class="org.apache.commons.httpclient.HttpClient">
      <property name="params" ref="httpParams" />
    </bean>

    <bean id="httpSender" class="org.springframework.ws.transport.http.HttpComponentsMessageSender">
    </bean>  
    
    <bean id="baseCamelMarshallerWSTemplate" class="org.springframework.ws.client.core.WebServiceTemplate" scope="prototype">
    	<constructor-arg ref="messageFactory" />
        <property name="messageSender">
            <ref bean="httpSender"/>
        </property>
        <property name="checkConnectionForError" value="true"/>
        <property name="transformerFactoryClass" value="org.apache.xalan.processor.TransformerFactoryImpl"/>
    </bean>

   <bean id="messageFactory" class="org.springframework.ws.soap.saaj.SaajSoapMessageFactory">
		<property name="soapVersion">
			<util:constant static-field="org.springframework.ws.soap.SoapVersion.SOAP_12"/>
		</property>
		<property name="messageFactory" ref="soapMessageFactoryImpl"/>
    </bean>

Sent from a mobile device
Am 08.05.2013 05:57 schrieb "Goel1, Vipin" <Vi...@xerox.com>:

> Hi,
>
>   Sometime we get the following errors in logs while calling one  web 
> service  sometimes we get the error on console. This is an 
> intermittent issue and only work around as of now working to restart 
> the camel context or server. We need this issue to be resolved at priority. Please help.
>
> .transform.stax.StAXSource; nested exception is
> javax.xml.transform.TransformerException: Can't transform a Source of 
> type javax.xml.transform.stax.StAXSource
> ERROR DefaultErrorHandler - Failed delivery for (MessageId:
> ID-NODHCMSLTP1427-61837-1361879946102-0-158 on ExchangeId:
> ID-NODHCMSLTP1427-61837-1361879946102-0-1
> 57). Exhausted after delivery attempt: 1 caught:
> org.springframework.ws.client.WebServiceTransformerException:
> Transformation error: Can't transform a Source of type 
> javax.xml.transform.stax.StAXSource; nested exception is
> javax.xml.transform.TransformerException: Can't transform a Source of 
> type javax.xml.transform.st ax.StAXSource
> org.springframework.ws.client.WebServiceTransformerException:
> Transformation error: Can't transform a Source of type 
> javax.xml.transform.stax.StAXSource; nested exception is 
> javax.xml.transform.TransformerException: Can't transform a Source of 
> type javax.xml.transform.stax.StAXSource
> at
> org.springframework.ws.client.core.WebServiceTemplate.doSendAndReceive
> (WebServiceTemplate.java:608)
> at
> org.springframework.ws.client.core.WebServiceTemplate.sendAndReceive(W
> ebServiceTemplate.java:537)
> at
> org.springframework.ws.client.core.WebServiceTemplate.doSendAndReceive
> (WebServiceTemplate.java:492)
> for contact Us webservice
>
>

Re: Issues with camel context

Posted by Christian Müller <ch...@gmail.com>.
Which version do you use?
Which component do you use?
Which OS/runtime do you use?
How looks your route?
...

Sent from a mobile device
Am 08.05.2013 05:57 schrieb "Goel1, Vipin" <Vi...@xerox.com>:

> Hi,
>
>   Sometime we get the following errors in logs while calling one  web
> service  sometimes we get the error on console. This is an intermittent
> issue and only work around as of now working to restart the camel context
> or server. We need this issue to be resolved at priority. Please help.
>
> .transform.stax.StAXSource; nested exception is
> javax.xml.transform.TransformerException: Can't transform a Source of type
> javax.xml.transform.stax.StAXSource
> ERROR DefaultErrorHandler - Failed delivery for (MessageId:
> ID-NODHCMSLTP1427-61837-1361879946102-0-158 on ExchangeId:
> ID-NODHCMSLTP1427-61837-1361879946102-0-1
> 57). Exhausted after delivery attempt: 1 caught:
> org.springframework.ws.client.WebServiceTransformerException:
> Transformation error: Can't transform a Source of
> type javax.xml.transform.stax.StAXSource; nested exception is
> javax.xml.transform.TransformerException: Can't transform a Source of type
> javax.xml.transform.st
> ax.StAXSource
> org.springframework.ws.client.WebServiceTransformerException:
> Transformation error: Can't transform a Source of type
> javax.xml.transform.stax.StAXSource; nested
> exception is javax.xml.transform.TransformerException: Can't transform a
> Source of type javax.xml.transform.stax.StAXSource
> at
> org.springframework.ws.client.core.WebServiceTemplate.doSendAndReceive(WebServiceTemplate.java:608)
> at
> org.springframework.ws.client.core.WebServiceTemplate.sendAndReceive(WebServiceTemplate.java:537)
> at
> org.springframework.ws.client.core.WebServiceTemplate.doSendAndReceive(WebServiceTemplate.java:492)
> for contact Us webservice
>
>