Can't use jersey library classes within processor
Greetings. I had a similar issue with activemq and httpservlet, that, until now, stayed unsolved, in the activemq forum. Now, its camel and jersey classes. This is what its going on: this is my code: http://pastie.org/2307602 I have already included the jersey jar in the eclipse project buildpath. But, when i start the router, this is what i get, in the console: http://pastie.org/2307614 But, as i said, i included the jar in the buildpath! Im really lost in here. :/ -- View this message in context: http://camel.465427.n5.nabble.com/Can-t-use-jersey-library-classes-within-processor-tp4657633p4657633.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: need some advice on cxf or spring-ws
Hi David, thanks for the provided information. I'll dig into coding and will let You/Claus know how it's going. Regards, Babak -- View this message in context: http://camel.465427.n5.nabble.com/need-some-advice-on-cxf-or-spring-ws-tp4643001p4657725.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Can't use jersey library classes within processor
You are using maven, please update the jersey dependency in the pom. It has nothing to do with your eclipse project build path. On Tue Aug 2 14:14:25 2011, dead_devil_66 wrote: Greetings. I had a similar issue with activemq and httpservlet, that, until now, stayed unsolved, in the activemq forum. Now, its camel and jersey classes. This is what its going on: this is my code: http://pastie.org/2307602 I have already included the jersey jar in the eclipse project buildpath. But, when i start the router, this is what i get, in the console: http://pastie.org/2307614 But, as i said, i included the jar in the buildpath! Im really lost in here. :/ -- View this message in context: http://camel.465427.n5.nabble.com/Can-t-use-jersey-library-classes-within-processor-tp4657633p4657633.html Sent from the Camel - Users mailing list archive at Nabble.com. -- Willem -- FuseSource Web: http://www.fusesource.com Blog:http://willemjiang.blogspot.com (English) http://jnn.javaeye.com (Chinese) Twitter: willemjiang Weibo: willemjiang
AW: Get raw string from header without decosing?
Thanks Christian for this answer. I use Camel 2.5.0 and I tought I’m using the jetty default configuration. My endpoint definition looks like this: endpoint.http=jetty\:http\://0.0.0.0:\20001/ I can’t find any option to add tot he endpoint string to configure the encoding of incoming requests. Do you? Greetings Martin -- Ivan Ivanovich The Kreml Krauts black-tea-flavoured-schnitzel-beat http://www.kreml-krauts.de Von: Christian Mueller [via Camel] [mailto:ml-node+4656866-1137806753-230...@n5.nabble.com] Gesendet: Dienstag, 2. August 2011 00:09 An: Heinemann, Martin Betreff: Re: Get raw string from header without decosing? Martin, you use the ISO-8859-1 URL encoding, the String Keine gültige GPS-Daten! is converted to Keine+g%FCltige+GPS-Daten%21. If you use UTF-8 URL encoding (which is what Jetty use by default), you will get Keine%20g%C3%BCltige%20GPS-Daten!. And this works well in Camel (I added a unit test for it [1]). The received header is Keine gültige GPS-Daten! Is this an option/workaround for you? I found the following Jetty JIRA issue, where this problem was discussed [2]. I try to get the test with ISO-8859-1 URL encoding working (at present, it has the @Ignore annotation), but until now without success. I will give it a try again tomorrow. It should be possible... [1] http://svn.apache.org/viewvc?view=revisionrevision=1152948 [2] http://jira.codehaus.org/browse/JETTY-113 Best, Christian If you reply to this email, your message will be added to the discussion below: http://camel.465427.n5.nabble.com/Get-raw-string-from-header-without-decosing-tp4654493p4656866.html To unsubscribe from Get raw string from header without decosing?, click herehttp://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4654493code=bWFydGluLmhlaW5lbWFubkB2aXRhcGhvbmUuZGV8NDY1NDQ5M3wtMTk5MzY2MzcxMw==. Hinweis: Diese Email enthält evtl. vertrauliche und rechtlich geschützte Informationen. Sollten Sie nicht der richtige Adressat sein oder diese Email irrtümlich erhalten haben, informieren Sie bitte sofort den Absender, und löschen Sie anschließend diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe des Inhalts dieser Email sind nicht gestattet. Attention: This e-mail may contain confidential and/or privileged information. If you are not the intended recipient or if you have received this e-mail in error, please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the contents of this e-mail is strictly prohibited. -- View this message in context: http://camel.465427.n5.nabble.com/Get-raw-string-from-header-without-decosing-tp4654493p4657755.html Sent from the Camel - Users mailing list archive at Nabble.com.
sending file to cache
I have a working use case that moves a file from input folder to output folder through XSLT moving through activemq input and output queue. I want the transformed file to go to the cache and then to output queue. How can I do this? kindly help! -- View this message in context: http://camel.465427.n5.nabble.com/sending-file-to-cache-tp4658005p4658005.html Sent from the Camel - Users mailing list archive at Nabble.com.
Error handling with transaction
Hi there, I'm having an issue I don't understand. I have a transactional route defined like this: route id=accountingRoute from uri=cxf:bean:resellerAccountingEndpoint/ transacted/ onException exceptionjava.lang.Exception/exception bean ref=inboundErrorHandler/ wireTap ref=databaseInput/ rollback markRollbackOnly=true/ /onException choice id=depositSplitterChoice ...snip... You can see I don't have handled=true in the onException block. That's because my inboundErrorHandler bean does an exchange.setException(soapFaultInstance) so that cxf is happy and returns the right soap fault message. The issue I'm having is that, after my inboundErrorHandler has done its job catching a SocketTimeoutException (I can see the soapFault instance logged by the Tracer), I get a NPE in camel which makes my endpoint return a: soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; soap:Body soap:Fault faultcodesoap:Server/faultcode faultstringjava.lang.NullPointerException/faultstring /soap:Fault /soap:Body /soap:Envelope The relevant stack trace portion is: ...snip... Caused by: org.apache.camel.RuntimeCamelException: java.lang.NullPointerException at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1139) ~[camel-core-2.7.2.jar:2.7.2] at org.apache.camel.spring.spi.TransactionErrorHandler$1.doInTransactionWithoutResult(TransactionErrorHandler.java:178) ~[camel-spring-2.7.2.jar:2.7.2] at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33) ~[spring-tx-3.0.5.RELEASE.jar:3.0.5.RELEASE] ...snip... Am I doing something wrong or is this a bug in camel? I can provide logs, route definitions, code... anything you might need in case someone wishes to debug this. Thanks in advance, Mirko.
Re: Can't use jersey library classes within processor
Make sure you are using m2eclipse as well. Like Willem said, adding a dependency to your pom.xml file will get the lib added to the project classpath. A good m2eclipse reference is here http://www.sonatype.com/books/m2eclipse-book/reference/ Cheers, Jon On Tue, Aug 2, 2011 at 4:32 AM, Willem Jiang willem.ji...@gmail.com wrote: You are using maven, please update the jersey dependency in the pom. It has nothing to do with your eclipse project build path. On Tue Aug 2 14:14:25 2011, dead_devil_66 wrote: Greetings. I had a similar issue with activemq and httpservlet, that, until now, stayed unsolved, in the activemq forum. Now, its camel and jersey classes. This is what its going on: this is my code: http://pastie.org/2307602 I have already included the jersey jar in the eclipse project buildpath. But, when i start the router, this is what i get, in the console: http://pastie.org/2307614 But, as i said, i included the jar in the buildpath! Im really lost in here. :/ -- View this message in context: http://camel.465427.n5.nabble.** com/Can-t-use-jersey-library-**classes-within-processor-** tp4657633p4657633.htmlhttp://camel.465427.n5.nabble.com/Can-t-use-jersey-library-classes-within-processor-tp4657633p4657633.html Sent from the Camel - Users mailing list archive at Nabble.com. -- Willem --** FuseSource Web: http://www.fusesource.com Blog: http://willemjiang.blogspot.**comhttp://willemjiang.blogspot.com(English) http://jnn.javaeye.com (Chinese) Twitter: willemjiang Weibo: willemjiang -- Cheers, Jon --- FuseSource Email: j...@fusesource.com Web: fusesource.com Twitter: jon_anstey Blog: http://janstey.blogspot.com Author of Camel in Action: http://manning.com/ibsen
Re: Remote Write and Read
Hi is there anyway like the following route from uri=activemq:queue:outputQueue/ to uri=file:outputdir?fileName=output1.xml/ to uri=file:outputdir?fileName=output2.xml/ /route I know , i cannot do in this way. but help me to do this out. Cheers Guru -- View this message in context: http://camel.465427.n5.nabble.com/Remote-Write-and-Read-tp4654906p4658426.html Sent from the Camel - Users mailing list archive at Nabble.com.
cxf bc: java.lang.NullPointerException: MEP not found
I'm still fighting with this java.lang.NullPointerException: MEP not found problem. The only difference I have with other WSDL documents is the soap binding type is RPC. The WSDL file is valid, I changed every part, every namespace, and still I'm getting the same error. I even checked the JbiInInterceptor source code. As I see MEP is calculated from message if SOAPAction=. Simply I don't see the reason for this NullPointerException ... Zsolt
Re: Remote Write and Read
On Tue, Aug 2, 2011 at 2:01 PM, Gnanaguru S gnanaguru.sattanat...@wipro.com wrote: Hi is there anyway like the following route from uri=activemq:queue:outputQueue/ to uri=file:outputdir?fileName=output1.xml/ to uri=file:outputdir?fileName=output2.xml/ /route I know , i cannot do in this way. but help me to do this out. What do you want to do. The example above, will consume from JMS, and write the message to a file named output1.xml, and then again writing to another file output2.xml. Cheers Guru -- View this message in context: http://camel.465427.n5.nabble.com/Remote-Write-and-Read-tp4654906p4658426.html Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen - FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
Re: Error handling with transaction
Hi Could you try swapping the order of transacted/ and onException. On Tue, Aug 2, 2011 at 12:19 PM, Mirko Caserta mirko.case...@gmail.com wrote: Hi there, I'm having an issue I don't understand. I have a transactional route defined like this: route id=accountingRoute from uri=cxf:bean:resellerAccountingEndpoint/ transacted/ onException exceptionjava.lang.Exception/exception bean ref=inboundErrorHandler/ wireTap ref=databaseInput/ rollback markRollbackOnly=true/ /onException choice id=depositSplitterChoice ...snip... You can see I don't have handled=true in the onException block. That's because my inboundErrorHandler bean does an exchange.setException(soapFaultInstance) so that cxf is happy and returns the right soap fault message. The issue I'm having is that, after my inboundErrorHandler has done its job catching a SocketTimeoutException (I can see the soapFault instance logged by the Tracer), I get a NPE in camel which makes my endpoint return a: soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; soap:Body soap:Fault faultcodesoap:Server/faultcode faultstringjava.lang.NullPointerException/faultstring /soap:Fault /soap:Body /soap:Envelope The relevant stack trace portion is: ...snip... Caused by: org.apache.camel.RuntimeCamelException: java.lang.NullPointerException at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1139) ~[camel-core-2.7.2.jar:2.7.2] at org.apache.camel.spring.spi.TransactionErrorHandler$1.doInTransactionWithoutResult(TransactionErrorHandler.java:178) ~[camel-spring-2.7.2.jar:2.7.2] at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33) ~[spring-tx-3.0.5.RELEASE.jar:3.0.5.RELEASE] ...snip... Am I doing something wrong or is this a bug in camel? I can provide logs, route definitions, code... anything you might need in case someone wishes to debug this. Thanks in advance, Mirko. -- Claus Ibsen - FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
Re: Remote Write and Read
Hi I am new with clusters. I am trying to come out of identifying the clustering with fuse. My idea is, If i can write into two xml files as in the above message. Then i can do this two files in two different machines where independent fuse running. Cheers Guru -- View this message in context: http://camel.465427.n5.nabble.com/Remote-Write-and-Read-tp4654906p4658642.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Error handling with transaction
I've tried with: from uri=cxf:bean:resellerAccountingEndpoint/ onException exceptionjava.lang.Exception/exception bean ref=inboundErrorHandler/ wireTap ref=databaseInput/ rollback markRollbackOnly=true/ /onException transacted/ choice id=depositSplitterChoice ...snip... but I get the same message flow + NPE at the end. Mirko On Tue, Aug 2, 2011 at 2:45 PM, Claus Ibsen claus.ib...@gmail.com wrote: Hi Could you try swapping the order of transacted/ and onException. On Tue, Aug 2, 2011 at 12:19 PM, Mirko Caserta mirko.case...@gmail.com wrote: Hi there, I'm having an issue I don't understand. I have a transactional route defined like this: route id=accountingRoute from uri=cxf:bean:resellerAccountingEndpoint/ transacted/ onException exceptionjava.lang.Exception/exception bean ref=inboundErrorHandler/ wireTap ref=databaseInput/ rollback markRollbackOnly=true/ /onException choice id=depositSplitterChoice ...snip... You can see I don't have handled=true in the onException block. That's because my inboundErrorHandler bean does an exchange.setException(soapFaultInstance) so that cxf is happy and returns the right soap fault message. The issue I'm having is that, after my inboundErrorHandler has done its job catching a SocketTimeoutException (I can see the soapFault instance logged by the Tracer), I get a NPE in camel which makes my endpoint return a: soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; soap:Body soap:Fault faultcodesoap:Server/faultcode faultstringjava.lang.NullPointerException/faultstring /soap:Fault /soap:Body /soap:Envelope The relevant stack trace portion is: ...snip... Caused by: org.apache.camel.RuntimeCamelException: java.lang.NullPointerException at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1139) ~[camel-core-2.7.2.jar:2.7.2] at org.apache.camel.spring.spi.TransactionErrorHandler$1.doInTransactionWithoutResult(TransactionErrorHandler.java:178) ~[camel-spring-2.7.2.jar:2.7.2] at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33) ~[spring-tx-3.0.5.RELEASE.jar:3.0.5.RELEASE] ...snip... Am I doing something wrong or is this a bug in camel? I can provide logs, route definitions, code... anything you might need in case someone wishes to debug this. Thanks in advance, Mirko. -- Claus Ibsen - FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
Re: 2.8.0 source?
Hi You can browse the source here https://svn.apache.org/repos/asf/camel/trunk/ Or download it from Apache http://camel.apache.org/download Or from Maven repo http://repo2.maven.org/maven2/org/apache/camel/apache-camel/2.8.0/ On Tue, Aug 2, 2011 at 3:11 PM, Alistair Young alistair.yo...@uhi.ac.uk wrote: I'd like to look at the 2.8.0 source to see if there's an example of sending email from a spring defined route but all the source links are 404 Alistair -- mov eax,1 mov ebx,0 int 80h -- Claus Ibsen - FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
Re: Camel CXF Endpoint creating incomplete WSDL?
OK, I did it: https://issues.apache.org/jira/browse/CAMEL-4294 Regards, Original-Nachricht Datum: Fri, 29 Jul 2011 22:23:17 +0800 Von: Willem Jiang willem.ji...@gmail.com An: users@camel.apache.org Betreff: Re: Camel CXF Endpoint creating incomplete WSDL? Can you create a JIRA and submit a simple test case with it ? It's strange, I don't think camel-cxf code can effect the WSDL generation. On 7/29/11 7:39 PM, inliner...@gmx.de wrote: I am using explicit dependencies in the POM for CXF and use version 2.4.1. I inspected the WEB-INF/lib folder and in both cases, using camel 2.7.2 or 2.8.0 I have only the CXF 2.4.1 jars deployed. I think it is not related to version clashes, since 2.8.0 by default uses CXF 2.4.1. I did an even more interesting test: I deploy at the same time a Camel CXF Endpoint and a JAX WS endpoint of the very same class: cxf:cxfEndpoint id=camelEndpoint address=/camel serviceClass=com.test.SomeClass / jaxws:endpoint id=cxfEndpoint address=/cxf implementor=com.test.SomeClass / The WSDL at the cxf URL is correct, the Camel one not, so this makes sure that the very same JARs produce the error, and it must be some handling related to the Camel endpoint. With Camel 2.7.2 none of these issues occur. Original-Nachricht Datum: Fri, 29 Jul 2011 19:18:35 +0800 Von: Willem Jiangwillem.ji...@gmail.com An: users@camel.apache.org Betreff: Re: Camel CXF Endpoint creating incomplete WSDL? Can you compare the mvn dependency:tree difference between using Camel 2.7.2 and Camel 2.8.0? It could relate to some ws annotation jars. On Fri Jul 29 18:58:41 2011, inliner...@gmx.de wrote: I use latest Camel version 2.8 and CXF 2.4.1 I don't use OSGi, but deploy Camel into Tomcat. I know that Camel delegates to CXF and I am using the same versions, which is even more confusing. Moreover, I discovered the following: If I use the very same code and just change in the pom.xml from Camel 2.8.0 to 2.7.2 the WSDL is correct! I have the CXF dependencies explicitly in my POM pointing to 2.4.1 an I don't change these. So could anyone please verify, for me this might be a hint for a bug in version 2.8.0 Thx. quote author=Willem.Jiang Which version of CXF are you using? Do you use camel inside of Karaf or other OSGi container ? camel-cxf is delegate the WSDL generation to CXF, so there should no difference between the generated wsdl of camel-cxf and CXF, if you are using same version of CXF. /quote -- Willem -- FuseSource Web: http://www.fusesource.com Blog:http://willemjiang.blogspot.com (English) http://jnn.javaeye.com (Chinese) Twitter: willemjiang Weibo: willemjiang -- Willem -- FuseSource Web: http://www.fusesource.com Blog:http://willemjiang.blogspot.com (English) http://jnn.javaeye.com (Chinese) Twitter: willemjiang Weibo: willemjiang -- Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
how to get CamelContext using Spring
Hi All, i am trying to use camel in my spring based web-application here is the entries from my web.xml ?xml version=1.0 encoding=UTF-8? web-app version=2.4 servlet servlet-namedispatcher/servlet-name servlet-class org.springframework.web.servlet.DispatcherServlet /servlet-class load-on-startup2/load-on-startup /servlet listener listener-classorg.springframework.web.context.ContextLoaderListener/listener-class /listener servlet-mapping servlet-namedispatcher/servlet-name url-pattern*.*/url-pattern /servlet-mapping /web-app my applicationContext.xml file is something like this ?xml version=1.0 encoding=UTF-8? beans xmlns=http://www.springframework.org/schema/beans; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:context=http://www.springframework.org/schema/context; xsi:schemaLocation= http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd; camelContext xmlns=http://camel.apache.org/schema/spring; route from uri=seda:foo/ to uri=mock:results/ /route /camelContext /beans when i am starting my application it is showing that camel context has been started and it has detected one route,now i want to execute a process where camel should read this route and than start process and complete the route as per configuration.But i am not sure how can i get regrence of the camel context since if i create a new instance of camelContext inside my java class that means i am creating a new context and not the one i initiated using spring,can any one suggest me a way to do it so that i can get refrence of the existing camelContext being created by the Spring so that i can take advantage of it. Thanks in advance
XmlBeans - Working with the data from the routes
What are my options for working with XML object instances after I use a route to unmarshal the data with XmlBeans. Just a couple of pointers as how this is done would be cool... Thanks! -- Robert
Re: Route does not shut down if there is no message on poll.
sorr but I don't understand where I would put that code. -- View this message in context: http://camel.465427.n5.nabble.com/Route-does-not-shut-down-if-there-is-no-message-on-poll-tp476108p4659580.html Sent from the Camel - Users mailing list archive at Nabble.com.
Oracle Coherence Camel Component v1.0 released
Hi, I shared my code (I hope it can be linked in the components page) inside google code: http://code.google.com/p/oracle-coherence-camel-component/ Suggestions and feedbacks are welcome. -- View this message in context: http://camel.465427.n5.nabble.com/Oracle-Coherence-Camel-Component-v1-0-released-tp4660241p4660241.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Get raw string from header without decosing?
Hello Martin! I didn't had the time to look into it today. I hope I will find some minutes tomorrow or the day after tomorrow. Keep you posted... Best, Christian
Windows network share?
Can I consume files from network share like \\server\sharefile://server/share? I tried File component but it did not work...