Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Developing Analytics Applications
Issues in stating Platform
Migrateduser
<p>Hi,</p>
<p> </p>
<p>I have just started integrating BIRT reports with my Selenium Test cases. I am facing issues while starting the Platform. Code snippet below - </p>
<div>try{</div>
<div>EngineConfig conf = null;</div>
<div> IReportEngine eng = null;</div>
<div> IRunAndRenderTask task = null;</div>
<div> conf = new EngineConfig( ); </div>
<div> conf.setLogConfig("C:\\Shobhit\\ACM Source Data Validation\\Execution Reports\\Logs", Level.FINEST);</div>
<div><span style="color:#ff0000;"> Platform.startup(config);</span></div>
<div> IReportEngineFactory factory = (IReportEngineFactory) Platform.createFactoryObject( IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY );</div>
<div> eng = factory.createReportEngine(conf); </div>
<div> </div>
<div> </div>
<div> IReportRunnable reportDesign = null;</div>
<div> reportDesign = eng.openReportDesign("C:\\Users\\mathusho\\workspace\\ACMSourceFileValidation\\src\\SourceFileValidation\\new_report.rptdesign"); </div>
<div> task = eng.createRunAndRenderTask(reportDesign);</div>
<div> HashMap<String, String> params = null;</div>
<div> params.put("CPF_RecordsPassed", arr[0]);</div>
<div> params.put("CPF_RecordsFailed", arr[1]);</div>
<div> task.setParameterValues(params);</div>
<div>}</div>
<div> </div>
<div> </div>
<div>Exception StackTrace - </div>
<div>
<div>org.eclipse.birt.core.exception.BirtException: error.CannotStartupOSGIPlatform</div>
<div>at org.eclipse.birt.core.framework.Platform.startup(Platform.java:81)</div>
<div>at SourceFileValidation.Main.main(Main.java:27)</div>
<div>Caused by: java.lang.SecurityException: Invalid signature file digest for Manifest main attributes</div>
<div>at sun.security.util.SignatureFileVerifier.processImpl(Unknown Source)</div>
<div>at sun.security.util.SignatureFileVerifier.process(Unknown Source)</div>
<div>at java.util.jar.JarVerifier.processEntry(Unknown Source)</div>
<div>at java.util.jar.JarVerifier.update(Unknown Source)</div>
<div>at java.util.jar.JarFile.initializeVerifier(Unknown Source)</div>
<div>at java.util.jar.JarFile.getInputStream(Unknown Source)</div>
<div>at sun.misc.URLClassPath$JarLoader$2.getInputStream(Unknown Source)</div>
<div>at sun.misc.Resource.cachedInputStream(Unknown Source)</div>
<div>at sun.misc.Resource.getByteBuffer(Unknown Source)</div>
<div>at java.net.URLClassLoader.defineClass(Unknown Source)</div>
<div>at java.net.URLClassLoader.access$100(Unknown Source)</div>
<div>at java.net.URLClassLoader$1.run(Unknown Source)</div>
<div>at java.net.URLClassLoader$1.run(Unknown Source)</div>
<div>at java.security.AccessController.doPrivileged(Native Method)</div>
<div>at java.net.URLClassLoader.findClass(Unknown Source)</div>
<div>at java.lang.ClassLoader.loadClass(Unknown Source)</div>
<div>at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)</div>
<div>at java.lang.ClassLoader.loadClass(Unknown Source)</div>
<div>at org.eclipse.birt.core.framework.Platform.createPlatformLauncher(Platform.java:115)</div>
<div>at org.eclipse.birt.core.framework.Platform.startup(Platform.java:74)</div>
<div>... 1 more</div>
<div> </div>
<div> </div>
<div> </div>
<div>I'm using the following jar files - </div>
<div>1. org.eclipse.birt.runtime-4.4.2</div>
<div>2. org.eclipse.core.runtime-3.1.0</div>
<div>3. birt-2.3.2-engineapi</div>
<div> </div>
<div>I am using this with Apache POI functionality for handling excel files (POI 3.9). I read on some other forums that BIRT runtime has a conflict with Apache POI. Can anyone please help me out. How do i resolve this issue.</div>
</div>
<div> </div>
<div> </div>
Find more posts tagged with
Comments
There are no comments yet