Grokbase Groups Camel users May 2011
FAQ
I am new bee trying to use camel .
I am trying an email listner I am failing with this exception


Failed to create route route1:
Route[[From[imaps://imap.gmail.com?password=xxxxx&usernam... because of
Failed to resolve endpoint:
imaps://imap.gmail.com?consumer.delay=60000&deleteProcessedMessages=false&password=xxxxxx&processOnlyUnseenMessages=true&username=myuserid%40gmail.com
due to: Failed to resolve endpoint:
imaps://imap.gmail.com?consumer.delay=60000&deleteProcessedMessages=false&password=xxxxxx&processOnlyUnseenMessages=true&username=myuserid%40gmail.com
due to: There are 2 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=[{deleteProcessedMessages=false,
processOnlyUnseenMessages=true}]
at
org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1139)
at
org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:103)
at
org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:238)
at
org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)
at
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)
at
org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428)
at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
at
org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:636)
at
org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:188)
at
org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:995)
at
org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:579)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:381)
at
org.mortbay.jetty.plugin.JettyWebAppContext.doStart(JettyWebAppContext.java:114)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
at
org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:165)
at
org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:162)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
at
org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:165)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
at
org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:92)
at org.eclipse.jetty.server.Server.doStart(Server.java:226)
at org.mortbay.jetty.plugin.JettyServer.doStart(JettyServer.java:69)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
at
org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:433)
at
org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:377)
at org.mortbay.jetty.plugin.JettyRunMojo.execute(JettyRunMojo.java:577)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:553)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:523)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)


--
View this message in context: http://camel.465427.n5.nabble.com/failed-to-create-route-tp4443078p4443078.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Search Discussions

  • Christian Müller at May 31, 2011 at 8:00 pm
    Please have a look at [1] which information you should provide to get help
    (Which version of Camel do you use? How looks your route? ...).

    [1] http://camel.apache.org/support.html#Support-Howtogethelp

    Best,
    Christian
    On Tue, May 31, 2011 at 9:39 PM, fachhoch wrote:

    I am new bee trying to use camel .
    I am trying an email listner I am failing with this exception


    Failed to create route route1:
    Route[[From[imaps://imap.gmail.com?password=xxxxx&usernam... because of
    Failed to resolve endpoint:
    imaps://
    imap.gmail.com?consumer.delay=60000&deleteProcessedMessages=false&password=xxxxxx&processOnlyUnseenMessages=true&username=myuserid%40gmail.com
    due to: Failed to resolve endpoint:
    imaps://
    imap.gmail.com?consumer.delay=60000&deleteProcessedMessages=false&password=xxxxxx&processOnlyUnseenMessages=true&username=myuserid%40gmail.com
    due to: There are 2 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=[{deleteProcessedMessages=false,
    processOnlyUnseenMessages=true}]
    at

    org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1139)
    at

    org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:103)
    at

    org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:238)
    at

    org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)
    at

    org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)
    at

    org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)
    at

    org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428)
    at

    org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
    at

    org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
    at

    org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
    at

    org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:636)
    at

    org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:188)
    at
    org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:995)
    at

    org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:579)
    at
    org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:381)
    at

    org.mortbay.jetty.plugin.JettyWebAppContext.doStart(JettyWebAppContext.java:114)
    at

    org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
    at

    org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:165)
    at

    org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:162)
    at

    org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
    at

    org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:165)
    at

    org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
    at

    org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:92)
    at org.eclipse.jetty.server.Server.doStart(Server.java:226)
    at org.mortbay.jetty.plugin.JettyServer.doStart(JettyServer.java:69)
    at

    org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
    at

    org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:433)
    at

    org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:377)
    at
    org.mortbay.jetty.plugin.JettyRunMojo.execute(JettyRunMojo.java:577)
    at

    org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483)
    at

    org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678)
    at

    org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:553)
    at

    org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:523)
    at

    org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371)
    at

    org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332)
    at

    org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at

    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at

    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
    org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
    at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
    at
    org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
    at org.codehaus.classworlds.Launcher.main(Launcher.java:375)


    --
    View this message in context:
    http://camel.465427.n5.nabble.com/failed-to-create-route-tp4443078p4443078.html
    Sent from the Camel - Users mailing list archive at Nabble.com.
  • Fachhoch at May 31, 2011 at 8:07 pm
    Ok I am using camel-mail-2.7.1
    platform windows
    server running on jetty
    java 1.6
    I am getting parameter not found exception I am trying out the configration
    specified in the example .

    here is my router configration



    from("imaps://imap.gmail.com?password=xxxx&username=myuserid@gmail.com&deleteProcessedMessages=false&processOnlyUnseenMessages=true&consumer.delay=60000").
    choice().when(header("subject").contains("Test-Camel")).process(new
    MyMailProcessor());



    --
    View this message in context: http://camel.465427.n5.nabble.com/failed-to-create-route-tp4443078p4443143.html
    Sent from the Camel - Users mailing list archive at Nabble.com.
  • Donald Whytock at May 31, 2011 at 9:33 pm
    Try using "myuserid" instead of "myuserid@gmail.com". Last I tried,
    mail endpoints don't like full email addresses as user IDs.

    Don
    On Tue, May 31, 2011 at 4:06 PM, fachhoch wrote:
    Ok I am using camel-mail-2.7.1
    platform windows
    server running on jetty
    java 1.6
    I am getting parameter not found exception I am trying out the configration
    specified in the example .

    here is my router configration



    from("imaps://imap.gmail.com?password=xxxx&username=myuserid@gmail.com&deleteProcessedMessages=false&processOnlyUnseenMessages=true&consumer.delay=60000").
    choice().when(header("subject").contains("Test-Camel")).process(new
    MyMailProcessor());



    --
    View this message in context: http://camel.465427.n5.nabble.com/failed-to-create-route-tp4443078p4443143.html
    Sent from the Camel - Users mailing list archive at Nabble.com.
  • Claus Ibsen at Jun 1, 2011 at 5:23 am
    Hi

    Check the mail component wiki page more careful
    http://camel.apache.org/mail.html

    If you look at the 2 options it complain about, and look in the
    options table you get your answer why it fails.


    On Tue, May 31, 2011 at 10:06 PM, fachhoch wrote:
    Ok I am using camel-mail-2.7.1
    platform windows
    server running on jetty
    java 1.6
    I am getting parameter not found exception I am trying out the configration
    specified in the example .

    here is my router configration



    from("imaps://imap.gmail.com?password=xxxx&username=myuserid@gmail.com&deleteProcessedMessages=false&processOnlyUnseenMessages=true&consumer.delay=60000").
    choice().when(header("subject").contains("Test-Camel")).process(new
    MyMailProcessor());



    --
    View this message in context: http://camel.465427.n5.nabble.com/failed-to-create-route-tp4443078p4443143.html
    Sent from the Camel - Users mailing list archive at Nabble.com.


    --
    Claus Ibsen
    -----------------
    FuseSource
    Email: cibsen@fusesource.com
    Web: http://fusesource.com
    Twitter: davsclaus, fusenews
    Blog: http://davsclaus.blogspot.com/
    Author of Camel in Action: http://www.manning.com/ibsen/
  • Christian Müller at Jun 1, 2011 at 5:51 am
    Your endpoint should looks like the following:
    from("imaps://
    imap.gmail.com?password=xxxx&username=myuserid@gmail.com&delete=false&unseen=true&consumer.delay=60000<http://imap.gmail.com/?password=xxxx&username=myuserid@gmail.com&deleteProcessedMessages=false&processOnlyUnseenMessages=true&consumer.delay=60000>
    ")

    I updated the wiki page samples to use the actual options because most of
    our users using Camel 2.x.

    Best,
    Christian

    On Wed, Jun 1, 2011 at 7:22 AM, Claus Ibsen wrote:

    Hi

    Check the mail component wiki page more careful
    http://camel.apache.org/mail.html

    If you look at the 2 options it complain about, and look in the
    options table you get your answer why it fails.


    On Tue, May 31, 2011 at 10:06 PM, fachhoch wrote:
    Ok I am using camel-mail-2.7.1
    platform windows
    server running on jetty
    java 1.6
    I am getting parameter not found exception I am trying out the
    configration
    specified in the example .

    here is my router configration



    from("imaps://
    imap.gmail.com?password=xxxx&username=myuserid@gmail.com&deleteProcessedMessages=false&processOnlyUnseenMessages=true&consumer.delay=60000
    ").

    choice().when(header("subject").contains("Test-Camel")).process(new
    MyMailProcessor());



    --
    View this message in context:
    http://camel.465427.n5.nabble.com/failed-to-create-route-tp4443078p4443143.html
    Sent from the Camel - Users mailing list archive at Nabble.com.


    --
    Claus Ibsen
    -----------------
    FuseSource
    Email: cibsen@fusesource.com
    Web: http://fusesource.com
    Twitter: davsclaus, fusenews
    Blog: http://davsclaus.blogspot.com/
    Author of Camel in Action: http://www.manning.com/ibsen/

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupusers @
categoriescamel
postedMay 31, '11 at 7:40p
activeJun 1, '11 at 5:51a
posts6
users4
websitecamel.apache.org

People

Translate

site design / logo © 2022 Grokbase