search cancel

Log Request for Introscope Log for location javascript calculator is running

book

Article ID: 255975

calendar_today

Updated On:

Products

CA Application Performance Management SaaS

Issue/Introduction

Not seeing any created metrics from our JavaScript calculator DatapowerNewer.js 

We have turned on some logging statements temporarily - would it be possible to get the log so we can identify what is not working in the JavaScript calculator please?

 

Environment

Release : SAAS

Resolution

Logs provided

 While no error was logged on the mentioned DatapowerNewer.js, there were other repeated errors similar to the ones below that could be what the customer was looking for:

 

 [ERROR] [JS Extension deployment 1] [Manager.JavaScriptCalculator] Error loading script DatapowerOperations-NEWer.js: TypeError: [JavaPackage java.util.Hashtable] is not a function, it is object. (DatapowerOperations-NEWer.js#1)
org.mozilla.javascript.EcmaError: TypeError: [JavaPackage java.util.Hashtable] is not a function, it is object. (DatapowerOperations-NEWer.js#1)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:4563)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:4544)
    at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:4576)
    at org.mozilla.javascript.ScriptRuntime.typeErrorById(ScriptRuntime.java:4581)
    at org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:4645)
    at org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:4636)
    at org.mozilla.javascript.ScriptRuntime.newObject(ScriptRuntime.java:2677)
    at org.mozilla.javascript.gen.DatapowerOperations_NEWer_js_23544._c_script_0(DatapowerOperations-NEWer.js:1)
    at org.mozilla.javascript.gen.DatapowerOperations_NEWer_js_23544.call(DatapowerOperations-NEWer.js)
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:380)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3868)
    at org.mozilla.javascript.gen.DatapowerOperations_NEWer_js_23544.call(DatapowerOperations-NEWer.js)
    at org.mozilla.javascript.gen.DatapowerOperations_NEWer_js_23544.exec(DatapowerOperations-NEWer.js)
    at com.wily.introscope.server.beans.javascriptcalculator.CalculatorScript.<init>(CalculatorScript.java:192)
    at com.wily.introscope.server.beans.javascriptcalculator.JavascriptCalculatorBean$CalculatorWrapper.<init>(JavascriptCalculatorBean.java:555)
    at com.wily.introscope.server.beans.javascriptcalculator.JavascriptCalculatorBean.lambda$7(JavascriptCalculatorBean.java:462)
    at java.base/java.util.HashMap$Values.forEach(HashMap.java:977)
    at com.wily.introscope.server.beans.javascriptcalculator.JavascriptCalculatorBean.checkDeploy(JavascriptCalculatorBean.java:457)
    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:829)
[ERROR] [JS Extension deployment 1] [Manager.JavaScriptCalculator] Error loading script DatapowerMQ.js: TypeError: [JavaPackage java.util.Hashtable] is not a function, it is object. (DatapowerMQ.js#1)
org.mozilla.javascript.EcmaError: TypeError: [JavaPackage java.util.Hashtable] is not a function, it is object. (DatapowerMQ.js#1)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:4563)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:4544)
    at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:4576)
    at org.mozilla.javascript.ScriptRuntime.typeErrorById(ScriptRuntime.java:4581)
    at org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:4645)
    at org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:4636)
    at org.mozilla.javascript.ScriptRuntime.newObject(ScriptRuntime.java:2677)
    at org.mozilla.javascript.gen.DatapowerMQ_js_23545._c_script_0(DatapowerMQ.js:1)
    at org.mozilla.javascript.gen.DatapowerMQ_js_23545.call(DatapowerMQ.js)
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:380)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3868)
    at org.mozilla.javascript.gen.DatapowerMQ_js_23545.call(DatapowerMQ.js)
    at org.mozilla.javascript.gen.DatapowerMQ_js_23545.exec(DatapowerMQ.js)
    at com.wily.introscope.server.beans.javascriptcalculator.CalculatorScript.<init>(CalculatorScript.java:192)
    at com.wily.introscope.server.beans.javascriptcalculator.JavascriptCalculatorBean$CalculatorWrapper.<init>(JavascriptCalculatorBean.java:555)
    at com.wily.introscope.server.beans.javascriptcalculator.JavascriptCalculatorBean.lambda$7(JavascriptCalculatorBean.java:462)
    at java.base/java.util.HashMap$Values.forEach(HashMap.java:977)
    at com.wily.introscope.server.beans.javascriptcalculator.JavascriptCalculatorBean.checkDeploy(JavascriptCalculatorBean.java:457)
    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:829)

 

Please check with customer to review and revise their JavaScript calculators accordingly.