camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Müller <christian.muel...@gmail.com>
Subject Re: issues with camel-cmis and alfresco 4
Date Sun, 28 Apr 2013 15:08:43 GMT
The error message says:

Caused by: java.lang.
IllegalStateException: You are running with
invalid JAXP api or implementation. JAXP api/implementation of version
1.3.1 (included in JDK6) or higher is required

It would really helpful if you provide some more details about this...
Checkout [1].

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

Best,
Christian



On Sun, Apr 28, 2013 at 2:19 PM, Ioan Eugen Stan <stan.ieugen@gmail.com>wrote:

> Hello,
>
> I'm trying to upload some files to Alfresco 4 using camel-cmis
> component but I get some nasty XML parsing exception. Anyone knows how
> to fix the issue or another way to upload files to Alfresco?
>
> The code that I use is:
>
> public class AlfrescoCmisLiveTest extends CamelTestSupport {
>     @Override
>     protected RouteBuilder createRouteBuilder() throws Exception {
>         return new RouteBuilder() {
>             @Override
>             public void configure() throws Exception {
>                 from("direct:start")
>                         .setHeader("CamelCMISFolderPath", constant("/"))
>                         .setHeader("cmis:name", constant("docprocess"))
>                         .setHeader("cmis:objectTypeId",
> constant("cmis:document"))
>
> .to("cmis://
> http://172.16.32.11:8780/alfresco/cmisatom?username=admin&password=admin
> ");
>             }        };     }
>     @Test
>     public void testUploadToAlfresco() throws Exception {
>         template.sendBody("direct:start", "Hello Alfresco docprocess");
>         TimeUnit.SECONDS.sleep(5);
>     } }
>
> and the error:
>
> ERROR DefaultErrorHandler - Failed delivery for (MessageId:
> ID-daos-49015-1367150506757-0-1 on ExchangeId:
> ID-daos-49015-1367150506757-0-2). Exhausted after delivery attempt: 1
> caught:
> org.apache.chemistry.opencmis.commons.exceptions.CmisConnectionException:
> Parsing exception!
> org.apache.chemistry.opencmis.commons.exceptions.CmisConnectionException:
> Parsing exception!
> at
> org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.parse(AbstractAtomPubService.java:531)
> at
> org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.getObjectInternal(AbstractAtomPubService.java:779)
> at
> org.apache.chemistry.opencmis.client.bindings.spi.atompub.ObjectServiceImpl.getObjectByPath(ObjectServiceImpl.java:524)
> at
> org.apache.chemistry.opencmis.client.runtime.SessionImpl.getObjectByPath(SessionImpl.java:440)
> at
> org.apache.chemistry.opencmis.client.runtime.SessionImpl.getObjectByPath(SessionImpl.java:418)
> at
> org.apache.camel.component.cmis.CMISSessionFacade.getObjectByPath(CMISSessionFacade.java:175)
> at
> org.apache.camel.component.cmis.CMISProducer.getFolderOnPath(CMISProducer.java:79)
> at
> org.apache.camel.component.cmis.CMISProducer.createNode(CMISProducer.java:61)
> at
> org.apache.camel.component.cmis.CMISProducer.process(CMISProducer.java:51)
> ....
> at org.apache.camel.impl.ProducerCache.send(ProducerCache.java:175)
> at
> org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:111)
> at
> org.apache.camel.impl.DefaultProducerTemplate.sendBody(DefaultProducerTemplate.java:124)
> at
> org.apache.camel.impl.DefaultProducerTemplate.sendBody(DefaultProducerTemplate.java:131)
> at
> ro.ieugen.web.camel.AlfrescoCmisLiveTest.testUploadToAlfresco(AlfrescoCmisLiveTest.java:28)
> ....
> Caused by: java.lang.IllegalStateException: You are running with
> invalid JAXP api or implementation. JAXP api/implementation of version
> 1.3.1 (included in JDK6) or higher is required. In case you are using
> ant, make sure ant 1.7.0 or higher is used - older versions of ant
> contain JAXP api/impl version 1.2 (in xml-apis.jar). If you want to
> keep using older ant versions, you have to configure it to use higher
> the JAXP api/impl versions.
> at
> com.sun.xml.bind.v2.util.XmlFactory.createTransformerFactory(XmlFactory.java:162)
> at
> com.sun.xml.bind.v2.runtime.JAXBContextImpl.createTransformerHandler(JAXBContextImpl.java:747)
> at
> com.sun.xml.bind.v2.runtime.unmarshaller.DomLoader$State.<init>(DomLoader.java:75)
> at
> com.sun.xml.bind.v2.runtime.unmarshaller.DomLoader.startElement(DomLoader.java:118)
> at
> com.sun.xml.bind.v2.runtime.unmarshaller.ProxyLoader.startElement(ProxyLoader.java:60)
> at
> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:501)
> at
> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:480)
> at
> com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.handleStartElement(StAXStreamConnector.java:246)
> at
> com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:180)
> at
> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:370)
> at
> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:349)
> at
> org.apache.chemistry.opencmis.client.bindings.spi.atompub.AtomPubParser.unmarshalElement(AtomPubParser.java:397)
> at
> org.apache.chemistry.opencmis.client.bindings.spi.atompub.AtomPubParser.parseElement(AtomPubParser.java:354)
> at
> org.apache.chemistry.opencmis.client.bindings.spi.atompub.AtomPubParser.parseEntry(AtomPubParser.java:300)
> at
> org.apache.chemistry.opencmis.client.bindings.spi.atompub.AtomPubParser.parse(AtomPubParser.java:125)
> at
> org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.parse(AbstractAtomPubService.java:529)
> ... 86 more
> Caused by: java.lang.AbstractMethodError:
> javax.xml.transform.TransformerFactory.setFeature(Ljava/lang/String;Z)V
> at
> com.sun.xml.bind.v2.util.XmlFactory.createTransformerFactory(XmlFactory.java:155)
> ... 101 more
>
> Thanks,
>
> --
> Ioan Eugen Stan
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message