Re: java mail camel smtp
On Mon, Nov 19, 2012 at 7:44 AM, maheshadepu maheshad...@gmail.com wrote: This is more of java mail question. I am trying to use Camel smtp component. I am getting the following exception com.sun.mail.smtp.SMTPSenderFailedException: 550 5.0.0 Only pre-authorized systems may access this MTA I am passing all the required info. ( smtp server,username,password..etc) Could you please tell me how could i debug this further? I suggest to google that exception and see if there is any relevant links that can help you. Thanks, Mahesh -- View this message in context: http://camel.465427.n5.nabble.com/java-mail-camel-smtp-tp5722939.html Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen - Red Hat, Inc. FuseSource is now part of Red Hat Email: cib...@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen
Groovy problem when an expression is evaluated by Camel
Hi all, does anyone have this problem before? Do you know why is this happening? Caused by: java.lang.VerifyError: (class: org/codehaus/groovy/runtime/ArrayUtil, method: createArray signature: ()[Ljava/lang/Object;) Illegal type in constant pool at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) at script1351594798068668539594.run(script1351594798068668539594.groovy:1) at org.apache.camel.language.groovy.GroovyExpression.evaluate(GroovyExpression.java:55) at org.apache.camel.processor.TransformProcessor.process(TransformProcessor.java:40) at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61) ... 89 more In the logs, i´ve also seen this problem: Caused by: java.lang.VirtualMachineError: out of space in CodeCache for adapters Any idea? Thanks, Ana -- View this message in context: http://camel.465427.n5.nabble.com/Groovy-problem-when-an-expression-is-evaluated-by-Camel-tp5722946.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: StackOverflowError when using restlet component with relative path
Hi massyl Thank you for your example. Unfortunately we do not use Spring, so we have to initialize jaxrs:server whit Java directly. Therefore I use the Camel-Bean-Component. With following code, Camel is not started up. No exception/error is throwing :-/ So I don't know where the problem is. I think that my RestCamelBean is not correct. Does someone know, what I'm doing wrong? Route definition: from(cxfrs:bean:restCamelBean) .log(- JAX RS Request Body: \n: ${body}) .log(- JAX RS Request headers: \n: ${headers}) .setBody(constant(REST Config is ok)); I've tried to initialize the JAXRSServerFactoryBean like that: public class RestCamelBean { public RestCamelBean() { try { JAXRSServerFactoryBean bean = new JAXRSServerFactoryBean(); bean.setResourceClasses(ValidationRestService.class); bean.setAddress(/); bean.setStart(true); bean.setTransportId(CxfBeanTransportFactory.TRANSPORT_ID); bean.create(); } catch (Exception e) { e.printStackTrace(); } } } My Rest-Server Interface looks like that: @Path(/restService) public interface ValidationRestService { @GET @Path(/test) public String test(); } web.xml is the same like yours: servlet servlet-nameCXFServlet/servlet-name servlet-classorg.apache.cxf.transport.servlet.CXFServlet/servlet-class load-on-startup1/load-on-startup /servlet servlet-mapping servlet-nameCXFServlet/servlet-name url-pattern/rest/*/url-pattern /servlet-mapping So the Camel-Endpoint shold be adressed to http://servername/webRootContext/rest/restService/test Would be great If someone could help me. Greetings Chris Original-Nachricht Datum: Fri, 16 Nov 2012 06:16:40 -0800 (PST) Von: massyl massil.n...@gmail.com An: users@camel.apache.org Betreff: Re: StackOverflowError when using restlet component with relative path Hi chrispy, Deploy a rest endpoint using CXFRS without launching a new server: 1) add maven dependencies pom.xml (me i've added : camel-cxf, cxf-bundle-jaxrs and cxf-rt-frontend-jaxrs with cxf version 2.6.1) 2) configure web.xm servlet servlet-nameCXFServlet/servlet-name servlet-classorg.apache.cxf.transport.servlet.CXFServlet/servlet-class load-on-startup1/load-on-startup /servlet servlet-mapping servlet-nameCXFServlet/servlet-name url-pattern/rest/*/url-pattern /servlet-mapping 3) add server bean in spring context jaxrs:server id=sampleResource address=/ jaxrs:serviceBeans bean class=com.example.rest.SampleResource / /jaxrs:serviceBeans /jaxrs:server 4) define a routeBuilder (in java or in xml) from(cxfrs://bean://sampleResource)to(...) 5) your com.example.rest.SampleResource is jax-rs bean that exposes your uri. ask if you encounter problems. cheers. -- View this message in context: http://camel.465427.n5.nabble.com/StackOverflowError-when-using-restlet-component-with-relative-path-tp5722101p5722865.html Sent from the Camel - Users mailing list archive at Nabble.com.
CXF and Camel Compatibility - noSuchMethod getBindingOperationInfo()
I've been struggling trying to resolve this incompatibility issue so I'm reaching out here to the community to see if there is something obvious in my dependency configs that might jump out as the problem. I'm using CXF endpoing uri, not bean ref and wsdl-first via provider (config below). I tried to provide as much information as I could. My camel deps are 2.10 My cxf rt deps are 2.7.0. I'm getting the below noSuchMethod exception when retrieving the wsdl. * The provider* @WebServiceProvider(portName = ptCreateContract, serviceName = CreateContractService, targetNamespace = http://mhs.mckesson.com/contracting/contract/ContractServiceV1;) @ServiceMode(Mode.PAYLOAD) public class ContractProvider implements ProviderStreamSource { public StreamSource invoke(final StreamSource request) { throw new UnsupportedOperationException(Not implemented!); } } * Using cxf URI not bean ref* cxf://localhost/webservices/contracting?dataFormat=PAYLOADserviceName={http://mhs.mckesson.com/contracting/contract/ContractServiceV1}CreateContractServiceendpointName={http://mhs.mckesson.com/contracting/contract/ContractServiceV1}ptCreateContractserviceClass=com.mckesson.mhs.integration.ws.contracting.ContractProviderdefaultOperationNamespace=http://mhs.mckesson.com/contracting/contract/ContractServiceV1wsdlURL=classpath:com/mckesson/mhs/contracting/contract/ContractServiceV1.wsdl * The camel deps* dependency groupIdorg.apache.camel/groupId artifactIdcamel-core/artifactId version*2.10.0*/version /dependency dependency groupIdorg.apache.camel/groupId artifactIdcamel-servlet/artifactId version*2.10.0*/version /dependency dependency groupIdorg.apache.camel/groupId artifactIdcamel-web/artifactId version*2.10.0*/version typewar/type scoperuntime/scope /dependency dependency groupIdorg.apache.camel/groupId artifactIdcamel-spring/artifactId version*2.10.0*/version /dependency dependency groupIdorg.apache.camel/groupId artifactIdcamel-cxf/artifactId version*2.10.0*/version /dependency dependency groupIdorg.apache.camel/groupId artifactIdcamel-jetty/artifactId version*2.10.0*/version /dependency dependency groupIdorg.apache.camel/groupId artifactIdcamel-velocity/artifactId version*2.10.0*/version /dependency * The cxf runtime deps* dependency groupIdorg.apache.cxf/groupId artifactIdcxf-rt-bindings-soap/artifactId version*2.7.0*/version /dependency dependency groupIdorg.apache.cxf/groupId artifactIdcxf-rt-transports-http-jetty/artifactId version*2.7.0*/version /dependency dependency groupIdorg.apache.cxf/groupId artifactIdcxf-rt-frontend-jaxws/artifactId version*2.7.0*/version /dependency dependency groupIdorg.apache.cxf/groupId artifactIdcxf-rt-ws-policy/artifactId version*2.7.0*/version /dependency dependency groupIdorg.apache.cxf/groupId artifactIdcxf-rt-core/artifactId version*2.7.0*/version /dependency * The cxf servlet config* servlet servlet-nameCXFServlet/servlet-name servlet-classorg.apache.cxf.transport.servlet.CXFServlet/servlet-class load-on-startup1/load-on-startup /servlet servlet-mapping servlet-nameCXFServlet/servlet-name url-pattern/webservices/*/url-pattern /servlet-mapping * The exception* Nov 19, 2012 9:03:13 AM org.apache.cxf.phase.PhaseInterceptorChain doIntercept WARNING: Interceptor has thrown exception, unwinding now org.apache.cxf.interceptor.Fault: org.apache.cxf.message.Exchange.getBindingOperationInfo()Lorg/apache/cxf/service/model/BindingOperationInfo; at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:123) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236) at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:109) at org.apache.cxf.transport.servlet.ServletDestination.invoke(ServletDestination.java:98) at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:394) at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:170) at org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java:142) at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:179) at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:108) at
Re: Christian Schneider Karaf Tutorial Part 6 - Database Access problem
Hi, the exception Caused by: java.lang.ClassCastException: org.apache.openjpa.persistence.PersistenceProviderImpl cannot be cast to javax.persistence.spi.PersistenceProvider typically means that you have two interfaces PeristenceProvider on your classpath. So either there are two bundles that export this package or you have the package exported by jre.properties and by a bundle. Christian On 11/19/2012 04:51 PM, sekaijin wrote: Hello, I did the tutorial christian with many dificultées. Thank you because it is clear. My goal is to make a bundle jms2jpa with a model with many relationship. I had a lot of pb to get it to work. I tried many solutions found on the net and I got to do work. I intended to recover the historical Karaf list of features and bundles that I have installed. but I had an OutOfMemory and I lost history the platform does not rebooting I returned to zero by following step by step tutorial. but it does not work with JPA the list of deployed bundles the error is I think I'm missing a bundle but I do not find that thank to help me A+JYT -- View this message in context: http://camel.465427.n5.nabble.com/Christian-Schneider-Karaf-Tutorial-Part-6-Database-Access-problem-tp5722958.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Groovy problem when an expression is evaluated by Camel
You did not include your actual Groovy expression, the Groovy version, Camel version, so it's hard to tell. There has been a thread about a seemingly similar issue at http://groovy.329449.n5.nabble.com/VirtualMachineError-OOM-in-JiT-space-at-Groovy-1-8-6-startup-td5710579.html. Maybe this helps. cheers Christian 2012/11/19 anaCortes anquiroe...@hotmail.com: Hi all, does anyone have this problem before? Do you know why is this happening? Caused by: java.lang.VerifyError: (class: org/codehaus/groovy/runtime/ArrayUtil, method: createArray signature: ()[Ljava/lang/Object;) Illegal type in constant pool at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) at script1351594798068668539594.run(script1351594798068668539594.groovy:1) at org.apache.camel.language.groovy.GroovyExpression.evaluate(GroovyExpression.java:55) at org.apache.camel.processor.TransformProcessor.process(TransformProcessor.java:40) at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61) ... 89 more In the logs, i´ve also seen this problem: Caused by: java.lang.VirtualMachineError: out of space in CodeCache for adapters Any idea? Thanks, Ana -- View this message in context: http://camel.465427.n5.nabble.com/Groovy-problem-when-an-expression-is-evaluated-by-Camel-tp5722946.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Christian Schneider Karaf Tutorial Part 6 - Database Access problem
thank you, I deleted everything I redémaré Karaf the feature [installed ] [1.0.2-SNAPSHOT] camel-activemq hermes is activemq camel-jms activemq-blueprint activemq-camel th feature [installed ] [1.0.2-SNAPSHOT] hermes-ressources hermes is wrap:mvn:ojdbc/ojdbc/14 mvn:commons-lang/commons-lang/2.6 mvn:org.apache.geronimo.specs/geronimo-activation_1.1_spec/1.0.2 mvn:org.apache.geronimo.specs/geronimo-stax-api_1.0_spec/1.0.1 wrap:mvn:c3p0/c3p0/0.9.1.2 wrap:mvn:net.jcip/jcip-annotations/1.0 blueprint:file:etc/activemq-broker.xml blueprint:file:etc/hermesDataSources.xml blueprint:file:etc/suiviDataSource.xml blueprint:file:etc/transcoDataSource.xml the feature [installed ] [1.0.2-SNAPSHOT] hermes-bdd hermes is camel-jap and lib with facilities I installed: features:install jpa jndi transaction install -s mvn:commons-collections/commons-collections/3.2.1 install -s mvn:commons-pool/commons-pool/1.5.4 install -s mvn:commons-dbcp/commons-dbcp/1.4 install -s mvn:commons-lang/commons-lang/2.6 install -s wrap:mvn:net.sourceforge.serp/serp/1.13.1 install -s mvn:org.apache.openjpa/openjpa/2.1.1 install -s mvn:org.apache.aries/org.apache.aries.util/0.4 install -s mvn:net.lr.tutorial.karaf.cameljpa/jpa2jms/1.0-SNAPSHOT I have no other bundle and the same exception A+JYT -- View this message in context: http://camel.465427.n5.nabble.com/Christian-Schneider-Karaf-Tutorial-Part-6-Database-Access-problem-tp5722958p5722964.html Sent from the Camel - Users mailing list archive at Nabble.com.
Using Camel with Java DSL and minimal Spring
I am trying to understand if it is feasible to configure routes and things at runtime from Java rather than having to deploy a bunch of fixed xml files for spring configuration. I can work through simple examples easy enough (say sending data through activeMQ) but am having some problem with the BAM example. if I just copy the java DSL bit the activity monitoring does not happen and I can't figure out if the routes aren't there or why it would not work. Is there a strict dependency in BAM that requires setup in Spring? I don't have my code with me, but the BAM bit was a cut and paste from the example and a copy of the files (invoice/purchase order) into my project. I don't get any exceptions either which is sort of odd. Thanks
Re: Using Camel with Java DSL and minimal Spring
Do you have any stack trace? Did you setup the jpa persistence layer properly? That's the bit that is mandatory and in our example is done via spring (iirc). Hadrian On 11/19/2012 02:03 PM, Jay Walters wrote: I am trying to understand if it is feasible to configure routes and things at runtime from Java rather than having to deploy a bunch of fixed xml files for spring configuration. I can work through simple examples easy enough (say sending data through activeMQ) but am having some problem with the BAM example. if I just copy the java DSL bit the activity monitoring does not happen and I can't figure out if the routes aren't there or why it would not work. Is there a strict dependency in BAM that requires setup in Spring? I don't have my code with me, but the BAM bit was a cut and paste from the example and a copy of the files (invoice/purchase order) into my project. I don't get any exceptions either which is sort of odd. Thanks
Basic question about synchronous queues and pipes..
Hi, I looked into documentations/questions and I am not sure about the responses I seen. I want to send an http request at each 5 seconds and delay the response by 3 minutes before processing it. The http request time can vary a lot before getting a response, but I want to keep the order intact, and process every response in the right order. Can it be done directly like this : from(http4:...).delay(5000).to(direct:abc).delay(18).process(...); There is a queue inside direct that follow the request order ? The message will be overwritten ? It needs to be on 2 'from' lines? Use a different component ? Thank you for your time ! -- View this message in context: http://camel.465427.n5.nabble.com/Basic-question-about-synchronous-queues-and-pipes-tp5722970.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Re: Using Camel with Java DSL and minimal Spring
No I stubbed out the jpa stuff. Is it documented what needs to be done, or do I just decode the spring xml ( I can do that, just not my first choice). I will poke around for one of the other examples to have the jpa bit and see if I can work it out. Thanks On 11/19/12, Hadrian Zbarcea wrote: Do you have any stack trace? Did you setup the jpa persistence layer properly? That's the bit that is mandatory and in our example is done via spring (iirc). Hadrian On 11/19/2012 02:03 PM, Jay Walters wrote: I am trying to understand if it is feasible to configure routes and things at runtime from Java rather than having to deploy a bunch of fixed xml files for spring configuration. I can work through simple examples easy enough (say sending data through activeMQ) but am having some problem with the BAM example. if I just copy the java DSL bit the activity monitoring does not happen and I can't figure out if the routes aren't there or why it would not work. Is there a strict dependency in BAM that requires setup in Spring? I don't have my code with me, but the BAM bit was a cut and paste from the example and a copy of the files (invoice/purchase order) into my project. I don't get any exceptions either which is sort of odd. Thanks