[ 
https://issues.apache.org/jira/browse/CMIS-250?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Galo Gimenez reopened CMIS-250:
-------------------------------


Sorry, I keep having the issue. My mistake closing it before. The CONTEXT 
variable is null because following call fails

JAXBContext.newInstance(ObjectFactory.class, CMISExtraObjectFactory.class)


This is the stack trace...

com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException: 1 counts of 
IllegalAnnotationExceptions
javax.activation.DataHandler does not have a no-arg default constructor.
        this problem is related to the following location:
                at javax.activation.DataHandler
                at protected javax.activation.DataHandler 
org.apache.chemistry.opencmis.commons.impl.jaxb.CmisContentStreamType.stream
                at 
org.apache.chemistry.opencmis.commons.impl.jaxb.CmisContentStreamType
                at public 
org.apache.chemistry.opencmis.commons.impl.jaxb.CmisContentStreamType 
org.apache.chemistry.opencmis.commons.impl.jaxb.ObjectFactory.createCmisContentStreamType()
                at org.apache.chemistry.opencmis.commons.impl.jaxb.ObjectFactory

        at 
com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException$Builder.check(Unknown
 Source)
        at 
com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(Unknown 
Source)
        at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.<init>(Unknown 
Source)
        at 
com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(Unknown
 Source)
        at com.sun.xml.internal.bind.v2.ContextFactory.createContext(Unknown 
Source)
        at com.sun.xml.internal.bind.v2.ContextFactory.createContext(Unknown 
Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at javax.xml.bind.ContextFinder.newInstance(Unknown Source)
        at javax.xml.bind.ContextFinder.find(Unknown Source)
        at javax.xml.bind.JAXBContext.newInstance(Unknown Source)
        at javax.xml.bind.JAXBContext.newInstance(Unknown Source)
        at 
org.apache.chemistry.opencmis.commons.impl.JaxBHelper.<clinit>(JaxBHelper.java:56)


> 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.

Reply via email to