Integration News
Troubleshooting
IBM Sterling B2B Integrator
Error: Java.lang.NoClassDefFoundError: org.apache.bsf.BSFException
PROBLEM
Not able to run Script adapter with the latest version of Bsf.jar i.e. Bsf 3.1 jar
SYMPTOM
The symptoms of the issue may be found in the below error generated in the logs:
[2023-08-23 11:28:28.092] ERROR 000110060033 WORKFLOW.ACTIVITY_ENGINE.ERR_ActivityEngineHelper_next ActivityEngineHelper.next caught exception 4253774
java.lang.NoClassDefFoundError: org.apache.bsf.BSFException
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:339)
at com.sterlingcommerce.woodstock.workflow.activity.ServiceMetaData.getClassServiceInstance(ServiceMetaData.java:118)
at com.sterlingcommerce.woodstock.workflow.activity.engine.ActivityEngineHelper.preInvokeService(ActivityEngineHelper.java:1471)
at com.sterlingcommerce.woodstock.workflow.activity.engine.ActivityEngineHelper.nextMainLogic(ActivityEngineHelper.java:595)
at com.sterlingcommerce.woodstock.workflow.activity.engine.ActivityEngineHelper.next(ActivityEngineHelper.java:362)
at com.sterlingcommerce.woodstock.workflow.queue.WorkFlowQueueListener.doWork(WorkFlowQueueListener.java:459)
at com.sterlingcommerce.woodstock.workflow.queue.WorkFlowQueueListener.run(WorkFlowQueueListener.java:240)
at com.sterlingcommerce.woodstock.workflow.queue.WorkFlowQueueListener.onMessage(WorkFlowQueueListener.java:197)
at com.sterlingcommerce.woodstock.workflow.queue.WorkFlowQueueListener.onMessage(WorkFlowQueueListener.java:184)
at com.sterlingcommerce.woodstock.workflow.queue.wfTransporter.run(wfTransporter.java:447)
at com.sterlingcommerce.woodstock.workflow.queue.BasicExecutor$Worker.run(BasicExecutor.java:508)
at java.lang.Thread.run(Thread.java:826)
Caused by: java.lang.ClassNotFoundException: org.apache.bsf.BSFException
at java.net.URLClassLoader.findClass(URLClassLoader.java:610)
at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:948)
at java.lang.ClassLoader.loadClass(ClassLoader.java:893)
at com.sterlingcommerce.woodstock.ldr.DynamicClassLoader.loadClass(DynamicClassLoader.java:968)
at com.sterlingcommerce.woodstock.ldr.DynamicClassLoader.loadClass(DynamicClassLoader.java:955)
… 13 more
CAUSE
The Cause of this error is due to third party jar bsf jars with version Bsf 3.1 jar doesn’t have org.apache.bsf.BSFException classs, which is needed for Sterling B2B Integrator.
This makes Bsf 3.1 jars not compatible with Sterling B2B Integrator.
ENVIRONMENT
Sterling B2B Integrator v6.1.2
DIAGNOSING THE PROBLEM
Upon reviewing the logs for error the error points towards compatibility issue of Bsf 3.1 jars with Sterling B2B Integrator.
2023-08-23 11:28:28.092] ERROR 000110060033 WORKFLOW.ACTIVITY_ENGINE.ERR_ActivityEngineHelper_next ActivityEngineHelper.next caught exception 4253774
java.lang.NoClassDefFoundError: org.apache.bsf.BSFException
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:339)
at
com.sterlingcommerce.woodstock.workflow.activity.ServiceMetaData.getClassServiceInstance(ServiceMetaData.java:118).
As the class org.apache.bsf.BSFException is not present in the latest version of Bsf jar i.e. Bsf 3.1 jars, we come to a conclusion that this version of Bsf.jar is not compatible with Sterling B2B Integrator therefore unable to execute script adapter operations.
RESOLVING THE PROBLEM
The resolution to this issue is by using the compatible version of Bsf jar for configuring and executing Script Adapter Operations i.e. version 2_3 bsf.jar
Haga clic en el siguiente botón para descargar este boletín en formato Pdf.