Forum Stats

  • 3,855,340 Users
  • 2,264,499 Discussions
  • 7,905,974 Comments

Discussions

Using HFM Java API functions in Jython?

Hi,

I am attempting to use the HFM 11.1.2.4 Java API funtions in Jython scripts. The Jython version I'm using is 2.5.1 (bundled with ODI) and I'm running it on the HFM server. I have pretty much hit the brick wall so far as the first function call when trying to authenticate the user results in the Java exception shown below. Does anyone have an idea what is wrong with the code (please see the attached text file)?

Thanks,

Henri

D:\Oracle\Middleware\jdk160_35\bin\java.exe -jar D:\Oracle\Middleware\odi\oracledi.sdk\lib\jython.jar hfmJythonTest.py

Traceback (most recent call last):

File "hfmJythonTest.py", line 27, in <module>

ssoToken = HSSUtilManager.getSecurityManager().authenticateUser(userName,password)

at com.hyperion.css.CSSSystem.getInstance(CSSSystem.java:267)

at oracle.epm.fm.hssservice.SecurityWrapper.<init>(SecurityWrapper.java:87)

at oracle.epm.fm.hssservice.CASecurityManager.<init>(CASecurityManager.java:53)

at oracle.epm.fm.hssservice.CASecurityManager.getInstance(CASecurityManager.java:60)

at oracle.epm.fm.hssservice.HSSUtilManager.getSecurityManager(HSSUtilManager.java:27)

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)

java.lang.ExceptionInInitializerError: java.lang.ExceptionInInitializerError

Tagged:
This discussion has been closed.