Thanks for your reply Yogesh.
I would be creating a file in one of my route, and then want to delete it in
an another route. Would that be possible using the File component
delete=true?
Thanks,
Anish
--
View this message in context:
http://camel.465427.n5.nabble.com/Delete-a-file-from-route-X
I have the routes loaded from an XML. Am using Camel 2.10.3 version.
I would like to know if there is a way to delete a file from route XML,
without redirecting it to a Bean.
Thanks,
Anish
--
View this message in context:
http://camel.465427.n5.nabble.com/Delete-a-file-from-route-XML-tp577462
I have a route where i execute a curl command using Camel exec, which returns
a JSON as response. I try convert the JSON to XML using
But i get an error about type conversion.
This is my route XML,
This is the error i get
Error during type conversion from type:
I have a PERL script which i execute as give n below,
The PERL script prints the response from an API. I need to use the response
as the body for my next route, where i would unmarshall it to a XML. I get a
NULL pointer exception now when trying to unmarshal coz the response fro
Am trying to execute a PERL script from my route XML. I use the following
syntax,
But i don't see the script being executed. This is the log i see,
23:28:44,243 INFO [org.apache.camel.component.exec.ExecProducer] (Camel
(camelAgent) thread #5 - JmsConsumer[ISEEOutboundQueue]) Executing
ExecCom
Am trying to declare a bean and call its method. I have added this in my
route now,
I get the following error,
Exhausted after delivery attempt: 1 caught:
org.apache.camel.InvalidPayloadException: No body available of type:
java.io.InputStream but has value:
org.apache.camel.impl.MappedEndpoint
When i have SSLContext parameters before the routes tag,I get the below
mentioned error,
exception: unexpected element (uri:"http://camel.apache.org/schema/spring";,
local:"sslContextParameters"). Expected elements are
<{http://camel.apache.org/schema/spring}aggregate>,<{http://camel.apache.org/sc
I tried having the SSLContextParameters tag outside the routes tag, but it
resulted in error. Seems like routes tag should be the first node in XML.
Also, i had checked the blueprint schema and found that SSLContextParameters
bean is referred in this schema, but not in spring schema
(http://camel.a
I tried having the sslContextPArameters tag outside the routes tag, but that
didn't help either. I now have my route as given below,
GET
Basic YWRtaW46dGVzdHBhc3M=
And i get this error,
Exhausted after delivery attempt: 1 caught:
javax.net.ssl.SSL
I have updated my route as follows,
GET
I get a different error now,
java.net.URISyntaxException: Illegal character in path at index 0:
org.apache.camel.impl.DefaultComponent.createEndpoint(java.lang.String)
throws java.lang.Exception]. Excha
I have updated my route as follows,
lContextParameters id="Mysslcontext">
GET
I get a different error now,
Exhausted after delivery attempt: 1 caught:
org.apache.camel.component.bean.AmbiguousMethodCallException: Ambiguous
method invocations pos
Am not able to make any progress beyond this. Can you please let me know if
there is anything that am missing in my implementation?
Thanks,
Anish
--
View this message in context:
http://camel.465427.n5.nabble.com/PEM-File-for-Authentication-in-route-tp5771084p5771180.html
Sent from the Camel -
This is the route XML am using,
http://camel.apache.org/schema/spring";>
/message/Requestdata/text()
--
View this message in context:
http://camel.465427.n5.nabble.com/PEM-File-for-Authentication-in-route-tp577108
This works!! . Thanks a lot Yogesh and Raul for helping me resolve this :)
Really appreciate it.
PS. Am facing a similar issue related to registry
(http://camel.465427.n5.nabble.com/PEM-File-for-Authentication-in-route-td5771084.html#a5771109).
It would be really helpful if you can have a look at
Am actually trying to convert a JSON response from an API to XML, and i don't
think it can be done using JAXB. Please correct me if am wrong.
--
View this message in context:
http://camel.465427.n5.nabble.com/JSON-to-XML-Conversion-tp5771032p5771141.html
Sent from the Camel - Users mailing li
Am not sure if i have implemented it as you said. This is what i have in my
route now,
http://camel.apache.org/schema/spring";>
I still get the same error
Failed to create route parseJSON at: >>> Unmarshal[ref:xmljsonWithOptions]
<<
I currently have this as the first line in my XML.
http://camel.apache.org/schema/spring";>
And then i have defined the camelContext tags,
When i tried to give camelContext as the first line, I get this error
unexpected element (uri:"http://camel.apache.org/schema/spring";,
local:
Yes, i have it within the camelContext tags. But i get the same error as
mentioned earlier,
[com.acp.adapter.cameladapter.CamelOutboundAdapter] (Camel (camelAgent)
thread #6 - JmsConsumer[ISEEOutboundQueue]) CamelOutboundAdapter exception:
Failed to create route parseJSON at: >>> Unmarshal[ref:x
Thanks for your suggestion. Am using PEM file for authentication purpose. I
did try using the Http4 component with SSLContextParameters as given below,
${body}
But i get an error,
JmsConsumer[ISEEOutboundQueue]) CamelOutboundAdapter exception: Failed
Am trying to use Http4 or SSH components. Can you please let me know how to
resolve this issue using these components?
Thanks,
Anish
--
View this message in context:
http://camel.465427.n5.nabble.com/PEM-File-for-Authentication-in-route-tp5771084p5771107.html
Sent from the Camel - Users mailin
Yes, i do have camel-xmljson 2.10.3 JAR in my classpath
--
View this message in context:
http://camel.465427.n5.nabble.com/JSON-to-XML-Conversion-tp5771032p5771088.html
Sent from the Camel - Users mailing list archive at Nabble.com.
I have a route where i need to make a GET request to an API which is hosted
on a server. The authentication is done using a PEM file. Is there a way i
can include PEM file foe authentication in my route? I need to do this in
Spring DSL XML. Can anyone please let me know if this is possible?
Thanks
Am using Spring, but i don't have any bean with the name
"XmljsonWithOptions". I typically want to do the JSON to XML conversion
within the DSL XML. Is there a way to do it?
Thanks,
Anish
--
View this message in context:
http://camel.465427.n5.nabble.com/JSON-to-XML-Conversion-tp5771032p577107
Am trying to convert a JSON message to XML format as given below,
Am using. Camel-XmlJSON 2.10.3 JAR.
When i execute my route, i get the following error,
JmsConsumer[ISEEOutboundQueue]) CamelOutboundAdapter exception: Failed to
create route pars
Am trying to convert a JSON message to XML format as given below,
Am using. Camel-XmlJSON 2.10.3 JAR.
When i execute my route, i get the following error,
JmsConsumer[ISEEOutboundQueue]) CamelOutboundAdapter exception: Failed to
create route pars
Worked like a charm.
Thanks a lot :)
--
View this message in context:
http://camel.465427.n5.nabble.com/Construct-Dynamic-URI-tp5770500p5770533.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Am trying to construct a dynamic URI using a value from header
When i use in it is not recognizing the value as a header
https://something.com/{$header.Provider}
but when i use i don't get any error, but the HTTP call is not
being made.
https://something.com{header.Provier}
Am using
I was able to resolve it by uploading a new version of xalan jar
Thanks
--
View this message in context:
http://camel.465427.n5.nabble.com/Parsing-a-XML-in-DSL-tp5770368p5770445.html
Sent from the Camel - Users mailing list archive at Nabble.com.
I have a similar issue
My XML is
ProviderValue
And am trying to set header value like this,
/CamelData/Provider/text()
But i get this error.
Exhausted after delivery attempt: 1 caught: java.lang.ClassCastException:
org.apache.xml.dtm.ref.DTMManagerDefault cannot be cast to
org.apache.x
Am having a similar issue and i get this error message,
java.lang.ClassCastException: org.apache.xml.dtm.ref.DTMManagerDefault
cannot be cast to org.apache.xml.dtm.DTMManager:
java.lang.ClassCastException: org.apache.xml.dtm.ref.DTMManagerDefault
cannot be cast to org.apache.xml.dtm.DTMManager
Am having a similar issue and i get this error message,
java.lang.ClassCastException: org.apache.xml.dtm.ref.DTMManagerDefault
cannot be cast to org.apache.xml.dtm.DTMManager:
java.lang.ClassCastException: org.apache.xml.dtm.ref.DTMManagerDefault
cannot be cast to org.apache.xml.dtm.DTMManager
I tried as you suggested, but still i get the same error,
/CamelData/Provider/text()
Exhausted after delivery attempt: 1 caught: java.lang.ClassCastException:
org.apache.xml.dtm.ref.DTMManagerDefault cannot be cast to
org.apache.xml.dtm.DTMManager: java.lang.ClassCastException:
org.apache.xml.d
I have created a separate thread for the XML issue,
http://camel.465427.n5.nabble.com/Parsing-a-XML-in-DSL-td5770368.html
Can you please help me out? I shall delete the threads irrelevant to this
thread
Thanks,
Anish
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-Re
Am trying to parse the input XML of a route to get a particular node's value.
I tried this way,
/CamelData/Provider/text()
But this throws an error,
java.lang.ClassCastException: org.apache.xml.dtm.ref.DTMManagerDefault
cannot be cast to org.apache.xml.dtm.DTMManager:
java.lang.ClassCastExceptio
Agree, my bad. I will create new discussion going forward. I will test this
and let you know if it worked for me. If not, then i shall create a new
thread and let you know on the same.
Thanks a lot for your help. Appreciate it.
Thanks,
Anish
--
View this message in context:
http://camel.46542
Can you please help me with parsing an XML to get a node's value? Am trying
with xpath as given below
/data/Provider()
But this doesn't work. My input to a route is XML and i want to get a node's
value and route it based on it. I tried this
${in.body}/data/Provider()
But that didn't work either
Am using JBOSS server. I have a question related to passing arguments to a
Javascript. In my route am calling a JavaScript this way,
Is there a way to pass arguments to this Javascript?
Thanks,
Anish
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-Restlet-tp5767988p
I was able to resolve the issue. It was due to a JAR which was conflicting
with a newer version JAR. After removing the old JAR I am able to send the
message to Rest API.
Thanks a lot for your help. Really appreciate it.
Thanks,
Anish
--
View this message in context:
http://camel.465427.n5.na
But i just noticed that when i have HTTPS and mention :443 as the port
number, i get the header missing error again. So basically the header is not
being set for some reason. But i don't understand why
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-Restlet-tp5767988p57
Is there a difference in way it works in browser? Coz i see that when i
access the REST URL in browser i don't get any SSL errors coz of the CA
trusted certs the URL has. Do you reckon having .jks file in classpath is
the only way to access URL over HTTPS connection?
Thanks,
Anish
--
View this
Although one concern i have is that if the certificate from Server is changed
in future then i have to import new cert. Can you let me know how to access
the keystore in route URI? Is there any specific attribute to mention the
keystore?
Thanks,
Anish
--
View this message in context:
http://c
Thanks for letting me know. Am fairly new to Camel. Should i place the
certificate in my Trusted certs directory, or should i handle it in my
route?
Also,Can you please provide me an example on how to use Camel-jetty for
invoking REST API?
--
View this message in context:
http://camel.465427.
My connection was meant to be HTTPS but i was using HTTP in my URL. Now when
i change my URL to HTTPS, i get the following error,
WARNING [org.restlet] (Restlet-69709808) Exception while writing the
message headers.: javax.net.ssl.SSLException: Unrecognized SSL message,
plaintext connection?
Can
Also, i have another question on how to pass arguments to a Javascript from
route. I have the following route,
When i try to pass arguments to this Javascript (generatetoken(key).js), it
throws error saying file not found. The argument is being consi
This is the error message i get
04:25:01,428 INFO [callRestAPI] (Camel (camelAgent) thread #2 -
JmsConsumer[ISEEOutboundQueue]) Routing to RestAPI
04:25:01,430 INFO [callRestAPI] (Camel (camelAgent) thread #2 -
JmsConsumer[ISEEOutboundQueue]) Headers set in Javascript
{Authorization=MyToken,
Con
Yes, it is Authorization. I have tested it from a local REST client with the
same header, and that works fine.
I just noticed that when i set the headers i get an error message saying
there are no consumers to process the message. But when i don't set the
headers i get the error of header missing
Am having a similar kind of issue where am not able to send custom headers to
a REST URL using camel restlet. This is my route,
token
http://MyRESTAPI/messages"/>
But i get a error message from the API mentioni
47 matches
Mail list logo