Hello all - our CSSDK code recently stopped working connecting from an app server to our teamsite server...stack trace and code below, any help would be appreciated! There were no changes to the TeamSite configuration...and the code does work across some environments which makes it hard to debug. thanks in advance!
Error:
2021-02-01T00:01:19,628 [WebContainer : 21] INFO util.TeamSiteUtil [] - Factory created: com.interwoven.cssdk.factory.CSJavaFactory
2021-02-01T00:01:19,628 [WebContainer : 21] INFO util.TeamSiteUtil [] - CSSDK Client Version: 16.6.0
2021-02-01T00:01:19,628 [WebContainer : 21] INFO util.TeamSiteUtil [] - CSSDK Server Version: 16.6.0
2021-02-01T00:02:43,688 [WebContainer : 21] ERROR util.TeamSiteUtil [] - ERROR: Problem getting TeamSite client!
com.interwoven.cssdk.common.CSException: Unable to establish connection with the server
at com.interwoven.cssdk.sci.exception.ExceptionHandler.handleExceptionSci(ExceptionHandler.java:264) ~[cssdk_sci-16.6.jar:?]
at com.interwoven.cssdk.sci.exception.ExceptionHandler.handleException(ExceptionHandler.java:104) ~[cssdk_sci-16.6.jar:?]
at com.interwoven.cssdk.sci.exception.ExceptionHandler.handleException(ExceptionHandler.java:78) ~[cssdk_sci-16.6.jar:?]
at com.interwoven.cssdk.sci.data.CSSessionCache.getSessionString(CSSessionCache.java:364) ~[cssdk_sci-16.6.jar:?]
at com.interwoven.cssdk.sci.access.AccessServiceSciImpl.beginSessionUsingPassword(AccessServiceSciImpl.java:385) ~[cssdk_sci-16.6.jar:?]
at com.interwoven.cssdk.access.java.AccessServiceAdapterImpl.beginSessionUsingPassword(AccessServiceAdapterImpl.java:63) ~[cssdkjava-16.6.jar:?]
at com.interwoven.cssdk.factory.CSJavaFactory.getClient(CSJavaFactory.java:89) ~[cssdkjava-16.6.jar:Build 51]
Code:
public static CSClient getClient() throws TeamSiteException
{
final String METHOD_NAME = "getClient";
if (isLogging)
LOG.info("Into: [" + METHOD_NAME + "]");
CSFactory csFactory = null;
CSClient csClient = null;
try
{
Properties tsProps = new Properties();
tsProps.setProperty("defaultTSServer", TEAMSITE_URL);
tsProps.setProperty("ts.server.os", TEAMSITE_OS);
tsProps.setProperty("com.interwoven.cssdk.factory.CSFactory", TEAMSITE_FACTORY);
StringWriter writer = new StringWriter();
tsProps.list(new PrintWriter(writer));
LOG.info("Properties: " + writer.getBuffer().toString());
csFactory = CSFactory.getFactory(tsProps);
if (isLogging)
LOG.info("Factory created: " + csFactory.getClass().getName());
// Print the CSSDK Server & Client versions.
CSVersion version = null;
version = csFactory.getClientVersion();
printVersionDetails("Client", version);
version = csFactory.getServerVersion();
printVersionDetails("Server", version);
csClient = csFactory.getClient(TEAMSITE_USERNAME, TEAMSITE_ROLE, TEAMSITE_PASSWORD, Locale.getDefault(),
TEAMSITE_PROJ, null);
}
catch (CSFactoryInitializationException csfe)
{
LOG.error(csfe.getRootCause().getCause());
}
catch (Exception e)
{
LOG.error("ERROR: Problem getting TeamSite client!", e);
throw new TeamSiteException("ERROR: Problem getting TeamSite client!");
}
if (isLogging)
LOG.info("Exit: [" + METHOD_NAME + "]");
return csClient;
}