linghengqian opened a new pull request, #39775:
URL: https://github.com/apache/shardingsphere/pull/39775
For #39769 .
Changes proposed in this pull request:
- Fix nativeTest failures under GraalVM Native Image caused by refactoring.
- Based on the discussion at
https://github.com/apache/infrastructure-actions/pull/992 , the use of
`graalvm/setup-graalvm` is permitted by ASF Infra, so there is no need to
manually download GraalVM CE in the CI.
- Since ShardingSphere no longer depends on
`com.fasterxml.woodstox:woodstox-core`, the HiveServer2 JDBC driver must now
use its own `com.fasterxml.woodstox:woodstox-core`, eliminating the dependency
conflict.
- The Woodstox JAR contains the entry
`META-INF/services/javax.xml.stream.XMLInputFactory →
com.ctc.wstx.stax.WstxInputFactory`. Under JAXP rules, once Woodstox is present
on the classpath, it supersedes the JDK's default implementation via SPI,
becoming the provider returned by `XMLInputFactory.newFactory()`. However, the
`ACCESS_EXTERNAL_DTD` property—unconditionally set by
`JDBCRepositorySQLLoader`—is specific to the JDK implementation; Woodstox does
not recognize it, resulting in an `IllegalArgumentException`.
```bash
IllegalArgument Unrecognized property
'[http://javax.xml.XMLConstants/property/accessExternalDTD'](http://javax.xml.xmlconstants/property/accessExternalDTD');
```
---
Before committing this PR, I'm sure that I have checked the following
options:
- [x] My code follows the [code of
conduct](https://shardingsphere.apache.org/community/en/involved/conduct/code/)
of this project.
- [x] I have self-reviewed the commit code.
- [x] I have (or in comment I request) added corresponding labels for the
pull request.
- [x] I have passed maven check locally : `./mvnw clean install -B -T1C
-Dmaven.javadoc.skip -Dmaven.jacoco.skip -e`.
- [x] I have made corresponding changes to the documentation.
- [x] I have added corresponding unit tests for my changes.
- [ ] I have updated the Release Notes of the current development version.
For more details, see [Update Release
Note](https://shardingsphere.apache.org/community/en/involved/contribute/contributor/)
- [ ] I have disclosed the tool and affected files or scope for any material
AI assistance, as required by the [AI-assisted contribution policy].
[AI-assisted contribution policy]:
https://github.com/apache/shardingsphere/blob/master/AI_POLICY.md
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]