java - Can someone explain the details of this nullPointerException error to me? -
so i'm trying write java program using sap bo sdk. when try create session, using predefined class sdk, nullpointerexception. copied code 1 1 sdk tutorial. here code:
public class program { public static void main(string[] args) { try { isessionmgr sessionmgr = crystalenterprise.getsessionmgr(); ... } } }
when run code (i commented else out testing), following error:
exception in thread "main" java.lang.nullpointerexception @ com.crystaldecisions.celib.classloader.classloaderhelper$2.getresourceasstream(classloaderhelper.java:102) @ com.crystaldecisions.celib.classloader.classloaderhelper.getresourceasstream(classloaderhelper.java:149) @ com.crystaldecisions.sdk.framework.internal.sessionmgr.initializesystemproperties(sessionmgr.java:258) @ com.crystaldecisions.sdk.framework.internal.sessionmgr.<init>(sessionmgr.java:253) @ com.crystaldecisions.sdk.framework.internal.cefactory.makesessionmgr(cefactory.java:94) @ com.crystaldecisions.sdk.framework.crystalenterprise.getsessionmgr_aroundbody0(crystalenterprise.java:121) @ com.crystaldecisions.sdk.framework.crystalenterprise.getsessionmgr_aroundbody1$advice(crystalenterprise.java:512) @ com.crystaldecisions.sdk.framework.crystalenterprise.getsessionmgr(crystalenterprise.java:1) @ myprogram.main(program.java:18) <-- line 4 in code example above
does mean there error in libraries provided sdk? or somehow imported incorrectly? possible more information error code?
thank or guidance can provide.
edit: tutorial used: http://bukhantsov.org/2011/08/getting-started-with-businessobjects-java-sdk/
the issue was referencing jar files directly program files. copying files local folder in workspace, , referencing them there fixed problem.
Comments
Post a Comment