on 09-25-2012 4:22 PM
Hi All,
I'm using this simple class below to open a WebIntelligence Documet :
package Burst;
import com.businessobjects.rebean.wi.DocumentInstance;
import com.businessobjects.rebean.wi.ReportDictionary;
import com.businessobjects.rebean.wi.ReportEngine;
import com.businessobjects.rebean.wi.ReportEngines;
import com.businessobjects.rebean.wi.ReportEngines.ReportEngineType;
import com.businessobjects.rebean.wi.VariableExpression;
import com.crystaldecisions.sdk.exception.SDKException;
import com.crystaldecisions.sdk.framework.CrystalEnterprise;
import com.crystaldecisions.sdk.framework.IEnterpriseSession;
import com.crystaldecisions.sdk.framework.ISessionMgr;
import com.crystaldecisions.sdk.occa.infostore.IInfoObject;
import com.crystaldecisions.sdk.occa.infostore.IInfoObjects;
import com.crystaldecisions.sdk.occa.infostore.IInfoStore;
import com.crystaldecisions.sdk.occa.security.ILogonTokenMgr;
public class Schedule {
public static void main(String[] args) throws SDKException {
System.out.println("Connecting...");
ISessionMgr mySessionMgr = CrystalEnterprise.getSessionMgr();
IEnterpriseSession oEnterpriseSession = mySessionMgr.logon("XXX", "YYYY", "WIN-ZZZZZ:6400", "secEnterprise");
IInfoStore oInfoStore = (IInfoStore) oEnterpriseSession.getService("InfoStore");
ReportEngines oReportEngines = (ReportEngines) oEnterpriseSession.getService("ReportEngines");
ReportEngine oReportEngine = oReportEngines.getService(ReportEngineType.WI_REPORT_ENGINE);
System.out.println("Finished");
}
}
But I receive this error on :
Connecting...
Exception in thread "main" com.businessobjects.rebean.wi.CommunicationException: Unable to instantiate ReportEngine.
at com.businessobjects.rebean.wi.ReportEngines.createReportEngine(ReportEngines.java:290)
at com.businessobjects.rebean.wi.ReportEngines.getService(ReportEngines.java:249)
at Burst.Schedule.main(Schedule.java:40)
Caused by: com.businessobjects.sdk.core.CoreException: findBundleConfigurator problem with URL: jar:file:/E:/Program%20Files%20(x86)/SAP%20BusinessObjects/SAP%20BusinessObjects%20Enterprise%20XI%204.0/java/lib/sdk.core.server.common.jar!/META-INF/MANIFEST.MF
at com.businessobjects.sdk.core.internal.dynenv.impl.ManifestDiscoveryManager.findBundleConfigurator(ManifestDiscoveryManager.java:172)
at com.businessobjects.sdk.core.internal.dynenv.impl.ManifestDiscoveryManager.startDiscovery(ManifestDiscoveryManager.java:125)
at com.businessobjects.sdk.core.internal.dynenv.impl.ManifestDiscoveryManager.<init>(ManifestDiscoveryManager.java:99)
at com.businessobjects.sdk.core.internal.dynenv.impl.ManifestDiscoveryManager.<init>(ManifestDiscoveryManager.java:69)
at com.businessobjects.sdk.core.internal.dynenv.impl.ManifestDiscoveryManager.<init>(ManifestDiscoveryManager.java:58)
at com.businessobjects.sdk.core.Core.init(Core.java:118)
at com.businessobjects.sdk.core.Core.checkInit(Core.java:156)
at com.businessobjects.sdk.core.Core.create(Core.java:456)
at com.businessobjects.rebean.wi.internal.ReportEngineFactory.makeOCCA(ReportEngineFactory.java:76)
at com.businessobjects.rebean.wi.ReportEngines.createReportEngine(ReportEngines.java:281)
... 2 more
Caused by: com.businessobjects.sdk.core.CoreException: Configurator problem with com.businessobjects.sdk.core.server.internal.config.CommonCommandsConfigurator:
at com.businessobjects.sdk.core.internal.dynenv.impl.ManifestDiscoveryManager.loadConfigurator(ManifestDiscoveryManager.java:278)
at com.businessobjects.sdk.core.internal.dynenv.impl.ManifestDiscoveryManager.readConfigurator(ManifestDiscoveryManager.java:256)
at com.businessobjects.sdk.core.internal.dynenv.impl.ManifestDiscoveryManager.readBundle(ManifestDiscoveryManager.java:210)
at com.businessobjects.sdk.core.internal.dynenv.impl.ManifestDiscoveryManager.findBundleConfigurator(ManifestDiscoveryManager.java:143)
... 11 more
Caused by: java.lang.NoClassDefFoundError: com/google/inject/Module
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at com.businessobjects.sdk.core.internal.dynenv.impl.ManifestDiscoveryManager.loadConfigurator(ManifestDiscoveryManager.java:274)
... 14 more
Caused by: java.lang.ClassNotFoundException: com.google.inject.Module
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 20 more
The problem is related to ReportEngine oReportEngine = oReportEngines.getService(ReportEngineType.WI_REPORT_ENGINE); , because this
line code the class is compiled without error....
P.S:
"There is any general SDK example regarding BOXI4 ? Where I can find It ?"
Any Help,
Best Regards,
ZAV
Caused by: com.businessobjects.sdk.core.CoreException: findBundleConfigurator problem with URL: jar:file:/E:/Program%20Files%20(x86)/SAP%20BusinessObjects/SAP%20BusinessObjects%20Enterprise%20XI%204.0/java/lib/sdk.core.server.common.jar!/META-INF/MANIFEST.MF
To me, your error looks like you might be missing some JAR files in your project? Some more information might be useful. Maybe even you BO installation is corrupt? (BO4 runs its "JAR" files as OSGI Bundles and the error message indicates problems with the bundles).
You can find the SDK Developer's guide with some examples, here:
http://help.sap.com/businessobject/product_guides/boexir4/en/xi4_resdk_java_dg_en.pdf
Some sample code:
http://scn.sap.com/docs/DOC-6220
Message was edited by: Fabio Plachetta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Ganesh,
below the jar files that I had imported to avoid the error that I get sometime ago :
aspectjrt.jar
Best Regards,
MJ
You can solve this issue by adding the guice-1.0 jar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for coming to SAP Community for answers. Please post your question as a new question here:
Since you're new in asking questions here, check out our tutorial about asking and answering questions (if you haven't already), as it provides tips for preparing questions more effectively, that draw responses from our members.
Please note, that your post here won't be answered.
User | Count |
---|---|
82 | |
11 | |
10 | |
8 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.