Error: ? ExternalAgent does not contain a Instrumentation instance"


#1

I’m getting this error. Any ideas? I have not see this before. Using commandbox 4 with latest lucee.

Yet tools.jar is there in a different path. looks like it eventually found it.

# find . -name "tools.jar"
./usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/lib/tools.jar


"Severity","ThreadID","Date","Time","Application","Message"
"INFO","main","05/30/2018","12:56:28","OSGi","add bundle:/root/.CommandBox/server/484FEEDEE58E3D1C8571FF0E5645633D-pol/lucee-5.2.7.62/WEB-INF/lucee-web/context/lucee-admin.lar"
"INFO","main","05/30/2018","12:56:29","OSGi","add bundle:/root/.CommandBox/server/484FEEDEE58E3D1C8571FF0E5645633D-pols/lucee-5.2.7.62/WEB-INF/lucee-web/context/lucee-doc.lar"
"INFO","main","05/30/2018","12:56:29","OSGi","add bundle:/root/.CommandBox/server/484FEEDEE58E3D1C8571FF0E5645633D-pol/lucee-5.2.7.62/WEB-INF/lucee-web/context/lucee-context.lar"
"INFO","XNIO-1 task-4","05/30/2018","12:56:41","Instrumentation","found [lucee.runtime.instrumentation.ExternalAgent] in ClassLoader [sun.misc.Launcher$AppClassLoader@1909752]"
"INFO","XNIO-1 task-4","05/30/2018","12:56:41","Instrumentation","ExternalAgent does not contain a Instrumentation instance"
"INFO","XNIO-1 task-4","05/30/2018","12:56:41","Instrumentation","found [lucee.runtime.instrumentation.ExternalAgent] in ClassLoader [sun.misc.Launcher$AppClassLoader@1909752]"
"INFO","XNIO-1 task-4","05/30/2018","12:56:41","Instrumentation","ExternalAgent does not contain a Instrumentation instance"
"INFO","XNIO-1 task-4","05/30/2018","12:56:41","Instrumentation","found [lucee.runtime.instrumentation.ExternalAgent] in ClassLoader [sun.misc.Launcher$AppClassLoader@1909752]"
"INFO","XNIO-1 task-4","05/30/2018","12:56:41","Instrumentation","ExternalAgent does not contain a Instrumentation instance"
"INFO","XNIO-1 task-4","05/30/2018","12:56:41","Instrumentation","looking for tools.jar"
"INFO","XNIO-1 task-4","05/30/2018","12:56:41","Instrumentation","couldn't find tools.jar at: /usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/jre/lib/tools.jar"
"INFO","XNIO-1 task-4","05/30/2018","12:56:41","Instrumentation","tools.jar used:/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/lib/tools.jar"
"INFO","XNIO-1 task-4","05/30/2018","12:56:41","Instrumentation","loaded VirtualMachine class:com.sun.tools.attach.VirtualMachine"
"INFO","XNIO-1 task-4","05/30/2018","12:56:41","Instrumentation","try to load agent (path:/root/.CommandBox/server/484FEEDEE58E3D1C8571FF0E5645633D-pollmodbus/lucee-5.2.7.62/WEB-INF/lucee-server/context/lucee-external-agent.jar)"
"INFO","XNIO-1 task-4","05/30/2018","12:56:41","Instrumentation","pid:1412"
"INFO","XNIO-1 task-4","05/30/2018","12:56:41","Instrumentation","found [lucee.runtime.instrumentation.ExternalAgent] in ClassLoader [sun.misc.Launcher$AppClassLoader@1909752]"
"INFO","XNIO-1 task-4","05/30/2018","12:56:41","Instrumentation","ExternalAgent does contain a Instrumentation instance"

I copied it over cp /usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/lib/tools.jar /usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/jre/lib/

And that seemed to correct it, but not sure if thats the right thing to do?


#2

there is an existing bug report for this https://luceeserver.atlassian.net/browse/LDEV-1138


#3

We are not using CommandBox, but also are experiencing the same issue! Hopefully that bug report will get some attention soon!

Not sure what’s the proper workaround here… Would love to know too!


#4

I’m getting this error.

@nalbee What error? All I see are some information log message that document the process Lucee used to find the instrumentation agent. If you’re getting an actual error can you post it? You shouldn’t need to be copying any files around. Those messages just document the order of places Lucee looks.