Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Dispatcher crashes while using JNI .

Hi Members,

We are working on a webdynpro - java based development on SAP WAS 640.

we have to call some C library functions. We are using JNI to access the C library functions. We have created a jar file containing a class with a method that loads the C library (lib.so) in a static block and calls the native C functions using JNI.

We included the jar in the classpath of the j2ee server.

We added the jar as a external jar in our webdynpro project (properties>java build path>Libraries). when we deploy & execute the webdynpro application, it executes perfectly well the first time. if we execute/run it the 2nd time, Our dispatcher crashes. If we do a sap stop -start then, we are once again able to execute it for the first attempt and dispatcher crashes for the next attempt.

In case we comment the call to the java method which calls the native C function, the application executes successfully for every attempt.

we tried accesing the the java method calling C function thru a simple java (console) program, and it works perfectly for all the execution attempts.

We are looking forward for some guidance/tips to resolve this issue.

Any help in this regard will be greatly appreciated.

Thanking you all

Regards

Vinay rane

Former Member
Not what you were looking for? View more on this topic or Ask a question