on 04-07-2017 10:57 AM - last edited on 02-03-2024 10:44 PM by postmig_api_4
So I'm trying to create a Java program that can help me get some information about my reports via the BO SDK.
I followed this tutorial, which everyone recommends. However, I'm getting a NullPointerException error when I try to run my simplified code. The error seems to stem from the BO SDK jar files. The error occurs for the following line of code (line 18):
ISessionMgr sessionMgr = CrystalEnterprise.getSessionMgr();
The error:
Exception in thread "main" java.lang.NullPointerException
at com.crystaldecisions.celib.classloader.ClassLoaderHelper$2.getResourceAsStream(ClassLoaderHelper.java:102)
at com.crystaldecisions.celib.classloader.ClassLoaderHelper.getResourceAsStream(ClassLoaderHelper.java:149)
at com.crystaldecisions.sdk.framework.internal.SessionMgr.initializeSystemProperties(SessionMgr.java:258)
at com.crystaldecisions.sdk.framework.internal.SessionMgr.<init>(SessionMgr.java:253)
at com.crystaldecisions.sdk.framework.internal.CEFactory.makeSessionMgr(CEFactory.java:94)
at com.crystaldecisions.sdk.framework.CrystalEnterprise.getSessionMgr_aroundBody0(CrystalEnterprise.java:121)
at com.crystaldecisions.sdk.framework.CrystalEnterprise.getSessionMgr_aroundBody1$advice(CrystalEnterprise.java:512)
at com.crystaldecisions.sdk.framework.CrystalEnterprise.getSessionMgr(CrystalEnterprise.java:1)
at org.myprogram.test.Program.main(Program.java:18)
If I'm interpreting this correctly, there is an error in the libraries provided by the BO SDK. Can anyone help me here?
The solution was to copy the jar filesI was referencing out of their original location (in my Program Files) into a sub-directory in my workspace.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.