Skip to Main Content

Analytics Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ODI - Not running simple MaxL Calc Script Now

User_BP7C5Nov 6 2019 — edited Nov 7 2019

Hi.  I know a crapshoot as nobody probably uses ODI anymore.   Anyways we have a process in our data loads:

  1. Execute pre calc
  2. Load data
  3. Execute post calc

Now we are getting the below error when it tries and executes this part of the code.  Any ideas?  Could it be a 'port' issue?  I"m at a loss here as it worked perfectly for years...

org.apache.bsf.BSFException: exception from Jython:

Traceback (most recent call last):

  File "<string>", line 89, in <module>

    at com.hyperion.odi.essbase.ODIEssbaseConnection.executeMaxl(Unknown Source)

    at com.hyperion.odi.essbase.AbstractEssbaseWriter.beginLoad(Unknown Source)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

com.hyperion.odi.essbase.ODIEssbaseException: com.hyperion.odi.essbase.ODIEssbaseException: Error occured while executing maxl script. Error Message is:

    at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)

    at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.execInBSFEngine(SnpScriptingInterpretor.java:322)

    at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.exec(SnpScriptingInterpretor.java:170)

    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java:2472)

    at oracle.odi.runtime.agent.execution.cmd.ScriptingExecutor.execute(ScriptingExecutor.java:47)

    at oracle.odi.runtime.agent.execution.cmd.ScriptingExecutor.execute(ScriptingExecutor.java:1)

    at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)

    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2913)

    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2625)

    at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:577)

    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:468)

    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2128)

    at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:366)

    at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)

    at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)

    at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:292)

    at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:855)

    at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)

    at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)

    at java.lang.Thread.run(Thread.java:662)

Caused by: Traceback (most recent call last):

  File "<string>", line 89, in <module>

    at com.hyperion.odi.essbase.ODIEssbaseConnection.executeMaxl(Unknown Source)

    at com.hyperion.odi.essbase.AbstractEssbaseWriter.beginLoad(Unknown Source)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

com.hyperion.odi.essbase.ODIEssbaseException: com.hyperion.odi.essbase.ODIEssbaseException: Error occured while executing maxl script. Error Message is:

    at org.python.core.PyException.fillInStackTrace(PyException.java:70)

    at java.lang.Throwable.<init>(Throwable.java:181)

    at java.lang.Exception.<init>(Exception.java:29)

    at java.lang.RuntimeException.<init>(RuntimeException.java:32)

    at org.python.core.PyException.<init>(PyException.java:46)

    at org.python.core.PyException.<init>(PyException.java:43)

    at org.python.core.Py.JavaError(Py.java:455)

    at org.python.core.Py.JavaError(Py.java:448)

    at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:177)

    at org.python.core.PyObject.__call__(PyObject.java:355)

    at org.python.core.PyMethod.__call__(PyMethod.java:215)

    at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:221)

    at org.python.core.PyMethod.__call__(PyMethod.java:206)

    at org.python.core.PyObject.__call__(PyObject.java:397)

    at org.python.core.PyObject.__call__(PyObject.java:401)

    at org.python.pycode._pyx33.f$0(<string>:89)

    at org.python.pycode._pyx33.call_function(<string>)

    at org.python.core.PyTableCode.call(PyTableCode.java:165)

    at org.python.core.PyCode.call(PyCode.java:18)

    at org.python.core.Py.runCode(Py.java:1204)

    at org.python.core.Py.exec(Py.java:1248)

    at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:172)

    at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:144)

    ... 19 more

Caused by: com.hyperion.odi.essbase.ODIEssbaseException: Error occured while executing maxl script. Error Message is:

    at com.hyperion.odi.essbase.ODIEssbaseConnection.executeMaxl(Unknown Source)

    at com.hyperion.odi.essbase.AbstractEssbaseWriter.beginLoad(Unknown Source)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:175)

    ... 33 more

Caused by: com.essbase.api.base.EssException: Error occured while executing maxl script. Error Message is:

    at com.hyperion.odi.essbase.wrapper.EssbaseConnection.executeMaxl(Unknown Source)

    ... 40 more

This post has been answered by JohnGoodwin on Nov 7 2019
Jump to Answer

Comments

r035198x
Your getStuff version that takes a class object won't work because 1.) It can't be automatically converted to JSON and 2.) The method itself has not been marked as resource method with an appropriate Consumes content type. You don't really need to try to write custom marshallers for class type to use because you don't need to pass in class types when using rest. It defeats the whole purpose of having completely decoupled client and server. Remember your clients don't have to be Java at all with rest.
The common standard here is to expose /{entityName} as the path that gets all entities of type entity name.
1002901
Thanks for the information!

Anyway, you can be more specific with your explanation... I'm still lost on this.

Thanks,
Robert
1 - 2