Skip to content

Exception Provider class xmlpull not found in modularized application #1155

@tobiasdiez

Description

@tobiasdiez

When using applicationinsights-core-2.5.1 in an modularized java 12 (or 13) application, you get the following error:

Error:java: java.lang.module.FindException: Unable to derive module descriptor for applicationinsights-core-2.5.1.jar
Provider class com.microsoft.applicationinsights.core.dependencies.xmlpull.mxp1.MXParser,org.xmlpull.mxp1_serializer.MXSerializer not in module

The file /META-INF/services/com.microsoft.applicationinsights.core.dependencies.xmlpull.v1.XmlPullParserFactory indeed contains com.microsoft.applicationinsights.core.dependencies.xmlpull.mxp1.MXParser,org.xmlpull.mxp1_serializer.MXSerializer which is indeed a strange format (as there should be one class per line). I guess one should use StAX instead of XPP3 anyway...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions