Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Cannot start OSGI framework(Caused by: java.lang.SecurityException: class "org.eclipse.core.runtime.IExtensionRegistry"'s signer information does not match signer information of other classes in the same package)
Cannot start OSGI framework [message #1005747] Mon, 28 January 2013 14:34 Go to next message
Vinoth Mahalakshmi is currently offline Vinoth Mahalakshmi
Messages: 7
Registered: December 2012
Junior Member
I tried to run the report engine and ended up with the following exception.

Steps followed :

1. Download Birt Runtime and added jars from birt-runtime-4_2_1\ReportEngine\lib to my build path.

2. tried to run the report engine in java.

Error log :


2013-01-24 11:52:00,899 INFO com.ebao.nic.gs.portal.integration.inbound.bpel.NBPortalQuoteServiceImpl.java:361 - ::::Calling proposal PDF::::null
2013-01-24 11:52:00,908 INFO com.ebao.nic.gs.portal.integration.inbound.Pdf.ProposalPDF.java:49 - >>>>>>>>>>>>>>>>>>>>>>>>>>>Before Engine start
org.eclipse.birt.core.exception.BirtException: error.CannotStartupOSGIPlatform
at org.eclipse.birt.core.framework.Platform.startup(Platform.java:81)
at com.ebao.nic.gs.portal.integration.inbound.Pdf.ProposalPDF.startEngine(ProposalPDF.java:33)
at com.ebao.nic.gs.portal.integration.inbound.Pdf.ProposalPDF.proposalPrint(ProposalPDF.java:51)
at com.ebao.nic.gs.portal.integration.inbound.bpel.NBPortalQuoteServiceImpl.createOrUpdateQuote(NBPortalQuoteServiceImpl.java:364)
at com.ebao.nic.gs.portal.integration.inbound.bpel.NBPortalQuoteServiceImpl.saveQuote(NBPortalQuoteServiceImpl.java:181)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.ebao.pub.soa.esb.action.InvokeServiceAction.invoke(InvokeServiceAction.java:71)
at com.ebao.pub.soa.esb.action.InvokeAction.processImplement(InvokeAction.java:192)
at com.ebao.pub.soa.esb.action.AbstractServiceAction.process(AbstractServiceAction.java:39)
at com.ebao.pub.soa.esb.action.InvokeServiceAction.invoke(InvokeServiceAction.java:83)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.ebao.pub.soa.esb.Service.invokeInVm(Service.java:122)
at com.ebao.pub.soa.esb.webservices.invoker.esb.EsbInvoker.invokeMethod(EsbInvoker.java:60)
at com.ebao.pub.soa.esb.webservices.invoker.esb.EsbInvoker.invoke(EsbInvoker.java:36)
at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:56)
at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)
at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:92)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:221)
at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:78)
at org.apache.cxf.transport.servlet.ServletDestination.invoke(ServletDestination.java:92)
at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:214)
at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:151)
at org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java:170)
at org.apache.cxf.transport.servlet.AbstractCXFServlet.doPost(AbstractCXFServlet.java:148)
at com.ebao.pub.soa.esb.servlet.CXFConfigControllerService.doPost(CXFConfigControllerService.java:158)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.ebao.foundation.module.web.filter.ThreadBindResourceFilter.doFilter(ThreadBindResourceFilter.java:46)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.ebao.foundation.module.security.filters.UserTraceFilter.doFilter(UserTraceFilter.java:71)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.ebao.foundation.module.web.filter.ProfileFilter.executeFilter(ProfileFilter.java:91)
at com.ebao.foundation.module.web.filter.GenericFilter.doFilter(GenericFilter.java:30)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.ebao.framework.RootFilter.doFilter(RootFilter.java:42)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.ebao.foundation.module.web.filter.SynchronizerTokenFilter.executeFilter(SynchronizerTokenFilter.java:77)
at com.ebao.foundation.module.web.filter.GenericFilter.doFilter(GenericFilter.java:30)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.ebao.nic.integration.filter.PermissionFilter.executeFilter(PermissionFilter.java:110)
at com.ebao.foundation.module.web.filter.GenericFilter.doFilter(GenericFilter.java:30)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.ebao.foundation.module.web.filter.ThreadBindResourceCleanFilter.executeFilter(ThreadBindResourceCleanFilter.java:54)
at com.ebao.foundation.module.web.filter.GenericFilter.doFilter(GenericFilter.java:30)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.ebao.foundation.module.web.filter.SetCharacterEncodingFilter.executeFilter(SetCharacterEncodingFilter.java:37)
at com.ebao.foundation.module.web.filter.GenericFilter.doFilter(GenericFilter.java:30)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.ebao.pub.workflow.jbpm.web.filter.JbpmContextFilter.doFilter(JbpmContextFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.ebao.nic.integration.NICAuthenticationFilter.executeFilter(NICAuthenticationFilter.java:98)
at com.ebao.foundation.module.web.filter.GenericFilter.doFilter(GenericFilter.java:30)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.ebao.nic.framework.filter.ExceptionFilter.doFilter(ExceptionFilter.java:48)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:775)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:704)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:897)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.SecurityException: class "org.eclipse.core.runtime.IExtensionRegistry"'s signer information does not match signer information of other classes in the same package
at java.lang.ClassLoader.checkCerts(ClassLoader.java:775)
at java.lang.ClassLoader.preDefineClass(ClassLoader.java:487)
at java.lang.ClassLoader.defineClass(ClassLoader.java:614)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1880)
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:889)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1353)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1232)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1880)
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:889)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1353)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1232)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at org.eclipse.birt.core.framework.jar.ServicePlatform.<init>(ServicePlatform.java:46)
at org.eclipse.birt.core.framework.jar.ServiceLauncher.startup(ServiceLauncher.java:45)
at org.eclipse.birt.core.framework.Platform.startup(Platform.java:75)
... 86 more
Re: Cannot start OSGI framework [message #1005788 is a reply to message #1005747] Mon, 28 January 2013 17:50 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

What does your code look like? Make sure you are not setting BIRTHome in the EngineConfig instance.

Jason
Re: Cannot start OSGI framework [message #1005853 is a reply to message #1005788] Tue, 29 January 2013 05:28 Go to previous messageGo to next message
Vinoth Mahalakshmi is currently offline Vinoth Mahalakshmi
Messages: 7
Registered: December 2012
Junior Member
I have designed the rptdesign using BIRT perspective.


IReportEngine engine = null;
EngineConfig config = null;

try {

config = new EngineConfig();
Platform.startup(config);
final IReportEngineFactory FACTORY = (IReportEngineFactory) Platform
.createFactoryObject(IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY);
engine = FACTORY.createReportEngine(config);
IReportRunnable design = null;
design = engine.openReportDesign("D:/Codebase/PslFormAPI/Reports/MCY.rptdesign");

IRunAndRenderTask task = engine.createRunAndRenderTask(design);
PDFRenderOption PDF_OPTIONS = new PDFRenderOption();
PDF_OPTIONS.setOutputFileName("c:/temp/test.pdf");
PDF_OPTIONS.setOutputFormat("pdf");
task.setRenderOption(PDF_OPTIONS);

task.run();

task.close();
engine.destroy();


} catch (final Exception EX) {
EX.printStackTrace();
}
finally {
Platform.shutdown();
RegistryProviderFactory.releaseDefault();

}
Re: Cannot start OSGI framework [message #1006250 is a reply to message #1005853] Wed, 30 January 2013 15:16 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Vinoth

A couple of things. You should only startup the Platform once for the life of your application. Wrap the engine access in a singleton and use it to create tasks as you need them. That said, did you only use the jars from the ReportEngine/lib directory? Verify that you do not have a platform directory in your web-inf. Also take a look at this thread:
http://www.birt-exchange.org/org/forum/index.php/topic/23413-upgrade-to-3-7/

Jason
Previous Topic:Date filtering
Next Topic:multiples values from parameter
Goto Forum:
  


Current Time: Tue Sep 16 09:49:44 GMT 2014

Powered by FUDForum. Page generated in 0.03224 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software