camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gregor Zurowski <gre...@zurowski.org>
Subject Re: Apache camel and Adobe CQ5
Date Tue, 27 May 2014 14:49:06 GMT
Manjushree:

Can you verify that you can access http://127.0.0.1:4502/crx/server by
simply opening this location in your browser? You should see the CRX
version and a list of available workspaces.

Thanks,
Gregor


On Tue, May 27, 2014 at 2:06 AM, Manjushree <manjushreea@virtusa.com> wrote:
> I'm working on apache camel and adobe cq5.
>
> I wrote a program using apache camel to create a jcr node in the adobe cq5.
> I'm using Apache camel JCR component (http://camel.apache.org/jcr.html) to
> create a route to the cq5 repository and running the code outside cq.
>
> I'm using apache camel version 2.13.
>
> My apache camel route :
>
>      from("direct:start").routeId("myRoute")
>     .setHeader(JcrConstants.JCR_NODE_NAME, constant("node/subnode"))
>      setHeader("my.contents.property", body())
>     .to("jcr://admin:admin@repository/content/sam")
>
> While Excecuting the program I'm getting "javax.jcr.RepositoryException:
> Remote repository not found" and "java.io.StreamCorruptedException: invalid
> stream header: 3C68746D" Exceptions.
>
> My Exception Stack
>
> Exception in thread "main" org.apache.camel.CamelExecutionException:
> Exception occurred during execution on the exchange: Exchange[Message:
> javax.jcr.RepositoryException: Remote repository not found: The resource at
> http://127.0.0.1:4502/crx/server could not be retrieved
>     at
> org.apache.jackrabbit.rmi.repository.URLRemoteRepositoryFactory.getRemoteRepository(URLRemoteRepositoryFactory.java:84)
>     at
> org.apache.jackrabbit.rmi.repository.AbstractRemoteRepositoryFactory.getRepository(AbstractRemoteRepositoryFactory.java:58)
>     at
> org.apache.jackrabbit.rmi.repository.ProxyRepository.login(ProxyRepository.java:199)
>     at
> org.apache.jackrabbit.rmi.repository.ProxyRepository.login(ProxyRepository.java:233)
>     at
> org.apache.camel.component.jcr.JcrProducer.openSession(JcrProducer.java:153)
>     at
> org.apache.camel.component.jcr.JcrProducer.process(JcrProducer.java:47)
>     at
> org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
>     at
> org.apache.camel.processor.SendProcessor.process(SendProcessor.java:110)
>     at org.apache.camel.management.InstrumentationProcessor.pro... [Body
> clipped after 1000 chars, total length is 3105]]
>     at
> org.apache.camel.util.ObjectHelper.wrapCamelExecutionException(ObjectHelper.java:1379)
>     at
> org.apache.camel.util.ExchangeHelper.extractResultBody(ExchangeHelper.java:622)
>     at
> org.apache.camel.impl.DefaultProducerTemplate.extractResultBody(DefaultProducerTemplate.java:467)
>     at
> org.apache.camel.impl.DefaultProducerTemplate.extractResultBody(DefaultProducerTemplate.java:463)
>     at
> org.apache.camel.impl.DefaultProducerTemplate.sendBody(DefaultProducerTemplate.java:139)
>     at
> org.apache.camel.impl.DefaultProducerTemplate.sendBody(DefaultProducerTemplate.java:144)
>     at com.cq.camel.contextclasses.HttpRoute.callMethod(HttpRoute.java:43)
>     at com.cq.camel.mainclass.App.main(App.java:18)
> Caused by: javax.jcr.RepositoryException: Remote repository not found: The
> resource at http://localhost:4502/crx/server could not be retrieved
>     at
> org.apache.jackrabbit.rmi.repository.URLRemoteRepositoryFactory.getRemoteRepository(URLRemoteRepositoryFactory.java:84)
>     at
> org.apache.jackrabbit.rmi.repository.AbstractRemoteRepositoryFactory.getRepository(AbstractRemoteRepositoryFactory.java:58)
>     at
> org.apache.jackrabbit.rmi.repository.ProxyRepository.login(ProxyRepository.java:199)
>     at
> org.apache.jackrabbit.rmi.repository.ProxyRepository.login(ProxyRepository.java:233)
>     at
> org.apache.camel.component.jcr.JcrProducer.openSession(JcrProducer.java:153)
>     at
> org.apache.camel.component.jcr.JcrProducer.process(JcrProducer.java:47)
>     at
> org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
>     at
> org.apache.camel.processor.SendProcessor.process(SendProcessor.java:110)
>     at
> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72)
>     at
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
>     at
> org.apache.camel.processor.TryProcessor.process(TryProcessor.java:109)
>     at org.apache.camel.processor.TryProcessor.process(TryProcessor.java:81)
>     at
> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72)
>     at
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
>     at org.apache.camel.processor.Pipeline.process(Pipeline.java:118)
>     at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)
>     at
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
>     at
> org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:51)
>     at
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
>     at
> org.apache.camel.processor.UnitOfWorkProducer.process(UnitOfWorkProducer.java:73)
>     at
> org.apache.camel.impl.ProducerCache$2.doInProducer(ProducerCache.java:378)
>     at
> org.apache.camel.impl.ProducerCache$2.doInProducer(ProducerCache.java:346)
>     at
> org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:242)
>     at
> org.apache.camel.impl.ProducerCache.sendExchange(ProducerCache.java:346)
>     at org.apache.camel.impl.ProducerCache.send(ProducerCache.java:184)
>     at
> org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:124)
>     at
> org.apache.camel.impl.DefaultProducerTemplate.sendBody(DefaultProducerTemplate.java:137)
>     ... 3 more
> Caused by: java.io.StreamCorruptedException: invalid stream header: 3C68746D
>     at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
>     at java.io.ObjectInputStream.<init>(Unknown Source)
>     at
> org.apache.jackrabbit.rmi.repository.URLRemoteRepositoryFactory.getRemoteRepository(URLRemoteRepositoryFactory.java:61)
>     ... 29 more
>
>
>
> I even tried with changing repository url
> "http://localhost:4502/crx/server". When I changed the url to
> "http://localhost:4502/crx/repository", I'm getting " java.io.IOException:
> Server returned HTTP response code: 401 for URL:
> http://localhost:4502/crx/repository/crx.default" Exception.
>
> Please, help me to resolve this exception.....
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Apache-camel-and-Adobe-CQ5-tp5751597.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message