Hi,

We are getting following exception while doing a smoke test against latest
BAM RC pack(2013-5-23). This failure triggers from Jaggery v4. But it works
in previous pack which was built on 2013-5-17. And when we replace the
org.jaggeryjs.hostobjects.db_0.9.0.ALPHA2-wso2v4.jar from previous pack to
the new pack it also works. please assist.

[2013-05-23 18:21:16,375] ERROR {org.jaggeryjs.scriptengine.
engine.RhinoEngine} -  org.mozilla.javascript.EvaluatorException: The
choice of Java constructor replace matching JavaScript argument types
(function,string) is ambiguous; candidate constructors are:
    class java.lang.String
replace(java.lang.CharSequence,java.lang.CharSequence)
    class java.lang.String replace(char,char)
(/bamdashboards/activity_monitoring/gadgets/messageTable.ajaxProcessor.jag#190)
[2013-05-23 18:21:16,377] ERROR
{org.jaggeryjs.jaggery.core.manager.WebAppManager} -
org.mozilla.javascript.EvaluatorException: The choice of Java constructor
replace matching JavaScript argument types (function,string) is ambiguous;
candidate constructors are:
    class java.lang.String
replace(java.lang.CharSequence,java.lang.CharSequence)
    class java.lang.String replace(char,char)
(/bamdashboards/activity_monitoring/gadgets/messageTable.ajaxProcessor.jag#190)
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.EvaluatorException: The choice of Java constructor
replace matching JavaScript argument types (function,string) is ambiguous;
candidate constructors are:
    class java.lang.String
replace(java.lang.CharSequence,java.lang.CharSequence)
    class java.lang.String replace(char,char)
(/bamdashboards/activity_monitoring/gadgets/messageTable.ajaxProcessor.jag#190)
    at
org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:446)
    at
org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:191)
    at
org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:269)
    at
org.jaggeryjs.jaggery.core.JaggeryServlet.doGet(JaggeryServlet.java:24)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:735)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
    at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    .....................
Caused by: org.mozilla.javascript.EvaluatorException: The choice of Java
constructor replace matching JavaScript argument types (function,string) is
ambiguous; candidate constructors are:
    class java.lang.String
replace(java.lang.CharSequence,java.lang.CharSequence)
    class java.lang.String replace(char,char)
(/bamdashboards/activity_monitoring/gadgets/messageTable.ajaxProcessor.jag#190)
    at
org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:109)
    at org.mozilla.javascript.Context.reportRuntimeError(Context.java:922)
    at org.mozilla.javascript.Context.reportRuntimeError(Context.java:978)
    at org.mozilla.javascript.Context.reportRuntimeError3(Context.java:956)
    at
org.mozilla.javascript.NativeJavaMethod.findFunction(NativeJavaMethod.java:455)
    at
org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:157)
    at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:76)
    at
org.jaggeryjs.rhino.bamdashboards.activity_monitoring.gadgets.c3._c0(/bamdashboards/activity_monitoring/gadgets/messageTable.ajaxProcessor.jag:190)
    at
org.jaggeryjs.rhino.bamdashboards.activity_monitoring.gadgets.c3.call(/bamdashboards/activity_monitoring/gadgets/messageTable.ajaxProcessor.jag)
    at
org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:401)
    at
org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3003)
    at
org.jaggeryjs.rhino.bamdashboards.activity_monitoring.gadgets.c3.call(/bamdashboards/activity_monitoring/gadgets/messageTable.ajaxProcessor.jag)
    at
org.jaggeryjs.rhino.bamdashboards.activity_monitoring.gadgets.c3.exec(/bamdashboards/activity_monitoring/gadgets/messageTable.ajaxProcessor.jag)
    at
org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:441)
    ... 24 more

Thanks,
Malith

-- 
Malith Dhanushka

Engineer - Data Technologies
*WSO2, Inc. : wso2.com*
lean.enterprise.middleware.

*Blog*             :  mmalithh.blogspot.com
*Linked-i*n      :   http://lk.linkedin.com/in/malithd
*Twitter*         :   https://twitter.com/MalithWD

*Mobile*          : +94 716 506 693
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to