srowen commented on issue #23804: [WIP][SPARK-26896] JDK 11 module adjustments 
for running tests
URL: https://github.com/apache/spark/pull/23804#issuecomment-466227456
 
 
   OK, this fixes this particular error: 
https://github.com/apache/spark/pull/23866
   
   The JAXB thing relates to JPMML. I think my first attempt to fix that will 
be update JPMML, which seems to need an update for Java 9 anyway. I think it's 
specifying the Sun implementation somewhere:
   
   ```
   - pmml export *** FAILED ***
     javax.xml.bind.JAXBException:
     at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:207)
     at javax.xml.bind.ContextFinder.find(ContextFinder.java:414)
     at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:618)
     at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:565)
     at org.jpmml.model.JAXBUtil.getContext(JAXBUtil.java:126)
     at org.jpmml.model.JAXBUtil.createMarshaller(JAXBUtil.java:134)
     at org.jpmml.model.JAXBUtil.marshal(JAXBUtil.java:100)
     at org.jpmml.model.JAXBUtil.marshalPMML(JAXBUtil.java:90)
     at 
org.apache.spark.mllib.pmml.PMMLExportable.toPMML(PMMLExportable.scala:44)
     at 
org.apache.spark.mllib.pmml.PMMLExportable.toPMML(PMMLExportable.scala:78)
     ...
     Cause: java.lang.ClassNotFoundException: 
com.sun.xml.internal.bind.v2.ContextFactory
     at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:466)
     at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:566)
   ...
   ```
   
   I hope we can fix these things in this way rather than profiles or command 
line args.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to