org.eclipse.birt.report.engine.api.EngineException: There are errors evaluating script "importPackage(Packages.birtjava.tdcj.ProdDb2Test); count = 0; prodDb2Test = new Packages.birtjava.tdcj.ProdDb2Test(); ntoNcrList = prodDb2Test.build(); ": Fail to execute script in function __bm_OPEN(). Source: ------ " + importPackage(Packages.birtjava.tdcj.ProdDb2Test); count = 0; prodDb2Test = new Packages.birtjava.tdcj.ProdDb2Test(); ntoNcrList = prodDb2Test.build(); + " ----- A BIRT exception occurred. See next exception for more information. Error evaluating Javascript expression. Script engine error: TypeError: [JavaPackage birtjava.tdcj.ProdDb2Test] is not a function, it is object. (/report/data-sets/script-data-set[@id="8"]/method[@name="open"]#5) Script source: /report/data-sets/script-data-set[@id="8"]/method[@name="open"], line: 0, text: __bm_OPEN(). (Element ID:1)

eclipse.org | 4 months ago
  1. 0

    Eclipse Community Forums: BIRT ยป Problem with Script Datasource

    eclipse.org | 4 months ago
    org.eclipse.birt.report.engine.api.EngineException: There are errors evaluating script "importPackage(Packages.birtjava.tdcj.ProdDb2Test); count = 0; prodDb2Test = new Packages.birtjava.tdcj.ProdDb2Test(); ntoNcrList = prodDb2Test.build(); ": Fail to execute script in function __bm_OPEN(). Source: ------ " + importPackage(Packages.birtjava.tdcj.ProdDb2Test); count = 0; prodDb2Test = new Packages.birtjava.tdcj.ProdDb2Test(); ntoNcrList = prodDb2Test.build(); + " ----- A BIRT exception occurred. See next exception for more information. Error evaluating Javascript expression. Script engine error: TypeError: [JavaPackage birtjava.tdcj.ProdDb2Test] is not a function, it is object. (/report/data-sets/script-data-set[@id="8"]/method[@name="open"]#5) Script source: /report/data-sets/script-data-set[@id="8"]/method[@name="open"], line: 0, text: __bm_OPEN(). (Element ID:1)
  2. 0

    Tests pass even when extension modules fail to load

    GitHub | 3 years ago | tfmorris
    org.mozilla.javascript.EcmaError: TypeError: [JavaPackage com.google.refine.pcaxis.PCAxisImporter] is not a function, it is object. (file:/home/travis/build/tfmorris/OpenRefine/main/webapp/../../extensions/pc-axis/module/MOD-INF/controller.js#39)
  3. 0

    OpenRefine.app from Mac kit does not load extensions and throws javascript TypeError

    GitHub | 3 years ago | sparkica
    org.mozilla.javascript.EcmaError: TypeError: [JavaPackage com.google.refine.pcaxis.PCAxisImporter] is not a function, it is object. (file:/Applications/OpenRefine.app/Contents/Resource/webapp/extensions/pc-axis/module/MOD-INF/controller.js#39)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Wrong by-name parameter semantics (partest run/t7899.scala)

    GitHub | 3 years ago | gzm0
    org.mozilla.javascript.EcmaError: TypeError: org.mozilla.javascript.Undefined@55f5f59d is not a function, it is undefined. (/Users/tschlatt/Documents/scala-js-main/examples/helloworld/target/scala-2.10/classes/helloworld/0003-HelloWorld$$anonfun$main$1.js#5)
  6. 0

    JavaPackage com.wso2 .mobile.ios.mdm.impl.KeystoreReader is not a function, it is object.

    Stack Overflow | 3 years ago | Mingway
    org.mozilla.javascript.EcmaError: TypeError: [JavaPackage com.wso2 .mobile.ios.mdm.impl.KeystoreReader] is not a function, it is object. (/mdm/modules/iosmdm.js#40)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.mozilla.javascript.EcmaError

      TypeError: [JavaPackage birtjava.tdcj.ProdDb2Test] is not a function, it is object. (/report/data-sets/script-data-set[@id="8"]/method[@name="open"]#5)

      at org.mozilla.javascript.ScriptRuntime.constructError()
    2. Rhino
      ScriptRuntime.newObject
      1. org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3654)
      2. org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3632)
      3. org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3660)
      4. org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3679)
      5. org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:3734)
      6. org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:3722)
      7. org.mozilla.javascript.ScriptRuntime.newObject(ScriptRuntime.java:2324)
      7 frames