Fully featured low overhead profiler for Java EE and Java SE platforms.
Ultimate profiling and monitoring solution for Gradle, Maven, Ant, JUnit and TestNG.
Easy to use performance and memory profiler for .NET framework.

UnsatisfiedLinkError on using API from javabuilder.jar

Moderators: Vladimir Kondratyev, Anton Katilin

UnsatisfiedLinkError on using API from javabuilder.jar

Postby vallabh.anwikar » Mon Apr 18, 2016 12:27 pm

Hi All,

I am trying to use YourKit for profiling my code which uses data structures form javabuilder.jar which is given by Matlab. Its used for java and matlab integration. I am getting following error during profiling error. How can we specify such libraries ?
Can we bypass such code which can't be handled by Profiler treat it like black box ? meaning not instrumenting such code at all and just measure timing properties of such functions ?

java.lang.UnsatisfiedLinkError: while attempting to locate symbol Java_com_mathworks_toolbox_javabuilder_internal_MWMCR_$$YJP$$mclAddCanonicalPathMacro: /usr/local/MATLAB/MATLAB_Compiler_Runtime/v717/bin/glnxa64/libnativemcl.so: undefined symbol: Java_com_mathworks_toolbox_javabuilder_internal_MWMCR_$$YJP$$mclAddCanonicalPathMacro
com.mathworks.toolbox.javabuilder.internal.DynamicLibraryUtils.$$YJP$$dlsym(Native Method)
com.mathworks.toolbox.javabuilder.internal.DynamicLibraryUtils.dlsym(DynamicLibraryUtils.java)
com.mathworks.toolbox.javabuilder.internal.DynamicLibraryUtils.loadLibraryAndBindNativeMethods(DynamicLibraryUtils.java:162)
com.mathworks.toolbox.javabuilder.internal.MWMCR.<clinit>(MWMCR.java:1467)
com.mathworks.toolbox.javabuilder.MWUtil.CreateStructArray(MWUtil.java:182)
com.mathworks.toolbox.javabuilder.MWUtil.CreateStructArray(MWUtil.java:187)
com.mathworks.toolbox.javabuilder.MWStructArray.<init>(MWStructArray.java:103)
com.marketshare.pricemaster.dss.DSSCoreImpl.buildActualStack(DSSCoreImpl.java:1401)
com.marketshare.pricemaster.dss.DSSCoreImpl.getForecast(DSSCoreImpl.java:475)
com.marketshare.pricemaster.math.subprocess.PMMathImpl.getForeCast(PMMathImpl.java:55)
com.marketshare.pricemaster.math.local.MathJobProcess.invoke(MathJobProcess.java:96)

Thanks and Regards,
Vallabh
vallabh.anwikar
 
Posts: 1
Joined: Mon Apr 18, 2016 12:01 pm

Re: UnsatisfiedLinkError on using API from javabuilder.jar

Postby Anton Katilin » Tue Apr 19, 2016 8:01 am

Hi Vallabh

Perhaps Matlab uses a class loader that does not correctly work with instrumented native methods.

Please specify the agent startup option "disablenatives".
How to do this: https://www.yourkit.com/docs/java/help/ ... ptions.jsp

Best regards,
Anton
Anton Katilin
 
Posts: 5576
Joined: Wed Aug 11, 2004 8:37 am


Return to Java Profiler

Who is online

Users browsing this forum: Bing [Bot] and 9 guests