Re: How to process a response and the original message after submitting to a component

2013-08-24 Thread Christian Müller
A custom AggregationStrategy in the multicast will not work?
Otherwise you could use the enrich() DSL...

Best,
Christian
Am 23.08.2013 23:59 schrieb abdiels abdi...@gmail.com:

 Christian,

  Thank you for your reply; however, it is not that simple.  The message
 that will continue is dependent on the answer from the component.  So think
 about it this way, we send to some validation out of that we get a report
 with the results which needs to go to the client; however, some clients
 don't want to stop even if validation fails so the main message has to
 continue.  I hope you see that multicast will not work since the multicast
 will only get the out message from the previous component and not the
 original in.  In my case I want to go to a component and after that
 component executes, I want to do something else with the message that went
 into that component and the message that resulted from that component.

 Thank you,

 Abdiel



 --
 View this message in context:
 http://camel.465427.n5.nabble.com/How-to-process-a-response-and-the-original-message-after-submitting-to-a-component-tp5737841p5737845.html
 Sent from the Camel - Users mailing list archive at Nabble.com.



Multiple inputs to an endpoint

2013-08-24 Thread nanotech
Hi,

I have an requirement where I need to send two files as input to a third
party mapping jar. These files are the two arguments that the underlying
mapping jar is expecting. 


Can someone suggest how such a route can be implemented in Camel ?



--
View this message in context: 
http://camel.465427.n5.nabble.com/Multiple-inputs-to-an-endpoint-tp5737839.html
Sent from the Camel - Users mailing list archive at Nabble.com.


How can I configure and use SearchContext in CXFRS

2013-08-24 Thread glsilverman
I'm trying to configure a SearchContextProvider to use FIQL searches in my
CXFRS Restful application in OSGi using blueprint. There is documentation on
how to do this for straight CXF Restul services. For example, one can
register the provider in a jaxrs:service and use @Context to inject a
SerchContext., but I'm using cxf:rsServer, and a pass-through controller
class:

public class ControllerService {

@GET
@Path(/accounts)
@Produces(application/json)
public String getAccounts(){
 return null;
}

In my blueprint file, i tried this:

cxf:rsServer id=restServer
address=http://${rest.server}:${port}/api;
serviceClass=com.dsi.edispense.cxf.ControllerService
loggingFeatureEnabled=true loggingSizeLimit=200 
cxf:providers
bean id=searchContextProvider
class=org.apache.cxf.jaxrs.ext.search.SearchContextProvider/ 
/cxf:providers
/cxf:rsServer

bean id=accountmanager' class=AccountManager/

camelContext xmlns=http://camel.apache.org/schema/blueprint;
   route id=accounts streamCache=false
from 
uri=cxfrs:bean:restServer?bindingStyle=SimpleConsumer /
recipientList
simpledirect:${header.operationName}/simple
/recipientList
/route

route
from uri=direct:getAccount /
bean ref=accountmanager method=getAccounts /
/route

/camelContext

When I try to inject a ServiceContext into my AccountManager class and use
it, I get a Exception: java.lang.NullPointerException.

Has anyone tried to use FIQL in Camel CXFRS and if so, how can I get it to
work?





--
View this message in context: 
http://camel.465427.n5.nabble.com/How-can-I-configure-and-use-SearchContext-in-CXFRS-tp5737843.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Problem with AOPALLIANCE dependency

2013-08-24 Thread contactreji
Hi 

I am just trying to build a project but I get build error as follows 
[INFO] Scanning for projects...
[INFO] 
[INFO]

[INFO] Building ID59-MES-TO-SAPBW-Energy-Consumption-Interface
1.0.0-SNAPSHOT
[INFO]

Downloading:
http://repo.fusesource.com/nexus/content/groups/ea/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml
Downloading:
http://repo.fusesource.com/nexus/content/groups/public/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml
Downloaded:
http://repo.fusesource.com/nexus/content/groups/public/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml
(366 B at 0.1 KB/sec)
Downloading:
http://repo.fusesource.com/nexus/content/groups/ea/org/apache/maven/plugins/maven-surefire-plugin/maven-metadata.xml
Downloading:
http://repo.fusesource.com/nexus/content/groups/public/org/apache/maven/plugins/maven-surefire-plugin/maven-metadata.xml
Downloaded:
http://repo.fusesource.com/nexus/content/groups/public/org/apache/maven/plugins/maven-surefire-plugin/maven-metadata.xml
(427 B at 0.3 KB/sec)
Downloading:
http://repo.fusesource.com/nexus/content/groups/ea/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml
Downloading:
http://repo.fusesource.com/nexus/content/groups/public/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml
Downloaded:
http://repo.fusesource.com/nexus/content/groups/public/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml
(371 B at 0.3 KB/sec)
[WARNING] The POM for
org.aopalliance:com.springsource.org.aopalliance:jar:1.0.0 is invalid,
transitive dependencies (if any) will not be available, enable debug logging
for more details
Downloading:
http://repo.fusesource.com/nexus/content/groups/public/org/aopalliance/com.springsource.org.aopalliance/1.0.0/com.springsource.org.aopalliance-1.0.0.jar
Downloading:
http://repo.fusesource.com/nexus/content/groups/ea/org/aopalliance/com.springsource.org.aopalliance/1.0.0/com.springsource.org.aopalliance-1.0.0.jar
Downloading:
https://github.com/SpringSource/spring-framework/org/aopalliance/com.springsource.org.aopalliance/1.0.0/com.springsource.org.aopalliance-1.0.0.jar
Downloading:
https://oss.sonatype.org/content/repositories/springsource-releases/org/aopalliance/com.springsource.org.aopalliance/1.0.0/com.springsource.org.aopalliance-1.0.0.jar
Downloading:
http://repo.maven.apache.org/maven2/org/aopalliance/com.springsource.org.aopalliance/1.0.0/com.springsource.org.aopalliance-1.0.0.jar
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 18.114s
[INFO] Finished at: Sat Aug 24 00:00:27 PDT 2013
[INFO] Final Memory: 9M/22M
[INFO]

[ERROR] Failed to execute goal on project id59-mes-bw-ec: Could not resolve
dependencies for project com.outotec:id59-mes-bw-ec:bundle:1.0.0-SNAPSHOT:
Could not find artifact
org.aopalliance:com.springsource.org.aopalliance:jar:1.0.0 in fusesource
(http://repo.fusesource.com/nexus/content/groups/public/) - [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please
read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException





I tried my best to add the dependency in all possible ways. But still I am
findin the Dependency Resolution Exception in my project for the same
AOPALLIANCE.jar
Please have a look at my dependency from POM


dependencies
dependency
groupIdorg.springframework/groupId
artifactIdspring-jdbc/artifactId
version2.0.6/version
/dependency
dependency
groupIdorg.springframework/groupId
artifactIdorg.springframework.jdbc/artifactId
version3.0.5.RELEASE/version
/dependency

dependency
groupIdorg.springframework/groupId
artifactIdspring-aspects/artifactId
version3.2.3.RELEASE/version
/dependency

dependency
groupIdorg.apache.camel/groupId
artifactIdcamel-core/artifactId
version2.10.0.fuse-71-047/version
/dependency

dependency
groupIdorg.apache.camel/groupId

Re: Using SSL Certificates and connecting to https:// port -Truststore files provided

2013-08-24 Thread contactreji
Hi William

I am getting a HANDSHAKE exception in the case now. I gave the proper path
to the jks file still its showing the following exception.
unable to find valid certification path to requested target

Please find my error log 


Caused by: javax.net.ssl.SSLHandshakeException: SSLHandshakeException
invoking
https://ascsq14:8105/XISOAPAdapter/MessageServlet?senderParty=senderService=BS_Q_MES_MiheevskyreceiverParty=receiverService=interface=SI_ID56_CopperRecovery_async_outinterfaceNamespace=urn:outotec:pi:mes:id56:CopperRecovery:
sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find
valid certification path to requested target
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)[:1.6.0_45]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source)[:1.6.0_45]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)[:1.6.0_45]
at java.lang.reflect.Constructor.newInstance(Unknown Source)[:1.6.0_45]
at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.mapException(HTTPConduit.java:1467)[178:org.apache.cxf.cxf-rt-transports-http:2.6.0.fuse-71-047]
at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1452)[178:org.apache.cxf.cxf-rt-transports-http:2.6.0.fuse-71-047]
at
org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)[169:org.apache.cxf.cxf-api:2.6.0.fuse-71-047]
at
org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:660)[178:org.apache.cxf.cxf-rt-transports-http:2.6.0.fuse-71-047]
at
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)[169:org.apache.cxf.cxf-api:2.6.0.fuse-71-047]
... 65 more
Caused by: javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find
valid certification path to requested target
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown
Source)[:1.6]
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(Unknown 
Source)[:1.6]
at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source)[:1.6]
at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source)[:1.6]
at 
com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(Unknown
Source)[:1.6]
at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(Unknown
Source)[:1.6]
at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Unknown
Source)[:1.6]
at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Unknown
Source)[:1.6]
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown
Source)[:1.6]
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown
Source)[:1.6]
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown
Source)[:1.6]
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown
Source)[:1.6]
at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown
Source)[:1.6]
at
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown
Source)[:1.6]
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown
Source)[:1.6.0_45]
at
sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown
Source)[:1.6]
at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleHeadersTrustCaching(HTTPConduit.java:1410)[178:org.apache.cxf.cxf-rt-transports-http:2.6.0.fuse-71-047]
at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.onFirstWrite(HTTPConduit.java:1351)[178:org.apache.cxf.cxf-rt-transports-http:2.6.0.fuse-71-047]
at
org.apache.cxf.io.AbstractWrappedOutputStream.write(AbstractWrappedOutputStream.java:47)[169:org.apache.cxf.cxf-api:2.6.0.fuse-71-047]
at
org.apache.cxf.io.AbstractThresholdOutputStream.write(AbstractThresholdOutputStream.java:69)[169:org.apache.cxf.cxf-api:2.6.0.fuse-71-047]
at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1424)[178:org.apache.cxf.cxf-rt-transports-http:2.6.0.fuse-71-047]
... 68 more
Caused by: sun.security.validator.ValidatorException: PKIX path building
failed: sun.security.provider.certpath.SunCertPathBuilderException: unable
to find valid certification path to requested target
at sun.security.validator.PKIXValidator.doBuild(Unknown 
Source)[:1.6.0_45]
at sun.security.validator.PKIXValidator.engineValidate(Unknown
Source)[:1.6.0_45]
at sun.security.validator.Validator.validate(Unknown Source)[:1.6.0_45]
at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.validate(Unknown
Source)[:1.6]
at

Re: Multiple inputs to an endpoint

2013-08-24 Thread Claus Ibsen
Why do you need a Camel route for that?


On Fri, Aug 23, 2013 at 5:05 PM, nanotech rachit.gan...@gmail.com wrote:
 Hi,

 I have an requirement where I need to send two files as input to a third
 party mapping jar. These files are the two arguments that the underlying
 mapping jar is expecting.


 Can someone suggest how such a route can be implemented in Camel ?



 --
 View this message in context: 
 http://camel.465427.n5.nabble.com/Multiple-inputs-to-an-endpoint-tp5737839.html
 Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen


Re: Problem with AOPALLIANCE dependency

2013-08-24 Thread Claus Ibsen
Remove the aop alliance dependency and also make sure you use the same
version of Spring. You use 2+ different versions which is not good.

On Sat, Aug 24, 2013 at 9:03 AM, contactreji contactr...@gmail.com wrote:
 Hi

 I am just trying to build a project but I get build error as follows
 [INFO] Scanning for projects...
 [INFO]
 [INFO]
 
 [INFO] Building ID59-MES-TO-SAPBW-Energy-Consumption-Interface
 1.0.0-SNAPSHOT
 [INFO]
 
 Downloading:
 http://repo.fusesource.com/nexus/content/groups/ea/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml
 Downloading:
 http://repo.fusesource.com/nexus/content/groups/public/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml
 Downloaded:
 http://repo.fusesource.com/nexus/content/groups/public/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml
 (366 B at 0.1 KB/sec)
 Downloading:
 http://repo.fusesource.com/nexus/content/groups/ea/org/apache/maven/plugins/maven-surefire-plugin/maven-metadata.xml
 Downloading:
 http://repo.fusesource.com/nexus/content/groups/public/org/apache/maven/plugins/maven-surefire-plugin/maven-metadata.xml
 Downloaded:
 http://repo.fusesource.com/nexus/content/groups/public/org/apache/maven/plugins/maven-surefire-plugin/maven-metadata.xml
 (427 B at 0.3 KB/sec)
 Downloading:
 http://repo.fusesource.com/nexus/content/groups/ea/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml
 Downloading:
 http://repo.fusesource.com/nexus/content/groups/public/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml
 Downloaded:
 http://repo.fusesource.com/nexus/content/groups/public/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml
 (371 B at 0.3 KB/sec)
 [WARNING] The POM for
 org.aopalliance:com.springsource.org.aopalliance:jar:1.0.0 is invalid,
 transitive dependencies (if any) will not be available, enable debug logging
 for more details
 Downloading:
 http://repo.fusesource.com/nexus/content/groups/public/org/aopalliance/com.springsource.org.aopalliance/1.0.0/com.springsource.org.aopalliance-1.0.0.jar
 Downloading:
 http://repo.fusesource.com/nexus/content/groups/ea/org/aopalliance/com.springsource.org.aopalliance/1.0.0/com.springsource.org.aopalliance-1.0.0.jar
 Downloading:
 https://github.com/SpringSource/spring-framework/org/aopalliance/com.springsource.org.aopalliance/1.0.0/com.springsource.org.aopalliance-1.0.0.jar
 Downloading:
 https://oss.sonatype.org/content/repositories/springsource-releases/org/aopalliance/com.springsource.org.aopalliance/1.0.0/com.springsource.org.aopalliance-1.0.0.jar
 Downloading:
 http://repo.maven.apache.org/maven2/org/aopalliance/com.springsource.org.aopalliance/1.0.0/com.springsource.org.aopalliance-1.0.0.jar
 [INFO]
 
 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 18.114s
 [INFO] Finished at: Sat Aug 24 00:00:27 PDT 2013
 [INFO] Final Memory: 9M/22M
 [INFO]
 
 [ERROR] Failed to execute goal on project id59-mes-bw-ec: Could not resolve
 dependencies for project com.outotec:id59-mes-bw-ec:bundle:1.0.0-SNAPSHOT:
 Could not find artifact
 org.aopalliance:com.springsource.org.aopalliance:jar:1.0.0 in fusesource
 (http://repo.fusesource.com/nexus/content/groups/public/) - [Help 1]
 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
 switch.
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
 [ERROR]
 [ERROR] For more information about the errors and possible solutions, please
 read the following articles:
 [ERROR] [Help 1]
 http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException





 I tried my best to add the dependency in all possible ways. But still I am
 findin the Dependency Resolution Exception in my project for the same
 AOPALLIANCE.jar
 Please have a look at my dependency from POM


 dependencies
 dependency
 groupIdorg.springframework/groupId
 artifactIdspring-jdbc/artifactId
 version2.0.6/version
 /dependency
 dependency
 groupIdorg.springframework/groupId
 artifactIdorg.springframework.jdbc/artifactId
 version3.0.5.RELEASE/version
 /dependency

 dependency
 groupIdorg.springframework/groupId
 artifactIdspring-aspects/artifactId
 version3.2.3.RELEASE/version
 /dependency

 dependency
 groupIdorg.apache.camel/groupId
 

Re: Problem with AOPALLIANCE dependency

2013-08-24 Thread Christian Müller
This issue is not related to Camel. In your pom.xml, you define this
dependency. You should check whether this artifact exists and in which
repository. I suggest to google for it...

Best,
Christian
Am 24.08.2013 11:36 schrieb contactreji contactr...@gmail.com:

 Hi

 I am just trying to build a project but I get build error as follows
 [INFO] Scanning for projects...
 [INFO]
 [INFO]
 
 [INFO] Building ID59-MES-TO-SAPBW-Energy-Consumption-Interface
 1.0.0-SNAPSHOT
 [INFO]
 
 Downloading:

 http://repo.fusesource.com/nexus/content/groups/ea/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml
 Downloading:

 http://repo.fusesource.com/nexus/content/groups/public/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml
 Downloaded:

 http://repo.fusesource.com/nexus/content/groups/public/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml
 (366 B at 0.1 KB/sec)
 Downloading:

 http://repo.fusesource.com/nexus/content/groups/ea/org/apache/maven/plugins/maven-surefire-plugin/maven-metadata.xml
 Downloading:

 http://repo.fusesource.com/nexus/content/groups/public/org/apache/maven/plugins/maven-surefire-plugin/maven-metadata.xml
 Downloaded:

 http://repo.fusesource.com/nexus/content/groups/public/org/apache/maven/plugins/maven-surefire-plugin/maven-metadata.xml
 (427 B at 0.3 KB/sec)
 Downloading:

 http://repo.fusesource.com/nexus/content/groups/ea/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml
 Downloading:

 http://repo.fusesource.com/nexus/content/groups/public/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml
 Downloaded:

 http://repo.fusesource.com/nexus/content/groups/public/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml
 (371 B at 0.3 KB/sec)
 [WARNING] The POM for
 org.aopalliance:com.springsource.org.aopalliance:jar:1.0.0 is invalid,
 transitive dependencies (if any) will not be available, enable debug
 logging
 for more details
 Downloading:

 http://repo.fusesource.com/nexus/content/groups/public/org/aopalliance/com.springsource.org.aopalliance/1.0.0/com.springsource.org.aopalliance-1.0.0.jar
 Downloading:

 http://repo.fusesource.com/nexus/content/groups/ea/org/aopalliance/com.springsource.org.aopalliance/1.0.0/com.springsource.org.aopalliance-1.0.0.jar
 Downloading:

 https://github.com/SpringSource/spring-framework/org/aopalliance/com.springsource.org.aopalliance/1.0.0/com.springsource.org.aopalliance-1.0.0.jar
 Downloading:

 https://oss.sonatype.org/content/repositories/springsource-releases/org/aopalliance/com.springsource.org.aopalliance/1.0.0/com.springsource.org.aopalliance-1.0.0.jar
 Downloading:

 http://repo.maven.apache.org/maven2/org/aopalliance/com.springsource.org.aopalliance/1.0.0/com.springsource.org.aopalliance-1.0.0.jar
 [INFO]
 
 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 18.114s
 [INFO] Finished at: Sat Aug 24 00:00:27 PDT 2013
 [INFO] Final Memory: 9M/22M
 [INFO]
 
 [ERROR] Failed to execute goal on project id59-mes-bw-ec: Could not resolve
 dependencies for project com.outotec:id59-mes-bw-ec:bundle:1.0.0-SNAPSHOT:
 Could not find artifact
 org.aopalliance:com.springsource.org.aopalliance:jar:1.0.0 in fusesource
 (http://repo.fusesource.com/nexus/content/groups/public/) - [Help 1]
 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
 switch.
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
 [ERROR]
 [ERROR] For more information about the errors and possible solutions,
 please
 read the following articles:
 [ERROR] [Help 1]

 http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException





 I tried my best to add the dependency in all possible ways. But still I am
 findin the Dependency Resolution Exception in my project for the same
 AOPALLIANCE.jar
 Please have a look at my dependency from POM


 dependencies
 dependency
 groupIdorg.springframework/groupId
 artifactIdspring-jdbc/artifactId
 version2.0.6/version
 /dependency
 dependency
 groupIdorg.springframework/groupId
 artifactIdorg.springframework.jdbc/artifactId
 version3.0.5.RELEASE/version
 /dependency

 dependency
 groupIdorg.springframework/groupId
 artifactIdspring-aspects/artifactId
 version3.2.3.RELEASE/version
 /dependency

 dependency
 

Camel throws StackOverflowException while converting message body

2013-08-24 Thread Valery
Hi there!

A have route:
 from(cxf:/CDAMediationService?serviceClass= +
CDAMediationService.class.getName())
.process(new RequestProcessor())
.log(LoggingLevel.INFO , Request before
transformation:\n${body})
.to(xslt:xslt/MediateCDARequest.xslt)
.log(LoggingLevel.INFO , Request after
transformation:\n${body})
.process(new HeaderSetterProcessor())
.to(cxf://+cdaUri+?serviceClass= +
Invoke.class.getName())
.wireTap(direct:saveResponse)
.log(LoggingLevel.INFO , Respone before
transformation:\n${body})
.to(xslt:xslt/MediateCDAResponse.xslt)
.log(LoggingLevel.INFO , Response after
transformation:\n${body})
.process(new ResponseProcessor());

Somewhere between 5th and 7th row it throws StackOverflowException (i
attached log file with stack trace). log.txt
http://camel.465427.n5.nabble.com/file/n5737854/log.txt  
I need help to solve this problem, or find round way.

P.S. sorry for my english:)



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-throws-StackOverflowException-while-converting-message-body-tp5737854.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Multiple inputs to an endpoint

2013-08-24 Thread Dale King
You could put the logic to handle the 2 files in an AggregationStrategy
implementation and then depending on which makes more sense use it in an
Aggregator (in the case where you really have 2 routes) or in a content
enricher (where there is a main flow and you are just loading the second
file for that one step.
On Aug 24, 2013 5:35 AM, nanotech rachit.gan...@gmail.com wrote:

 Hi,

 I have an requirement where I need to send two files as input to a third
 party mapping jar. These files are the two arguments that the underlying
 mapping jar is expecting.


 Can someone suggest how such a route can be implemented in Camel ?



 --
 View this message in context:
 http://camel.465427.n5.nabble.com/Multiple-inputs-to-an-endpoint-tp5737839.html
 Sent from the Camel - Users mailing list archive at Nabble.com.



Re: Camel throws StackOverflowException while converting message body

2013-08-24 Thread Christian Müller
Valery, please have first a look at [1].
We need some more information, if you expect help from us:
- Complete stack trace
- Which Camel version do you use?
- Which java version do you use?
- Later, we are may also interested in the RequestProcessor,
HeaderSetterProcessor or ResponseProcessor...

[1] http://camel.apache.org/support.html

Best,
Christian
-

Software Integration Specialist

Apache Camel committer: https://camel.apache.org/team
V.P. Apache Camel: https://www.apache.org/foundation/
Apache Member: https://www.apache.org/foundation/members.html

https://www.linkedin.com/pub/christian-mueller/11/551/642


On Sat, Aug 24, 2013 at 12:19 PM, Valery valery.sed...@gmail.com wrote:

 Hi there!

 A have route:
  from(cxf:/CDAMediationService?serviceClass= +
 CDAMediationService.class.getName())
 .process(new RequestProcessor())
 .log(LoggingLevel.INFO , Request before
 transformation:\n${body})
 .to(xslt:xslt/MediateCDARequest.xslt)
 .log(LoggingLevel.INFO , Request after
 transformation:\n${body})
 .process(new HeaderSetterProcessor())
 .to(cxf://+cdaUri+?serviceClass= +
 Invoke.class.getName())
 .wireTap(direct:saveResponse)
 .log(LoggingLevel.INFO , Respone before
 transformation:\n${body})
 .to(xslt:xslt/MediateCDAResponse.xslt)
 .log(LoggingLevel.INFO , Response after
 transformation:\n${body})
 .process(new ResponseProcessor());

 Somewhere between 5th and 7th row it throws StackOverflowException (i
 attached log file with stack trace). log.txt
 http://camel.465427.n5.nabble.com/file/n5737854/log.txt
 I need help to solve this problem, or find round way.

 P.S. sorry for my english:)



 --
 View this message in context:
 http://camel.465427.n5.nabble.com/Camel-throws-StackOverflowException-while-converting-message-body-tp5737854.html
 Sent from the Camel - Users mailing list archive at Nabble.com.



Re: Camel JAXB DataFormat is not thread safe

2013-08-24 Thread Christian Müller
It looks like the Xerces SchemaFactory is also NOT thread-safe [1].

[1]
http://xerces.apache.org/xerces2-j/javadocs/api/javax/xml/validation/SchemaFactory.html

Best,
Christian
-

Software Integration Specialist

Apache Camel committer: https://camel.apache.org/team
V.P. Apache Camel: https://www.apache.org/foundation/
Apache Member: https://www.apache.org/foundation/members.html

https://www.linkedin.com/pub/christian-mueller/11/551/642


On Fri, Aug 23, 2013 at 8:40 AM, Hack Kampbjørn 
camel.us...@list.hack.kampbjorn.com wrote:

 A workaround is to use a SchemaFactory implementation that is thread safe.
 The one bundled in JDK is not but the one in Xerces is.

 On 2013-08-22, at 12:38, solimo rob...@budzko.eu wrote:

  Oh, how could I miss CAMEL-6630. Thanks.
 
 
 
  --
  View this message in context:
 http://camel.465427.n5.nabble.com/Camel-JAXB-DataFormat-is-not-thread-safe-tp5737748p5737759.html
  Sent from the Camel - Users mailing list archive at Nabble.com.




Re: Camel throws StackOverflowException while converting message body

2013-08-24 Thread Valery
Hello, Christian!

- I attached complete stack trace in my previous message. I can post it here
if you say
- i tried version 2.11.0 and 2.11.1
- Java 1.6.0_20
- It's no problem, I can provide this sources

Best,
Valery



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-throws-StackOverflowException-while-converting-message-body-tp5737854p5737873.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Two camel context

2013-08-24 Thread ROO
I have requirements where users create requests to be sent to list of
services for processing. Request parameters define the target service. These
services are also asynchronous. So I need to periodically call a results
service to check if results are ready. Then I can get it to continue my
flow.What I have done, is storing new requests created by users in a DB
table. To get the results I used camel to define a route that periodically
grab some of these requests, call results services and if they are ready the
route get them, parse data and apply the rest of the process.This approach
is working fine, but the problem is that one of our environment is using two
servers to balance the load. So I am going to have two camel routes doing
the same job. Is there any way to synchronize the work of these two routes
together so they don't override each other work?Thanks and appreciate your
help



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

Re: How to extract the URL parameters using Spring DSL?

2013-08-24 Thread gsamy
Yes, same params all the time.

Thanks,
--Guru



--
View this message in context: 
http://camel.465427.n5.nabble.com/How-to-extract-the-URL-parameters-using-Spring-DSL-tp5737846p5737874.html
Sent from the Camel - Users mailing list archive at Nabble.com.