stanbol-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Suat Gonul <s...@srdc.com.tr>
Subject java.lang.LinkageError for javax.xml.stream.XMLStreamReader
Date Wed, 07 Nov 2012 13:05:19 GMT
Hi,

I am getting an exception as follows while getting a session for a CMIS
repository through the CMS Adapter:

07.11.2012 14:21:06.300 *WARN* [1424927720@qtp-967966535-0]
org.apache.felix.http.jetty /cmsadapter/session (java.lang.LinkageError:
loader constraint violation: loader (instance of <bootloader>)
previously initiated loading for a different type with name
"javax/xml/stream/XMLStreamReader") java.lang.LinkageError: loader
constraint violation: loader (instance of <bootloader>) previously
initiated loading for a different type with name
"javax/xml/stream/XMLStreamReader"
        at
com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:337)
        at
com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:328)
        at
org.apache.chemistry.opencmis.client.bindings.spi.atompub.AtomPubParser.unmarshalElement(AtomPubParser.java:392)
        at
org.apache.chemistry.opencmis.client.bindings.spi.atompub.AtomPubParser.parseWorkspaceElement(AtomPubParser.java:443)
        at
org.apache.chemistry.opencmis.client.bindings.spi.atompub.AtomPubParser.parseWorkspace(AtomPubParser.java:216)
        at
org.apache.chemistry.opencmis.client.bindings.spi.atompub.AtomPubParser.parseServiceDoc(AtomPubParser.java:186)
        at
org.apache.chemistry.opencmis.client.bindings.spi.atompub.AtomPubParser.parse(AtomPubParser.java:136)
        at
org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.parse(AbstractAtomPubService.java:527)
        at
org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.getRepositoriesInternal(AbstractAtomPubService.java:717)
        at
org.apache.chemistry.opencmis.client.bindings.spi.atompub.RepositoryServiceImpl.getRepositoryInfos(RepositoryServiceImpl.java:58)
        at
org.apache.chemistry.opencmis.client.bindings.impl.RepositoryServiceImpl.getRepositoryInfos(RepositoryServiceImpl.java:85)
        at
org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl.getRepositories(SessionFactoryImpl.java:111)
        at
org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl.getRepositories(SessionFactoryImpl.java:98)
        at
org.apache.stanbol.cmsadapter.cmis.repository.CMISRepositoryAccess.getSession(CMISRepositoryAccess.java:67)
        at
org.apache.stanbol.cmsadapter.cmis.repository.CMISRepositoryAccess.canRetrieve(CMISRepositoryAccess.java:390)
        at
org.apache.stanbol.cmsadapter.core.repository.RepositoryAccessManagerImpl.getRepositoryAccessor(RepositoryAccessManagerImpl.java:52)
        at
org.apache.stanbol.cmsadapter.core.repository.SessionManager.createSessionKey(SessionManager.java:97)
        at
org.apache.stanbol.cmsadapter.web.resources.SessionResource.createSessionByInfo(SessionResource.java:116)
....

As far as I see both "Apache ServiceMix :: Specs :: Stax API 1.0" bundle
and our "frameworkfragment" injects the javax.xml.stream package into
the OSGi environment. The problem seems to be a ClassLoader issue, but I
don't really know how to solve it. I have tried removel of
javax.xml.stream packages from the frameworkfragment configuration, but
no success.

I would appreciate any help.

Best,
Suat

-- 
Suat Gönül, MSc

Software Research, Development and Consultation Ltd.
ODTU Silikon Blok 1. Kat No:14
Middle East Technical University Campus
06531 Ankara TURKEY

Phone: +90 (312) 210 1763
Fax: +90 (312) 210 1837 


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