how to debug child instance remotely on child instance
sorry here is not correct place to post this question but i did not get reply from jboss forum, i assume maybe camel user is also using camel on jboss fuse. maybe have some hints about this question I am able to debug root instance on jboss fuse 620 but it seems i could not debug child instance on jboss fuse what i did is i just go to /instances/child/bin, put export KARAF_DEBUG=true entry at /instances/child/bin/karaf file but it doesnot work how do i debug my bundle on child instance?there are two files under //instances/child/bin , one is karaf another is start, what are different? Which file will be called during child instance starting? Any hints will be more than welcomed.! -- View this message in context: http://camel.465427.n5.nabble.com/how-to-debug-child-instance-remotely-on-child-instance-tp5775257.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: the bundle is wating for namespace handlers
thanks for the quick reply below is features installed, features:list |grep jetty [installed ] [8.1.17.v20150415 ] jetty [installed ] [3.0.4.redhat-620133 ] cxf-http-jetty [installed ] [8.1.17.v20150415 ] pax-jetty [installed ] [2.15.1.redhat-620133 ] camel-jetty [uninstalled] [2.15.1.redhat-620133 ] camel-jetty9 -- View this message in context: http://camel.465427.n5.nabble.com/the-bundle-is-wating-for-namespace-handlers-tp5773434p5773443.html Sent from the Camel - Users mailing list archive at Nabble.com.
the bundle is wating for namespace handlers
i got below error the bundle is waiting for namespace handlers [http://cxf.apache.org/transports/http-jetty/configuration] i also installed camel-cxf feature below is my blueprint namespace part any hints will be more than welcom! http://www.osgi.org/xmlns/blueprint/v1.0.0; xmlns:jms="http://servicemix.apache.org/jms/1.0; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0; xmlns:sec="http://cxf.apache.org/configuration/security; xmlns:jaxrs="http://cxf.apache.org/blueprint/jaxrs; xmlns:httpj="http://cxf.apache.org/transports/http-jetty/configuration; xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd http://cxf.apache.org/blueprint/jaxrs http://cxf.apache.org/schemas/blueprint/jaxrs.xsd http://cxf.apache.org/configuration/security http://cxf.apache.org/schemas/configuration/security.xsd http://cxf.apache.org/transports/http-jetty/configuration http://cxf.apache.org/schemas/configuration/http-jetty.xsd "> -- View this message in context: http://camel.465427.n5.nabble.com/the-bundle-is-wating-for-namespace-handlers-tp5773434.html Sent from the Camel - Users mailing list archive at Nabble.com.
How to configure org.apache.cxf.interceptor.security.JAASLoginInterceptor ?
According the example of JAASLoginInterceptor in fuse, the user and password for basic auth will be configured in fuse's etc\user.properties file like below. the question is I want to use JAASLoginInterceptor for basic auth, but i dont want to configure user,password , role in fuse's user.properties file could I configure them in blueprint.xml instead? any hints will be more than welcome! # # This file contains the valid users who can log into Karaf. Each line have to be of # the format: # # USER=PASSWORD,ROLE1,ROLE2,... # # All users and roles entered in this file are available after Karaf startup # and modifiable via the JAAS command group. These users reside in a JAAS domain # with the name karaf.. # karaf=karaf,admin bean id=authenticationInterceptor class=org.apache.cxf.interceptor.security.JAASLoginInterceptor property name=contextName value=karaf/ /bean jaxrs:server id=customerService address=/securecrm jaxrs:serviceBeans ref component-id=customerSvc/ /jaxrs:serviceBeans jaxrs:inInterceptors ref component-id=authenticationInterceptor/ /jaxrs:inInterceptors jaxrs:providers bean class=org.codehaus.jackson.jaxrs.JacksonJaxbJsonProvider/ /jaxrs:providers /jaxrs:server -- View this message in context: http://camel.465427.n5.nabble.com/How-to-configure-org-apache-cxf-interceptor-security-JAASLoginInterceptor-tp5770414.html Sent from the Camel - Users mailing list archive at Nabble.com.
camel cxf rest doesnot work on my routebuilder at FUSE
i defined a route for camel cxf rest in proxy way on camel-context.xml it is working fine without any problme but when i define this route in Routebuilder. it does not work. i can see the the TestRestProcessor is called but does not return result to client any hints will be more than welcome! cxf:rsServer id=testRest address=http://0.0.0.0:9191/rest; serviceClass=org.apache.camel.example.rest.TestRestService/ bean id=reportIncidentRoutes class=org.apache.camel.example.reportincident.ReportIncidentRoutes/ bean id=restTestProcessor class=org.apache.camel.example.rest.TestRestProcessor/ camel:route camel:from uri=cxfrs://bean://testRest/ camel:setHeader headerName=CamelCxfRsUsingHttpAPI camel:constantTrue/camel:constant /camel:setHeader camel:to uri=restTestProcessor/ /camel:route in route builder from(cxfrs:bean:testRest).to(bean:restTestProcessor); -- View this message in context: http://camel.465427.n5.nabble.com/camel-cxf-rest-doesnot-work-on-my-routebuilder-at-FUSE-tp5770270.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: question about example at http://camel.apache.org/cxfrs.html
sorry, i dont understand what do you mean by That example you talk about is about CXF and camel-cxf. So take a closer look at that http://camel.apache.org/cxf http://cxf.apache.org/ the example I am talking about is from http://camel.apache.org/cxfrs.html as below shown bean id=customerService class=org.apache.camel.component.cxf.jaxrs.testbean.CustomerService / cxf:rsServer id=rsServer address=http://localhost:${CXFTestSupport.port1}/CxfRsRouterTest/route; serviceClass=org.apache.camel.component.cxf.jaxrs.testbean.CustomerService loggingFeatureEnabled=true loggingSizeLimit=20 skipFaultLogging=true/ cxf:rsClient id=rsClient address=http://localhost:${CXFTestSupport.port2}/CxfRsRouterTest/rest; serviceClass=org.apache.camel.component.cxf.jaxrs.testbean.CustomerService loggingFeatureEnabled=true skipFaultLogging=true/ camelContext id=camel xmlns=http://camel.apache.org/schema/spring; route from uri=cxfrs://bean://rsServer/ setHeader headerName=CamelCxfRsUsingHttpAPI constantTrue/constant /setHeader to uri=cxfrs://bean://rsClient/ /route /camelContext -- View this message in context: http://camel.465427.n5.nabble.com/question-about-example-at-http-camel-apache-org-cxfrs-html-tp5769949p5769973.html Sent from the Camel - Users mailing list archive at Nabble.com.
question about example at http://camel.apache.org/cxfrs.html
i am confused about the example from apache camel, the example is as belowcxf:rsServer and cxf:rsClient both have same serivce class. why is that? what is the purpose?Thanksbtw where could I download the example source code? True -- View this message in context: http://camel.465427.n5.nabble.com/question-about-example-at-http-camel-apache-org-cxfrs-html-tp5769949.html Sent from the Camel - Users mailing list archive at Nabble.com.
why should I modify jre.properties to run camel osgi example in fuseesb
to run camel-example-cxf-osgi\2.9.0 example on on Apache ServiceMix 4.x or Apache Karaf 2.2.x. it is required to do below change. why should I do this? a) edit the etc/jre.properties file to add the following packages to be exported jre-1.6=, \ com.sun.org.apache.xerces.internal.dom, \ com.sun.org.apache.xerces.internal.jaxp, \ b) from the same file comment out the following exports already provided by the bundles that will be imported next: javax.xml.bind*, javax.jws*, javax.xml.soap*, javax.xml.ws*, javax.activation, javax.annotation, javax.xml.stream*. -- View this message in context: http://camel.465427.n5.nabble.com/why-should-I-modify-jre-properties-to-run-camel-osgi-example-in-fuseesb-tp5767789.html Sent from the Camel - Users mailing list archive at Nabble.com.
how to which version of camel is used by fuse-esb?
what i used is FuseESB:karaf@root features:listUrl Loaded URI true mvn:org.apache.camel.karaf/apache-camel/2.9.0.fuse-70-084/xml/features then i found out apache-camel/2.9.0.fuse-70-084 is used is there any other way? Any hints will be more than welcome! Thx -- View this message in context: http://camel.465427.n5.nabble.com/how-to-which-version-of-camel-is-used-by-fuse-esb-tp5767738.html Sent from the Camel - Users mailing list archive at Nabble.com.
is it dependency issue?
when i try to start bundle, i got below error. is it dependency issue? Caused by: org.apache.camel.RuntimeCamelException: Cannot auto create component: file at org.apache.camel.impl.DefaultCamelContext.getComponent(DefaultCamelContext.java:322) at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:441) ... 27 more Caused by: java.lang.ClassCastException: org.apache.camel.impl.osgi.Activator$BundleComponentResolver cannot be cast to org.apache.camel.spi.ComponentResolver at org.apache.camel.core.osgi.OsgiComponentResolver.getComponent(OsgiComponentResolver.java:72) at org.apache.camel.core.osgi.OsgiComponentResolver.resolveComponent(OsgiComponentResolver.java:64) at org.apache.camel.impl.DefaultCamelContext.getComponent(DefaultCamelContext.java:311) ... 28 more -- View this message in context: http://camel.465427.n5.nabble.com/is-it-dependency-issue-tp5767374.html Sent from the Camel - Users mailing list archive at Nabble.com.
how can this pom compile?
i did not any value defined for ${cxf-version} defined in apache-camel-2.14.0\examples\camel-example-cxf-osgi 's pom.xml and it's parent pom.xml then how can it compile? dependency groupIdorg.apache.cxf/groupId artifactIdcxf-rt-transports-http-jetty/artifactId version${cxf-version}/version scopetest/scope /dependency Any hints will be more than welcome! -- View this message in context: http://camel.465427.n5.nabble.com/how-can-this-pom-compile-tp5766980.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: how can this pom compile?
[echo] Displaying value of pom.xml element [echo] [cxf-version] 3.0.1 version is 3.0.1 -- View this message in context: http://camel.465427.n5.nabble.com/how-can-this-pom-compile-tp5766980p5766983.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: how can this pom compile?
i didnot find this variable defined in parent pom.xml (apache-camel-2.14.0\pom.xml) ?xml version=1.0 encoding=UTF-8? project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion parent groupIdorg.apache.camel/groupId artifactIdcamel-parent/artifactId version2.14.0/version relativePath../parent/relativePath /parent artifactIdexamples/artifactId nameCamel :: Examples/name descriptionCamel Examples/description packagingpom/packaging modules modulecamel-example-activemq-tomcat/module modulecamel-example-aggregate/module modulecamel-example-bam/module modulecamel-example-box-osgi/module modulecamel-example-cafe/module modulecamel-example-cdi/module modulecamel-example-cxf-blueprint/module modulecamel-example-cxf-proxy/module modulecamel-example-cxf-tomcat/module modulecamel-example-console/module modulecamel-example-docs/module modulecamel-example-etl/module modulecamel-example-ftp/module modulecamel-example-gae/module modulecamel-example-gauth/module modulecamel-example-guice-jms/module modulecamel-example-jdbc/module modulecamel-example-jmx/module modulecamel-example-jms-file/module modulecamel-example-loadbalancing/module modulecamel-example-loan-broker/module modulecamel-example-management/module modulecamel-example-mybatis/module modulecamel-example-netty-http/module modulecamel-example-osgi/module modulecamel-example-osgi-rmi/module modulecamel-example-pojo-messaging/module modulecamel-example-reportincident/module modulecamel-example-reportincident-wssecurity/module modulecamel-example-restlet-jdbc/module modulecamel-example-route-throttling/module modulecamel-example-servlet-rest-blueprint/module modulecamel-example-servlet-rest-tomcat/module modulecamel-example-servlet-tomcat/module modulecamel-example-servlet-tomcat-blueprintweb/module modulecamel-example-servlet-tomcat-no-spring/module modulecamel-example-simplejirabot/module modulecamel-example-spark-rest-tomcat/module modulecamel-example-splunk/module modulecamel-example-spring/module modulecamel-example-spring-javaconfig/module modulecamel-example-spring-jms/module modulecamel-example-spring-ws/module modulecamel-example-spring-xquery/module modulecamel-example-spring-security/module modulecamel-example-ssh/module modulecamel-example-ssh-security/module modulecamel-example-sql/module modulecamel-example-sql-blueprint/module modulecamel-example-tracer/module modulecamel-example-twitter-websocket/module modulecamel-example-twitter-websocket-blueprint/module /modules properties camel.osgi.symbolic.name${project.artifactId}/camel.osgi.symbolic.name skip.starting.camel.contextfalse/skip.starting.camel.context /properties build resources resource directorysrc/main/resources/directory filteringtrue/filtering /resource /resources plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-resources-plugin/artifactId executions execution phaseprocess-resources/phase goals goalresources/goal /goals /execution /executions /plugin plugin artifactIdmaven-surefire-plugin/artifactId configuration forkModepertest/forkMode systemPropertyVariables skipStartingCamelContext${skip.starting.camel.context}/skipStartingCamelContext /systemPropertyVariables /configuration /plugin /plugins pluginManagement plugins plugin groupIdorg.eclipse.m2e/groupId artifactIdlifecycle-mapping/artifactId version1.0.0/version configuration lifecycleMappingMetadata pluginExecutions pluginExecution pluginExecutionFilter groupIdorg.apache.felix/groupId artifactIdmaven-bundle-plugin/artifactId versionRange[2.3.7,)/versionRange goals goalcleanVersions/goal /goals /pluginExecutionFilter action ignore / /action /pluginExecution
suggestions for HTTPClientPolicy setting
I am using below code at client side to do one way ssl client is calling server , it seems to be working but not stable any suggestions for param setting especially something like setConnectionTimeout setAllowChunking setReceiveTimeout setConnection what do those param mean and how to use them in best practise? org.apache.cxf.endpoint.Client client = ClientProxy.getClient(port); HTTPConduit conduit = (HTTPConduit) client.getConduit(); HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy(); httpClientPolicy.setConnectionTimeout(36000); httpClientPolicy.setAllowChunking(false); //default is 6 httpClientPolicy.setReceiveTimeout(60); httpClientPolicy.setConnection(ConnectionType.KEEP_ALIVE); conduit.setClient(httpClientPolicy); TLSClientParameters tls = getTLSClientParameters(trustStorePath, trustStorePass); conduit.setTlsClientParameters(tls); conduit.getClient().setAcceptEncoding(utf-8); conduit.getClient().setAccept(text/xml); -- View this message in context: http://camel.465427.n5.nabble.com/suggestions-for-HTTPClientPolicy-setting-tp5765703.html Sent from the Camel - Users mailing list archive at Nabble.com.
how does it work ? if no schema location
Here is example of Using property placeholders for any kind of attribute in the XML DSL Available as of Camel 2.7 beans xmlns=http://www.springframework.org/schema/beans; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:prop=http://camel.apache.org/schema/placeholder; xsi:schemaLocation= http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd my question is how could it work? there is no schemaLocation of for the name space (http://camel.apache.org/schema/placeholder) any hints will be more than welcome! ? -- View this message in context: http://camel.465427.n5.nabble.com/how-does-it-work-if-no-schema-location-tp5759543.html Sent from the Camel - Users mailing list archive at Nabble.com.
how to put jaxrs:server as endpoint in route from?
Hey All, I have below jaxrs:server define like below. how to put it as endpoint into route? below is the code example, but it doest not work for me jaxrs:server id=rsServerSecure address=https://0.0.0.0:9089/rest; jaxrs:serviceBeans ref component-id=rest/ /jaxrs:serviceBeans /jaxrs:server bean id=rest class=com.rest.RESTResource/ bean id=restprocessor class=com.rest.camel.RESTResourceProcessor/ route id=restroute streamCache=true from uri=jaxrs:server:rsServerSecure / to uri=bean:restprocessor / /route -- View this message in context: http://camel.465427.n5.nabble.com/how-to-put-jaxrs-server-as-endpoint-in-route-from-tp5755249.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: how to put jaxrs:server as endpoint in route from?
Could you please a little bite elaborate how to do this? *and a route redirecting from a Camel Servlet redirecting to camel:/rest. * -- View this message in context: http://camel.465427.n5.nabble.com/how-to-put-jaxrs-server-as-endpoint-in-route-from-tp5755249p5755267.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: how to put jaxrs:server as endpoint in route from?
Hi Claus, I followed you suggestion, but seems i did not get reply , below is my route and RestPRocessor route id=restroute streamCache=true from uri=cxfrs://bean://rsServerSecure / to uri=bean:restprocessor / /route public class RESTResourceProcessor implements Processor { private static final Logger log = LoggerFactory.getLogger(RESTResourceProcessor.class); @Override public void process(Exchange exchng) throws Exception { Object obj=exchng.getIn().getBody(); log.info(RESTResourceProcessor process + +obj.getClass().getName()); String xml = htmlbody Hello World!/body /html; exchng.getIn().setBody(Response.status(200).entity(xml).build()); } } -- View this message in context: http://camel.465427.n5.nabble.com/how-to-put-jaxrs-server-as-endpoint-in-route-from-tp5755249p5755268.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: CustomSoapFault Problem
could you please send me or copy me the WSDL file of the webserivce from your blog below ? http://willemjiang.blogspot.de/2011_01_01_archive.html Thx! nono -- View this message in context: http://camel.465427.n5.nabble.com/CustomSoapFault-Problem-tp5751844p5754513.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: CustomSoapFault Problem
Sorry, i made a type error pacakge name should be com.nono.types instead of com.nono.type, i re-tried it, but same problem wsdl and package name alreadyd updated in the post thread! wsdl should be correct it is generated against below service interface package com.nono; import javax.jws.WebService; import javax.jws.WebMethod; import javax.jws.WebParam; /** * * @author nono */ @WebService(serviceName = MyWebService) public class MyWebService { /** * This is a sample web service operation */ @WebMethod(operationName = hello) public String hello(@WebParam(name = name) String txt)throws MyWebServiceFault { return Hello + txt + !; } } -- View this message in context: http://camel.465427.n5.nabble.com/CustomSoapFault-Problem-tp5751844p5752139.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: CustomSoapFault Problem
By exception message you mean MyWebServiceFault extends Exception ? By SoapFault message you mean MyWebServiceFault (JAXB POJO)? acutally they shold not have name space conflicting, i followed exactly your blog at com.nono package , i put MyWebServiceFault (exception message) which targetNamespace is http://com/nono/types at com.nono.type, i put MyWebServiceFault (soapfault message) see example below ###exception message## package com.nono; import javax.xml.ws.WebFault; /** * * @author nono */ @WebFault(name = MyWebServiceFault, targetNamespace = http://com/nono/types;) public class MyWebServiceFault extends Exception { private com.nono.type.MyWebServiceFault myWebServiceFault; public MyWebServiceFault() { super(); } public MyWebServiceFault(String message) { super(message); } public MyWebServiceFault(String message, Throwable cause) { super(message, cause); } public MyWebServiceFault(String message, com.nono.type.MyWebServiceFault myWebServiceFault) { super(message); this.myWebServiceFault = myWebServiceFault; } public MyWebServiceFault(String message, com.nono.type.MyWebServiceFault myWebServiceFault, Throwable cause) { super(message, cause); this.myWebServiceFault = myWebServiceFault; } public com.nono.type.MyWebServiceFault getFaultInfo() { return this.myWebServiceFault; } } ## soapfault message package com.nono.type; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** * * @author nono */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = , propOrder = { operationName, errorMessage }) @XmlRootElement(name = MyWebServiceFault) public class MyWebServiceFault { @XmlElement(required = true) protected String operationName; @XmlElement(required = true) protected String errorMessage; public String getOperationName() { return operationName; } public void setOperationName(String operationName) { this.operationName = operationName; } public String getErrorMessage() { return errorMessage; } public void setErrorMessage(String errorMessage) { this.errorMessage = errorMessage; } } -- View this message in context: http://camel.465427.n5.nabble.com/CustomSoapFault-Problem-tp5751844p5752071.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: CustomSoapFault Problem
the wsdl is ok, wsdl2java will generate MyWebServiceFault_Exception instead of MyWebServiceFault ?xml version=1.0 encoding=UTF-8 standalone=yes? definitions targetNamespace=http://nono.com/; name=MyWebService xmlns=http://schemas.xmlsoap.org/wsdl/; xmlns:wsp=http://www.w3.org/ns/ws-policy; xmlns:tns=http://nono.com/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:wsp1_2=http://schemas.xmlsoap.org/ws/2004/09/policy; xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; xmlns:wsam=http://www.w3.org/2007/05/addressing/metadata; xmlns:wsu=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd; types xs:schema version=1.0 targetNamespace=http://com/nono/types; xmlns:xs=http://www.w3.org/2001/XMLSchema; xs:element name=MyWebServiceFault nillable=true xs:complexType xs:sequence xs:element name=operationName type=xs:string/ xs:element name=errorMessage type=xs:string/ /xs:sequence /xs:complexType /xs:element /xs:schema xs:schema version=1.0 targetNamespace=http://nono.com/; xmlns:xs=http://www.w3.org/2001/XMLSchema; xs:element name=MyWebServiceFault xs:complexType xs:sequence xs:element name=operationName type=xs:string/ xs:element name=errorMessage type=xs:string/ /xs:sequence /xs:complexType /xs:element xs:element name=hello type=tns:hello/ xs:element name=helloResponse type=tns:helloResponse/ xs:complexType name=hello xs:sequence xs:element name=name type=xs:string minOccurs=0/ /xs:sequence /xs:complexType xs:complexType name=helloResponse xs:sequence xs:element name=return type=xs:string minOccurs=0/ /xs:sequence /xs:complexType /xs:schema /types message name=hello part name=parameters element=tns:hello/ /message message name=helloResponse part name=parameters element=tns:helloResponse/ /message message name=MyWebServiceFault part name=fault element=ns1:MyWebServiceFault xmlns:ns1=http://com/nono/types/ /message portType name=MyWebService operation name=hello input wsam:Action=http://nono.com/MyWebService/helloRequest; message=tns:hello/ output wsam:Action=http://nono.com/MyWebService/helloResponse; message=tns:helloResponse/ fault message=tns:MyWebServiceFault name=MyWebServiceFault wsam:Action=http://nono.com/MyWebService/hello/Fault/MyWebServiceFault/ /operation /portType binding name=MyWebServicePortBinding type=tns:MyWebService soap:binding transport=http://schemas.xmlsoap.org/soap/http; style=document/ operation name=hello soap:operation soapAction=/ input soap:body use=literal/ /input output soap:body use=literal/ /output fault name=MyWebServiceFault soap:fault name=MyWebServiceFault use=literal/ /fault /operation /binding service name=MyWebService port name=MyWebServicePort binding=tns:MyWebServicePortBinding soap:address location=REPLACE_WITH_ACTUAL_URL/ /port /service /definitions -- View this message in context: http://camel.465427.n5.nabble.com/CustomSoapFault-Problem-tp5751844p5751989.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: CustomSoapFault Problem
Hi Willem, I also tried below maven plugin, it does not help, seem problem. do you know which maven plugin could help? Thanks! plugin groupIdorg.apache.cxf/groupId artifactIdcxf-codegen-plugin/artifactId version${cxf.version}/version executions execution idgenerate-sources/id phasegenerate-sources/phase configuration sourceRoot${project.build.directory}/generated/cxf/sourceRoot wsdlOptions wsdlOption wsdl${basedir}/src/main/resources/myService.wsdl/wsdl /wsdlOption /wsdlOptions /configuration goals goalwsdl2java/goal /goals /execution /executions /plugin -- View this message in context: http://camel.465427.n5.nabble.com/CustomSoapFault-Problem-tp5751844p5751868.html Sent from the Camel - Users mailing list archive at Nabble.com.
CustomSoapFault Problem
Hi all, I encounter a problem, i try to explain it in short words in my web service method, it declared throws a CustomSoapFault then I used wsgen to generate web service wsdl then I used wsimport to generate the stub code for web service client I found out that in generated stube code CustomSoapFault convert to CustomSoapFault_Excpetion. My question is how to get rid of this annoying _Exception of cose one solution will be rename CustomSoapFault to CustomSoapException, but i dont want to do that. Any hints will be more than welcome! -- View this message in context: http://camel.465427.n5.nabble.com/CustomSoapFault-Problem-tp5751844.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: camel - osgi
Hi Christoph, Thanks for the great recap!!! -- View this message in context: http://camel.465427.n5.nabble.com/camel-osgi-tp5751095p5751168.html Sent from the Camel - Users mailing list archive at Nabble.com.
any good tool to convert blueprint DSL to spring DSL
Dear all, I need to convert my camel bundle from blueprint DSL to spring DSL is there any good tool to do that? or from blueprint DSL to JAVA DSL is also ok any hints will be more than welcome! -- View this message in context: http://camel.465427.n5.nabble.com/any-good-tool-to-convert-blueprint-DSL-to-spring-DSL-tp5750962.html Sent from the Camel - Users mailing list archive at Nabble.com.
camel - osgi
Hi i am not very clear about the relation between camel and osgi could someone explain in short words what is the relation between camel and osgi? what is relation between camel and spring? what are the differences betwen those two relations? Thanks in advance -- View this message in context: http://camel.465427.n5.nabble.com/camel-osgi-tp5751095.html Sent from the Camel - Users mailing list archive at Nabble.com.
dataFormat for cxf endpoint
dataFormat for cxf endpoint Default: POJO Example: POJO, PAYLOAD, MESSAGE Could anyone explain what is different between those three pay load? Thanks in advance -- View this message in context: http://camel.465427.n5.nabble.com/dataFormat-for-cxf-endpoint-tp5750702.html Sent from the Camel - Users mailing list archive at Nabble.com.
how to disable http proxy for camel bundle
Hallo All, I just dont want my camel bunle to use http proxy which is set up at OS How to disable http proxy for it ? Any hints are more than welcom! -- View this message in context: http://camel.465427.n5.nabble.com/how-to-disable-http-proxy-for-camel-bundle-tp5749851.html Sent from the Camel - Users mailing list archive at Nabble.com.
How to map the SOAP fault message with IOExcpetion(or any excpetion from standard java )
Follow this blog http://willemjiang.blogspot.de/ I could map SoapFault with custom exception which is created by user. But how to map the SOAP fault message with IOExcpetion (or any exception from standard java ) Any hints are more than welcome -- View this message in context: http://camel.465427.n5.nabble.com/How-to-map-the-SOAP-fault-message-with-IOExcpetion-or-any-excpetion-from-standard-java-tp5749097.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: How to set List in setBody (Blueprint DSL)
Thanks for the hints. I tried to define list as below.but it does not work what namespace should I use for blueprint for using List ? where could I find such information? list id=secureStartList valueuserid/value valuepassword/value valuecommand/value /list setBody simple${ref:secureStartList}/simple /setBody I got the exception Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'list'. One of '{http://www.osgi.org/xml at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)[:] at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)[:] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)[:] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)[:] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)[:] at org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown Source)[:] at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown Source)[:] at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)[:] at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)[:] at org.apache.xerces.jaxp.validation.DOMValidatorHelper.beginNode(Unknown Source)[:] at org.apache.xerces.jaxp.validation.DOMValidatorHelper.validate(Unknown Source)[:] at org.apache.xerces.jaxp.validation.DOMValidatorHelper.validate(Unknown Source)[:] at org.apache.xerces.jaxp.validation.ValidatorImpl.validate(Unknown Source)[:] My blueprint header is as below blueprint xmlns=http://www.osgi.org/xmlns/blueprint/v1.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:camel=http://camel.apache.org/schema/blueprint; xmlns:cm=http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0; xmlns:cxf=http://cxf.apache.org/blueprint/core; xmlns:prop=http://camel.apache.org/schema/placeholder; xmlns:sec=http://cxf.apache.org/configuration/security; xmlns:http=http://cxf.apache.org/transports/http/configuration; xmlns:jaxws=http://cxf.apache.org/blueprint/jaxws; xmlns:camelcxf=http://camel.apache.org/schema/blueprint/cxf; xsi:schemaLocation=http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd http://cxf.apache.org/configuration/security http://cxf.apache.org/schemas/configuration/security.xsd http://cxf.apache.org/blueprint/jaxws http://cxf.apache.org/schemas/blueprint/jaxws.xsd http://cxf.apache.org/blueprint/core http://cxf.apache.org/schemas/blueprint/core.xsd; -- View this message in context: http://camel.465427.n5.nabble.com/How-to-set-List-in-setBody-Blueprint-DSL-tp5747851p5747926.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: How to set List in setBody (Blueprint DSL)
it works now. thx for the hints bean id=secureStartList class=java.util.ArrayList argument list value-type=java.lang.String valueuserid/value valuepassword/value valuecommand/value /list /argument /bean -- View this message in context: http://camel.465427.n5.nabble.com/How-to-set-List-in-setBody-Blueprint-DSL-tp5747851p5747932.html Sent from the Camel - Users mailing list archive at Nabble.com.
How to set List in setBody (Blueprint DSL)
Dear All, I need to pass a List or some strings in setBody, Any hints will be more than welcome! list just contains two strings for example userid, password route id=timeTrigger from uri=timer:test?period=12 / setHeader headerName=operationName constantstart/constant /setHeader setBody /setBody to uri=cxf:bean:triggerService / /route -- View this message in context: http://camel.465427.n5.nabble.com/How-to-set-List-in-setBody-Blueprint-DSL-tp5747851.html Sent from the Camel - Users mailing list archive at Nabble.com.
How to invoke webservice via timer by blueprint DSL ?
How to invoke webservice via timer in blueprint DSL ? Need to call webservice' start method , the method has two string parameter userid and command could anyone give me some hints? java.lang.IllegalArgumentException: Get the wrong parameter size to invoke the out service, Expect size 2, Parameter size 1. Please check if the message body matches the CXFEndpoint POJO Dataformat request. at org.apache.camel.component.cxf.CxfProducer.checkParameterSize(CxfProducer.java:239)[347:org.apache.camel.camel-cxf:2.9.0.fuse-70-084] blueprint ## camelcxf:cxfEndpoint id=triggerService address=${trigger.service.url} serviceClass=com.foo.TriggerService /camelcxf:cxfEndpoint route id=timeTrigger from uri=timer:test?period=12 / setHeader headerName=operationName constantstart/constant /setHeader setHeader headerName=name constantfuse-esb/constant /setHeader setHeader headerName=name constantcommand/constant /setHeader setBody /setBody to uri=cxf:bean:triggerService / /route the web service interface @WebService public interface TriggerService { @WebMethod(operationName = start) @WebResult(name = status) public String start(@WebParam(name = userid) String userid, @WebParam(name = command) String command); } -- View this message in context: http://camel.465427.n5.nabble.com/How-to-invoke-webservice-via-timer-by-blueprint-DSL-tp5747746.html Sent from the Camel - Users mailing list archive at Nabble.com.
Any examples of JAVA DSL for cxfEndpoint?
Hallo all, I want to turn below spring DSL way into java DSL way. is there any example for reference? bean id=testBean class=org.apache.camel.example.cxf.provider.TesterBean/ cxf:cxfEndpoint id=soapMessageEndpoint serviceClass=org.apache.camel.example.cxf.provider.GreeterProvider address=http://localhost:{{port}}/GreeterContext/SOAPMessageService; wsdlURL=wsdl/hello_world.wsdl endpointName=s:SoapOverHttpRouter serviceName=s:SOAPService xmlns:s=http://apache.org/hello_world_soap_http/ camelContext id=test_context xmlns=http://camel.apache.org/schema/spring; route from uri=cxf:bean:soapMessageEndpoint/ to uri=bean:testBean?method=processSOAP/ /route /camelContext -- View this message in context: http://camel.465427.n5.nabble.com/Any-examples-of-JAVA-DSL-for-cxfEndpoint-tp5747647.html Sent from the Camel - Users mailing list archive at Nabble.com.
where to download apache camel 2.9 ?
Dear all, where to download where to download apache camel 2.9 ? it seems links listed below are out-dated already http://www.apache.org/dyn/closer.cgi/camel/apache-camel/2.9.0/apache-camel-2.9.0.zip Rgds -- View this message in context: http://camel.465427.n5.nabble.com/where-to-download-apache-camel-2-9-tp5747553.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: where to download apache camel 2.9 ?
it does not http://camel.apache.org/download - http://camel.apache.org/download-archives.html - http://camel.apache.org/camel-290-release.html - apache-camel-2.9.0-src.zip (http://www.apache.org/dyn/closer.cgi/camel/apache-camel/2.9.0/apache-camel-2.9.0-src.zip) then all links are out-dated -- View this message in context: http://camel.465427.n5.nabble.com/where-to-download-apache-camel-2-9-tp5747553p5747559.html Sent from the Camel - Users mailing list archive at Nabble.com.
RE: what does META-INF.cxf mean? in import-package of osgi
on my karaf list|grep cxf , show below, which is higher than 2.6. so i dont need META-INF.cxf anymore? camel-cxf-transport (2.9.0.fuse-70-084) camel-cxf (2.9.0.fuse-70-084) -- View this message in context: http://camel.465427.n5.nabble.com/what-does-META-INF-cxf-mean-in-import-package-of-osgi-tp5747356p5747419.html Sent from the Camel - Users mailing list archive at Nabble.com.
what does META-INF.cxf mean? in import-package of osgi
Import-Package com.microsoft.sqlserver.jdbc, META-INF.cxf, * /Import-Package does it mean under META-INF, there is a file called cxf which defined imported packages? Any hints? -- View this message in context: http://camel.465427.n5.nabble.com/what-does-META-INF-cxf-mean-in-import-package-of-osgi-tp5747356.html Sent from the Camel - Users mailing list archive at Nabble.com.
how apache-cxf overwrites jaxws-ri
Dear all, I am using a web service which using jaxws-ri instead of apache-cxf, but i deployed it into fuse-esb which has camel-cxf installed by default then i found out. apache-cxf is used during runtime in instead of jaxws-ri, although i did not use camel-cxf in my bundle how to avoid it? any hints are more than welcom! Thanks! -- View this message in context: http://camel.465427.n5.nabble.com/how-apache-cxf-overwrites-jaxws-ri-tp5747175.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: camel-cxf , return complex type object problem
Hi Willem, Thanks for the reply and CNY greetings. List and array wrapper are both working, i just unisntall and install bundle on fuse esb and test again. it is ok now :-) ListString names = (ListString) msgList.get(0); ArrayListPerson pls = new ArrayListPerson(); for (String s : names) { Person p = new Person(); p.setName(s); pls.add(p); } ArrayList wrapperList = new ArrayList(); wrapperList.add(pls); Object[] wrapperArray = new Object[]{pls}; exchng.getOut().setBody(wrapperArray); // exchng.getOut().setBody(wrapperList); -- View this message in context: http://camel.465427.n5.nabble.com/camel-cxf-return-complex-type-object-problem-tp5746478p5746636.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: camel-cxf , return complex type object problem
Hi Willem, sorry. i tried again. does not work for me could you please post your workable sample test here? Thanks! -- View this message in context: http://camel.465427.n5.nabble.com/camel-cxf-return-complex-type-object-problem-tp5746478p5746595.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: camel-cxf , return complex type object problem
you mean i need to do something like this? ArrayList wraplist=new new ArrayList(); wraplist.add(fileList ); exchng.getOut().setBody( wraplist); -- View this message in context: http://camel.465427.n5.nabble.com/camel-cxf-return-complex-type-object-problem-tp5746478p5746531.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: camel-cxf , return complex type object problem
Hi It worked with List , but failed with Array. ArrayListPerson pls = new ArrayListPerson(); for (String s : names) { Person p = new Person(); p.setName(s); pls.add(p); } ArrayList wrapperList = new ArrayList(); wrapperList.add(pls); Object[] objs = new Object[]{pls}; exchng.getOut().setBody(objs); // exchng.getOut().setBody(wrapperList); -- View this message in context: http://camel.465427.n5.nabble.com/camel-cxf-return-complex-type-object-problem-tp5746478p5746573.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: camel-cxf , return complex type object problem
i just copied only top stack traces which is related. the buttom part of stack traces looks irrelevent for me Rgds -- View this message in context: http://camel.465427.n5.nabble.com/camel-cxf-return-complex-type-object-problem-tp5746478p5746496.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: camel-cxf , return complex type object problem
here is same problem (with different test case). it works with return type Pojo but failed with ListPojo or Pojo[]; could it be fuse-esb problem?? 20:35:41,671 | WARN | qtp33362237-410 | PhaseInterceptorChain| 147 - org.apache.cxf.cxf-api - 2.6.0.redhat-60024 | Interceptor for {http://jaxws.cxf.examples.fuse.jboss.org/}HelloWorldImplService#{http://jaxws.cxf.examples.fuse.jboss.org/}getPersonList has thrown exception, unwinding now org.apache.cxf.interceptor.Fault at org.apache.cxf.databinding.AbstractWrapperHelper.createWrapperObject(AbstractWrapperHelper.java:107)[147:org.apache.cxf.cxf-api:2.6.0.redhat-60024] at org.apache.cxf.jaxws.interceptors.WrapperClassOutInterceptor.handleMessage(WrapperClassOutInterceptor.java:100)[160:org.apache.cxf.cxf-rt-frontend-jaxws:2.6.0.redhat-60024] at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)[147:org.apache.cxf.cxf-api:2.6.0.redhat-60024] at org.apache.cxf.interceptor.OutgoingChainInterceptor.handleMessage(OutgoingChainInterceptor.java:77)[147:org.apache.cxf.cxf-api:2.6.0.redhat-60024] at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)[147:org.apache.cxf.cxf-api:2.6.0.redhat-60024] at org.apache.cxf.phase.PhaseInterceptorChain.resume(PhaseInterceptorChain.java:231)[147:org.apache.cxf.cxf-api:2.6.0.redhat-60024] at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:78)[147:org.apache.cxf.cxf-api:2.6.0.redhat-60024] at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:348)[172:org.apache.cxf.cxf-rt-transports-http-jetty:2.6.0.redhat-60024] at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:312)[172:org.apache.cxf.cxf-rt-transports-http-jetty:2.6.0.redhat-60024] at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:72)[172:org.apache.cxf.cxf-rt-transports-http-jetty:2.6.0.redhat-60024] at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1040)[84:org.eclipse.jetty.server:7.6.7.v20120910] at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:976)[84:org.eclipse.jetty.server:7.6.7.v20120910] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)[84:org.eclipse.jetty.server:7.6.7.v20120910] at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:193)[84:org.eclipse.jetty.server:7.6.7.v20120910] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)[84:org.eclipse.jetty.server:7.6.7.v20120910] at org.eclipse.jetty.server.Server.handleAsync(Server.java:403)[84:org.eclipse.jetty.server:7.6.7.v20120910] at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:488)[84:org.eclipse.jetty.server:7.6.7.v20120910] at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:931)[84:org.eclipse.jetty.server:7.6.7.v20120910] at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:992)[84:org.eclipse.jetty.server:7.6.7.v20120910] at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:856)[79:org.eclipse.jetty.http:7.6.7.v20120910] at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)[79:org.eclipse.jetty.http:7.6.7.v20120910] at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)[84:org.eclipse.jetty.server:7.6.7.v20120910] at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:627)[81:org.eclipse.jetty.io:7.6.7.v20120910] at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:51)[81:org.eclipse.jetty.io:7.6.7.v20120910] at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)[90:org.eclipse.jetty.util:7.6.7.v20120910] at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)[90:org.eclipse.jetty.util:7.6.7.v20120910] at java.lang.Thread.run(Thread.java:724)[:1.7.0_40] -- View this message in context: http://camel.465427.n5.nabble.com/camel-cxf-return-complex-type-object-problem-tp5746478p5746509.html Sent from the Camel - Users mailing list archive at Nabble.com.
camel-cxf , return complex type object problem
Dear all, I encounter a camel-cxf 's cxf:bean problem it seems , it works with return type as Pojo but failed with ListPojo I got exception at karaf like Below. Could anyone give some hints? Thanks in advance! WARNING: Interceptor for {http://ws.foo.com/}FileServiceService#{http://ws.foo.com/}getfiles has thrown exception, unwinding now org.apache.cxf.interceptor.Fault at org.apache.cxf.databinding.AbstractWrapperHelper.createWrapperObject(AbstractWrapperHelper.java:107) at org.apache.cxf.jaxws.interceptors.WrapperClassOutInterceptor.handleMessage(WrapperClassOutInterceptor.java:105) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263) at org.apache.cxf.interceptor.OutgoingChainInterceptor.handleMessage(OutgoingChainInterceptor.java:77) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:26 Below are my blueprint and example code ## define web service Endpoint camelcxf:cxfEndpoint id=fileService wsdlURL=classpath:/META-INF/wsdl/FileServiceService.wsdl address=http://localhost:8080/foo/file; serviceClass=com.foo.ws.FileService /camelcxf:cxfEndpoint //define route , using cxf:bean , the real web service will be implemented by com.foo.camel.FileProcessor bean id=fp class=com.foo.camel.FileProcessor /bean route id=files from uri=cxf:bean:fileService / touri=bean:fp / /route public class FileProcessor implements Processor { @Override public void process(Exchange exchng) throws Exception { // ... it works with return type as pojo but failed with ListPojo // ListFilePojo fileList = results; exchng.getOut().setBody( fileList ); } catch (Exception e) { throw new FileNotFoundException(Something goes wrong in +this.getClass().getName(), e); } } } // proxy web serivce, cxf:bean refers to it import javax.jws.WebMethod; import javax.jws.WebParam; import javax.jws.WebResult; import javax.jws.WebService; import java.util.List; /** * */ @WebService public class FileService { /** * Web service operation */ @WebMethod(operationName = getfile) @WebResult(name = file) public ReceivedPDF getfile(@WebParam(name = fileName) String fileName) throws Exception{ //TODO write your implementation code here: return null; } /** * Web service operation */ @WebMethod(operationName = getfiles) @WebResult(name = files) public ListFilePojo getfiles(@WebParam(name = fileNames) ListString fileNames) throws Exception{ return null; } } -- View this message in context: http://camel.465427.n5.nabble.com/camel-cxf-return-complex-type-object-problem-tp5746478.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: camel-cxf problem exception
I tried. it does not work -- View this message in context: http://camel.465427.n5.nabble.com/camel-cxf-problem-exception-tp5745851p5746473.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: I got weird problem with aggregator
Then it should work, Because Map is HashMap, key and value are string , which stored in Map. More exception information like below. the problem happened when i update my bundle. i guess what stored in jdbc aggreator table is only Exchange 05:28:40,083 | WARN | teTimeoutChecker | eProcessor$AggregationTimeoutMap | 141 - org.apache.camel.camel-core - 2.9.0.fuse-70-084 | Exception occurred during purge task. This exception will be ignored. java.lang.RuntimeException: java.lang.ClassNotFoundException: null class at org.apache.camel.processor.aggregate.jdbc.JdbcAggregationRepository$2.doInTransaction(JdbcAggregationRepository.java:180)[260:org.apache.camel.camel-sql:2.9.0.fuse-70-084] at org.apache.camel.processor.aggregate.jdbc.JdbcAggregationRepository$2.doInTransaction(JdbcAggregationRepository.java:166)[260:org.apache.camel.camel-sql:2.9.0.fuse-70-084] at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130)[143:org.springframework.transaction:3.0.7.RELEASE] at org.apache.camel.processor.aggregate.jdbc.JdbcAggregationRepository.get(JdbcAggregationRepository.java:166)[260:org.apache.camel.camel-sql:2.9.0.fuse-70-084] at org.apache.camel.processor.aggregate.jdbc.JdbcAggregationRepository.get(JdbcAggregationRepository.java:158)[260:org.apache.camel.camel-sql:2.9.0.fuse-70-084] at org.apache.camel.processor.aggregate.AggregateProcessor$AggregationTimeoutMap.onEviction(AggregateProcessor.java:688)[141:org.apache.camel.camel-core:2.9.0.fuse-70-084] at org.apache.camel.processor.aggregate.AggregateProcessor$AggregationTimeoutMap.onEviction(AggregateProcessor.java:659)[141:org.apache.camel.camel-core:2.9.0.fuse-70-084] at org.apache.camel.support.DefaultTimeoutMap.purge(DefaultTimeoutMap.java:203)[141:org.apache.camel.camel-core:2.9.0.fuse-70-084] at org.apache.camel.process -- View this message in context: http://camel.465427.n5.nabble.com/I-got-weird-problem-with-aggregator-tp5746367p5746387.html Sent from the Camel - Users mailing list archive at Nabble.com.
any suggestion for completionTimeout value ?
Any suggestion for completionTimeout value? should I use it in my case? if yes. what should be the proper value? My scenario JdbcAggregationRepository aggregated message size will not bigger than 30KB shutdownRoute=Defer with timeout=5000 , should be long enough for completing aggregating message before gracefully shutdown route bean id=shutdown class=org.apache.camel.impl.DefaultShutdownStrategy property name=timeout value=5000/ /bean route id=aggregation_route shutdownRoute=Defer from uri=direct:aggregate / aggregate strategyRef=output_agg completionTimeout=3000 correlationExpression simple${header.myeventId}.${header.mysystem}/simple /correlationExpression to uri=direct:aggregated/ /aggregate /route -- View this message in context: http://camel.465427.n5.nabble.com/any-suggestion-for-completionTimeout-value-tp5746408.html Sent from the Camel - Users mailing list archive at Nabble.com.
How to set value for shutdownRunningTask for a Route in blueprintDSL?
How to set value for shutdownRunningTask for a Route in blueprintDSL? route startupOrder=1 shutdownRunningTask=CompleteAllTasks from uri=file:target/pending/ delayconstant1000/constant/delay to uri=seda:foo/ /route Any hints will be more than welcom! Thanks! -- View this message in context: http://camel.465427.n5.nabble.com/How-to-set-value-for-shutdownRunningTask-for-a-Route-in-blueprintDSL-tp5746347.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: How to set value for shutdownRunningTask for a Route in blueprintDSL?
Thanks for the reply I need to set timeout for shutdownRunningTask i thought below value is only for from and to endpoints but not for shutdownRunningTask delayconstant1000/constant/delay -- View this message in context: http://camel.465427.n5.nabble.com/How-to-set-value-for-shutdownRunningTask-for-a-Route-in-blueprintDSL-tp5746347p5746364.html Sent from the Camel - Users mailing list archive at Nabble.com.
I got weird problem with aggregator
I got weird problem with jdbc aggregator , could it be my aggregate method problem? I mean should i use Object instead of Map ? The problem does not happen often public Exchange aggregate(Exchange oldEx, Exchange newEx) { Map newBody = newEx.getIn().getBody(Map.class); ArrayListMap list = null; if (oldEx == null) { list = new ArrayListMap(); list.add(newBody); newEx.getIn().setBody(list); return newEx; } else { list = oldEx.getIn().getBody(ArrayList.class); list.add(newBody); return oldEx; } } below is error log at org.apache.camel.support.DefaultTimeoutMap.purge(DefaultTimeoutMap.java:203)[141:org.apache.camel.camel-core:2.9.0.fuse-70-084] at org.apache.camel.processor.aggregate.AggregateProcessor$AggregationTimeoutMap.purge(AggregateProcessor.java:671)[141:org.apache.camel.camel-core:2. 9.0.fuse-70-084] at org.apache.camel.support.DefaultTimeoutMap.run(DefaultTimeoutMap.java:159)[141:org.apache.camel.camel-core:2.9.0.fuse-70-084] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)[:1.6.0_24] at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)[:1.6.0_24] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)[:1.6.0_24] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)[:1.6.0_24] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)[:1.6.0_24] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)[:1.6.0_24] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_24] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_24] at java.lang.Thread.run(Thread.java:662)[:1.6.0_24] Caused by: java.lang.ClassNotFoundException: null class at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)[:1.6.0_24] at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495)[:1.6.0_24] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731)[:1.6.0_24] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)[:1.6.0_24] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)[:1.6.0_24] at java.util.HashMap.readObject(HashMap.java:1030)[:1.6.0_24] at sun.reflect.GeneratedMethodAccessor147.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_24] at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_24] at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)[:1.6.0_24] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1848)[:1.6.0_24] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)[:1.6.0_24] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)[:1.6.0_24] at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)[:1.6.0_24] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)[:1.6.0_24] -- View this message in context: http://camel.465427.n5.nabble.com/I-got-weird-problem-with-aggregator-tp5746367.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: How to set value for shutdownRunningTask for a Route in blueprintDSL?
ok i got it bean id=shutdown class=org.apache.camel.impl.DefaultShutdownStrategy property name=timeout value=5000/ /bean -- View this message in context: http://camel.465427.n5.nabble.com/How-to-set-value-for-shutdownRunningTask-for-a-Route-in-blueprintDSL-tp5746347p5746366.html Sent from the Camel - Users mailing list archive at Nabble.com.
How to pass config file to CamelBlueprintTestSupport
My blueprint looks like below, which refers mybundleconf.cfg resides in FUSE-ESB/etc The question is how to pass this mybundleconf.cfg to CamelBlueprintTestSupport ? cm:property-placeholder id=props persistent-id=mybundleconf cm:default-properties cm:property name=xls.charset value=8859_1/ /cm:default-properties /cm:property-placeholder Any hints are more than welcome! -- View this message in context: http://camel.465427.n5.nabble.com/How-to-pass-config-file-to-CamelBlueprintTestSupport-tp5746252.html Sent from the Camel - Users mailing list archive at Nabble.com.
is it must to use JdbcAggregationRepository in my case?
I am using camel to aggregate messages, default aggregator will use an in memory only AggregationRepository. if the application keeps on aggregate messages. will it be out of memory? or any memory issue for in memory only AggregationRepository? in that case. will it just be aggregated message losts or application crash? is it must to use JdbcAggregationRepository in my case? if my application keeps on aggregate messages? Any hints will be more than welcome -- View this message in context: http://camel.465427.n5.nabble.com/is-it-must-to-use-JdbcAggregationRepository-in-my-case-tp5745941.html Sent from the Camel - Users mailing list archive at Nabble.com.
camel-cxf problem exception
Dear all,I encounter a camel-cxf 's cxf:bean problemit seems , it works with return type as pojo but failed with ListI got example at karaf like Below. Could anyone give some hints?Thanks in advance!WARNING: Interceptor for {http://ws.foo.com/}FileServiceService#{http://ws.fuse.emerald.dbis.com/}getPDFs has thrown exception, unwinding noworg.apache.cxf.interceptor.Fault at org.apache.cxf.databinding.AbstractWrapperHelper.createWrapperObject(AbstractWrapperHelper.java:107) at org.apache.cxf.jaxws.interceptors.WrapperClassOutInterceptor.handleMessage(WrapperClassOutInterceptor.java:105) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263) at org.apache.cxf.interceptor.OutgoingChainInterceptor.handleMessage(OutgoingChainInterceptor.java:77) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:26Below are my blueprint and example code##define web service Endpoint //define route , using cxf:bean , the real web service will be implemented by com.foo.camel.FileProcessor public class FileProcessor implements Processor {@Overridepublic void process(Exchange exchng) throws Exception { // ... it works with return type as pojo but failed with List // List fileList = results; exchng.getOut().setBody( fileList );} catch (Exception e) { throw new FileNotFoundException(Something goes wrong in +this.getClass().getName(), e);}}}// proxy web serivce, cxf:bean refers to itimport javax.jws.WebMethod;import javax.jws.WebParam;import javax.jws.WebResult;import javax.jws.WebService;import java.util.List;/** * */@WebServicepublic class FileService {/** * Web service operation */@WebMethod(operationName = getfile)@WebResult(name = file) public ReceivedPDF getfile(@WebParam(name = fileName) String fileName) throws Exception{//TODO write your implementation code here: return null;}/** * Web service operation */ @WebMethod(operationName = getfiles)@WebResult(name = files) public List getfiles(@WebParam(name = fileNames) List fileNames) throws Exception{ return null;}} -- View this message in context: http://camel.465427.n5.nabble.com/camel-cxf-problem-exception-tp5745851.html Sent from the Camel - Users mailing list archive at Nabble.com.
hwo to embed image in email
Below is example of my code , i want to embed logo.gif into email body.it does not work, it only attached logo as a file in emailCould anyone give me some hints? Thanks!class EmailProcessor implements Processor {@Override public void process(Exchange exchange) throws Exception { //exchange.getIn().setHeader(contentType, image/gif); exchange.getIn().addAttachment(test_logic name.pdf, new DataHandler(new FileDataSource(target/test-classes/test .pdf))); exchange.getIn().addAttachment(logo.gif, new DataHandler(new FileDataSource(target/test-classes/logo.gif)));}} -- View this message in context: http://camel.465427.n5.nabble.com/hwo-to-embed-image-in-email-tp5745681.html Sent from the Camel - Users mailing list archive at Nabble.com.