chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florian Müller (JIRA) <j...@apache.org>
Subject [jira] [Resolved] (CMIS-417) getRootFolder error in WebSphere 7
Date Wed, 10 Aug 2011 12:35:27 GMT

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

Florian Müller resolved CMIS-417.
---------------------------------

    Resolution: Not A Problem
      Assignee: Florian Müller

That's an Alfresco problem on Websphere - not an OpenCMIS issue.

See also: http://issues.alfresco.com/jira/browse/ALF-9526

> getRootFolder error in WebSphere 7
> ----------------------------------
>
>                 Key: CMIS-417
>                 URL: https://issues.apache.org/jira/browse/CMIS-417
>             Project: Chemistry
>          Issue Type: Bug
>          Components: opencmis-client
>    Affects Versions: OpenCMIS 0.4.0
>         Environment: Server: Linux CentOS 5.5, WebSphere 7.0.17, Alfresco 3.4.3 Enterprise,
MySQL 5
>            Reporter: Fernando González
>            Assignee: Florian Müller
>              Labels: alfresco, websphere
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Error in getRootFolder() in WebSphere Application Server 7.0.17.
> The Error is:
> Exception in thread "main" org.apache.chemistry.opencmis.commons.exceptions.CmisConnectionException:
Parsing exception!
> 	at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.parse(AbstractAtomPubService.java:529)
> 	at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.getObjectInternal(AbstractAtomPubService.java:778)
> 	at org.apache.chemistry.opencmis.client.bindings.spi.atompub.ObjectServiceImpl.getObject(ObjectServiceImpl.java:433)
> 	at org.apache.chemistry.opencmis.client.runtime.SessionImpl.getObject(SessionImpl.java:393)
> 	at org.apache.chemistry.opencmis.client.runtime.SessionImpl.getObject(SessionImpl.java:367)
> 	at org.apache.chemistry.opencmis.client.runtime.SessionImpl.getRootFolder(SessionImpl.java:472)
> 	at org.apache.chemistry.opencmis.client.runtime.SessionImpl.getRootFolder(SessionImpl.java:466)
> 	at test.Test3.test(Test3.java:31)
> 	at test.Test3.main(Test3.java:36)
> Caused by: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x7a (at char
#2500, byte #11)
> 	at com.ctc.wstx.sr.StreamScanner.throwFromIOE(StreamScanner.java:683)
> 	at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1086)
> 	at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AtomPubParser.next(AtomPubParser.java:650)
> 	at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AtomPubParser.parse(AtomPubParser.java:142)
> 	at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.parse(AbstractAtomPubService.java:527)
> 	... 8 more
> Caused by: java.io.CharConversionException: Invalid UTF-8 middle byte 0x7a (at char #2500,
byte #11)
> 	at com.ctc.wstx.io.UTF8Reader.reportInvalidOther(UTF8Reader.java:310)
> 	at com.ctc.wstx.io.UTF8Reader.read(UTF8Reader.java:201)
> 	at com.ctc.wstx.io.ReaderSource.readInto(ReaderSource.java:84)
> 	at com.ctc.wstx.io.BranchingReaderSource.readInto(BranchingReaderSource.java:57)
> 	at com.ctc.wstx.sr.StreamScanner.loadMore(StreamScanner.java:967)
> 	at com.ctc.wstx.sr.StreamScanner.getNext(StreamScanner.java:738)
> 	at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:1995)
> 	at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069)
> 	... 11 more
> Test source code is:
> package test;
> import java.util.HashMap;
> import java.util.Map;
> import org.apache.chemistry.opencmis.client.api.Folder;
> import org.apache.chemistry.opencmis.client.api.Session;
> import org.apache.chemistry.opencmis.client.api.SessionFactory;
> import org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl;
> import org.apache.chemistry.opencmis.commons.SessionParameter;
> import org.apache.chemistry.opencmis.commons.enums.BindingType;
> public class Test3 {
> 	public void test() {
> 		Map<String, String> parameter = new HashMap<String, String>();
> 		parameter.put(SessionParameter.USER, "admin");
> 		parameter.put(SessionParameter.PASSWORD, "admin");
> 		parameter.put(SessionParameter.ATOMPUB_URL, "http://alfpru1.pruebas.local:9081/alfresco/service/cmis");
> 		parameter.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value());
> 		parameter.put(SessionParameter.OBJECT_FACTORY_CLASS, "org.alfresco.cmis.client.impl.AlfrescoObjectFactoryImpl");
> 		SessionFactory factory = SessionFactoryImpl.newInstance();
> 		Session session = factory.getRepositories(parameter).get(0).createSession();
> 		
> 		System.out.println("RepoInfo: "+session.getRepositoryInfo());
> 		@SuppressWarnings("unused")
> 		Folder root = session.getRootFolder();
> 	}
> 	public static void main(String args[]){
> 		Test3 a = new Test3();
> 		a.test();
> 	}
> }
> This code in Tomcat 6 work fine!

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message