Running application from testNG fin eclipse java.lang.SecurityException: class "org.osgi.framework.BundleException"'s signer information does not match signer information of other classes in the same package

56 views
Skip to first unread message

Rakesh Singh

unread,
Aug 26, 2016, 6:34:03 AM8/26/16
to testng-users
Getting below exception while running my application from testNG in eclipse


java.lang.SecurityException: class "org.osgi.framework.BundleException"'s signer information does not match signer information of other classes in the same package
at java.lang.ClassLoader.checkCerts(ClassLoader.java:898)
at java.lang.ClassLoader.preDefineClass(ClassLoader.java:668)
at java.lang.ClassLoader.defineClass(ClassLoader.java:761)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at com.informatica.sdk.adapter.utils.impl.OSGiUtilsImpl.osgiInit(OSGiUtilsImpl.java:41)
at com.informatica.cci.reginfo.impl.AdapterInfoImpl.initEnv(AdapterInfoImpl.java:29)
at com.informatica.CCI.MGF.test.RuntimeAllExpr.setUpEnv(RuntimeAllExpr.java:123)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:100)
at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:515)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:216)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:143)
at org.testng.TestRunner.beforeRun(TestRunner.java:624)
at org.testng.TestRunner.run(TestRunner.java:592)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:366)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:361)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:319)
at org.testng.SuiteRunner.run(SuiteRunner.java:268)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1264)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1189)
at org.testng.TestNG.runSuites(TestNG.java:1104)
at org.testng.TestNG.run(TestNG.java:1076)
at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:126)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:152)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:57)

Julien Herr

unread,
Aug 26, 2016, 11:35:03 AM8/26/16
to testng-users
Hi,

I've just created a new issue for that: https://github.com/cbeust/testng-eclipse/issues/279

XuQing Tan

unread,
Aug 26, 2016, 6:26:12 PM8/26/16
to testng-users
hi Rakesh Singh 

if your test can be run from command line, e.g if your project managed by Maven, calling `mvn -e test`, will the test be passed then?

Rakesh Singh

unread,
Aug 27, 2016, 2:35:55 AM8/27/16
to testng...@googlegroups.com
Hi Tan, 

I tried with command line its working fine , i feel with testng there is some issue in eclipse .

Regards
Rakesh Singh

--
You received this message because you are subscribed to a topic in the Google Groups "testng-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/testng-users/FQkSgp14XV8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to testng-users+unsubscribe@googlegroups.com.
To post to this group, send email to testng...@googlegroups.com.
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.

Julien Herr

unread,
Aug 27, 2016, 2:52:41 AM8/27/16
to testng-users
I think there is a classpath issue between the osgi engine from the project and the one used by Eclipse.
Is it possible ?

Rakesh Singh

unread,
Aug 27, 2016, 3:49:59 AM8/27/16
to testng...@googlegroups.com
Hi Tan, 

I tried with command line its working fine , i feel with testng there is some issue in eclipse because without testng its working fine in eclipse.

Regards

On Sat, Aug 27, 2016 at 3:56 AM, XuQing Tan <miss...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages