Re: [2.9.5] body=null after onException(_).handled(false)

2013-02-06 Thread Alex Anderson
On 5 February 2013 18:39, Henryk Konsek  wrote:
> Hi Alex,
>
>> When myBean.slip() throws SpecificException, If I print in.body in
>> handleSpecificException(), I can see that it is not null.
>>
>> If I print it again in handleFailed() it is now null.
>
> Actually I can't reproduce this problem neither under Camel 2.9.5 nor
> under Camel 2.10.1.
>
> Here is my minimal example trying to reproduce your behavior:
>
> __
> public class ErrorHandler {
>
>   public void exception(Exchange exchange) {
> System.out.println("Exception: " + exchange.getIn());
>   }
>
>   public void completion(Exchange exchange) {
> System.out.println("Completion: " + exchange.getIn());
>   }
>
>   public void router() {
> throw new RuntimeException();
>   }
>
> }
>
> CamelContext context = new DefaultCamelContext();
> context.addRoutes(new RouteBuilder() {
>   @Override
>   public void configure() throws Exception {
> onCompletion().onFailureOnly().bean(new ErrorHandler(), "completion");
> from("seda:start")
>.onException(Exception.class)
>.bean(new ErrorHandler(), "exception")
>.handled(false)
>.end()
> .dynamicRouter(bean(ErrorHandler.class, "router"));
> }
>   });
> context.start();
> context.createProducerTemplate().sendBody("seda:start","msg");
> __
>
> The output produced by it indicates that both handlers work fine:
>
> __
> Exception: Message: msg
> Completion: Message: msg
> __
>
> If you would be so kind and create minimal Maven project with test
> case demonstrating the issue, I could debug it and tell you what is
> the problem.

Hi Henryk,

Thanks for your help.  I agree that your example doesn't exhibit the
problem - I'm sorry for not working through a simple example myself
before sending to the mailing list.

When I have time I will try to recreate and share on this list.

Alex


Re: [2.9.5] body=null after onException(_).handled(false)

2013-02-06 Thread Alex Anderson
Henryk,

Sorry for the confusion - my error handler is written in Groovy, and
the definition of the exception handler is as follows:

  // N.B. This method implicitly returns null
  def exception(Exchange exchange) {
System.out.println("Exception: " + exchange.getIn());
  }

In Java this is effectively:

  Object exception(Exchange exchange) {
System.out.println("Exception: " + exchange.getIn());
return null;
  }

So I guess that explains that!

Thanks again for your help,

Alex


Re: Exception in restful web service

2013-02-06 Thread Sergey Beryozkin

On 06/02/13 05:12, Richa wrote:

Hi,
I have a restful webservice that I am invoking using camel-cxf. I want to
call a particular function on the server. I can call the server but I am
getting the following exception while processing:

org.apache.cxf.jaxrs.client.ClientWebApplicationException: .No message body
reader has been found for class : class com.amadeus.Server.Hello,
ContentType : application/xml.

My method in the server that I am invoking is as follows:

@GET
@Path("/xmlHello")
@Produces ( "application/xml" )
public String sayXMLHello() {

  return "Server says hello";

}

Kindly help me with tihs problem.



Where does Server.Hello class come from ? It appears, from the way the 
invocation is done, CXF assumes that the response class is Server.Hello


Sergey




--
View this message in context: 
http://camel.465427.n5.nabble.com/Exception-in-restful-web-service-tp5727019.html
Sent from the Camel - Users mailing list archive at Nabble.com.



--


Re: Configuring SSL for CXF-RS consumers in Camel

2013-02-06 Thread Sergey Beryozkin

On 05/02/13 22:19, Martin Stiborský wrote:

Hello guys,
just a quick question, because, I'm a little bit lost…
What is the preffered way to configure SSL for REST interface in Camel
project?

I'm using CXF-RS and so far, sending requests via http was good enough, but
now it gets more serious and I need https…

I have found that one possibility could be through "PAX web" and the second
one "http conduit".
Is it so? What is the difference?
At least the PAX web was not working for me, I have very similar scenario
what is discussed in this thread (
http://camel.465427.n5.nabble.com/Camel-CXF-HTTPS-td5721517.html) but the
"https" resource was not working (connection refused), following the
advices in the discussion there.

Now I'm going to take a look on "http conduit", but anyway, I'd like to ask
you for hints.


Re CXF HTTP Conduit, please check
http://cxf.apache.org/docs/jax-rs-client-api.html#JAX-RSClientAPI-ConfiguringanHTTPConduitfromSpring

HTH, Sergey


Thanks!



Re: Error handling - Want to send emails on errors

2013-02-06 Thread Henryk Konsek
Hi Manglu,

> As part of this i want to send emails to admin with the error information.

Have you considered sending error messages to the SEDA queue and
reading them asynchronously afterwards?

errorHandler(deadLetterChannel("seda:errors"));
from("seda:errors").to(some slow and unreliable notification endpoint);

Best regards.

--
Henryk Konsek
http://henryk-konsek.blogspot.com


Re: using Camel behind proxy

2013-02-06 Thread Willem jiang
camel-twitter is leveraging the twitter4j. Here the instruction of setting the 
proxy from twitter4j FAQ[1].

You can either to use system properties(-Dtwitter4j.http.proxyHost, 
-Dtwitter4j.http.proxyPort) or twitter4j.properties.
http.proxyHost=your.proxy.host http.proxyPort=8080  
twitter4j.properties can to be located in the root of your app's classpath, in 
WEB-INF/ directory, or in the process's default directory.

[1]http://twitter4j.org/en/faq.html  

--  
Willem Jiang

Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) 
(English)
  http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem





On Wednesday, February 6, 2013 at 8:23 PM, Ivan Vasilev wrote:

> Hi Guys,
>  
> I have to use Camel for downloading Twitter messages and mails from Google
> mail. I have already created that application that uses Camel Twitter
> component and it works perfectly but from machines that are connected
> directly to the Internet.
> I have to make it work from machines that communicate with Twitter not
> directly but via proxy.
> For Maven and Gradle we do this by modifying their configuration files. For
> example for Maven we modify the file /conf/settings.xml by
> adding  element properly formatted.
>  
> So my question is: Is there some configuration file in Camel that we should
> modify so that make it using our proxy server when downloading messages
> from Twitter and how to use it?
> If not - is there some other way to do this task?
>  
> Thanks,
> Ivan





[Camel-Json] Json unmarshalling have some problem with different object on the same context

2013-02-06 Thread Tcharl
Hi,
I've some problem unmarshalling different objects in multiple routes with
camel-json (same camelContext).
Example:
from("direct:jsonToUser")
.unmarshal()
.json(JsonLibrary.Jackson, MUser.class)
and:
from("direct:jsonToPlayer")
.unmarshal()
.json(JsonLibrary.Jackson, Player.class)


When I take the first one it complains that a field is not a part of the
Player class (and for sure that isn't).

For info, I'm on an osgi environnement (tested on virgo + camel-spring and
karaf + camel-blueprint).

Kind regards,
Charlie




--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-Json-Json-unmarshalling-have-some-problem-with-different-object-on-the-same-context-tp5727040.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Camel JPA - Parameterized Queries?

2013-02-06 Thread Babak Vahdat
Hi

In case of a Bean method that comes out-of-the-box through the Camel
Parameter binding:

  http://camel.apache.org/bean-binding.html#BeanBinding-Parameterbinding

And in case of a Camel Processor:

 theExchangeParameterOfTheProcessMethod.getContext();

Babak




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


Re: XML Validation fails with 2.10.3. Used to work in 2.9.2

2013-02-06 Thread vishal1981
Well I had an xerces jar coming from openejb. If I removed that it works.
This was on 2.10.3.
What I dont understand is why would the the jre try and use a parser in an
external jar when it has the same one available as part of the java library.
Havent tried with 2.10.2 and that jar in the classpath.
thanks for your replies.
regards,
v





--
View this message in context: 
http://camel.465427.n5.nabble.com/XML-Validation-fails-with-2-10-3-Used-to-work-in-2-9-2-tp5726504p5727047.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Transforming large mainframe file

2013-02-06 Thread Christian Müller
Also check out my comment in this block post...

Sent from a mobile device
Am 06.02.2013 01:53 schrieb "Gvvenkat" :

> Thanks a lot. It helped lot. I found a help on how to improve the speed
> also.
> http://www.catify.com/2012/07/09/parsing-large-files-with-apache-camel/
>
> But, I am unable to convert this into Spring DSL.  Any help will be greatly
> appricated..
>
> Here is my equivalent JAVA DSL
>
> from("file:F:/EbcConversion/Data/inbox?noop=true").
> split().method("mySplitterBean", "testBody").streaming().
> process( new NewDecoder()).
>aggregate(header(Exchange.FILE_NAME_ONLY),
> new StringBodyAggregator()).completionSize(750)
> .completionTimeout(1500).
>
>
> to("file:F:/EbcConversion/Data/outbox/files?fileExist=Append&fileName=output.txt");
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Transforming-large-mainframe-file-tp5726423p5726988.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>


Re: sftp - NoSuchMethodError ...SftpConsumer.isValidFile

2013-02-06 Thread Christian Müller
Can you try Camel 2.10.2 and/or 2.10.4-SNAPSHOT? 2.10.3 has a known issue...

Sent from a mobile device
Am 06.02.2013 01:54 schrieb "guillermo.flores" <
guillermo.flo...@mx.unisys.com>:

> Hi, i'm testing the SFTP/FTP over multiple operting systems, when I test it
> on a Linux RH 5.0 i'm getting an exception. Don't understand what is wrong.
> Could you help me?
>
> The exception i'm getting is:
>
> +++
> [ - sftp://root@129.222.138.155] SftpOperations INFO  JSCH
> -> Authentications that can continue: password
> [ - sftp://root@129.222.138.155] SftpOperations INFO  JSCH
> -> Next authentication method: password
> [ - sftp://root@129.222.138.155] SftpOperations INFO  JSCH
> -> Authentication succeeded (password).
> [ - sftp://root@129.222.138.155] SftpOperations INFO
> Connected to sftp://root@129.222.138.155:22
> [ - sftp://root@129.222.138.155] SftpConsumer   INFO
> Connected and logged in to: sftp://root@129.222.138.155:22
> [ - sftp://root@129.222.138.155] SftpConsumer   WARN
> Consumer
> Consumer[sftp://
> root@129.222.138.155?delay=6&passiveMode=true&password=**]
> failed polling endpoint:
> Endpoint[sftp://
> root@129.222.138.155?delay=6&passiveMode=true&password=**].
> Will try again at next poll. Caused by: [java.lang.NoSuchMethodError -
>
> org.apache.camel.component.file.remote.SftpConsumer.isValidFile(Lorg/apache/camel/component/file/GenericFile;Z)Z]
> java.lang.NoSuchMethodError:
>
> org.apache.camel.component.file.remote.SftpConsumer.isValidFile(Lorg/apache/camel/component/file/GenericFile;Z)Z
> at
>
> org.apache.camel.component.file.remote.SftpConsumer.doPollDirectory(SftpConsumer.java:121)
> at
>
> org.apache.camel.component.file.remote.SftpConsumer.pollDirectory(SftpConsumer.java:50)
> at
>
> org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:107)
> at
>
> org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:142)
> at
>
> org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:92)
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
> at
> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
> at
>
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
> at
>
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
> at
>
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
> at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> at java.lang.Thread.run(Thread.java:662)
> +++
>
> My Spring DSL
>
> +++
>xmlns="http://camel.apache.org/schema/blueprint";>
> 
>  uri="sftp://
> root@129.222.138.155?password=password&delay=6&passiveMode=true
> "/>
> 
> 
> 
> 
>
> +++
>
>
> My pom has these line
>
> +++
>
> org.apache.camel
> camel-ftp
> 2.10.3
> 
>   
>
> +++
>
> Thanks
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/sftp-NoSuchMethodError-SftpConsumer-isValidFile-tp5726990.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>


Re: Quickfix component as initiator - How do I insert user and password to logon

2013-02-06 Thread vcheruvu
Hi,

We have used login in our application. Example listed below using JAVA DSL.
You will have to create another route that consumes Admin messages from
quickfix engine and set credential injector. After that you can use 
"to("quickfix:receptor.cfg")" in any route to publish your fix message


from("quickfix:META-INF/quickfix/session.cfg?sessionID=FIX.4.2:SenderCompID->TargetCompID").filter(
PredicateBuilder.and(

header(QuickfixjEndpoint.EVENT_CATEGORY_KEY).isEqualTo(

QuickfixjEventCategory.AdminMessageSent),

header(QuickfixjEndpoint.MESSAGE_TYPE_KEY).isEqualTo(
MsgType.LOGON)))
.bean(new CredentialInjector("password123"));




public static class CredentialInjector {
private final String password;

public CredentialInjector(String password) {
this.password = password;
}

public void inject(Exchange exchange) throws 
InvalidPayloadException {
System.out.println("Injecting password into outgoing 
logon message");
Message message = 
ExchangeHelper.getMandatoryInBody(exchange,
Message.class);
message.setString(553, "username");
message.setString(RawData.FIELD, password);
message.setInt(RawDataLength.FIELD, password.length());
}
}

Let me know if it works for you.. Camel rocks!!



Cheers,
-Vid-







--
View this message in context: 
http://camel.465427.n5.nabble.com/Quickfix-component-as-initiator-How-do-I-insert-user-and-password-to-logon-tp5726991p5727056.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Quickfix component as initiator - How do I insert user and password to logon

2013-02-06 Thread Christian Müller
I think if you use QuickFix without Camel, the solution is described here
[1].
At present, Camel doesn't support it. Feel free to log a JIRA [2] so we
don't forget it.

And if you can provide a unit test and fix for that, this would be great.
We love contributions [3].

[1]
http://quickfix-j.364392.n2.nabble.com/FIX-4-4-Logon-with-Username-and-password-td364677.html
[2] https://issues.apache.org/jira/browse/
[3] http://camel.apache.org/contributing.html

Best,
Christian

On Wed, Feb 6, 2013 at 3:14 PM, pvenini  wrote:

> Christian:
> no, you can't set these fields in the config file.
>
> Pablo
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Quickfix-component-as-initiator-How-do-I-insert-user-and-password-to-logon-tp5726991p5727036.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



--


Re: Quickfix component as initiator - How do I insert user and password to logon

2013-02-06 Thread Christian Müller
Thanks for sharing!
I'm wondering whether it should be done in a much simpler way. Setting a
user and password on the quickfix endpoint or so...

Best,
Christian

On Wed, Feb 6, 2013 at 11:00 PM, vcheruvu  wrote:

> Hi,
>
> We have used login in our application. Example listed below using JAVA DSL.
> You will have to create another route that consumes Admin messages from
> quickfix engine and set credential injector. After that you can use
> "to("quickfix:receptor.cfg")" in any route to publish your fix message
>
>
>
> from("quickfix:META-INF/quickfix/session.cfg?sessionID=FIX.4.2:SenderCompID->TargetCompID").filter(
> PredicateBuilder.and(
>
> header(QuickfixjEndpoint.EVENT_CATEGORY_KEY).isEqualTo(
>
> QuickfixjEventCategory.AdminMessageSent),
>
> header(QuickfixjEndpoint.MESSAGE_TYPE_KEY).isEqualTo(
>
> MsgType.LOGON)))
> .bean(new CredentialInjector("password123"));
>
>
>
>
> public static class CredentialInjector {
> private final String password;
>
> public CredentialInjector(String password) {
> this.password = password;
> }
>
> public void inject(Exchange exchange) throws
> InvalidPayloadException {
> System.out.println("Injecting password into
> outgoing logon message");
> Message message =
> ExchangeHelper.getMandatoryInBody(exchange,
> Message.class);
> message.setString(553, "username");
> message.setString(RawData.FIELD, password);
> message.setInt(RawDataLength.FIELD,
> password.length());
> }
> }
>
> Let me know if it works for you.. Camel rocks!!
>
>
>
> Cheers,
> -Vid-
>
>
>
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Quickfix-component-as-initiator-How-do-I-insert-user-and-password-to-logon-tp5726991p5727056.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



--


Re: Error handling - Want to send emails on errors

2013-02-06 Thread manglu
Hi Henryk,

Thanks. Good idea.

I will explore this path.

Cheers
Manglu





--
View this message in context: 
http://camel.465427.n5.nabble.com/Error-handling-Want-to-send-emails-on-errors-tp5727021p5727061.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: XML Validation fails with 2.10.3. Used to work in 2.9.2

2013-02-06 Thread Willem jiang
I'm not sure if the openejb did some work to load the xerces jar it ships.  


--  
Willem Jiang

Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) 
(English)
  http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem





On Thursday, February 7, 2013 at 2:38 AM, vishal1981 wrote:

> Well I had an xerces jar coming from openejb. If I removed that it works.
> This was on 2.10.3.
> What I dont understand is why would the the jre try and use a parser in an
> external jar when it has the same one available as part of the java library.
> Havent tried with 2.10.2 and that jar in the classpath.
> thanks for your replies.
> regards,
> v
>  
>  
>  
>  
>  
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/XML-Validation-fails-with-2-10-3-Used-to-work-in-2-9-2-tp5726504p5727047.html
> Sent from the Camel - Users mailing list archive at Nabble.com 
> (http://Nabble.com).





File transfer using ftp failed

2013-02-06 Thread AMARNATH, Balachandar
Hi,

Can someone in the list give me a clue on this issue below to fix ?


With thanks and regards
Balachandar

-Original Message-
From: AMARNATH, Balachandar [mailto:balachandar.amarn...@airbus.com] 
Sent: 05 February 2013 14:09
To: users@camel.apache.org
Subject: RE: File transfer using ftp failed

Nope.. I have updated to camel-ftp-2.10.3.jar but still the issue is persisting 
!


-Original Message-
From: Claus Ibsen [mailto:claus.ib...@gmail.com] 
Sent: 05 February 2013 13:44
To: users@camel.apache.org
Subject: Re: File transfer using ftp failed

On Tue, Feb 5, 2013 at 9:11 AM, AMARNATH, Balachandar
 wrote:
> HI Claus Ibsen,
>
> Thanks for the information. But then, I have the following jars in classpath 
> but still I am facing the same error,
>
>
> camel-ftp-2.9.2.jar
> camel-core-2.10.3.jar
> slf4j-api-1.6.6.jar
> jsch-0.1.38.jar
> commons-net-3.2.jar:
> commons-net-3.2-sources.jar
>

The Camel JARs *MUST* be the same version, you got 2.9.2 and 2.10.3 mixed up.


>
> regards
> Bala
>
> -Original Message-
> From: Claus Ibsen [mailto:claus.ib...@gmail.com]
> Sent: 05 February 2013 12:45
> To: users@camel.apache.org
> Subject: Re: File transfer using ftp failed
>
> On Tue, Feb 5, 2013 at 5:43 AM, AMARNATH, Balachandar
>  wrote:
>> Hello,
>>
>> I tried to do a file transfer using apache camel route using the following 
>> route
>>
>> from("ftp://@/etc/?password=")
>> .process(new Processor() {
>> public void process(Exchange exchange) throws Exception {
>> // do something
>> }
>> }).to("file:///tmp/");
>>
>> I end up with the following error,
>>
>> Exception in thread "main" org.apache.camel.FailedToCreateRouteException: 
>> Failed to create route route1: Route... because of Failed to resolve 
>> endpoint: due to: No component found with scheme: ftp
>>
>> I installed camel-ftp and the jar file camel-ftp.jar is in the classpath
>>
>
> You need the transitive JARs as well. eg camel-ftp uses commons net
> and jcraft for the actual FTP libraries.
> If  you use maven then its very easy as just depend on camel-ftp and
> Maven will do that for you.
>
> If not using maven you need to add those JARS manually.
>
>
>
>> Any hint will be highly appreciated
>>
>>
>>
>> With thanks and regards
>> Balachandar
>>
>>
>>
>>
>> The information in this e-mail is confidential. The contents may not be 
>> disclosed or used by anyone other than the addressee. Access to this e-mail 
>> by anyone else is unauthorised.
>> If you are not the intended recipient, please notify Airbus immediately and 
>> delete this e-mail.
>> Airbus cannot accept any responsibility for the accuracy or completeness of 
>> this e-mail as it has been sent over public networks. If you have any 
>> concerns over the content of this message or its Accuracy or Integrity, 
>> please contact Airbus immediately.
>> All outgoing e-mails from Airbus are checked using regularly updated virus 
>> scanning software but you should take whatever measures you deem to be 
>> appropriate to ensure that this message and any attachments are virus free.
>>
>
>
>
> --
> Claus Ibsen
> -
> Red Hat, Inc.
> FuseSource is now part of Red Hat
> Email: cib...@redhat.com
> Web: http://fusesource.com
> Twitter: davsclaus
> Blog: http://davsclaus.com
> Author of Camel in Action: http://www.manning.com/ibsen
>
> This mail has originated outside your organization, either from an external 
> partner or the Global Internet.
> Keep this in mind if you answer this message.
>
>
>
> The information in this e-mail is confidential. The contents may not be 
> disclosed or used by anyone other than the addressee. Access to this e-mail 
> by anyone else is unauthorised.
> If you are not the intended recipient, please notify Airbus immediately and 
> delete this e-mail.
> Airbus cannot accept any responsibility for the accuracy or completeness of 
> this e-mail as it has been sent over public networks. If you have any 
> concerns over the content of this message or its Accuracy or Integrity, 
> please contact Airbus immediately.
> All outgoing e-mails from Airbus are checked using regularly updated virus 
> scanning software but you should take whatever measures you deem to be 
> appropriate to ensure that this message and any attachments are virus free.
>



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

This mail has originated outside your organization, either from an external 
partner or the Global Internet.
Keep this in mind if you answer this message.



The information in this e-mail is confidential. The contents may not be 
disclosed or used by anyone other than the addressee. Access to this e-mail by 
anyone else is unauthorised.
If you are not the intended recipient, please notify Airbus immediately and 

Re: File transfer using ftp failed

2013-02-06 Thread Christian Müller
Can you try 2.10.2 or 2.10.4-SNAPSHOT? 2.10.3 has known issue.

Sent from a mobile device
Am 07.02.2013 05:09 schrieb "AMARNATH, Balachandar" <
balachandar.amarn...@airbus.com>:

> Hi,
>
> Can someone in the list give me a clue on this issue below to fix ?
>
>
> With thanks and regards
> Balachandar
>
> -Original Message-
> From: AMARNATH, Balachandar [mailto:balachandar.amarn...@airbus.com]
> Sent: 05 February 2013 14:09
> To: users@camel.apache.org
> Subject: RE: File transfer using ftp failed
>
> Nope.. I have updated to camel-ftp-2.10.3.jar but still the issue is
> persisting !
>
>
> -Original Message-
> From: Claus Ibsen [mailto:claus.ib...@gmail.com]
> Sent: 05 February 2013 13:44
> To: users@camel.apache.org
> Subject: Re: File transfer using ftp failed
>
> On Tue, Feb 5, 2013 at 9:11 AM, AMARNATH, Balachandar
>  wrote:
> > HI Claus Ibsen,
> >
> > Thanks for the information. But then, I have the following jars in
> classpath but still I am facing the same error,
> >
> >
> > camel-ftp-2.9.2.jar
> > camel-core-2.10.3.jar
> > slf4j-api-1.6.6.jar
> > jsch-0.1.38.jar
> > commons-net-3.2.jar:
> > commons-net-3.2-sources.jar
> >
>
> The Camel JARs *MUST* be the same version, you got 2.9.2 and 2.10.3 mixed
> up.
>
>
> >
> > regards
> > Bala
> >
> > -Original Message-
> > From: Claus Ibsen [mailto:claus.ib...@gmail.com]
> > Sent: 05 February 2013 12:45
> > To: users@camel.apache.org
> > Subject: Re: File transfer using ftp failed
> >
> > On Tue, Feb 5, 2013 at 5:43 AM, AMARNATH, Balachandar
> >  wrote:
> >> Hello,
> >>
> >> I tried to do a file transfer using apache camel route using the
> following route
> >>
> >> from("ftp://@/etc/?password=")
> >> .process(new Processor() {
> >> public void process(Exchange exchange) throws Exception
> {
> >> // do something
> >> }
> >> }).to("file:///tmp/");
> >>
> >> I end up with the following error,
> >>
> >> Exception in thread "main"
> org.apache.camel.FailedToCreateRouteException: Failed to create route
> route1: Route... because of Failed to resolve endpoint: due to: No
> component found with scheme: ftp
> >>
> >> I installed camel-ftp and the jar file camel-ftp.jar is in the classpath
> >>
> >
> > You need the transitive JARs as well. eg camel-ftp uses commons net
> > and jcraft for the actual FTP libraries.
> > If  you use maven then its very easy as just depend on camel-ftp and
> > Maven will do that for you.
> >
> > If not using maven you need to add those JARS manually.
> >
> >
> >
> >> Any hint will be highly appreciated
> >>
> >>
> >>
> >> With thanks and regards
> >> Balachandar
> >>
> >>
> >>
> >>
> >> The information in this e-mail is confidential. The contents may not be
> disclosed or used by anyone other than the addressee. Access to this e-mail
> by anyone else is unauthorised.
> >> If you are not the intended recipient, please notify Airbus immediately
> and delete this e-mail.
> >> Airbus cannot accept any responsibility for the accuracy or
> completeness of this e-mail as it has been sent over public networks. If
> you have any concerns over the content of this message or its Accuracy or
> Integrity, please contact Airbus immediately.
> >> All outgoing e-mails from Airbus are checked using regularly updated
> virus scanning software but you should take whatever measures you deem to
> be appropriate to ensure that this message and any attachments are virus
> free.
> >>
> >
> >
> >
> > --
> > Claus Ibsen
> > -
> > Red Hat, Inc.
> > FuseSource is now part of Red Hat
> > Email: cib...@redhat.com
> > Web: http://fusesource.com
> > Twitter: davsclaus
> > Blog: http://davsclaus.com
> > Author of Camel in Action: http://www.manning.com/ibsen
> >
> > This mail has originated outside your organization, either from an
> external partner or the Global Internet.
> > Keep this in mind if you answer this message.
> >
> >
> >
> > The information in this e-mail is confidential. The contents may not be
> disclosed or used by anyone other than the addressee. Access to this e-mail
> by anyone else is unauthorised.
> > If you are not the intended recipient, please notify Airbus immediately
> and delete this e-mail.
> > Airbus cannot accept any responsibility for the accuracy or completeness
> of this e-mail as it has been sent over public networks. If you have any
> concerns over the content of this message or its Accuracy or Integrity,
> please contact Airbus immediately.
> > All outgoing e-mails from Airbus are checked using regularly updated
> virus scanning software but you should take whatever measures you deem to
> be appropriate to ensure that this message and any attachments are virus
> free.
> >
>
>
>
> --
> Claus Ibsen
> -
> Red Hat, Inc.
> FuseSource is now part of Red Hat
> Email: cib...@redhat.com
> Web: http://fusesource.com
> Twitter: davsclaus
> Blog: http://davsclaus.com
> Author of Camel in Action: http://www.manning.com/ibsen
>
> This mail

How to consume axis web service with user authentication in camel route

2013-02-06 Thread sarfaraj
We have axis web service with user authentication. Could some one tell me how
to consume that web service in camel route ? and How to authenticate using
camel route ?

Any example would greatly help me. 

/Sarfaraj



--
View this message in context: 
http://camel.465427.n5.nabble.com/How-to-consume-axis-web-service-with-user-authentication-in-camel-route-tp5727065.html
Sent from the Camel - Users mailing list archive at Nabble.com.