Not sure, but it looks like an issue with using java 10 when compiled with java 8 or vice-versa. You're certain the UDF is compiled with 8?
On Tue, Jul 17, 2018 at 12:00 AM, Xikui Wang <[email protected]> wrote: > I notice that the latest master has a problem with running UDF on a > cluster. When a UDF is deployed to the cluster, AsterixDB would fail to > start due to the following exception: > > > Exception in thread "main" java.lang.NoClassDefFoundError: > com/sun/xml/bind/v2/model/annotation/AnnotationReader > > at java.lang.ClassLoader.defineClass1(Native Method) > > at java.lang.ClassLoader.defineClass(ClassLoader.java:763) > > at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) > > at java.net.URLClassLoader.defineClass(URLClassLoader.java:467) > > at java.net.URLClassLoader.access$100(URLClassLoader.java:73) > > at java.net.URLClassLoader$1.run(URLClassLoader.java:368) > > at java.net.URLClassLoader$1.run(URLClassLoader.java:362) > > at java.security.AccessController.doPrivileged(Native Method) > > at java.net.URLClassLoader.findClass(URLClassLoader.java:361) > > at java.lang.ClassLoader.loadClass(ClassLoader.java:424) > > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) > > at java.lang.ClassLoader.loadClass(ClassLoader.java:357) > > at java.lang.Class.getDeclaredMethods0(Native Method) > > at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) > > at java.lang.Class.privateGetMethodRecursive(Class.java:3048) > > at java.lang.Class.getMethod0(Class.java:3018) > > at java.lang.Class.getMethod(Class.java:1784) > > at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:242) > > at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:234) > > at javax.xml.bind.ContextFinder.find(ContextFinder.java:441) > > at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:641) > > at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:584) > > at > org.apache.asterix.app.external.ExternalLibraryUtils.getLibrary(ExternalLibraryUtils.java:325) > > at > org.apache.asterix.app.external.ExternalLibraryUtils.configureLibrary(ExternalLibraryUtils.java:288) > > at > org.apache.asterix.app.external.ExternalLibraryUtils.setUpExternaLibraries(ExternalLibraryUtils.java:81) > > at > org.apache.asterix.hyracks.bootstrap.CCApplication.start(CCApplication.java:147) > > at > org.apache.hyracks.control.cc.ClusterControllerService.startApplication(ClusterControllerService.java:236) > > at > org.apache.hyracks.control.cc.ClusterControllerService.start(ClusterControllerService.java:222) > > at org.apache.hyracks.control.cc.CCDriver.main(CCDriver.java:48) > > Caused by: java.lang.ClassNotFoundException: > com.sun.xml.bind.v2.model.annotation.AnnotationReader > > at java.net.URLClassLoader.findClass(URLClassLoader.java:381) > > at java.lang.ClassLoader.loadClass(ClassLoader.java:424) > > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) > > at java.lang.ClassLoader.loadClass(ClassLoader.java:357) > > ... 29 more > > > By comparing the builds, I found the problem occurs after the merge of this > patch[1] and it is in this release as well... Do we have a quick fix for > this? > > [1] https://asterix-gerrit.ics.uci.edu/#/c/2696/11 > > > Best, > Xikui > > > > > On Mon, Jul 16, 2018 at 10:41 PM Ian Maxon <[email protected]> wrote: > >> Hi everyone, >> >> Please verify and vote on the latest release of Apache AsterixDB >> >> The change that produced this release and the change to advance the >> version are >> up for review here: >> >> https://asterix-gerrit.ics.uci.edu/#/c/2773/ >> https://asterix-gerrit.ics.uci.edu/#/c/2772/ >> >> To check out the release, simply fetch the review and check out the >> fetch head like so: >> >> git fetch https://asterix-gerrit.ics.uci.edu:29418/asterixdb >> refs/changes/72/2772/1 && git checkout FETCH_HEAD >> >> >> AsterixDB Source >> >> https://dist.apache.org/repos/dist/dev/asterixdb/apache-asterixdb-0.9.4-source-release.zip >> >> https://dist.apache.org/repos/dist/dev/asterixdb/apache-asterixdb-0.9.4-source-release.zip.asc >> >> https://dist.apache.org/repos/dist/dev/asterixdb/apache-asterixdb-0.9.4-source-release.zip.sha1 >> >> SHA1:7ca7dee5408fb77010bdd1cde83a35452b087385 >> >> Hyracks Source >> >> https://dist.apache.org/repos/dist/dev/asterixdb/apache-hyracks-0.3.4-source-release.zip >> >> https://dist.apache.org/repos/dist/dev/asterixdb/apache-hyracks-0.3.4-source-release.zip.asc >> >> https://dist.apache.org/repos/dist/dev/asterixdb/apache-hyracks-0.3.4-source-release.zip.sha1 >> >> SHA1:17654682f9cb6f5ad9811fd644c954afa330ce01 >> >> AsterixDB NCService Installer: >> >> https://dist.apache.org/repos/dist/dev/asterixdb/asterix-server-0.9.4-binary-assembly.zip >> >> https://dist.apache.org/repos/dist/dev/asterixdb/asterix-server-0.9.4-binary-assembly.zip.asc >> >> https://dist.apache.org/repos/dist/dev/asterixdb/asterix-server-0.9.4-binary-assembly.zip.sha1 >> >> SHA1:a0931dc6aedab4007112ee75b62028336382fb72 >> >> Additionally, a staged maven repository is available at: >> >> https://repository.apache.org/content/repositories/orgapacheasterix-1043/ >> >> The KEYS file containing the PGP keys used to sign the release can be >> found at >> >> https://dist.apache.org/repos/dist/release/asterixdb/KEYS >> >> RAT was executed as part of Maven via the RAT maven plugin, but >> excludes files that are: >> >> - data for tests >> - procedurally generated, >> - or source files which come without a header mentioning their license, >> but have an explicit reference in the LICENSE file. >> >> >> The vote is open for 72 hours, or until the necessary number of votes >> (3 +1) has been reached. >> >> Please vote >> [ ] +1 release these packages as Apache AsterixDB 0.9.4 and >> Apache Hyracks 0.3.4 >> [ ] 0 No strong feeling either way >> [ ] -1 do not release one or both packages because ... >> >> Thanks! >>
