You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "Florian Müller (JIRA)" <ji...@apache.org> on 2010/09/10 17:00:38 UTC

[jira] Commented: (CMIS-250) Issue in Apache Felix OSGi with JAXBHelper

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

Florian Müller commented on CMIS-250:
-------------------------------------

This doesn't seem to be a problem with the libraries. It is trying to access a static variable that is null. It looks like the OpenCMIS jars are loaded by different class loaders.

Are there any Apache Felix/OSGI experts here that could verify that?

> Issue in Apache Felix OSGi with JAXBHelper
> ------------------------------------------
>
>                 Key: CMIS-250
>                 URL: https://issues.apache.org/jira/browse/CMIS-250
>             Project: Chemistry
>          Issue Type: Bug
>          Components: opencmis-client-bindings
>    Affects Versions: 0.1.0-incubating
>         Environment: Java(TM) SE Runtime Environment(build 1.6.0_18-b07) 
> Apache Felix Day CQ 5.3 distribution
> Apache Felix System Framework 2.0.2
>            Reporter: Galo Gimenez
>
> When running within the Apache Felix environment sessionFactory.createSession(parameter) fails. Same code runs fine in plan Java VM with the provided jaxb and stax  libraries.
> Probably an issue in my OSGI environment setup, is there a guide about which bundles to include when using OSGi environments? 
> INFO* [pool-5-thread-32] org.apache.chemistry.opencmis.client.runtime.PersistentSessionImpl Session Parameters: {org.apache.chemistry.opencmis.locale.iso3166=, org.apache.chemistry.opencmis.binding.spi.type=atompub, org.apache.chemistry.opencmis.locale.variant=US, org.apache.chemistry.opencmis.user=admin, org.apache.chemistry.opencmis.locale.iso639=en, org.apache.chemistry.opencmis.binding.atompub.url=http://16.23.86.138:7402/cmis/repository, org.apache.chemistry.opencmis.session.repository.id=CRX, org.apache.chemistry.opencmis.password=admin}
> *INFO* [pool-5-thread-32] org.apache.chemistry.opencmis.client.runtime.PersistentSessionImpl Session Locale: en__US
> *INFO* [pool-5-thread-32] org.apache.chemistry.opencmis.client.runtime.PersistentSessionImpl Session Cache Size: 1000
> *ERROR* [pool-5-thread-32] java.lang.Class The server url [http://16.23.86.138:7402/cmis/repository] is unreachable.  org.apache.chemistry.opencmis.commons.exceptions.CmisConnectionException: Parsing exception!
> 	at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.parse(AbstractAtomPubService.java:460)
> 	at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.getRepositoriesInternal(AbstractAtomPubService.java:636)
> 	at org.apache.chemistry.opencmis.client.bindings.spi.atompub.RepositoryServiceImpl.getRepositoryInfo(RepositoryServiceImpl.java:79)
> 	at org.apache.chemistry.opencmis.client.bindings.impl.RepositoryServiceImpl.getRepositoryInfo(RepositoryServiceImpl.java:69)
> 	at org.apache.chemistry.opencmis.client.runtime.PersistentSessionImpl.connect(PersistentSessionImpl.java:525)
> 	at org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl.createSession(SessionFactoryImpl.java:86)
> 	at com.hp.extream.document.cmis.CMISRepositoryImpl.getRepository(CMISRepositoryImpl.java:127)
> 	at com.hp.extream.document.cmis.CMISRepositoryImpl.getRepository(CMISRepositoryImpl.java:151)
> 	at com.hp.dls.workflow.activity.gaic.CMISArchiveStep.execute(CMISArchiveStep.java:267)
> 	at com.day.cq.workflow.impl.job.HandlerBase.executeProcess(HandlerBase.java:184)
> 	at com.day.cq.workflow.impl.job.JobHandler.process(JobHandler.java:131)
> 	at org.apache.sling.event.EventUtil$1.run(EventUtil.java:368)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
> 	at java.lang.Thread.run(Unknown Source)
> Caused by: java.lang.NullPointerException
> 	at org.apache.chemistry.opencmis.commons.impl.JaxBHelper.createUnmarshaller(JaxBHelper.java:91)
> 	at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AtomPubParser.unmarshalElement(AtomPubParser.java:347)
> 	at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AtomPubParser.parseWorkspaceElement(AtomPubParser.java:399)
> 	at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AtomPubParser.parseWorkspace(AtomPubParser.java:172)
> 	at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AtomPubParser.parseServiceDoc(AtomPubParser.java:142)
> 	at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AtomPubParser.parse(AtomPubParser.java:106)
> 	at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.parse(AbstractAtomPubService.java:458)
> 	... 14 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.