2016-11-22 6 views
0

でのAlfrescoに接続している間、私はそれに接続するためにサービス利用不可例外化学CMIS

<dependency> 
    <groupId>org.apache.chemistry.opencmis</groupId> 
    <artifactId>chemistry-opencmis-client-impl</artifactId> 
    <version>1.0.0</version> 
</dependency> 

を使用しますが、以下のエラーを取得しています化学CMISコード以下

final SessionFactory sessionFactory = SessionFactoryImpl.newInstance(); 
// prepare connection parameters 
final Map<String, String> connectionParameters = new HashMap<String, String>(); 
// User credentials. 
connectionParameters.put(SessionParameter.USER,"******"); 
connectionParameters.put(SessionParameter.PASSWORD,"*****"); 
// Connection settings. 
connectionParameters.put(SessionParameter.ATOMPUB_URL,"https://******/alfresco/api/-default-/public/cmis/versions/1.1/atom"); 
connectionParameters.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value()); 
connectionParameters.put(SessionParameter.OBJECT_FACTORY_CLASS, "org.alfresco.cmis.client.impl.AlfrescoObjectFactoryImpl"); 
session = sessionFactory.getRepositories(connectionParameters).get(0).createSession(); 

を使用してのAlfrescoに接続しています

Exception in thread "main" org.apache.chemistry.opencmis.commons.exceptions.CmisServiceUnavailableException: Service Unavailable 
    at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.convertStatusCode(AbstractAtomPubService.java:518) 
    at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.read(AbstractAtomPubService.java:701) 
    at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.getRepositoriesInternal(AbstractAtomPubService.java:873) 
    at org.apache.chemistry.opencmis.client.bindings.spi.atompub.RepositoryServiceImpl.getRepositoryInfos(RepositoryServiceImpl.java:66) 
    at org.apache.chemistry.opencmis.client.bindings.impl.RepositoryServiceImpl.getRepositoryInfos(RepositoryServiceImpl.java:92) 
    at org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl.getRepositories(SessionFactoryImpl.java:120) 
    at org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl.getRepositories(SessionFactoryImpl.java:107) 
    at com.ge.dms.batch.TestAPP.main(TestAPP.java:71) 

助けてください。

+0

あなたのalfrescoおよびcmisライブラリのバージョンは何ですか? –

+0

あなたのブラウザのatompub URLに行くと、ログインするように求められますか、またはサーバーからエラーが出ますか? – Gagravarr

+0

alfresco 5.0.2 enterpriseとcmis 1.1 – user2361591

答えて

0

問題は、AWSにインストールされた不安定な屋外広告によるものです。 Alfrescoが正しく再インストールされたとき、上記のコードは正常に動作します。

関連する問題