Skip to Content
Former Member
Apr 07, 2017 at 09:57 AM

Error creating session with BO SDK

161 Views Last edit Apr 07, 2017 at 10:43 AM 2 rev

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(
	at com.crystaldecisions.celib.classloader.ClassLoaderHelper.getResourceAsStream(
	at com.crystaldecisions.sdk.framework.internal.SessionMgr.initializeSystemProperties(
	at com.crystaldecisions.sdk.framework.internal.SessionMgr.<init>(
	at com.crystaldecisions.sdk.framework.internal.CEFactory.makeSessionMgr(
	at com.crystaldecisions.sdk.framework.CrystalEnterprise.getSessionMgr_aroundBody0(
	at com.crystaldecisions.sdk.framework.CrystalEnterprise.getSessionMgr_aroundBody1$advice(
	at com.crystaldecisions.sdk.framework.CrystalEnterprise.getSessionMgr(
	at org.myprogram.test.Program.main(

If I'm interpreting this correctly, there is an error in the libraries provided by the BO SDK. Can anyone help me here?