Why doesn't Websphere like BIRT?

℡╲_俬逩灬. 提交于 2019-12-05 10:32:27

I had exactly the same error as yours. I am using BIRT 3.7.2 and IBM WAS 8.5

With reference to the bug detailed below, org.eclipse.core.runtime.CoreException when restarting the ReportEngine

and the actual reason of the bug, specified below, ServiceLauncher.shutdown() doesn't release default RegistryProvider

I added the following line before the Platform.startup(..) call RegistryProviderFactory.releaseDefault();

After this, BIRT reports are working fine.

But, I'm doubtful, as to whether this will break anything in WAS's runtime or not. The reason for this is ...

As explained in the bug, this exception occurs when Platform start-up is attempted for a second time. Here, on Platform.shutdown(), the RegistryProvider is not released, and hence the exception.

Now, in my case, IBM Websphere 8.5 internally uses OSGi and hence starts OSGi Platform. Hence, when our application attempts to start the Platform again (the second start), the exception occurs. My concern here is, this should not break anything with WAS’s runtime (as it uses OSGi internally).

The Registry Provider is not null, as its set by BIRT runtime, so, the only problem here can be of Class Version mismatch i.e., WAS’s Registry Provider and BIRTs Registry Provider, if different, then version clashes.

I'm not sure of the solution i have used. Experts, please guide.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!