Open
Description
The service fails with
rcloud.create.notebook: Handler dispatch failed; nested exception is
java.lang.NoClassDefFoundError: javax/activation/MimetypesFileTypeMap (500)
In addition, it doesn't compile under Java 10 for two reasons:
gradlew
fails with
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine java version from '10.0.2'.
- after manual install of more recent
gradle
build fails with
> Task :rcloud-gist-service:javadoc
/tmp/rcloud-gist-services/rcloud-gist-service/src/main/java/com/mangosolutions/rcloud/rawgist/repository/git/ReadGistOperation.java:19: error: package javax.activation is not visible
import javax.activation.MimetypesFileTypeMap;
^
(package javax.activation is declared in module java.activation, which is not in the module graph)
1 error
It seems possible to work around this issue by using
diff --git a/rcloud-gist-service/build.gradle b/rcloud-gist-service/build.gradle
index b128bf9..622cdc5 100644
--- a/rcloud-gist-service/build.gradle
+++ b/rcloud-gist-service/build.gradle
@@ -19,6 +19,7 @@ dependencies {
compile 'org.codehaus.groovy:groovy-all'
compile 'com.hazelcast:hazelcast'
compile 'com.hazelcast:hazelcast-spring'
+ compile 'com.sun.activation:javax.activation:1.2.0'
compile 'joda-time:joda-time'
compile 'com.fasterxml.jackson.datatype:jackson-datatype-joda'
but it's unclear if/how that would affect older Java versions.
Metadata
Metadata
Assignees
Labels
No labels