Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redisson >= 3.24.3 and Scala 2.12.15 does not compile #5662

Closed
jakobjaks opened this issue Mar 1, 2024 · 6 comments
Closed

Redisson >= 3.24.3 and Scala 2.12.15 does not compile #5662

jakobjaks opened this issue Mar 1, 2024 · 6 comments

Comments

@jakobjaks
Copy link

Expected behavior

Redisson >= 3.24.3 and Scala 2.12.15 should compile when selecting Codecs and build as before. Previous versions have no issues.

Actual behavior

[ERROR] Failed to execute goal net.alchim31.maven:scala-maven-plugin:4.8.1:compile (default-cli) on project scala-redisson-experiment: wrap: scala.reflect.internal.FatalError: 
[ERROR]   bad constant pool index: 0 at pos: 1020
[ERROR]      while compiling: /Users/tester/test/projects/personal/scala-redisson-experiment/src/main/scala/com/test/HelloWorld.scala
[ERROR]         during phase: globalPhase=typer, enteringPhase=namer
[ERROR]      library version: version 2.12.15
[ERROR]     compiler version: version 2.12.15
[ERROR]   reconstructed args: -bootclasspath /Users/tester/.m2/repository/org/scala-lang/scala-library/2.12.15/scala-library-2.12.15.jar -classpath /Users/tester/.m2/repository/com/esotericsoftware/minlog/1.3.1/minlog-1.3.1.jar:/Users/tester/.m2/repository/io/netty/netty-resolver/4.1.100.Final/netty-resolver-4.1.100.Final.jar:/Users/tester/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.15.2/jackson-annotations-2.15.2.jar:/Users/tester/.m2/repository/org/reactivestreams/reactive-streams/1.0.4/reactive-streams-1.0.4.jar:/Users/tester/.m2/repository/javax/cache/cache-api/1.1.1/cache-api-1.1.1.jar:/Users/tester/.m2/repository/io/netty/netty-handler/4.1.100.Final/netty-handler-4.1.100.Final.jar:/Users/tester/.m2/repository/io/netty/netty-common/4.1.100.Final/netty-common-4.1.100.Final.jar:/Users/tester/.m2/repository/io/netty/netty-codec-dns/4.1.100.Final/netty-codec-dns-4.1.100.Final.jar:/Users/tester/.m2/repository/io/netty/netty-buffer/4.1.100.Final/netty-buffer-4.1.100.Final.jar:/Users/tester/.m2/repository/io/reactivex/rxjava3/rxjava/3.1.6/rxjava-3.1.6.jar:/Users/tester/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.15.2/jackson-databind-2.15.2.jar:/Users/tester/.m2/repository/com/fasterxml/jackson/dataformat/jackson-dataformat-yaml/2.15.2/jackson-dataformat-yaml-2.15.2.jar:/Users/tester/.m2/repository/io/netty/netty-transport/4.1.100.Final/netty-transport-4.1.100.Final.jar:/Users/tester/.m2/repository/org/yaml/snakeyaml/2.0/snakeyaml-2.0.jar:/Users/tester/.m2/repository/org/redisson/redisson/3.24.3/redisson-3.24.3.jar:/Users/tester/.m2/repository/net/bytebuddy/byte-buddy/1.14.5/byte-buddy-1.14.5.jar:/Users/tester/.m2/repository/io/netty/netty-codec/4.1.100.Final/netty-codec-4.1.100.Final.jar:/Users/tester/.m2/repository/io/netty/netty-transport-native-unix-common/4.1.100.Final/netty-transport-native-unix-common-4.1.100.Final.jar:/Users/tester/.m2/repository/com/esotericsoftware/reflectasm/1.11.9/reflectasm-1.11.9.jar:/Users/tester/.m2/repository/com/esotericsoftware/kryo/5.5.0/kryo-5.5.0.jar:/Users/tester/.m2/repository/org/objenesis/objenesis/3.3/objenesis-3.3.jar:/Users/tester/.m2/repository/org/jboss/marshalling/jboss-marshalling/2.0.11.Final/jboss-marshalling-2.0.11.Final.jar:/Users/tester/.m2/repository/io/projectreactor/reactor-core/3.5.3/reactor-core-3.5.3.jar:/Users/tester/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.15.2/jackson-core-2.15.2.jar:/Users/tester/.m2/repository/org/jodd/jodd-bean/5.1.6/jodd-bean-5.1.6.jar:/Users/tester/.m2/repository/io/netty/netty-resolver-dns/4.1.100.Final/netty-resolver-dns-4.1.100.Final.jar:/Users/tester/.m2/repository/org/slf4j/slf4j-api/1.7.36/slf4j-api-1.7.36.jar:/Users/tester/.m2/repository/org/jodd/jodd-core/5.1.6/jodd-core-5.1.6.jar:/Users/tester/.m2/repository/org/jboss/marshalling/jboss-marshalling-river/2.0.11.Final/jboss-marshalling-river-2.0.11.Final.jar:/Users/tester/test/projects/personal/scala-redisson-experiment/target/classes:/Users/tester/.m2/repository/org/scala-lang/scala-compiler/2.12.15/scala-compiler-2.12.15.jar:/Users/tester/.m2/repository/org/scala-lang/scala-library/2.12.15/scala-library-2.12.15.jar:/Users/tester/.m2/repository/org/scala-lang/modules/scala-xml_2.12/1.0.6/scala-xml_2.12-1.0.6.jar:/Users/tester/.m2/repository/jline/jline/2.14.6/jline-2.14.6.jar:/Users/tester/.m2/repository/org/scala-lang/scala-reflect/2.12.15/scala-reflect-2.12.15.jar -Ypartial-unification -Xexperimental
[ERROR] 
[ERROR]   last tree to typer: Ident(MarshallingCodec)
[ERROR]        tree position: line 11 of /Users/tester/test/projects/personal/scala-redisson-experiment/src/main/scala/com/test/HelloWorld.scala
[ERROR]               symbol: <none>
[ERROR]    symbol definition: <none> (a NoSymbol)
[ERROR]       symbol package: <none>
[ERROR]        symbol owners: 
[ERROR]            call site: method main in object HelloWorld in package test
[ERROR] 
[ERROR] == Source file context for tree position ==
[ERROR] 
[ERROR]      8   def main(args: Array[String]) = {
[ERROR]      9     println("Hello, world")
[ERROR]     10     val conf = new Config()
[ERROR]     11     conf.setCodec(new MarshallingCodec())
[ERROR]     12   }
[ERROR]     13 }
[ERROR]     14 
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Steps to reproduce or test case

I made a git repo which if you check out and run mvn scala:compile then you should see the same error.
Make sure you have jdk 17 and Scala 2.12.15.
Github

Redis version

Redisson version

2.12.15

Redisson configuration

@mrniko
Copy link
Member

mrniko commented Mar 3, 2024

Sorry, I don't have any experience with Scala. What is the issue?

@jakobjaks
Copy link
Author

It doesnt compile starting from redisson version 3.24.3, but it worked fine before

@mrniko
Copy link
Member

mrniko commented Mar 3, 2024

I don't have tests with scala. So can't help here

@mrniko
Copy link
Member

mrniko commented Mar 3, 2024

Try to use a different codec

@jakobjaks
Copy link
Author

Others seem to work. Just that we already have an old project using this particular codec, so I was wondering if this bug could be resolved.
Is there any support for codec conversion would we just need to rewrite existing data?

@mrniko
Copy link
Member

mrniko commented Mar 3, 2024

Try to upgrade/downgrade MarshallingCodec version.

Is there any support for codec conversion would we just need to rewrite existing data?

You need to implement it. Or just clear Redis server if possible.

@mrniko mrniko closed this as completed Mar 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants