Here is my stacktrace. The same stacktrace comes again, for the jms
endpoint. 

17:51:04,843 | WARN  | Timer-4    | InstrumentationProcessor |
strumentationLifecycleStrategy   66 | Could not register Endpoint MBean
javax.management.MalformedObjectNameException: Could not create ObjectName
from:
org.apache.camel:context=macewindu/camelContext,group=endpoints,component=en
dpoint,name=http://servicemix.apache.org/samples/bridge/pipeline/endpoint.
Reason: javax.management.MalformedObjectNameException: Invalid character ':'
in value part of property
        at
org.apache.camel.management.CamelNamingStrategy.createObjectName(CamelNaming
Strategy.java:213)
        at
org.apache.camel.management.CamelNamingStrategy.getObjectName(CamelNamingStr
ategy.java:97)
        at
org.apache.camel.management.InstrumentationLifecycleStrategy.onEndpointAdd(I
nstrumentationLifecycleStrategy.java:63)
        at
org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.ja
va:276)
        at
org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHe
lper.java:48)
        at
org.apache.camel.model.RouteType.resolveEndpoint(RouteType.java:89)
        at
org.apache.camel.impl.RouteContext.resolveEndpoint(RouteContext.java:81)
        at
org.apache.camel.impl.RouteContext.resolveEndpoint(RouteContext.java:90)
        at org.apache.camel.model.FromType.resolveEndpoint(FromType.java:66)
        at
org.apache.camel.impl.RouteContext.getEndpoint(RouteContext.java:59)
        at org.apache.camel.model.RouteType.addRoutes(RouteType.java:179)
        at org.apache.camel.model.RouteType.addRoutes(RouteType.java:80)
        at org.apache.camel.model.RouteType.addRoutes(RouteType.java:71)
        at
org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamel
Context.java:449)
        at
org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:4
41)
        at
org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:1
40)
        at
org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:51)
        at
org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelCon
text.java:96)
        at
org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(Si
mpleApplicationEventMulticaster.java:77)
        at
org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java
:49)
        at
org.springframework.context.event.SimpleApplicationEventMulticaster.multicas
tEvent(SimpleApplicationEventMulticaster.java:75)
        at
org.springframework.context.support.AbstractApplicationContext.publishEvent(
AbstractApplicationContext.java:246)
        at
org.springframework.context.support.AbstractApplicationContext.refresh(Abstr
actApplicationContext.java:355)
        at
org.apache.xbean.server.spring.configuration.SpringConfiguration.<init>(Spri
ngConfiguration.java:63)
        at
org.apache.xbean.server.spring.configuration.SpringConfigurationServiceFacto
ry.createService(SpringConfigurationServiceFactory.java:106)
        at
org.apache.xbean.kernel.standard.ServiceManager.start(ServiceManager.java:42
0)
        at
org.apache.xbean.kernel.standard.ServiceManager.initialize(ServiceManager.ja
va:200)
        at
org.apache.xbean.kernel.standard.RegistryFutureTask$RegisterCallable.call(Re
gistryFutureTask.java:110)
        at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
        at java.util.concurrent.FutureTask.run(FutureTask.java:123)
        at
org.apache.xbean.kernel.standard.ServiceManagerRegistry.registerService(Serv
iceManagerRegistry.java:409)
        at
org.apache.xbean.kernel.standard.StandardKernel.registerService(StandardKern
el.java:220)
        at
org.apache.xbean.server.spring.loader.SpringLoader.load(SpringLoader.java:15
2)
        at
org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(AbstractXBea
nDeployer.java:83)
        at
org.apache.servicemix.camel.CamelSpringDeployer.deploy(CamelSpringDeployer.j
ava:79)
        at
org.apache.servicemix.common.BaseServiceUnitManager.doDeploy(BaseServiceUnit
Manager.java:88)
        at
org.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServiceUnitMa
nager.java:69)
        at
org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(
DeploymentService.java:508)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssem
bly(AutoDeploymentService.java:350)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(Auto
DeploymentService.java:253)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(A
utoDeploymentService.java:647)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDep
loymentService.java:60)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeployme
ntService.java:611)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462) 

-----Ursprüngliche Nachricht-----
Von: Guillaume Nodet [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 14. Dezember 2007 18:20
An: [email protected]
Betreff: Re: Usage of Camel

It seems to be cause by the camel management layer.
Could you post the full stack trace of the exception ?

On Dec 14, 2007 5:57 PM, Robert Thullner <[EMAIL PROTECTED]> wrote:

> Thanks for this information, but I still cannot get it working.
>
> My camelContext.xml looks like this now:
> <beans xmlns="http://www.springframework.org/schema/beans";
>       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>           xmlns:b="http://servicemix.apache.org/samples/bridge";
>       xsi:schemaLocation="
>       http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
>       http://activemq.apache.org/camel/schema/spring
> http://activemq.apache.org/camel/schema/spring/camel-spring.xsd";>
>
>  <camelContext xmlns="http://activemq.apache.org/camel/schema/spring";
> useJmx="true" >
>        <package>eip.status.servicemix</package>
>  </camelContext>
> </beans>
>
> So I just define the package in there. I have built my route in the 
> MyRouteBuilder.java file. It looks like this:
>
> public class MyRouteBuilder extends RouteBuilder {
>    public void configure() {
>
> from("jbi:endpoint:
> http://servicemix.apache.org/samples/bridge/pipeline/endp
> oint")
>
> .to("jbi:service:http://servicemix.apache.org/samples/bridge/jms";);
>    }
> }
>
>
> When I deploy it to servicemix I get the following error:
> WARN  Could not register Endpoint MBean
> javax.management.MalformedObjectNameException: Could not create 
> ObjectName
> from:
> org.apache.camel:context=macewindu/camelContext
> ,group=endpoints,component=en
> dpoint,name=http://servicemix.apache.org/samples/bridge/pipeline/endpoint.
> Reason: javax.management.MalformedObjectNameException: Invalid 
> character ':'
> in value part of property
>
>
> I get the same exception for the second endpoint defined in my route.
>
> Do you have any suggestions for that?
> Thanks
> Robert
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: Guillaume Nodet [mailto:[EMAIL PROTECTED]
> Gesendet: Freitag, 14. Dezember 2007 11:48
> An: [email protected]
> Betreff: Re: Usage of Camel
>
> >From a camel perspective, servicemix / jbi is one of the numerous 
> >protocols
> supported.
> So your route should looks like:
>
> from("jbi:endpoint:http://servicemix.apache.org/samples/bridge<
> http://servic
> emix.apache.org/samples/bridge>
> /pipeline/endpoint")
>
> .to("jbi:service:http://servicemix.apache.org/samples/bridge<
> http://servicem
> ix.apache.org/samples/bridge>
> /xslt")
>
> .to(jbi:service:http://servicemix.apache.org/samples/bridge<
> http://servicemi
> x.apache.org/samples/bridge>
> /jms")
>
> "jbi" tells camel to use the jbi transport.  When creating a consumer, 
> it will activate a jbi endpoint, else it will use the delivery channel 
> to send the exchange to the given jbi target.  See 
> http://servicemix.apache.org/uris.html. Such uris must be prefixed by 
> "jbi"
> .
>
> On Dec 14, 2007 11:29 AM, Robert Thullner <[EMAIL PROTECTED]> wrote:
>
> > Hi
> >
> > I have changed the bridge example so that it is triggered by a 
> > quartz, that writes out a message to a jms queue in regular 
> > intervals. The only thing I changed was the http-su to a quartz-su. 
> > The example worked fine.
> >
> > Now I want to replace the EIP component with a camel component that 
> > does the routing for me. But I have difficulties, because I do not 
> > know how to write camel rule. Here is the simple example from the
> > bridge-eip:
> >
> > <?xml version="1.0"?>
> > <beans xmlns:eip="http://servicemix.apache.org/eip/1.0";
> >       xmlns:b="http://servicemix.apache.org/samples/bridge";>
> >
> >  <eip:pipeline service="b:pipeline" endpoint="endpoint">
> >        <eip:transformer>
> >            <eip:exchange-target service="b:xslt" />
> >        </eip:transformer>
> >        <eip:target>
> >            <eip:exchange-target service="b:jms" />
> >        </eip:target>
> >  </eip:pipeline>
> >
> > </beans>
> >
> > So there is the same pipeline, as it is in the bridge example. My 
> > problem now is, when I define camel route I do not have the service 
> > attribute set and therefore servicemix throws an exception. This is 
> > how my camel context looks like.
> >
> > <beans xmlns="http://www.springframework.org/schema/beans";
> >       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> >       xmlns:b="http://servicemix.apache.org/samples/bridge";
> >       xsi:schemaLocation="
> >       http://www.springframework.org/schema/beans
> > http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
> >       http://activemq.apache.org/camel/schema/spring
> > http://activemq.apache.org/camel/schema/spring/camel-spring.xsd";>
> >  <camelContext xmlns="http://activemq.apache.org/camel/schema/spring";
> > useJmx="true" >
> >    <route>
> >      <from uri="b:pipeline"/>
> >      <to uri="b:jms"/>
> >    </route>
> >
> >    <package>eip.status.servicemix</package>
> >  </camelContext>
> > </beans>
> >
> > My MyRouteBuilder.jave file is empty.
> > Can anybody explain me, how I can use the EIP route in Camel?
> >
> > When starting servicemix, I get this exception:
> > org.apache.camel.RuntimeCamelException:
> > org.apache.camel.NoSuchEndpointException: No endpoint could be found
> for:
> > b:pipeline
> >
> > I understand the exception, because I do not have the b:pipeline
> defined.
> > My
> > problem is, that I do not know how to define it in camel. I am using 
> > servicemix 3.2.1 .
> >
> > Thanks for any help
> > Robert
> >
> >
> >
> >
> >
>
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
>
>


--
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/

Reply via email to