Closed lynxSven closed 1 year ago
Sven, I do not have experience with Gradle, Spring or IntelliJ but the stack-trace provides a possible explanation. It reports an ArrayIndexOutOfBoundsException
in the MXParser.parsePI()
method in the org.codehaus.plexus.util.xml.pull
package of the CodeHaus Plexus Utils project. The MXParser
describes itself as an "Absolutely minimal implementation of XMLPULL V1 API."
FTR, an XML pull parser is a programming model where the calling application only gets (pulls) XML data when it explicitly asks for it.
In this case, the MXParser
is used to read the Maven pom.xml
of org.patrodyne.jvnet:hisrc-basicjaxb-plugins:2.1.0
. This POM contains XML processing instructions and the MXParser.parsePI()
method is responsible for parsing these processing instructions.
In Feb 2017, a reporter identified Plexus Utils Issue #22 that the MXParser
fails when the POM is bigger than 8192 characters. In response, that project's commit dd1c85f is stated to fix the issue.
Reviewing the Maven artifacts in Plexus Utils Repository indicates that the fix should be in the 3.1.0 release, circa Aug 2017.
Note: Your stack-trace shows that actual packaging of
MXParser
in your environment is wrapped inio.spring.gradle.dependencymanagement
. It appears that Spring/Gradle is repackaging the CodeHaus release and you may need to review that release history for the fix.
As you pointed out correctly the Pom is too big for the Plexus Utils. The spring boot dependency-management-plugin uses the Plexus Utils in the version 2.0.7. It should be the same error as https://github.com/codehaus-plexus/plexus-utils/issues/22
I have openend an issue in the https://github.com/spring-gradle-plugins/dependency-management-plugin repository. Maybe they can help me. When I don't use the gradle plugin the dependency gets integrated into my project just fine.
I will close this issue. Problem is only spring related. Thanks for your input Rick.
I try to migrate from highsources jaxb2basics to this library, because I now use SpringBoot 3 and Jarkata.
When i try to use the dependency with implementation 'org.patrodyne.jvnet:hisrc-basicjaxb-plugins:2.1.0' from https://mvnrepository.com/artifact/org.patrodyne.jvnet/hisrc-basicjaxb-plugins I get this error message:
I first thought it was something in my project so I initialized a new basic springboot-project via spring boot initilazier. It has the same problem. When I use the dependency, the gradle sync failes with a out of bounds exception. Is this a known Issue?
Problem is not present in 0.12.1 and first occoure in 0.12.2