Port jswidgets-plugin to LTS, strange test failures

13 views
Skip to first unread message

Mirko Friedenhagen

unread,
Feb 5, 2012, 3:10:20 PM2/5/12
to jenkin...@googlegroups.com
Hello,

I updated the jswidgets-plugin to use 1.424.2 as core
(https://github.com/jenkinsci/jswidgets-plugin/tree/lts). Now running
the tests fail on Mac OS X as well as Linux

I get a lot of stack traces like:
--- snip ---
"1222269888@qtp-1163333468-1 - Acceptor0
SocketC...@0.0.0.0:50021" Id=22 Group=main RUNNABLE (in native)
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:408)
- locked java.net.SocksSocketImpl@51493995
at java.net.ServerSocket.implAccept(ServerSocket.java:462)
at java.net.ServerSocket.accept(ServerSocket.java:430)
at org.mortbay.jetty.bio.SocketConnector.accept(SocketConnector.java:99)
at org.mortbay.jetty.AbstractConnector$Acceptor.run(AbstractConnector.java:708)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
--- snap ---

On Mac OS X the tests fail with:
--- snip ---
Feb 5, 2012 8:57:18 PM com.gargoylesoftware.htmlunit.WebClient
printContentIfNecessary
INFO: statusCode=[500] contentType=[text/html]
Feb 5, 2012 8:57:18 PM com.gargoylesoftware.htmlunit.WebClient
printContentIfNecessary
INFO: <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 500 Lexical error at line 1, column 9. Encountered: "?"
(63), after : ""</title>
</head>
<body><h2>HTTP ERROR 500</h2>
<p>Problem accessing /job/svntest/4/. Reason:
<pre> Lexical error at line 1, column 9. Encountered: "?" (63),
after : ""</pre></p><h3>Caused
by:</h3><pre>org.apache.commons.jexl.parser.TokenMgrError: Lexical
error at line 1, column 9. Encountered: "?" (63), after : ""
at org.apache.commons.jexl.parser.ParserTokenManager.getNextToken(ParserTokenManager.java:756)
at org.apache.commons.jexl.parser.Parser.jj_scan_token(Parser.java:3165)
at org.apache.commons.jexl.parser.Parser.jj_3R_57(Parser.java:2626)
at org.apache.commons.jexl.parser.Parser.jj_3R_38(Parser.java:2755)
at org.apache.commons.jexl.parser.Parser.jj_3R_33(Parser.java:2681)
at org.apache.commons.jexl.parser.Parser.jj_3R_16(Parser.java:2707)
at org.apache.commons.jexl.parser.Parser.jj_3_2(Parser.java:2974)
at org.apache.commons.jexl.parser.Parser.jj_2_2(Parser.java:1988)
at org.apache.commons.jexl.parser.Parser.Statement(Parser.java:1502)
at org.apache.commons.jexl.parser.Parser.JexlScript(Parser.java:58)
at org.apache.commons.jexl.parser.Parser.parse(Parser.java:17)
at org.apache.commons.jexl.ExpressionFactory.createNewExpression(ExpressionFactory.java:116)
at org.apache.commons.jexl.ExpressionFactory.createExpression(ExpressionFactory.java:94)
at hudson.ExpressionFactory2.createExpression(ExpressionFactory2.java:25)
at org.kohsuke.stapler.jelly.CustomJellyContext$CustomXMLParser.createExpression(CustomJellyContext.java:147)
--- snap ---

while on Linux I see:
--- snip ---
testJsBuildActionWithChanges(hudson.plugins.jswidgets.PluginTest)
Time elapsed: 5.02 sec <<< ERROR!
com.gargoylesoftware.htmlunit.ElementNotFoundException:
elementName=[a] attributeName=[href]
attributeValue=[job/svntest/4/jswidgets]
at com.gargoylesoftware.htmlunit.html.HtmlElement.getOneHtmlElementByAttribute(HtmlElement.java:568)
at com.gargoylesoftware.htmlunit.html.HtmlPage.getAnchorByHref(HtmlPage.java:532)
at hudson.plugins.jswidgets.PluginTest.checkSubJelly(PluginTest.java:262)
at hudson.plugins.jswidgets.PluginTest.testJsBuildAction(PluginTest.java:240)
at hudson.plugins.jswidgets.PluginTest.testJsBuildActionWithChanges(PluginTest.java:147)
--- snap ---

The last release was based on org.jvnet.hudson.plugins:plugin:1.388
and there all the tests ran fine during release. I have no clue what
is going wrong here.
Any hints would be appreciated.

Regards Mirko
--
http://illegalstateexception.blogspot.com/
https://github.com/mfriedenhagen/
https://bitbucket.org/mfriedenhagen/

Mirko Friedenhagen

unread,
Feb 5, 2012, 3:12:53 PM2/5/12
to jenkin...@googlegroups.com
I just did check out jswidgets-1.8 and ran "mvn clean test", all tests
succeeded.

Regards Mirko

Mirko Friedenhagen

unread,
Feb 12, 2012, 3:36:55 PM2/12/12
to jenkin...@googlegroups.com
I still get these errors and have no clue what is going wrong. With
1.388 everything runs fine. I did update the stapler to version 1.172
which is the one included in jenkins 1.424.2.

Regards Mirko

Mirko Friedenhagen

unread,
Feb 23, 2012, 3:36:05 PM2/23/12
to jenkin...@googlegroups.com
After further investigation there seems to be a difference between
Maven 2.2.1 and Maven 3.0.4. With Maven 2.2.1 all tests are running
succesfully (http://huschteguzzel.de/hudson/view/Dashboard%20jenkinsci%20plugins/job/jenkinsci-jswidgets-plugin-2.2.1/1/consoleText)
while with 3.0.4 five tests are failing
(http://huschteguzzel.de/hudson/view/Dashboard%20jenkinsci%20plugins/job/jenkinsci-jswidgets-plugin/org.jenkins-ci.plugins$jswidgets/691/consoleText)

Any hints?

Regards Mirko

Reply all
Reply to author
Forward
0 new messages