05-05-2014 05:17 AM
org.apache.chemistry.opencmis.commons.exceptions.CmisUnauthorizedException: Unauthorized
org.apache.chemistry.opencmis.commons.exceptions.CmisUnauthorizedException: Unauthorized
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.convertStatusCode(AbstractAtomPubService.java:466)
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.post(AbstractAtomPubService.java:635)
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.DiscoveryServiceImpl.query(DiscoveryServiceImpl.java:179)
at org.apache.chemistry.opencmis.client.runtime.SessionImpl$5.fetchPage(SessionImpl.java:872)
at org.apache.chemistry.opencmis.client.runtime.util.AbstractIterator.getCurrentPage(AbstractIterator.java:132)
at org.apache.chemistry.opencmis.client.runtime.util.CollectionIterator.hasNext(CollectionIterator.java:48)
at it.wzm.alfresco.client.WebSiteServiceImpl.refreshWebsiteCache(WebSiteServiceImpl.java:172)
at it.wzm.alfresco.client.WebSiteServiceImpl.getWebSiteCache(WebSiteServiceImpl.java:155)
at it.wzm.alfresco.client.WebSiteServiceImpl.getWebSite(WebSiteServiceImpl.java:122)
@Override
public void run()
{
Thread thisThread = Thread.currentThread();
while (waitForRepository == thisThread)
{
// See if the repository can be reached
try
{
getRepository();
log.info("Repository available");
break; // <– this stops the thread ?!
}
catch (Exception e)
{
lastException = e;
log.warn("WQS unable to connect to repository: " + e.getMessage());
if (log.isDebugEnabled())
{
log.debug("Caught exception while attempting to connect to repository over CMIS", e);
}
}
// Wait a bit
try
{
Thread.sleep(repositoryPollInterval);
}
catch (InterruptedException e)
{
}
}
waitForRepository = null;
}
05-06-2014 05:14 AM
try
{
getRepository();
log.info("Repository available");
//break; // <– commented out ?!
}
<task:scheduled-tasks scheduler="pollerScheduler">
<task:scheduled ref="cmisPoller" method="getRepository" fixed-rate="${period}"/>
</task:scheduled-tasks>
<task:scheduler id="pollerScheduler" pool-size="10"/>
07-22-2014 11:05 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.