[new Jenkins plugin] run "mvn package" fail on windows

86 views
Skip to first unread message

Zhiwei Liu

unread,
Jan 14, 2013, 7:30:36 AM1/14/13
to jenkin...@googlegroups.com
hello,

I'm a new comer for Jenkins and i want to develop a plugin, so i
followed the step in the Plugin tutorial. i used the online skeleton
generator and run "mvn package", then it download many jars. but it
failed to pass the tests. following is the error.

i have no much experience on web development. does someone give me some hints?
Thanks. Sorry for the bothering.

(my pc is xp)

====

Tests run: 5, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 38.891 sec <<< F
AILURE!

Results :

Tests in error:
org.jvnet.hudson.test.JellyTestSuiteBuilder$JellyTestSuite(org.jvnet.hudson.te
st.junit.FailedTest): class "org.apache.commons.collections.Transformer"'s signe
r information does not match signer information of other classes in the same pac
kage

Tests run: 5, Failures: 0, Errors: 1, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 48.765s
[INFO] Finished at: Mon Jan 14 19:58:56 GMT+08:00 2013
[INFO] Final Memory: 11M/22M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.
9:test (default-test) on project testngpp: There are test failures.
[ERROR]
[ERROR] Please refer to D:\GitHub\testngpp\target\surefire-reports for
the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
eption

=== D:\GitHub\testngpp\target\surefire-reports
-------------------------------------------------------------------------------
Test set: InjectedTest
-------------------------------------------------------------------------------
Tests run: 5, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 38.891
sec <<< FAILURE!
org.jvnet.hudson.test.JellyTestSuiteBuilder$JellyTestSuite(org.jvnet.hudson.test.junit.FailedTest)
Time elapsed: 0.016 sec <<< ERROR!
======= EXCEPTION START ========
Exception class=[java.lang.SecurityException]
com.gargoylesoftware.htmlunit.ScriptException: class
"org.apache.commons.collections.Transformer"'s signer information does
not match signer information of other classes in the same package
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$1.run(JavaScriptEngine.java:134)
at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:529)
at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:536)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.initialize(JavaScriptEngine.java:141)
at com.gargoylesoftware.htmlunit.WebClient.initialize(WebClient.java:1132)
at com.gargoylesoftware.htmlunit.WebWindowImpl.setEnclosedPage(WebWindowImpl.java:103)
at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:325)
at com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:304)
at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:134)
at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:101)
at org.jvnet.hudson.test.HudsonPageCreator.createPage(HudsonPageCreator.java:46)
at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:449)
at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:332)
at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:389)
at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:374)
at org.jvnet.hudson.test.HudsonTestCase$WebClient.getPage(HudsonTestCase.java:1768)
at org.jvnet.hudson.test.HudsonTestCase.tearDown(HudsonTestCase.java:363)
at org.jvnet.hudson.test.JellyTestSuiteBuilder$JellyTestSuite.tearDown(JellyTestSuiteBuilder.java:138)
at org.jvnet.hudson.test.junit.GroupedTest.run(GroupedTest.java:50)
at junit.framework.TestSuite.runTest(TestSuite.java:243)
at junit.framework.TestSuite.run(TestSuite.java:238)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
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:597)
at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:172)
at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:104)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:70)
Caused by: java.lang.SecurityException: class
"org.apache.commons.collections.Transformer"'s signer information does
not match signer information of other classes in the same package
at java.lang.ClassLoader.checkCerts(ClassLoader.java:769)
at java.lang.ClassLoader.preDefineClass(ClassLoader.java:484)
at java.lang.ClassLoader.defineClass(ClassLoader.java:610)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.init(JavaScriptEngine.java:155)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.access$000(JavaScriptEngine.java:68)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$1.run(JavaScriptEngine.java:130)
... 33 more
Enclosed exception:
java.lang.SecurityException: class
"org.apache.commons.collections.Transformer"'s signer information does
not match signer information of other classes in the same package
at java.lang.ClassLoader.checkCerts(ClassLoader.java:769)
at java.lang.ClassLoader.preDefineClass(ClassLoader.java:484)
at java.lang.ClassLoader.defineClass(ClassLoader.java:610)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.init(JavaScriptEngine.java:155)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.access$000(JavaScriptEngine.java:68)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$1.run(JavaScriptEngine.java:130)
at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:529)
at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:536)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.initialize(JavaScriptEngine.java:141)
at com.gargoylesoftware.htmlunit.WebClient.initialize(WebClient.java:1132)
at com.gargoylesoftware.htmlunit.WebWindowImpl.setEnclosedPage(WebWindowImpl.java:103)
at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:325)
at com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:304)
at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:134)
at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:101)
at org.jvnet.hudson.test.HudsonPageCreator.createPage(HudsonPageCreator.java:46)
at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:449)
at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:332)
at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:389)
at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:374)
at org.jvnet.hudson.test.HudsonTestCase$WebClient.getPage(HudsonTestCase.java:1768)
at org.jvnet.hudson.test.HudsonTestCase.tearDown(HudsonTestCase.java:363)
at org.jvnet.hudson.test.JellyTestSuiteBuilder$JellyTestSuite.tearDown(JellyTestSuiteBuilder.java:138)
at org.jvnet.hudson.test.junit.GroupedTest.run(GroupedTest.java:50)
at junit.framework.TestSuite.runTest(TestSuite.java:243)
at junit.framework.TestSuite.run(TestSuite.java:238)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
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:597)
at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:172)
at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:104)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:70)
======= EXCEPTION END ========

BR
Thanks.

punit jain

unread,
Jan 14, 2013, 10:40:09 AM1/14/13
to jenkin...@googlegroups.com
I am also getting the same error.
i tried this earlier also and that time it didn't gave me any error, but this time i am getting this.
--

Thanks and Regards:
Punit Jain

Jesse Glick

unread,
Jan 14, 2013, 12:10:07 PM1/14/13
to jenkin...@googlegroups.com
On 01/14/2013 07:30 AM, Zhiwei Liu wrote:
> i used the online skeleton generator and run "mvn package", then it download many jars. but it failed to pass the tests.

I am unable to reproduce on Linux using JDK 7u11 and Maven 3.0.4, using a newly generated plugin with the parent version set to 1.466. Maybe this is platform-specific?

Peter Ross

unread,
Jan 14, 2013, 4:39:08 PM1/14/13
to jenkin...@googlegroups.com
On 14 January 2013 23:30, Zhiwei Liu <liuzhi...@gmail.com> wrote:
> hello,
>
> I'm a new comer for Jenkins and i want to develop a plugin, so i
> followed the step in the Plugin tutorial. i used the online skeleton
> generator and run "mvn package", then it download many jars. but it
> failed to pass the tests. following is the error.
>
> i have no much experience on web development. does someone give me some hints?
> Thanks. Sorry for the bothering.
>
> (my pc is xp)
>
I'm not sure if this is the issue, but you really need to use maven 3,
so I would try with the same versions Jesse used and see how you go

Pete

Zhiwei Liu

unread,
Jan 14, 2013, 7:40:32 PM1/14/13
to jenkin...@googlegroups.com
Thank you all. i use apache-maven-3.0.4 on windows.

my plugin's name is testngpp. i generated the skeleton from here
http://plugin-generator.jenkins-ci.org/. and then i run "mvn package".
the error will be there. i didn't do anything special.

is this related with the JDK version?

mvn --version
Apache Maven 3.0.4 (r1232337; 2012-01-17 16:44:56+0800)
Maven home: D:\Tools\apache-maven-3.0.4\bin\..
Java version: 1.6.0_17, vendor: Sun Microsystems Inc.
Java home: D:\Program Files\Java\jdk1.6.0_17\jre
Default locale: zh_CN, platform encoding: GB18030
OS name: "windows xp", version: "5.1", arch: "x86", family: "windows"

hi Jain,
you have the same problem with me. have you fixed it now?

Thanks.
==

Jesse Glick

unread,
Jan 15, 2013, 1:40:26 PM1/15/13
to jenkin...@googlegroups.com
On 01/14/2013 07:40 PM, Zhiwei Liu wrote:
> is this related with the JDK version?

I just checked a newly generated plugin using 6u35 on Windows XP using Maven 3.0.4 and it was fine. If in doubt, upgrade to the latest JDK (7u11).

Zhiwei Liu

unread,
Jan 15, 2013, 7:49:46 PM1/15/13
to jenkin...@googlegroups.com
it's ok now. i upgraded to the lastest JDK and deleted all previous
work and start again including the setting file in .m2. it's ok now.

Thanks much for your supporting.
Reply all
Reply to author
Forward
0 new messages