Discussion:
Received fatal alert: protocol_version
l***@gmail.com
2018-11-22 20:37:31 UTC
Permalink
I've been away from Clojure for a year and I'm just coming back to it. I
assume some of my dependencies are out of date. I'm working on a project
that is 90% Java with a Clojure wrapper. I tried this:

lein uber

I got a "protocol version" error which seems to have something to do with a
new level of security at Maven.

So I tried this:

LEIN_JVM_OPTS=-Dhttps.protocols=TLSv1.2 lein uber

and got all this:

# A fatal error has been detected by the Java Runtime Environment:
#
# SIGBUS (0xa) at pc=106510692, pid=66917, tid=123145404563456
#
# JRE version: 7.0-b222
# Java VM: OpenJDK 64-Bit Server VM (21.0-b17 mixed mode bsd-amd64
compressed oops)
# Problematic frame:
# J clojure.lang.Symbol.equals(Ljava/lang/Object;)Z
#
# Failed to write core dump. Core dumps have been disabled. To enable core
dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
#
/Users/sugar/projects/vegetable/repos/cortex/cortext-clj/hs_err_pid66917.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.sun.com/bugreport/crash.jsp
#
/usr/local/bin/lein: line 152: 66917 Abort trap: 6
"$LEIN_JAVA_CMD" "${BOOTCLASSPATH[@]}" -Dfile.encoding=UTF-8
-Dmaven.wagon.http.ssl.easy=false -Dmaven.wagon.rto=10000 $LEIN_JVM_OPTS
-Dleiningen.original.pwd="$ORIGINAL_PWD" -Dleiningen.script="$0" -classpath
"$CLASSPATH" clojure.main -m leiningen.core.main "$@"


Looking for some advice about the simplest way to get past this error?
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to ***@googlegroups.com
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
clojure+***@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups "Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clojure+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
l***@gmail.com
2018-11-22 20:42:31 UTC
Permalink
Saw a suggestion here:

https://github.com/technomancy/leiningen/issues/2364

and tried it:

LEIN_JVM_OPTS=-Dhttps.protocols=TLSv1.2 lein -U deps

but got:

Could not transfer artifact io.javalin:javalin:pom:2.4.0 from/to central
(https://repo1.maven.org/maven2/): java.lang.RuntimeException: Unexpected
error: java.security.InvalidAlgorithmParameterException: the trustAnchors
parameter must be non-empty
Post by l***@gmail.com
I've been away from Clojure for a year and I'm just coming back to it. I
assume some of my dependencies are out of date. I'm working on a project
lein uber
I got a "protocol version" error which seems to have something to do with
a new level of security at Maven.
LEIN_JVM_OPTS=-Dhttps.protocols=TLSv1.2 lein uber
#
# SIGBUS (0xa) at pc=106510692, pid=66917, tid=123145404563456
#
# JRE version: 7.0-b222
# Java VM: OpenJDK 64-Bit Server VM (21.0-b17 mixed mode bsd-amd64
compressed oops)
# J clojure.lang.Symbol.equals(Ljava/lang/Object;)Z
#
# Failed to write core dump. Core dumps have been disabled. To enable core
dumping, try "ulimit -c unlimited" before starting Java again
#
#
/Users/sugar/projects/vegetable/repos/cortex/cortext-clj/hs_err_pid66917.log
#
# http://bugreport.sun.com/bugreport/crash.jsp
#
/usr/local/bin/lein: line 152: 66917 Abort trap: 6
-Dmaven.wagon.http.ssl.easy=false -Dmaven.wagon.rto=10000 $LEIN_JVM_OPTS
-Dleiningen.original.pwd="$ORIGINAL_PWD" -Dleiningen.script="$0" -classpath
Looking for some advice about the simplest way to get past this error?
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to ***@googlegroups.com
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
clojure+***@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups "Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clojure+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Andy Fingerhut
2018-11-22 21:10:53 UTC
Permalink
What are the outputs of 'java -version' and 'lein version' ? What OS?

Some older versions of the JVM have older crypto certificates built into
them, which newer versions may improve upon.

Andy
Post by l***@gmail.com
https://github.com/technomancy/leiningen/issues/2364
LEIN_JVM_OPTS=-Dhttps.protocols=TLSv1.2 lein -U deps
Could not transfer artifact io.javalin:javalin:pom:2.4.0 from/to central (
https://repo1.maven.org/maven2/): java.lang.RuntimeException: Unexpected
error: java.security.InvalidAlgorithmParameterException: the trustAnchors
parameter must be non-empty
Post by l***@gmail.com
I've been away from Clojure for a year and I'm just coming back to it. I
assume some of my dependencies are out of date. I'm working on a project
lein uber
I got a "protocol version" error which seems to have something to do with
a new level of security at Maven.
LEIN_JVM_OPTS=-Dhttps.protocols=TLSv1.2 lein uber
#
# SIGBUS (0xa) at pc=106510692, pid=66917, tid=123145404563456
#
# JRE version: 7.0-b222
# Java VM: OpenJDK 64-Bit Server VM (21.0-b17 mixed mode bsd-amd64
compressed oops)
# J clojure.lang.Symbol.equals(Ljava/lang/Object;)Z
#
# Failed to write core dump. Core dumps have been disabled. To enable
core dumping, try "ulimit -c unlimited" before starting Java again
#
#
/Users/sugar/projects/vegetable/repos/cortex/cortext-clj/hs_err_pid66917.log
#
# http://bugreport.sun.com/bugreport/crash.jsp
#
/usr/local/bin/lein: line 152: 66917 Abort trap: 6
-Dmaven.wagon.http.ssl.easy=false -Dmaven.wagon.rto=10000 $LEIN_JVM_OPTS
-Dleiningen.original.pwd="$ORIGINAL_PWD" -Dleiningen.script="$0" -classpath
Looking for some advice about the simplest way to get past this error?
--
You received this message because you are subscribed to the Google Groups "Clojure" group.
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups "Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to ***@googlegroups.com
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
clojure+***@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups "Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clojure+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
l***@gmail.com
2018-11-22 21:23:16 UTC
Permalink
Okay, on my Macbook Pro, I fixed this problem by adding this to my
.bash_profile:

export
JAVA_TOOL_OPTIONS="-Djavax.net.ssl.trustAnchors=$JAVA_HOME/jre/lib/security/cacerts
-Djavax.net.ssl.trustStore=$JAVA_HOME/jre/lib/security/cacerts"
Post by l***@gmail.com
I've been away from Clojure for a year and I'm just coming back to it. I
assume some of my dependencies are out of date. I'm working on a project
lein uber
I got a "protocol version" error which seems to have something to do with
a new level of security at Maven.
LEIN_JVM_OPTS=-Dhttps.protocols=TLSv1.2 lein uber
#
# SIGBUS (0xa) at pc=106510692, pid=66917, tid=123145404563456
#
# JRE version: 7.0-b222
# Java VM: OpenJDK 64-Bit Server VM (21.0-b17 mixed mode bsd-amd64
compressed oops)
# J clojure.lang.Symbol.equals(Ljava/lang/Object;)Z
#
# Failed to write core dump. Core dumps have been disabled. To enable core
dumping, try "ulimit -c unlimited" before starting Java again
#
#
/Users/sugar/projects/vegetable/repos/cortex/cortext-clj/hs_err_pid66917.log
#
# http://bugreport.sun.com/bugreport/crash.jsp
#
/usr/local/bin/lein: line 152: 66917 Abort trap: 6
-Dmaven.wagon.http.ssl.easy=false -Dmaven.wagon.rto=10000 $LEIN_JVM_OPTS
-Dleiningen.original.pwd="$ORIGINAL_PWD" -Dleiningen.script="$0" -classpath
Looking for some advice about the simplest way to get past this error?
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to ***@googlegroups.com
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
clojure+***@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups "Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clojure+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...