IBM Support

Duplicate classes in managed assets can cause issues like NoSuchMethodException

Troubleshooting


Problem

When you execute your business process, you see a NoSuchMethodException in the Java service. For example:

java.lang.NoSuchMethodException: MyCustomClass.method(java.lang.String, java.lang.String, long) 
at java.lang.Class.throwNoSuchMethodException(Class.java:429) 
at java.lang.Class.getMethod(Class.java:1106) 
at teamworks.connector.JavaReflectionConnector$1.execute(JavaReflectionConnector.java:84) 
at com.lombardisoftware.server.core.ManagedAssetClassLoaderUtil.executeWithManagedAssetClassLoader(ManagedAssetClassLoaderUtil.java:58) 
at teamworks.connector.JavaReflectionConnector.execute(JavaReflectionConnector.java:56) 
at com.lombardisoftware.component.javaconnector.worker.JavaConnectorWorker.invokeJavaMethod(JavaConnectorWorker.java:153)
 
 

This exception seems to be related to one of your service flows that uses the Java connector to call MyCustomClass.method.

You check the Java integration and class but it appears to contain the proper method definition.

Symptom

You might also have other symptoms that suggest the code executing at the runtime does not match what is expected. The behavior can be inconsistent across nodes and environments. The behavior might even change after you upgrade the product.

Document Location

Worldwide

[{"Line of Business":{"code":"LOB76","label":"Data Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SS8JB4","label":"IBM Business Automation Workflow"},"ARM Category":[{"code":"a8m50000000CcZRAA0","label":"Development Tools-\u003ERepository-\u003Emanaged assets"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Version(s)"},{"Line of Business":{"code":"LOB76","label":"Data Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSFPJS","label":"IBM Business Process Manager"},"ARM Category":[{"code":"a8m50000000CcZRAA0","label":"Development Tools-\u003ERepository-\u003Emanaged assets"}],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Version(s)"}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
14 September 2022

UID

ibm16394638