[ 
https://issues.apache.org/jira/browse/CMIS-682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13697938#comment-13697938
 ] 

Jason Carter commented on CMIS-682:
-----------------------------------

We tried to Remove stax-api from our classpath...
<Embed-Dependency>*;scope=compile|runtime;artifactId=!stax-api</Embed-Dependency>

We then started to get other Errors:
javax.xml.bind.JAXBException
 - with linked exception:
[java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory not found 
from bundle [gam-route]]

So we then tried to add back in Jaxb...
<Embed-Dependency>*;scope=compile|runtime;artifactId=!stax-api|jaxb-api 
</Embed-Dependency>

Now we see these errors dealing with ContentStreams...
org.apache.chemistry.opencmis.commons.exceptions.CmisConnectionException: 
Cannot access 
http://172.22.192.18:8080/alfresco/cmisatom/0b630ad0-9f3b-4a3b-972d-8ed71f87dfae/children?id=workspace%3A%2F%2FSpacesStore%2Fe8c6074e-be6b-4525-9fd3-87b2e6f442de&versioningState=major:
 null ...
Caused by: javax.xml.bind.MarshalException
 - with linked exception:
[javax.xml.transform.TransformerException: javax.xml.stream.XMLStreamException: 
prefix cannot be null or empty]



                
> Using Chemistry OpenCMIS in ServiceMix 4.5
> ------------------------------------------
>
>                 Key: CMIS-682
>                 URL: https://issues.apache.org/jira/browse/CMIS-682
>             Project: Chemistry
>          Issue Type: Bug
>    Affects Versions: OpenCMIS 0.9.0
>         Environment: Linux, ServiceMix 4.5
>            Reporter: Jason Carter
>            Priority: Critical
>
> Sorry if my acronyms are incorrect, newbie...
> We are using chemistry-opencmis-client-impl in a Module used by a Camel Route 
> Bean.  It is built using Maven.  And we are seeing an error when we try and 
> call getRepositories when running under ServiceMix 4.5:
> Caused by: javax.xml.stream.FactoryConfigurationError: Provider 
> com.bea.xml.stream.MXParserFactory not found
>       at 
> javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:72)[:2.2.0]
>       at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:176)[:2.2.0]
>       at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:92)[:2.2.0]
>       at 
> javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136)[:2.2.0]
>       at 
> org.apache.chemistry.opencmis.commons.impl.XMLUtils.<clinit>(XMLUtils.java:47)
>       at 
> org.apache.chemistry.opencmis.client.bindings.spi.atompub.AtomPubParser.parse(AtomPubParser.java:96)
>       at 
> org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.parse(AbstractAtomPubService.java:576)
>       at 
> org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.getRepositoriesInternal(AbstractAtomPubService.java:765)
>       at 
> org.apache.chemistry.opencmis.client.bindings.spi.atompub.RepositoryServiceImpl.getRepositoryInfos(RepositoryServiceImpl.java:62)
>       at 
> org.apache.chemistry.opencmis.client.bindings.impl.RepositoryServiceImpl.getRepositoryInfos(RepositoryServiceImpl.java:85)
>       at 
> org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl.getRepositories(SessionFactoryImpl.java:109)
>       at 
> org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl.getRepositories(SessionFactoryImpl.java:96)
>       at 
> com.avid.gam.assetsystem.CmisSessionHolder.initSession(CmisSessionHolder.java:103)
>       at 
> com.avid.gam.assetsystem.AlfrescoAssetSystem.createSession(AlfrescoAssetSystem.java:39)
>       at 
> com.avid.gam.assetsystem.AssetSystemFactory.getByKey(AssetSystemFactory.java:64)
>       at 
> com.avid.gam.assetsystem.AssetSystemFactory.getAssetSystem(AssetSystemFactory.java:24)
>       at com.avid.gam.route.GamRouteBean.saveOrder(GamRouteBean.java:83)
> As far as I can tell we are including all required dependencies in the POM.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to