com.wm.app.b2b.server.ServiceException: java.lang.IllegalStateException: java.lang.CloneNotSupported

Hello !

I’m using Designer for webMethods 10.1 and I try to use the Azure Cosmos DB Java SDK for SQL API (azure-documentdb-2.1.0.jar).
This SDK needs some jars to be operational.

An error is generated when I import those jars :

  • java-uuid-generator-3.1.3.jar
  • and/or joda-time-2.3.jar

I always get this error message :
Could not run ‘connect’
com.wm.app.b2b.server.ServiceException: java.lang.IllegalStateException: java.lang.CloneNotSupportedException

Here is the service java I tried to execute :
[i][color=blue]public static final void connect(IData pipeline) throws ServiceException {
String url = “URL”;
String pwd = “PWD”;

	DocumentClient client;		
	
	try{
		JournalLogger.log(4,90,3,"[FRMK AZURE 2]", "DEBUT");
		client = new DocumentClient(url, pwd, null, null);
		JournalLogger.log(4,90,3,"[FRMK AZURE 2]", "FIN");
		client.close();
	}
	catch (Exception e){
		throw new ServiceException(e);
	}
}[/color][/i]

Thank you for your help !

Hi !

Please find some other logs :

java.lang.CloneNotSupportedException: null
at javax.crypto.MacSpi.clone(MacSpi.java:150)
at javax.crypto.Mac.clone(Mac.java:669)
at com.microsoft.azure.documentdb.internal.BaseAuthorizationTokenProvider.generateKeyAuthorizationSignature(BaseAuthorizationTokenProvider.java:118)
at com.microsoft.azure.documentdb.internal.BaseAuthorizationTokenProvider.generateKeyAuthorizationSignature(BaseAuthorizationTokenProvider.java:57)
at com.microsoft.azure.documentdb.DocumentClient.getAuthorizationToken(DocumentClient.java:3473)
at com.microsoft.azure.documentdb.DocumentClient.putMoreContentIntoDocumentServiceRequest(DocumentClient.java:3450)
at com.microsoft.azure.documentdb.DocumentClient.getDatabaseAccountFromEndpointPrivate(DocumentClient.java:3146)
at com.microsoft.azure.documentdb.DocumentClient.getDatabaseAccountFromEndpoint(DocumentClient.java:3139)
at com.microsoft.azure.documentdb.GlobalEndpointManager$1.getDatabaseAccountFromEndpoint(GlobalEndpointManager.java:51)
at com.microsoft.azure.documentdb.GlobalEndpointManager.getDatabaseAccountFromAnyEndpoint(GlobalEndpointManager.java:116)
at com.microsoft.azure.documentdb.internal.BaseDatabaseAccountConfigurationProvider.(BaseDatabaseAccountConfigurationProvider.java:22)
at com.microsoft.azure.documentdb.DocumentClient.createBaseDatabaseAccountConfigurationProvider(DocumentClient.java:372)
at com.microsoft.azure.documentdb.DocumentClient.initialize(DocumentClient.java:336)
at com.microsoft.azure.documentdb.DocumentClient.(DocumentClient.java:234)
at com.microsoft.azure.documentdb.DocumentClient.(DocumentClient.java:132)
at kzoCommonAzureV2.priv.setConnect(priv.java:42)