You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to compile a resource .xslt file using javax.xml.transform.TransformerFactory#newTemplates(javax.xml.transform.Source).
My maven test passes but it fails during native-test goal.
Are you familiar with this error ? Is there a solution to compile such a file in a native image ?
Here is my test:
@TestpublicvoidshouldCompileXslt() throwsTransformerConfigurationException, MalformedURLException {
URLxsltFileUrl = newURL("file:src/test/resources/file.xslt");
TransformerFactorytFactory = TransformerFactory.newInstance();
StreamSourcestreamSource = newStreamSource(xsltFileUrl.toExternalForm());
// this breaks during native-teststFactory.newTemplates(streamSource);
}
And the error during native-test is the following:
Hello,
I am trying to compile a resource .xslt file using javax.xml.transform.TransformerFactory#newTemplates(javax.xml.transform.Source).
My maven test passes but it fails during native-test goal.
Are you familiar with this error ? Is there a solution to compile such a file in a native image ?
Here is my test:
And the error during native-test is the following:
System Info:
OS: Windows 10 / Generating native images on WSL2 (Debian)
GraalVM Version: 22.3.0
Java Version: 11
Plugin Version (native-maven-plugin): 0.9.19
To Reproduce:
You can reproduce the issue with this simple repository: https://github.com/johanHenix/native-xslt-compile/
The text was updated successfully, but these errors were encountered: