Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@AdditionalPackages/@AdditionalClasspath fails finding classes on Jenkins in Linux setup #102

Closed
q1j8 opened this issue Mar 6, 2017 · 2 comments

Comments

@q1j8
Copy link

q1j8 commented Mar 6, 2017

Annotations works fine running locally on windows development machince, but on Jenkins in Linux env.

Build output:


08:39:48 [INFO] — maven-jar-plugin:3.0.2:jar (default-jar) @ proposal-description —
08:39:48 [INFO] Building jar: /usr/data/jenkins2/workspace/xt_feature_feature_nrp-2566-FKU6VXG6M5BWWOYPB6DZ37MQXUBENW7KE34TKNOIDVV2VYWNSJGA@2/proposal-description/target/proposal-description-0.0.1-SNAPSHOT.jar


08:39:58 Running dk.nykredit.proposaldescription.exposure.api.ProposalDescriptionFacadeIT
08:39:58 2017-03-03 08:39:57,845 na DEBUG org.jglue.cdiunit.internal.WeldTestUrlDeployment - CDI classpath entries discovered:
08:39:58 2017-03-03 08:39:57,845 na DEBUG org.jglue.cdiunit.internal.WeldTestUrlDeployment - file:/usr/data/jenkins2/workspace/xt_feature_feature_nrp-2566-FKU6VXG6M5BWWOYPB6DZ37MQXUBENW7KE34TKNOIDVV2VYWNSJGA%402/proposal-description/target/proposal-description-0.0.1-SNAPSHOT.jar
...
08:39:58 2017-03-03 08:39:57,846 na DEBUG org.jglue.cdiunit.internal.WeldTestUrlDeployment - file:/usr/data/jenkins2/workspace/xt_feature_feature_nrp-2566-FKU6VXG6M5BWWOYPB6DZ37MQXUBENW7KE34TKNOIDVV2VYWNSJGA@2/proposal-description/target/surefire/surefirebooter5823997269050975354.jar
08:39:58 2017-03-03 08:39:57,846 na DEBUG org.jglue.cdiunit.internal.WeldTestUrlDeployment - file:/usr/data/jenkins2/workspace/xt_feature_feature_nrp-2566-FKU6VXG6M5BWWOYPB6DZ37MQXUBENW7KE34TKNOIDVV2VYWNSJGA%402/proposal-description/target/test-classes/
...
08:39:58 2017-03-03 08:39:57,896 na WARN org.reflections.Reflections - could not create Dir using jarFile from url file:/usr/data/jenkins2/workspace/xt_feature_feature_nrp-2566-FKU6VXG6M5BWWOYPB6DZ37MQXUBENW7KE34TKNOIDVV2VYWNSJGA%25402/proposal-description/target/proposal-description-0.0.1-SNAPSHOT.jar. skipping.
08:39:58 java.lang.NullPointerException
08:39:58 at java.util.zip.ZipFile.(ZipFile.java:207)
08:39:58 at java.util.zip.ZipFile.(ZipFile.java:149)


The jar has folder ending with GA@2, while the cdi runner lookup sees GA%402.
In the end it reports an error regarding folder GA%25402.
%40” is hex for @, and “%25” is hex for “%”, so it seems to go wrong somewhere in the "search" process using the org.reflections library?

@clausfod
Copy link

clausfod commented Mar 10, 2017

I guess it has been solved in the latest release of org.reflections -> https://github.com/ronmamo/reflections/issues?utf8=%E2%9C%93&q=is%3Aissue%20java.lang.NullPointerException

Maybe an upgrade to 0.9.11 is needed to fix this ?

PR created: #104

@seanf
Copy link
Collaborator

seanf commented Aug 21, 2017

This should have been fixed by #105 in CDI-Unit 4.0. Please let me know if it's still happening though.

@seanf seanf closed this as completed Aug 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants