Re: How to run camel-cdi projects ?

2016-05-11 Thread Antonin Stefanutti
Hi Nicolas,

> On 11 May 2016, at 17:02, nicolasduminil 
>  wrote:
> 
> Hi Antonin,
> 
> I have investigated the direction you've suggested and I think that the (1)
> is fine. Then I found a lot of example like this:
> 
>CdiContainer cdiContainer = CdiContainerLoader.getCdiContainer();
>cdiContainer.boot();
>ContextControl contextControl = cdiContainer.getContextControl();
>contextControl.startContext(ApplicationScoped.class);
>/*
> * Your code here 
> */
> 
> But I'm not sure what the code is supposed to do once the container and the
> context started. In my case, the Camel route starts but it stops immediately
> because the JVM exits. I don't know how to tell to the container to run for
> ever.

You have to block the main thread, one way or another, otherwise the JVM exits 
as all the non-daemon threads have returned / died. An alternative to is to use 
Camel Main support (which I realise I forgot to mention) that relies on 
DeltaSpike [2] and that does the blocking for you and register a shutdown hook 
by default. So you can use the org.apache.camel.cdi.Main class which is part of 
the camel-cdi component.

> I have tried also to create an uber jar using the shade maven plugin but I
> cannot run it with java -jar as there is no any main().

You could try using the Main class provided by camel-cdi.

> So I would be very grateful if you could enlighten me. Many thanks in
> advance.

Let us know if you need further help.

> Kind regards,
> 
> Nicolas DUMINIL
> 
> 
> 
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/How-to-run-camel-cdi-projects-tp5781727p5782448.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



RE: Trouble sending a ByteBuffer to a mock

2016-05-11 Thread Steve Huston
Closing the loop on this... the issue ended up being that when the Exchange got 
to the end of the route and went back to the 'from' (which was a cxfrs REST 
point) that piece complained about the ByteBuffer. In my case the solution 
ended up being adding another processor after the "end" to set up a Response 
for REST.

-Steve

> -Original Message-
> From: Steve Huston
> Sent: Thursday, April 28, 2016 7:04 PM
> To: 'users@camel.apache.org' 
> Subject: Trouble sending a ByteBuffer to a mock
> 
> I am using Camel 2.16.3. I have a route like so:
> 
>from("direct:sendPing").routeId("rms-send-ping")
> .process(new Processor() {
> public void process(Exchange exchange) throws Exception {
>   Message in = exchange.getIn();
> AssetPing p = new AssetPing(in.getHeader("emp", String.class),
> in.getHeader("id", int.class));
> exchange.getIn().setBody(p);
>}
> })
> .convertBodyTo(IsmpAssetPingMessage.class)
> .process(new Processor() {
>   public void process(Exchange exchange) throws Exception {
>   IsmpAssetPingMessage emp =
> exchange.getIn().getBody(IsmpAssetPingMessage.class);
>   emp.setSrcAddress(mrEmpAddress);
>   }
> })
> .convertBodyTo(ByteBuffer.class)
> .removeHeaders("*")
> .to(toRoma).id("sendToRoma");
> 
> In a unit test, I adviceWIth it to replace that last "to", as:
> 
>   context.getRouteDefinition("rms-send-ping").adviceWith(context,
> new AdviceWithRouteBuilder() {
>   @Override
>   public void configure() throws Exception {
>   weaveById("sendToRoma")
>   .replace()
> .to("log:unit")
>   .to("mock:pingCheck");
>   }
> 
> The intention being to extract the message from the mocked end point and
> run some checks on it.
> When the test runs, I see the output from the woven in "log:unit" then I
> have an error:
> 
> 2016-04-28 18:42:33 ERROR JAXRSUtils:1788 - No message body writer has
> been found for class java.nio.HeapByteBuffer, ContentType: text/plain
> 
> Is mock only allowed to have text message bodies written to it?
> 
> My searching for info related to that error has turned up only issues related
> to CXF and REST and problems marshalling to XML/JSON.
> 
> Thanks,
> -Steve Huston


Re: .choice(), .when() not working as expected in the camel route

2016-05-11 Thread souciance
Why don't you try with simple("${body} ==blabla") instead of isequalto ?
Den 11 maj 2016 5:44 em skrev "Kriti [via Camel]" <
ml-node+s465427n5782452...@n5.nabble.com>:

Hi,

I have a camel route like this -

public void configure() {

-
-

from('mina2:tcp://'+ incomingHL7Listener.getIp() + ':' +
incomingHL7Listener.getPort() +'?codec=#rcmhl7codec')
 .choice()
.when(body().isEqualTo("Error decoding
HL7")).to('direct:failure').endChoice()
.otherwise().to('direct:success');

 from('direct:failure')
 .process{
   --
 }
 .marshal().hl7();

from('direct:success')
.process{
   --
 }
 .marshal().hl7();

The route is executing the when part i.e from('direct:failure')
irrespective of whether the condition gets satisfied or not. Even if the
body is not equal to 'Error decoding HL7', it is going to the failure part
of the route.

I need to get a solution for this as soon as possible. Any suggestions
would be welcome.

Thanks and Regards,
Kriti

--
If you reply to this email, your message will be added to the discussion
below:
http://camel.465427.n5.nabble.com/choice-when-not-working-as-expected-in-the-camel-route-tp5782452.html
To start a new topic under Camel - Users, email
ml-node+s465427n465428...@n5.nabble.com
To unsubscribe from Camel - Users, click here

.
NAML





--
View this message in context: 
http://camel.465427.n5.nabble.com/choice-when-not-working-as-expected-in-the-camel-route-tp5782452p5782454.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Update camel-smpp dependency on jsmpp to 2.2.1

2016-05-11 Thread Bari Rid
jsmpp version 2.2.0 contains a correction concerning responding correctly to 
failed DeliverSM as can be seen here:
https://github.com/opentelecoms-org/jsmpp/commit/575eec44ebf51077870d45385392e30a29c6dfe3

The change is made particularly in the file SMPPSessionBoundRX.java when 
handling PDUStringException and ProcessRuest exception

Currently we need to add this dependency explicitly to any new project.


Re: How to run camel-cdi projects ?

2016-05-11 Thread nicolasduminil
Hi Antonin,

I have investigated the direction you've suggested and I think that the (1)
is fine. Then I found a lot of example like this:

CdiContainer cdiContainer = CdiContainerLoader.getCdiContainer();
cdiContainer.boot();
ContextControl contextControl = cdiContainer.getContextControl();
contextControl.startContext(ApplicationScoped.class);
/*
 * Your code here 
 */

But I'm not sure what the code is supposed to do once the container and the
context started. In my case, the Camel route starts but it stops immediately
because the JVM exits. I don't know how to tell to the container to run for
ever.

I have tried also to create an uber jar using the shade maven plugin but I
cannot run it with java -jar as there is no any main().

So I would be very grateful if you could enlighten me. Many thanks in
advance.

Kind regards,

Nicolas DUMINIL



--
View this message in context: 
http://camel.465427.n5.nabble.com/How-to-run-camel-cdi-projects-tp5781727p5782448.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Camel, Blueprint and camel:run

2016-05-11 Thread Grzegorz Grzybek
Hi jraine

looks like you're using very very very very old version of camel.

"Caused by: java.lang.IncompatibleClassChangeError:
org/apache/aries/proxy/impl/interfaces/InterfaceProxyGenerator" means you're
using JDK8 or later with asm version 3 - you should use asm 5.

we've upgraded camel-test-blueprint to use felix-connect instead of PojoSR.
See http://ggrzybek.blogspot.com/2015/12/camel-blueprint-test-support.html
for information about camel-test-blueprint.

regards
Grzegorz Grzybek



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


Camel, Blueprint and camel:run

2016-05-11 Thread jraine
I try to execute a route camel create with Blueprint in Eclipse with the
camel:run. I used the archetype camel-archetype-blueprint, I make a easy
blueprint



In eclipse when I launch the command maven mvn camel:run, the route start,
its perfect.

But when I edit the pom.xml and I add a dependency to camel-cxf, if I launch
the camel:run, there is a error.



and



this is my pom.xml



Can you help me to solve this error? please




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


RE: Camel ftp component : JSCH-0.1.44 Vs OpenSSH_6.6.1 issue: Leads to error : com.jcraft.jsch.JSchException: Session.connect: java.io.IOException: End of IO Stream Read

2016-05-11 Thread sharma_arun_se
It works !

I changed from Fuse to Apache camel only solution.

I used latest Apache Camel ftp component version 2.17.0 and JSCH version:
0.1.53.

It works perfectly fine.





-
Regards,

Arun Kumar (sharma_arun_se)

Expert SOA (Fuse ESB, Camel, ActiveMQ, OSGi) and RESTful Solution Architect, 
Open Source Contributor.
linkedin: http://in.linkedin.com/in/aronkumar
twitter: https://twitter.com/#!/SharmaArunKumar
blog: http://techiesweek.blogspot.com/
Gtalk: arun.kaun...@gmail.com

--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-ftp-component-JSCH-0-1-44-Vs-OpenSSH-6-6-1-issue-Leads-to-error-com-jcraft-jsch-JSchException-d-tp5779854p5782445.html
Sent from the Camel - Users mailing list archive at Nabble.com.


ClassNotFoundException ObjectFactory

2016-05-11 Thread Rakesh

Hello,

I am using the latest camel 2.17.1 version and used 2.17.0 version as well.
The stack trace appear only with enabled TRACE. I am using camel file
endpoint.
This class ObjectFactory doesn't exists in the package. 
Can you please check / confirm is this normal behaviour?

thanks
Rakesh

05:22:52.683 [Camel (camel-1) thread #1 - timer://testOnly] TRACE
org.apache.camel.util.ObjectHelper - Loading class:
org.apache.camel.component.file.ObjectFactory using classloader:
sun.misc.Launcher$AppClassLoader@4e0e2f2a
05:22:52.684 [Camel (camel-1) thread #1 - timer://testOnly] TRACE
org.apache.camel.util.ObjectHelper - Cannot load class:
org.apache.camel.component.file.ObjectFactory using classloader:
sun.misc.Launcher$AppClassLoader@4e0e2f2a
java.lang.ClassNotFoundException:
org.apache.camel.component.file.ObjectFactory
at java.net.URLClassLoader.findClass(URLClassLoader.java:381) 
~[?:1.8.0_60]
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_60]
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
~[?:1.8.0_60]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_60]
at 
org.apache.camel.util.ObjectHelper.doLoadClass(ObjectHelper.java:1112)
[camel-core-2.17.1.jar:2.17.1]
at org.apache.camel.util.ObjectHelper.loadClass(ObjectHelper.java:1020)
[camel-core-2.17.1.jar:2.17.1]
at org.apache.camel.util.ObjectHelper.loadClass(ObjectHelper.java:993)
[camel-core-2.17.1.jar:2.17.1]
at
org.apache.camel.impl.DefaultClassResolver.loadClass(DefaultClassResolver.java:130)
[camel-core-2.17.1.jar:2.17.1]
at
org.apache.camel.impl.DefaultClassResolver.resolveClass(DefaultClassResolver.java:52)
[camel-core-2.17.1.jar:2.17.1]
at
org.apache.camel.converter.jaxb.JaxbHelper.getObjectFactory(JaxbHelper.java:59)
[camel-jaxb-2.17.1.jar:2.17.1]
at
org.apache.camel.converter.jaxb.JaxbHelper.getJaxbElementFactoryMethod(JaxbHelper.java:35)
[camel-jaxb-2.17.1.jar:2.17.1]
at
org.apache.camel.converter.jaxb.FallbackTypeConverter.convertTo(FallbackTypeConverter.java:158)
[camel-jaxb-2.17.1.jar:2.17.1]
at
org.apache.camel.impl.converter.BaseTypeConverterRegistry.doConvertTo(BaseTypeConverterRegistry.java:346)
[camel-core-2.17.1.jar:2.17.1]
at
org.apache.camel.impl.converter.BaseTypeConverterRegistry.convertTo(BaseTypeConverterRegistry.java:133)
[camel-core-2.17.1.jar:2.17.1]
at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:78)
[camel-core-2.17.1.jar:2.17.1]
at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:53)
[camel-core-2.17.1.jar:2.17.1]
at
com.lmig.ci.manpay.docassembly.processors.DocumentProcessor.process(DocumentProcessor.java:80)
[classes/:?]
at
org.apache.camel.processor.DelegateSyncProcessor.process(DelegateSyncProcessor.java:63)
[camel-core-2.17.1.jar:2.17.1]
at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)
[camel-core-2.17.1.jar:2.17.1]
at org.apache.camel.processor.Pipeline.process(Pipeline.java:121)
[camel-core-2.17.1.jar:2.17.1]
at org.apache.camel.processor.Pipeline.process(Pipeline.java:83)
[camel-core-2.17.1.jar:2.17.1]
at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:91)
[camel-core-2.17.1.jar:2.17.1]
at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:91)
[camel-core-2.17.1.jar:2.17.1]
at
org.apache.camel.builder.NoErrorHandlerBuilder$1.process(NoErrorHandlerBuilder.java:40)
[camel-core-2.17.1.jar:2.17.1]
at
org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190)
[camel-core-2.17.1.jar:2.17.1]
at org.apache.camel.processor.Pipeline.process(Pipeline.java:121)
[camel-core-2.17.1.jar:2.17.1]
at org.apache.camel.processor.Pipeline.process(Pipeline.java:83)
[camel-core-2.17.1.jar:2.17.1]
at
org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190)
[camel-core-2.17.1.jar:2.17.1]
at
org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:62)
[camel-core-2.17.1.jar:2.17.1]
at 
org.apache.camel.processor.SendProcessor.process(SendProcessor.java:145)
[camel-core-2.17.1.jar:2.17.1]
at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)
[camel-core-2.17.1.jar:2.17.1]
at org.apache.camel.processor.Pipeline.process(Pipeline.java:121)
[camel-core-2.17.1.jar:2.17.1]




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


Re: Netty4 HTTP - java.lang.NoSuchMethodError: io.netty.util.internal.AppendableCharSequence.charAtUnsafe(I)C

2016-05-11 Thread Charles Moulliard
Yes. Problem resolved after installing the same version of this jar file (
netty-codec-http) as packaged with Camel Netty4 HTTP 2.15.x

On Mon, May 9, 2016 at 12:39 PM, yogu13  wrote:

> Looks like some issue with dependencies of Netty.
>
> Regards,
> -Yogesh
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Netty4-HTTP-java-lang-NoSuchMethodError-io-netty-util-internal-AppendableCharSequence-charAtUnsafe-IC-tp5782365p5782369.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Charles Moulliard
Apache Committer & PMC / Architect @RedHat
Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io


re:

2016-05-11 Thread Ali Saeed



I have a project request...



Apache Server runs console command faster than terminal

2016-05-11 Thread abhi.k.singh
Hi,

I am using apache server to host my python script.
In that script i am doing a grep to get the name of a file containing a
specific string.
When i am running this script on the terminal it takes approx 10 seconds.
In the python script i am executing the same command, but it takes only 1
second when i host it using Apache.
The same command takes 10 seconds if i run my script on SimpleCGI Server of
python.

So, I can deduce that my apache is much faster. But i am not able to
understand why it is faster than the terminal itself.

Can someone tell me what happens when a script tries to run a console
command using apache.

Thanks in advance



--
View this message in context: 
http://camel.465427.n5.nabble.com/Apache-Server-runs-console-command-faster-than-terminal-tp5782425.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: routing from rest to soap

2016-05-11 Thread MKhalil
Sure, added it 



--
View this message in context: 
http://camel.465427.n5.nabble.com/routing-from-rest-to-soap-tp5782352p5782405.html
Sent from the Camel - Users mailing list archive at Nabble.com.


RedisConsumer doesn't support blocking popup in camel-spring-redis component

2016-05-11 Thread ??????
Dear team,


We're using apache camel to integrate our "Elevator IoT" project, we use redis 
lists as our message queue, and use BRPOP to fetch message.  We can push 
message use RedisProducer since it support most command of redis, but the 
RedisConsumer on support the command SUBSCRIBE and PSUBSCRIBE, so we can't 
consume the message from lists.


I think blocking popup is a very common scenario in redis, why 
camel-spring-redis does't support this feature. Can I get any other solution 
for this problem.


Thanks in advanced!


Your fans Sam.

Re: Camel2.17: No bean could be found in the registry

2016-05-11 Thread yogu13
Hi,

Based on  configurations available for spring

  
you can try specifying your custom registry as a bean , just make sure it
has only one bean of type Registry. By default spring ends up using
ApplicationContextRegisrty.

Regards,
-Yogesh 



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel2-17-No-bean-could-be-found-in-the-registry-tp5782311p5782394.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Camel failover loadbalancer empty processor list

2016-05-11 Thread mnl
ping?



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-failover-loadbalancer-empty-processor-list-tp5782152p5782395.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Camel2.17: No bean could be found in the registry

2016-05-11 Thread bprager
Eventually I would like to use Consul as a remote registry. (
https://github.com/bprager/camel-consul
  )

With the example I provided, I am just trying to get a Spring Boot
environment ready to any third party registry.



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel2-17-No-bean-could-be-found-in-the-registry-tp5782311p5782385.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Camel2.17: No bean could be found in the registry

2016-05-11 Thread bprager
Yogesh.
Yes, Consul is similar to ZooKeeper, but has some more advanced features in
terms of health-check and multi-datacenter support.
If you look at the test cases in my GitHub (
https://github.com/bprager/camel-consul
  ) you will see, I have Camel
already using Consul as registry. I am just not savvy enough yet, to make it
work from within Spring Boot. Looking at the docs here: 
http://camel.apache.org/advanced-configuration-of-camelcontext-using-spring.html

  
the registry can be configured. I am just looking for the easiest way of
doing this.
Thank you!



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel2-17-No-bean-could-be-found-in-the-registry-tp5782311p5782387.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Camel2.17: No bean could be found in the registry

2016-05-11 Thread yogu13
okay..

let me check and get back to you..

regards,
-Yogesh

On Monday 9 May 2016, bprager [via Camel] <
ml-node+s465427n5782387...@n5.nabble.com> wrote:

> Yogesh.
> Yes, Consul is similar to ZooKeeper, but has some more advanced features
> in terms of health-check and multi-datacenter support.
> If you look at the test cases in my GitHub (
> https://github.com/bprager/camel-consul) you will see, I have Camel
> already using Consul as registry. I am just not savvy enough yet, to make
> it work from within Spring Boot. Looking at the docs here:
> http://camel.apache.org/advanced-configuration-of-camelcontext-using-spring.html
>  the
> registry can be configured. I am just looking for the easiest way of doing
> this.
> Thank you!
>
> --
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://camel.465427.n5.nabble.com/Camel2-17-No-bean-could-be-found-in-the-registry-tp5782311p5782387.html
> To unsubscribe from Camel2.17: No bean could be found in the registry, click
> here
> 
> .
> NAML
> 
>




--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel2-17-No-bean-could-be-found-in-the-registry-tp5782311p5782388.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel2.17: No bean could be found in the registry

2016-05-11 Thread bprager
Yes, I was missing this.
How do I do that in a Camel Spring Boot environment?
The context is already provided by the Spring Boot Camel auto-configuration.
Thank you!




--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel2-17-No-bean-could-be-found-in-the-registry-tp5782311p5782382.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Netty4 HTTP - java.lang.NoSuchMethodError: io.netty.util.internal.AppendableCharSequence.charAtUnsafe(I)C

2016-05-11 Thread yogu13
Looks like some issue with dependencies of Netty.

Regards,
-Yogesh



--
View this message in context: 
http://camel.465427.n5.nabble.com/Netty4-HTTP-java-lang-NoSuchMethodError-io-netty-util-internal-AppendableCharSequence-charAtUnsafe-IC-tp5782365p5782369.html
Sent from the Camel - Users mailing list archive at Nabble.com.


NullPointerException on ver 2.17 when using saxon-pe 9.5.1.3

2016-05-11 Thread ajozwik
Hi I think it's bug, when I changed back to ver 2.16 it work fine

11:05:59,190 [var/SIS/promote-filter/source/] INFO  
INFO  Exchange[Id: ID-sldv-spd-sdldr5-dev-sis-tv-39553-1462788162677-1-742,
ExchangePattern: InOnly, Properties:
{/var/SIS/promote-filter/source/2016-05-09HRWOCH.xml-CamelFileLockFileAcquired=true,
/var/SIS/promote-filter/source/2016-05-09HRWOCH.xml-CamelFileLockFileName=/var/SIS/promote-filter/source/2016-05-09HRWOCH.xml.camelLock,
CamelBatchComplete=true, CamelBatchIndex=0, CamelBatchSize=1,
CamelCreatedTimestamp=Mon May 09 11:05:59 BST 2016,
CamelFileExchangeFile=GenericFile[/var/SIS/promote-filter/source/2016-05-09HRWOCH.xml],
CamelMessageHistory=[DefaultMessageHistory[routeId=canonical_2_promotion,
node=to1]], CamelToEndpoint=log://INFO?showAll=true}, Headers:
{breadcrumbId=ID-sldv-spd-sdldr5-dev-sis-tv-39553-1462788162677-1-741,
CamelFileAbsolute=true,
CamelFileAbsolutePath=/var/SIS/promote-filter/source/2016-05-09HRWOCH.xml,
CamelFileLastModified=1462786155000, CamelFileLength=491869,
CamelFileName=2016-05-09HRWOCH.xml,
CamelFileNameConsumed=2016-05-09HRWOCH.xml,
CamelFileNameOnly=2016-05-09HRWOCH.xml,
CamelFileParent=/var/SIS/promote-filter/source,
CamelFilePath=/var/SIS/promote-filter/source/2016-05-09HRWOCH.xml,
CamelFileRelativePath=2016-05-09HRWOCH.xml}, BodyType:
org.apache.camel.component.file.GenericFile, Body: [Body is file based:
GenericFile[/var/SIS/promote-filter/source/2016-05-09HRWOCH.xml]], Out:
null: ]
11:05:59,216 [var/SIS/promote-filter/source/] DefaultErrorHandler   
ERROR Failed delivery for (MessageId:
ID-sldv-spd-sdldr5-dev-sis-tv-39553-1462788162677-1-741 on ExchangeId:
ID-sldv-spd-sdldr5-dev-sis-tv-39553-1462788162677-1-742). Exhausted after
delivery attempt: 1 caught: java.lang.NullPointerException

Message History
---
RouteId  ProcessorId  Processor 
  
Elapsed (ms)
[canonical_2_promot] [canonical_2_promot]
[file:///var/SIS/promote-filter/source/?noop=true 
] [26]
[canonical_2_promot] [to1   ] [log:INFO?showAll=true

] [ 2]
[canonical_2_promot] [to2   ]
[xslt:promotion/promotionMeeting.xsl  
] [23]

Stacktrace
---
java.lang.NullPointerException
at
net.sf.saxon.event.ReceivingContentHandler.startPrefixMapping(ReceivingContentHandler.java:256)
at
org.apache.camel.converter.jaxp.StAX2SAXSource.parse(StAX2SAXSource.java:140)
at
org.apache.camel.converter.jaxp.StAX2SAXSource.parse(StAX2SAXSource.java:343)
at net.sf.saxon.event.Sender.sendSAXSource(Sender.java:396)
at net.sf.saxon.event.Sender.send(Sender.java:143)
at net.sf.saxon.Controller.transform(Controller.java:1890)
at
org.apache.camel.builder.xml.XsltBuilder.process(XsltBuilder.java:142)
at
org.apache.camel.impl.ProcessorEndpoint.onExchange(ProcessorEndpoint.java:103)
at
org.apache.camel.component.xslt.XsltEndpoint.onExchange(XsltEndpoint.java:128)
at
org.apache.camel.impl.ProcessorEndpoint$1.process(ProcessorEndpoint.java:71)
at
org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
at
org.apache.camel.processor.SendProcessor.process(SendProcessor.java:145)
at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)
at
org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:468)
at
org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190)
at org.apache.camel.processor.Pipeline.process(Pipeline.java:121)
at org.apache.camel.processor.Pipeline.process(Pipeline.java:83)
at
org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190)
at
org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:454)
at
org.apache.camel.component.file.GenericFileConsumer.processBatch(GenericFileConsumer.java:226)
at
org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:190)
at
org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:175)
at
org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:102)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
at

Re: routing from rest to soap

2016-05-11 Thread miri eyni
did yo add 

 org.apache.camel
camel-spring-ws




--
View this message in context: 
http://camel.465427.n5.nabble.com/routing-from-rest-to-soap-tp5782352p5782368.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: routing from rest to soap

2016-05-11 Thread MKhalil
Hi Dears,
   I have problem like this, but it's related to URL itself as URL
of backend web service has "?" so the camel can't resolve this rout. below
is the exception and URL of web service is bolde style.

org.apache.camel.RuntimeCamelException:
org.apache.camel.FailedToCreateRouteException: Failed to create route route1
at: >>>  because of Failed to resolve endpoint:
spring-ws:*//https://b2brbtest.riyadbank.com/soap?service=RB_OLP_INITIATE_PAYMENT*%3Ftimeout%3D6000=sii%3ARB_OLP_INITIATE_PAYMENT
due to: There are 1 parameters that couldn't be set on the endpoint. Check
the uri if the parameters are spelt correctly and that they are properties
of the endpoint. Unknown
parameters=[{service=RB_OLP_INITIATE_PAYMENT?timeout=6000}]

Anyone has a solution for this issue ? 

Thanks 



--
View this message in context: 
http://camel.465427.n5.nabble.com/routing-from-rest-to-soap-tp5782352p5782366.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: routing from rest to soap

2016-05-11 Thread miri eyni
thanks for your answer 

my code is : 

 JaxbDataFormat jaxb = new JaxbDataFormat(false);
 jaxb.setSchemaLocation("C:\\Users\\m\\Desktop\\wsdl\\p.xsd");
 

getContext().getProperties().put("CamelJacksonEnableTypeConverter", "true");
// allow Jackson json to convert to pojo types also (by default jackson only
converts to String and other simple types)
getContext().getProperties().put("CamelJacksonTypeConverterToPojo", "true");
 // 
jaxb.setContextPath("com.sapiens.alis.foundation.external.model.business.request.policy");
 

from("jetty:http://localhost:8080/json?matchOnUriPrefix=true;).marshal().json(JsonLibrary.Jackson,
true).marshal(jaxb).to("http://localhost:8081/ws/pServices?bridgeEndpoint=true;).unmarshal(jaxb);


and now  i got the following error : 



Message History
---
RouteId  ProcessorId  Processor 
  
Elapsed (ms)
[route2] [route2]
[jetty:http://localhost:8080/json?matchOnUriPrefix=true   
] [40]
[route2] [marshal1  ]
[marshal[org.apache.camel.model.dataformat.JsonDataFormat@45553d72]   
] [36]

Stacktrace
---

com.fasterxml.jackson.databind.JsonMappingException: No serializer found for
class org.apache.camel.converter.stream.InputStreamCache and no properties
discovered to create BeanSerializer (to avoid exception, disable
SerializationFeature.FAIL_ON_EMPTY_BEANS) )
at
com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:230)
~[jackson-databind-2.7.2.jar:2.7.2]
at
com.fasterxml.jackson.databind.ser.impl.UnknownSerializer.failForEmpty(UnknownSerializer.java:68)
~[jackson-databind-2.7.2.jar:2.7.2]
at
com.fasterxml.jackson.databind.ser.impl.UnknownSerializer.serialize(UnknownSerializer.java:32)
~[jackson-databind-2.7.2.jar:2.7.2]
at
com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.serializeValue(DefaultSerializerProvider.java:130)
~[jackson-databind-2.7.2.jar:2.7.2]
at
com.fasterxml.jackson.databind.ObjectWriter$Prefetch.serialize(ObjectWriter.java:1428)
~[jackson-databind-2.7.2.jar:2.7.2]
at
com.fasterxml.jackson.databind.ObjectWriter._configAndWriteValue(ObjectWriter.java:1129)
~[jackson-databind-2.7.2.jar:2.7.2]
at
com.fasterxml.jackson.databind.ObjectWriter.writeValue(ObjectWriter.java:967)
~[jackson-databind-2.7.2.jar:2.7.2]
at
org.apache.camel.component.jackson.JacksonDataFormat.marshal(JacksonDataFormat.java:154)
~[camel-jackson-2.17.0.jar:2.17.0]
at
org.apache.camel.processor.MarshalProcessor.process(MarshalProcessor.java:69)
~[camel-core-2.17.0.jar:2.17.0]
at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)
~[camel-core-2.17.0.jar:2.17.0]
at
org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:468)
~[camel-core-2.17.0.jar:2.17.0]
at
org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190)
[camel-core-2.17.0.jar:2.17.0]
at org.apache.camel.processor.Pipeline.process(Pipeline.java:121)
[camel-core-2.17.0.jar:2.17.0]
at org.apache.camel.processor.Pipeline.process(Pipeline.java:83)
[camel-core-2.17.0.jar:2.17.0]
at
org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190)
[camel-core-2.17.0.jar:2.17.0]
at
org.apache.camel.component.jetty.CamelContinuationServlet.service(CamelContinuationServlet.java:191)
[camel-jetty-common-2.17.0.jar:2.17.0]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
[javax.servlet-api-3.1.0.jar:3.1.0]
at 
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)
[jetty-servlet-9.2.15.v20160210.jar:9.2.15.v20160210]
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
[jetty-servlet-9.2.15.v20160210.jar:9.2.15.v20160210]
at
org.eclipse.jetty.servlets.MultiPartFilter.doFilter(MultiPartFilter.java:146)
[jetty-servlets-9.2.15.v20160210.jar:9.2.15.v20160210]
at
org.apache.camel.component.jetty.CamelFilterWrapper.doFilter(CamelFilterWrapper.java:43)
[camel-jetty-common-2.17.0.jar:2.17.0]
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
[jetty-servlet-9.2.15.v20160210.jar:9.2.15.v20160210]
at
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
[jetty-servlet-9.2.15.v20160210.jar:9.2.15.v20160210]
at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)

Re: Camel and Guice - without JNDI and Spring

2016-05-11 Thread Andrea Cosentino
Hi Jens,

Sorry, missed your first email. I think we don't have examples of this kind.

I think it's interesting.

Let us know your progress :-)

Thanks. 
 --
Andrea Cosentino 
--
Apache Camel PMC Member
Apache Karaf Committer
Apache Servicemix Committer
Email: ancosen1...@yahoo.com
Twitter: @oscerd2
Github: oscerd



On Wednesday, May 11, 2016 10:38 AM, jkiddo  
wrote:
Hmmm ... Okay ... I've started to figure out some stuff. Should anyone be
interested in following my findings, they can be found @
https://github.com/jkiddo/camel-herder



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-and-Guice-without-JNDI-and-Spring-tp5782401p5782429.html

Sent from the Camel - Users mailing list archive at Nabble.com.


Re: How to run camel-cdi projects ?

2016-05-11 Thread nicolasduminil
Hi Antonin,

Many thanks for your reply and sorry fior the delay. I'll investigate these
options and I'll post here my results.

Kind regards,

Nicolas DUMINIL



--
View this message in context: 
http://camel.465427.n5.nabble.com/How-to-run-camel-cdi-projects-tp5781727p5782431.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Camel and Guice - without JNDI and Spring

2016-05-11 Thread jkiddo
Hmmm ... Okay ... I've started to figure out some stuff. Should anyone be
interested in following my findings, they can be found @
https://github.com/jkiddo/camel-herder



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-and-Guice-without-JNDI-and-Spring-tp5782401p5782429.html
Sent from the Camel - Users mailing list archive at Nabble.com.