XML Export Error

Summary

This error is shown because there is a missing argument within the JavaAgent arguments which can be found within the setenv.sh file. This missing argument will cause specific features to fail as JEMH is unable to create a serialise the Profile whilst saving and exporting the Profile.

Error message:

The missing argument (com.sun.xml.bind) causes the below error message to be shown when attempting to create, export, delete and save a Profile.

java.lang.NoClassDefFoundError: com/sun/xml/bind/DatatypeConverterImpl at com.javahollic.jira.emh.api.export.beans.ProfileBean_JaxbXducedAccessor_version.print(TransducedAccessor_method_Integer.java:68) [?:?] at com.javahollic.jira.emh.api.export.beans.ProfileBean_JaxbXducedAccessor_version.print(TransducedAccessor_method_Integer.java:66) [?:?] at com.sun.xml.bind.v2.runtime.property.AttributeProperty.serializeAttributes(AttributeProperty.java:101) [jaxb-impl-2.3.0.jar:2.3.0] at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeAttributes(ClassBeanInfoImpl.java:383) [jaxb-impl-2.3.0.jar:2.3.0] at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsSoleContent(XMLSerializer.java:591) [jaxb-impl-2.3.0.jar:2.3.0] at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeRoot(ClassBeanInfoImpl.java:341) [jaxb-impl-2.3.0.jar:2.3.0] at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsRoot(XMLSerializer.java:494) [jaxb-impl-2.3.0.jar:2.3.0] at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:328) [jaxb-impl-2.3.0.jar:2.3.0] at com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal(MarshallerImpl.java:256) [jaxb-impl-2.3.0.jar:2.3.0] at javax.xml.bind.helpers.AbstractMarshallerImpl.marshal(AbstractMarshallerImpl.java:131) [jaxb-api-2.3.0.jar:2.3.0]

Solution:

Below is a fully working list of arguments that is used with the AppDynamics JavaAgent.

https://confluence.atlassian.com/adminjiraserver/setting-properties-and-options-on-startup-938847831.html

JVM_SUPPORT_RECOMMENDED_ARGS="-Datlassian.org.osgi.framework.bootdelegation.extra=META-INF.services,com.yourkit,jdk.internal.reflect,jdk.internal.reflect.*,com.singularity.*,com.jprofiler,com.jprofiler.*,org.apache.xerces,org.apache.xerces.*,org.apache.xalan,org.apache.xalan.*,sun.*,com.sun.jndi,com.icl.saxon,com.icl.saxon.*,javax.servlet,javax.servlet.*,com.sun.xml.bind,com.sun.xml.bind.*"