[JIRA] (JENKINS-55202) Performance Signature Plugin: JAXB API is missing with Java 11

5 views
Skip to first unread message

raphael.pionke@t-systems.com (JIRA)

unread,
Dec 14, 2018, 8:53:01 AM12/14/18
to jenkinsc...@googlegroups.com
Raphael Pionke updated an issue
 
Jenkins / Bug JENKINS-55202
Performance Signature Plugin: JAXB API is missing with Java 11
Change By: Raphael Pionke
Labels: java-11 java11-compatibility
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

raphael.pionke@t-systems.com (JIRA)

unread,
Dec 14, 2018, 8:53:02 AM12/14/18
to jenkinsc...@googlegroups.com
Raphael Pionke updated an issue
Change By: Raphael Pionke
Summary: javax.xml.bind.JAXBException Performance Signature Plugin : Implementation of JAXB - API has not been found on module path or classpath is missing with Java 11

raphael.pionke@t-systems.com (JIRA)

unread,
Dec 14, 2018, 8:54:02 AM12/14/18
to jenkinsc...@googlegroups.com
Raphael Pionke updated an issue
Change By: Raphael Pionke
Labels: java-11 java11 java11 -compatibility

raphael.pionke@t-systems.com (JIRA)

unread,
Dec 14, 2018, 10:01:02 AM12/14/18
to jenkinsc...@googlegroups.com
Raphael Pionke assigned an issue to Unassigned
Change By: Raphael Pionke
Assignee: Raphael Pionke

o.v.nenashev@gmail.com (JIRA)

unread,
Dec 16, 2018, 9:14:02 AM12/16/18
to jenkinsc...@googlegroups.com
Oleg Nenashev commented on Bug JENKINS-55202
 
Re: Performance Signature Plugin: JAXB API is missing with Java 11

That's strange. JAXB should be bundled in Docker.

Raphael Pionke any chance you are passing custom JAVA_OPTS?

 

batmat@batmat.net (JIRA)

unread,
Dec 17, 2018, 6:29:02 AM12/17/18
to jenkinsc...@googlegroups.com

FTR, I just started a fresh container using jenkins/jenkins:jdk11 image, and docker exec shows the following:

ps aux | grep java
jenkins      9  131 14.2 9939268 2280448 ?     Sl   11:25   0:59 java -p /usr/share/jenkins/ref/java_cp/jaxb-api.jar:/usr/share/jenkins/ref/java_cp/javax.activation.jar: --add-modules java.xml.bind,java.activation -cp /usr/share/jenkins/ref/java_cp/jaxb-impl.jar:/usr/share/jenkins/ref/java_cp/jaxb-core.jar -Duser.home=/var/jenkins_home -jar /usr/share/jenkins/jenkins.war --enable-future-java

Raphael Pionke in addition to Oleg's question, could you please do the same inside your container and show us what your ps aux | grep java looks like?

Thank you!

raphael.pionke@t-systems.com (JIRA)

unread,
Dec 17, 2018, 6:49:02 AM12/17/18
to jenkinsc...@googlegroups.com

Oleg Nenashev Baptiste Mathus i got the following from docker top:

{
  "Titles" : [ "PID", "USER", "TIME", "COMMAND" ],
  "Processes" : [ [ "7189", "1000", "0:00", "/sbin/tini -- /usr/local/bin/jenkins.sh" ], [ "7227", "1000", "1:47", "java -p /usr/share/jenkins/ref/java_cp/jaxb-api.jar:/usr/share/jenkins/ref/java_cp/javax.activation.jar: --add-modules java.xml.bind,java.activation -cp /usr/share/jenkins/ref/java_cp/jaxb-impl.jar:/usr/share/jenkins/ref/java_cp/jaxb-core.jar -Duser.home=/var/jenkins_home -jar /usr/share/jenkins/jenkins.war --enable-future-java" ] ]
}

raphael.pionke@t-systems.com (JIRA)

unread,
Dec 17, 2018, 6:57:02 AM12/17/18
to jenkinsc...@googlegroups.com
Raphael Pionke edited a comment on Bug JENKINS-55202
[~oleg_nenashev] [~batmat] i got the following from docker top:
{code
:json }

{
  "Titles" : [ "PID", "USER", "TIME", "COMMAND" ],
  "Processes" : [ [ "7189", "1000", "0:00", "/sbin/tini -- /usr/local/bin/jenkins.sh" ], [ "7227", "1000", "1:47", "java -p /usr/share/jenkins/ref/java_cp/jaxb-api.jar:/usr/share/jenkins/ref/java_cp/javax.activation.jar: --add-modules java.xml.bind,java.activation -cp /usr/share/jenkins/ref/java_cp/jaxb-impl.jar:/usr/share/jenkins/ref/java_cp/jaxb-core.jar -Duser.home=/var/jenkins_home -jar /usr/share/jenkins/jenkins.war --enable-future-java" ] ]
}

I uploaded sample plugin code based on the hello-world-plugin: https://github.com/rpionke/jaxb-test
{code}

raphael.pionke@t-systems.com (JIRA)

unread,
Dec 17, 2018, 6:59:02 AM12/17/18
to jenkinsc...@googlegroups.com
Raphael Pionke edited a comment on Bug JENKINS-55202
[~oleg_nenashev] [~batmat] i got the following from docker top:
{code :java }

{
  "Titles" : [ "PID", "USER", "TIME", "COMMAND" ],
  "Processes" : [ [ "7189", "1000", "0:00", "/sbin/tini -- /usr/local/bin/jenkins.sh" ], [ "7227", "1000", "1:47", "java -p /usr/share/jenkins/ref/java_cp/jaxb-api.jar:/usr/share/jenkins/ref/java_cp/javax.activation.jar: --add-modules java.xml.bind,java.activation -cp /usr/share/jenkins/ref/java_cp/jaxb-impl.jar:/usr/share/jenkins/ref/java_cp/jaxb-core.jar -Duser.home=/var/jenkins_home -jar /usr/share/jenkins/jenkins.war --enable-future-java" ] ]
}
{code}
 

I uploaded sample plugin code based on the hello-world-plugin: [ https://github.com/rpionke/jaxb-test {code} ]

The unit tests fail and the builder inside hpi:run with the jenkins/jenkins:jdk11 image

raphael.pionke@t-systems.com (JIRA)

unread,
Dec 17, 2018, 6:59:02 AM12/17/18
to jenkinsc...@googlegroups.com
Raphael Pionke edited a comment on Bug JENKINS-55202
[~oleg_nenashev] [~batmat] i got the following from docker top:
{code:java}
{
  "Titles" : [ "PID", "USER", "TIME", "COMMAND" ],
  "Processes" : [ [ "7189", "1000", "0:00", "/sbin/tini -- /usr/local/bin/jenkins.sh" ], [ "7227", "1000", "1:47", "java -p /usr/share/jenkins/ref/java_cp/jaxb-api.jar:/usr/share/jenkins/ref/java_cp/javax.activation.jar: --add-modules java.xml.bind,java.activation -cp /usr/share/jenkins/ref/java_cp/jaxb-impl.jar:/usr/share/jenkins/ref/java_cp/jaxb-core.jar -Duser.home=/var/jenkins_home -jar /usr/share/jenkins/jenkins.war --enable-future-java" ] ]
}
{code}
 

I uploaded sample plugin code based on the hello-world-plugin: [https://github.com/rpionke/jaxb-test]

The unit tests
fail and the builder inside hpi:run with the jenkins/jenkins:jdk11 image

raphael.pionke@t-systems.com (JIRA)

unread,
Dec 17, 2018, 8:01:02 AM12/17/18
to jenkinsc...@googlegroups.com
Raphael Pionke edited a comment on Bug JENKINS-55202
[~oleg_nenashev] [~batmat] i got the following from docker top:
{code:java}
{
  "Titles" : [ "PID", "USER", "TIME", "COMMAND" ],
  "Processes" : [ [ "7189", "1000", "0:00", "/sbin/tini -- /usr/local/bin/jenkins.sh" ], [ "7227", "1000", "1:47", "java -p /usr/share/jenkins/ref/java_cp/jaxb-api.jar:/usr/share/jenkins/ref/java_cp/javax.activation.jar: --add-modules java.xml.bind,java.activation -cp /usr/share/jenkins/ref/java_cp/jaxb-impl.jar:/usr/share/jenkins/ref/java_cp/jaxb-core.jar -Duser.home=/var/jenkins_home -jar /usr/share/jenkins/jenkins.war --enable-future-java" ] ]
}
{code}
 

I uploaded sample plugin code based on the hello-world-plugin: [https://github.com/rpionke/jaxb-test]

The unit tests and the builder are failing inside hpi:run with the jenkins/jenkins:jdk11 image

batmat@batmat.net (JIRA)

unread,
Dec 22, 2018, 4:36:03 PM12/22/18
to jenkinsc...@googlegroups.com
Baptiste Mathus updated an issue
 
Change By: Baptiste Mathus
Labels: java11 java11-compatibility triaged

o.v.nenashev@gmail.com (JIRA)

unread,
Jan 30, 2019, 4:25:01 AM1/30/19
to jenkinsc...@googlegroups.com

batmat@batmat.net (JIRA)

unread,
Jan 31, 2019, 7:09:03 AM1/31/19
to jenkinsc...@googlegroups.com
Baptiste Mathus started work on Bug JENKINS-55202
 
Change By: Baptiste Mathus
Status: Open In Progress

batmat@batmat.net (JIRA)

unread,
Jan 31, 2019, 9:50:02 AM1/31/19
to jenkinsc...@googlegroups.com

batmat@batmat.net (JIRA)

unread,
Jan 31, 2019, 9:51:46 AM1/31/19
to jenkinsc...@googlegroups.com
Baptiste Mathus stopped work on Bug JENKINS-55202
 
Change By: Baptiste Mathus
Status: In Progress Open

batmat@batmat.net (JIRA)

unread,
Jan 31, 2019, 9:52:10 AM1/31/19
to jenkinsc...@googlegroups.com
Baptiste Mathus assigned an issue to Unassigned
Change By: Baptiste Mathus
Assignee: Baptiste Mathus

batmat@batmat.net (JIRA)

unread,
Jan 31, 2019, 9:52:10 AM1/31/19
to jenkinsc...@googlegroups.com

batmat@batmat.net (JIRA)

unread,
Jan 31, 2019, 9:52:19 AM1/31/19
to jenkinsc...@googlegroups.com

batmat@batmat.net (JIRA)

unread,
Jan 31, 2019, 9:53:02 AM1/31/19
to jenkinsc...@googlegroups.com

batmat@batmat.net (JIRA)

unread,
Jan 31, 2019, 9:53:02 AM1/31/19
to jenkinsc...@googlegroups.com
 
Change By: Baptiste Mathus
Status: In Progress Open

raphael.pionke@t-systems.com (JIRA)

unread,
Jan 31, 2019, 10:15:03 AM1/31/19
to jenkinsc...@googlegroups.com
Raphael Pionke updated Bug JENKINS-55202
 

I tested the new release of the JAXB Plugin and it works with and without a container. I will release the plugin in the next few days.

Thanks a lot for your effort!

Change By: Raphael Pionke
Status: Open Fixed but Unreleased
Assignee: Raphael Pionke
Resolution: Fixed

batmat@batmat.net (JIRA)

unread,
Feb 5, 2019, 3:43:02 AM2/5/19
to jenkinsc...@googlegroups.com
 
Re: Performance Signature Plugin: JAXB API is missing with Java 11

Raphael Pionke Jenkins 2.163 has been released with the core JAXB patch, see https://jenkins.io/changelog/#v2.163

It would be great if you can test the current last 3.1.0 release of your plugin on Jenkins 2.163 on a Java 11 runtime, and report here the outcome.

This should work without issue.

Thanks!

 

raphael.pionke@t-systems.com (JIRA)

unread,
Feb 25, 2019, 4:36:02 AM2/25/19
to jenkinsc...@googlegroups.com

m.vilacides@gmail.com (JIRA)

unread,
Feb 26, 2019, 4:19:01 AM2/26/19
to jenkinsc...@googlegroups.com
Isa Vilacides updated an issue
Change By: Isa Vilacides
Labels: java11 java11-compatibility triaged scrub

adrien.lecharpentier@gmail.com (JIRA)

unread,
Mar 4, 2019, 4:33:02 AM3/4/19
to jenkinsc...@googlegroups.com
Adrien Lecharpentier updated an issue
Change By: Adrien Lecharpentier
Labels: java11 java11-compatibility scrub triaged

raphael.pionke@t-systems.com (JIRA)

unread,
Apr 5, 2019, 11:33:05 AM4/5/19
to jenkinsc...@googlegroups.com
Raphael Pionke commented on Bug JENKINS-55202
 
Re: Performance Signature Plugin: JAXB API is missing with Java 11

Baptiste Mathus I forgot to answer ...

But i tested all configurations to get this plugin working, with no success. I created a log recorder to get some logs from the javax.xml.bind package:

Apr 05, 2019 5:24:47 PM FINE javax.xml.bind
Apr 05, 2019 5:24:47 PM FINE javax.xml.bindSearching jaxb.properties
Apr 05, 2019 5:24:47 PM FINE javax.xml.bindChecking system property javax.xml.bind.JAXBContextFactory
Apr 05, 2019 5:24:47 PM FINE javax.xml.bind  not found
Apr 05, 2019 5:24:47 PM FINE javax.xml.bindChecking system property javax.xml.bind.context.factory
Apr 05, 2019 5:24:47 PM FINE javax.xml.bind  not found
Apr 05, 2019 5:24:47 PM FINE javax.xml.bindChecking system property javax.xml.bind.JAXBContext
Apr 05, 2019 5:24:47 PM FINE javax.xml.bind  not found
Apr 05, 2019 5:24:47 PM FINE javax.xml.bindSearching META-INF/services
Apr 05, 2019 5:24:47 PM FINE javax.xml.bindUnable to load:META-INF/services/javax.xml.bind.JAXBContext
Apr 05, 2019 5:24:47 PM FINE javax.xml.bindTrying to create the platform default provider
Apr 05, 2019 5:24:47 PM FINE javax.xml.bindUnable to find from OSGi: [javax.xml.bind.JAXBContext]java.lang.ClassNotFoundException: org.glassfish.hk2.osgiresourcelocator.ServiceLoader at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1373) at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1326) at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1079) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521) at java.base/java.lang.Class.forName0(Native Method) at java.base/java.lang.Class.forName(Class.java:315) at javax.xml.bind.ServiceLoaderUtil.lookupUsingOSGiServiceLoader(ServiceLoaderUtil.java:86) at javax.xml.bind.ContextFinder.find(ContextFinder.java:413) at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:721) at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:662) at retrofit2.converter.jaxb.JaxbConverterFactory.contextForType(JaxbConverterFactory.java:74) at retrofit2.converter.jaxb.JaxbConverterFactory.responseBodyConverter(JaxbConverterFactory.java:67) at retrofit2.Retrofit.nextResponseBodyConverter(Retrofit.java:328) at retrofit2.Retrofit.responseBodyConverter(Retrofit.java:311) at retrofit2.HttpServiceMethod.createResponseConverter(HttpServiceMethod.java:68) at retrofit2.HttpServiceMethod.parseAnnotations(HttpServiceMethod.java:46) at retrofit2.ServiceMethod.parseAnnotations(ServiceMethod.java:36) at retrofit2.Retrofit.loadServiceMethod(Retrofit.java:168) at retrofit2.Retrofit$1.invoke(Retrofit.java:147) at com.sun.proxy.$Proxy117.getServerLicense(Unknown Source) at de.tsystems.mms.apm.performancesignature.dynatrace.rest.DTServerConnection.getServerLicense(DTServerConnection.java:255) at de.tsystems.mms.apm.performancesignature.dynatrace.PerfSigStartRecording.perform(PerfSigStartRecording.java:83) at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80) at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67) at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834)
Apr 05, 2019 5:24:47 PM FINE javax.xml.bindTrying to create the platform default provider

So it seems, that something is wrong with the class loaders ...

 

raphael.pionke@t-systems.com (JIRA)

unread,
Apr 5, 2019, 11:35:02 AM4/5/19
to jenkinsc...@googlegroups.com
Raphael Pionke edited a comment on Bug JENKINS-55202
[~batmat] I forgot to answer ...


But i tested all configurations to get this plugin working, with no success. I created a log recorder to get some logs from the javax.xml.bind package:
{noformat}
java.base/java.lang.Thread.run(Thread.java:834)
Apr 05, 2019 5:24:47 PM FINE javax.xml.bindTrying to create the platform default provider{noformat}

So it seems, that something is wrong with the class loaders ...

 

raphael.pionke@t-systems.com (JIRA)

unread,
Apr 6, 2019, 8:11:02 AM4/6/19
to jenkinsc...@googlegroups.com

The same log for java 8:

Apr 06, 2019 2:09:16 PM FINE javax.xml.bindTrying to locate de/tsystems/mms/apm/performancesignature/dynatrace/rest/xml/model/jaxb.properties
Apr 06, 2019 2:09:16 PM FINE javax.xml.bind  not found
Apr 06, 2019 2:09:16 PM FINE javax.xml.bindChecking system property javax.xml.bind.context.factory
Apr 06, 2019 2:09:16 PM FINE javax.xml.bind  not found
Apr 06, 2019 2:09:16 PM FINE javax.xml.bindChecking system property javax.xml.bind.JAXBContext
Apr 06, 2019 2:09:16 PM FINE javax.xml.bind  not found
Apr 06, 2019 2:09:16 PM FINE javax.xml.bindUnable to find from OSGi: javax.xml.bind.JAXBContext
Apr 06, 2019 2:09:16 PM FINE javax.xml.bindChecking META-INF/services
Apr 06, 2019 2:09:16 PM FINE javax.xml.bindUnable to find: META-INF/services/javax.xml.bind.JAXBContext
Apr 06, 2019 2:09:16 PM FINE javax.xml.bindTrying to create the platform default provider
Apr 06, 2019 2:09:16 PM FINE javax.xml.bindTrying to load com.sun.xml.internal.bind.v2.ContextFactory
Apr 06, 2019 2:09:16 PM FINE javax.xml.bindloaded com.sun.xml.internal.bind.v2.ContextFactory from jar:file:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-2.el7_6.x86_64/jre/lib/rt.jar!/com/sun/xml/internal/bind/v2/ContextFactory.class

adrien.lecharpentier@gmail.com (JIRA)

unread,
Apr 8, 2019, 8:16:02 AM4/8/19
to jenkinsc...@googlegroups.com

Raphael Pionke I'm trying to find a solution on this but it seems that I'm failing to reproduce the problem. 

When I try to install the plugin on Jenkins running on Java 8 and on Java 11, the JAXB plugin is installed automatically. The only difference is that I'm using Jenkins 2.164.1 version, not 2.163

Do you have any update on the subject?

raphael.pionke@t-systems.com (JIRA)

unread,
Apr 8, 2019, 8:23:02 AM4/8/19
to jenkinsc...@googlegroups.com

Adrien Lecharpentier yeah i know. The JAXB Plugin is installed and loaded correctly. I don't understand that either.

I created a reproducer in this ticket: https://issues.jenkins-ci.org/browse/JENKINS-56265

 

adrien.lecharpentier@gmail.com (JIRA)

unread,
Apr 8, 2019, 8:44:01 AM4/8/19
to jenkinsc...@googlegroups.com

Ok, I manage the face the issue. Building the job is not producing the problem, trying to add a test case is. Thanks. 

adrien.lecharpentier@gmail.com (JIRA)

unread,
Apr 12, 2019, 4:13:04 AM4/12/19
to jenkinsc...@googlegroups.com

Raphael Pionke I finally found out what is happening here. The retrofit2 library, using JAXB, is not providing a context to JAXB to parse the response. Because of this, JAXB tries to find a context (see here). As it is failing to find one, it falls back to a platform default one: the com.sun.xml.internal.bind.v2.ContextFactory, which doesn't exist in Java 11.

Know that I see what is happening, I'm trying to find a solution.

raphael.pionke@t-systems.com (JIRA)

unread,
Apr 16, 2019, 3:10:03 AM4/16/19
to jenkinsc...@googlegroups.com

Hi Adrien Lecharpentier, i seems to be that the class com.sun.xml.internal.bind.v2.ContextFactory is not found by the ContextFinder.find method. To test this i created a jaxb.properties file with the following content: 

javax.xml.bind.context.factory=com.sun.xml.bind.v2.ContextFactory

The class should be in the class path, cause the jaxb-plugin is providing the class via the jaxb-impl maven dependency. So the real question is why is this class not found, but provided?

adrien.lecharpentier@gmail.com (JIRA)

unread,
Apr 16, 2019, 3:38:02 AM4/16/19
to jenkinsc...@googlegroups.com

I am about the same, just that I used the system property over the jaxb.properties file. Result is the same.

I'm afraid this is because of the fact that the JAXB requirement is not in the plugin but in th Retrofit2 library used by the plugin.

I tested the same configuration on the Sloccount plugin and it's working fine on this plugin. I run in both case mvnDebug -Djenkins.version=2.164.1 -Djavax.xml.bind.context.factory=com.sun.xml.bind.v2.ContextFactory hpi:run (with -pl dynatrace-appmon here) and for sloccount I could get it to work fine (not going into the catch here) and in Performace Signature Dynatrace I still have the same exception.

The "only" difference between the two plugins is that JAXB is a transitive dependency here but not in Sloccount plugin. It makes no sense. I can see in both case the JAXB plugin installed on the instance. I can even run import com.sun.xml.bind.v2.ContextFactory; in the script console of both instances and it's working fine.

adrien.lecharpentier@gmail.com (JIRA)

unread,
Apr 16, 2019, 4:32:02 AM4/16/19
to jenkinsc...@googlegroups.com

I'm that the retrofit library is creating the problem: https://github.com/square/retrofit/blob/fc14b32026a5a7b487f27483c18b2263d84bcf60/retrofit/src/main/java/retrofit2/Retrofit.java#L134.

As mentioned in java9.wft/class-loading, this could be prevented by using ClassLoader.getPlatformClassLoader which is only available in Java 9+.

raphael.pionke@t-systems.com (JIRA)

unread,
Apr 16, 2019, 4:38:03 AM4/16/19
to jenkinsc...@googlegroups.com

I tried to use the moxy implementation of jaxb by using the org.eclipse.persistence:eclipselink:2.7.4 maven dependency in the dynatrace-appmon maven module and a jaxb.properties file with the following content:

javax.xml.bind.context.factory=org.eclipse.persistence.jaxb.JAXBContextFactory

Same result, i get the following exception:

javax.xml.bind.JAXBException: Implementation of JAXB-API has not been found on module path or classpath.
 - with linked exception:
[java.lang.ClassNotFoundException: org.eclipse.persistence.jaxb.JAXBContextFactory]

So, it has to be something to do with the transitive dependency i think, cause the direct calls from the [Unit tests|https://github.com/jenkinsci/performance-signature-dynatrace-plugin/blob/master/dynatrace-appmon/src/test/java/de/tsystems/mms/apm/performancesignature/dynatrace/rest/xml/DashboardXMLHandlerTest.java] are working in a java 11 environment.

raphael.pionke@t-systems.com (JIRA)

unread,
Apr 16, 2019, 4:38:04 AM4/16/19
to jenkinsc...@googlegroups.com
Raphael Pionke edited a comment on Bug JENKINS-55202
I tried to use the moxy implementation of jaxb by using the org.eclipse.persistence:eclipselink:2.7.4 maven dependency in the dynatrace-appmon maven module and a jaxb.properties file with the following content:
{noformat}
javax.xml.bind.context.factory=org.eclipse.persistence.jaxb.JAXBContextFactory
{noformat}

Same result, i get the following exception:
{noformat}

javax.xml.bind.JAXBException: Implementation of JAXB-API has not been found on module path or classpath.
- with linked exception:
[java.lang.ClassNotFoundException: org.eclipse.persistence.jaxb.JAXBContextFactory]{noformat}

So, it has to be something to do with the transitive dependency i think, cause the direct calls from the [Unit tests|

raphael.pionke@t-systems.com (JIRA)

unread,
Apr 16, 2019, 4:46:02 AM4/16/19
to jenkinsc...@googlegroups.com

raphael.pionke@t-systems.com (JIRA)

unread,
Apr 16, 2019, 4:46:03 AM4/16/19
to jenkinsc...@googlegroups.com

adrien.lecharpentier@gmail.com (JIRA)

unread,
Apr 17, 2019, 11:00:02 AM4/17/19
to jenkinsc...@googlegroups.com

Raphael Pionke I don't know what change in the classpath or how the class are loaded, but in step-by-step debug of the test you added, I'm going through methods of Retrofit lib that I didn't see in the "real case" usage.

raphael.pionke@t-systems.com (JIRA)

unread,
Apr 23, 2019, 4:43:02 AM4/23/19
to jenkinsc...@googlegroups.com

Adrien Lecharpentier do you think, i might help to just get rid of the com.squareup.retrofit2:converter-jaxb dependency and copy those 4 classes into the dynatrace-appmon module?

adrien.lecharpentier@gmail.com (JIRA)

unread,
Apr 23, 2019, 4:47:03 AM4/23/19
to jenkinsc...@googlegroups.com

Raphael Pionke at this moment, I trully believe that getting ride on this dependency is the better solution. You could still be using another converter.

raphael.pionke@t-systems.com (JIRA)

unread,
Apr 23, 2019, 6:45:05 AM4/23/19
to jenkinsc...@googlegroups.com

Adrien Lecharpentier i created a new branch and added the needed classes, but with no luck. the unit tests are passing but my test instance displays the same error: 

Apr 23, 2019 12:37:33 PM FINE javax.xml.bindSearching jaxb.properties
Apr 23, 2019 12:37:33 PM FINE javax.xml.bindChecking system property javax.xml.bind.JAXBContextFactory
Apr 23, 2019 12:37:33 PM FINE javax.xml.bind  not found
Apr 23, 2019 12:37:33 PM FINE javax.xml.bindChecking system property javax.xml.bind.context.factory
Apr 23, 2019 12:37:33 PM FINE javax.xml.bind  not found
Apr 23, 2019 12:37:33 PM FINE javax.xml.bindChecking system property javax.xml.bind.JAXBContext
Apr 23, 2019 12:37:33 PM FINE javax.xml.bind  not found
Apr 23, 2019 12:37:33 PM FINE javax.xml.bindSearching META-INF/services
Apr 23, 2019 12:37:33 PM FINE javax.xml.bindUnable to load:META-INF/services/javax.xml.bind.JAXBContext
Apr 23, 2019 12:37:33 PM FINE javax.xml.bindTrying to create the platform default provider
Apr 23, 2019 12:37:33 PM FINE javax.xml.bindUnable to find from OSGi: [javax.xml.bind.JAXBContext]
java.lang.ClassNotFoundException: org.glassfish.hk2.osgiresourcelocator.ServiceLoader
	at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1373)
	at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1326)
	at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1079)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
	at java.base/java.lang.Class.forName0(Native Method)
	at java.base/java.lang.Class.forName(Class.java:315)
	at javax.xml.bind.ServiceLoaderUtil.lookupUsingOSGiServiceLoader(ServiceLoaderUtil.java:86)
	at javax.xml.bind.ContextFinder.find(ContextFinder.java:413)
	at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:721)
	at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:662)
	at jaxb.JaxbConverterFactory.contextForType(JaxbConverterFactory.java:85)
	at jaxb.JaxbConverterFactory.responseBodyConverter(JaxbConverterFactory.java:78)
	at retrofit2.Retrofit.nextResponseBodyConverter(Retrofit.java:328)
	at retrofit2.Retrofit.responseBodyConverter(Retrofit.java:311)
	at retrofit2.HttpServiceMethod.createResponseConverter(HttpServiceMethod.java:68)
	at retrofit2.HttpServiceMethod.parseAnnotations(HttpServiceMethod.java:46)
	at retrofit2.ServiceMethod.parseAnnotations(ServiceMethod.java:36)
	at retrofit2.Retrofit.loadServiceMethod(Retrofit.java:168)
	at retrofit2.Retrofit$1.invoke(Retrofit.java:147)
	at com.sun.proxy.$Proxy110.getServerLicense(Unknown Source)
	at de.tsystems.mms.apm.performancesignature.dynatrace.rest.DTServerConnection.getServerLicense(DTServerConnection.java:255)
	at de.tsystems.mms.apm.performancesignature.dynatrace.PerfSigStartRecording.perform(PerfSigStartRecording.java:83)
	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80)
	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67)
	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:834)

Apr 23, 2019 12:37:33 PM FINE javax.xml.bindTrying to create the platform default provider

raphael.pionke@t-systems.com (JIRA)

unread,
Apr 23, 2019, 6:46:02 AM4/23/19
to jenkinsc...@googlegroups.com
Raphael Pionke edited a comment on Bug JENKINS-55202
[~alecharp] i created a new branch and added the needed classes, but with no luck. the unit tests are passing but my test instance displays the same error: 
{noformat}
Apr 23, 2019 12:37:33 PM FINE javax.xml.bindTrying to create the platform default provider{noformat}

Here is the diff: https://github.com/jenkinsci/performance-signature-dynatrace-plugin/compare/master...jaxb-converter

raphael.pionke@t-systems.com (JIRA)

unread,
Jan 10, 2020, 10:08:02 AM1/10/20
to jenkinsc...@googlegroups.com
Change By: Raphael Pionke
Status: Reopened Fixed but Unreleased
Resolution: Fixed
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

raphael.pionke@t-systems.com (JIRA)

unread,
Jan 16, 2020, 11:57:10 AM1/16/20
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages