Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 912408

Summary: UIBinder tests are not launched and fail instead in preparation phase
Product: [Retired] JBoss Enterprise WFK Platform 2 Reporter: Marek Novotny <mnovotny>
Component: ErraiAssignee: Pavel SLegr <pslegr>
Status: CLOSED CURRENTRELEASE QA Contact: Stefan Miklosovic <smikloso>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.2.0CC: cbrock, csadilek, jfuerth, oskutka, pslegr
Target Milestone: ER1   
Target Release: 2.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
WFK 2.2.0-DR2, Errai 2.2.0.Final-redhat-1
Last Closed: 2013-05-14 14:53:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Marek Novotny 2013-02-18 16:02:36 UTC
Description of problem:
errai-uibinder reports failing tests while launching them. Jacoco ${argLine} is causing that for maven-surefire-plugin 2.5 and 2.7.2. 2.10 and higher shows the same exception, but doesn't cause the failure of test phase.

How reproducible:
mvn clean install -s ../settings.xml
 
Actual results:
Error with Exception in thread "main" java.lang.NoClassDefFoundError: ${argLine}

Expected results:
build succesfully passes

Additional info:

[INFO] --- maven-surefire-plugin:2.5:test (default-test) @ errai-uibinder ---
[INFO] Surefire report directory: /home/mnovotny/projects/git/wfk/errai/errai-uibinder/target/surefire-reports
Exception in thread "main" java.lang.NoClassDefFoundError: ${argLine}
Caused by: java.lang.ClassNotFoundException: ${argLine}
	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

Comment 1 Marek Novotny 2013-02-19 11:50:58 UTC
upgraded maven-surefire-plugin to 2.10-redhat-1 solved the failure. Build is not now interrupted by that exception.

http://git.app.eng.bos.redhat.com/?p=errai/errai.git;a=commitdiff;h=a74fa4f3b02b9d59f695c13fa1de0c6e7868b1d9

and 

http://git.app.eng.bos.redhat.com/?p=errai/errai.git;a=commitdiff;h=b99d2eefd76533204bfd6e9d18f271e6838ee1de

Comment 2 Karel Piwko 2013-02-20 11:24:34 UTC
I think this won't happen if you set -DargLine= to some value.

Comment 3 Marek Novotny 2013-02-20 12:31:04 UTC
well, i tried that and it didn't help (still trying to find value of ${argLine}, so I spent on that quite lot and the result is that it is a combination of old maven-surefire-plugin (< 2.10) and that jacoco plugin issue. Jacoco manipulation and launch shouldn't be used for standard build, jacoco profile is the best target. So for standard build we need to run just unit tests and deploy the artifacts.

And that now works even on jenkins CI job are 2 failures (https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/WFK/view/WFK-2.2-CI/job/errai-2.2-wfk/49/), I can't reproduce them on my local environment and suspect jenkins from not working correctly.

Comment 5 Karel Piwko 2013-05-14 14:53:48 UTC
Closed as CURRENTRELEASE, part of WFK 2.2.0 distributables.