Skip to content
This repository has been archived by the owner on Apr 4, 2022. It is now read-only.

NoSuchMethodError in runtime for scalaj-http_2.12 #216

Open
HetongWang opened this issue Mar 8, 2021 · 0 comments
Open

NoSuchMethodError in runtime for scalaj-http_2.12 #216

HetongWang opened this issue Mar 8, 2021 · 0 comments

Comments

@HetongWang
Copy link

It seems the scalaj-http_2.12 package is compiled with 2.11. I got the following Exception in runtime.
java.lang.NoSuchMethodError: scala.Product.$init$(Lscala/Product;)

Here is the dependency

<dependency>
                <groupId>org.scalaj</groupId>
                <artifactId>scalaj-http_2.12</artifactId>
                <version>2.4.2</version>
</dependency>

Here is the decompiled source code where invoking scala/Product

  private scalaj.http.BuildInfo$();
    Code:
       0: aload_0
       1: invokespecial #69                 // Method java/lang/Object."<init>":()V
       4: aload_0
       5: putstatic     #68                 // Field MODULE$:Lscalaj/http/BuildInfo$;
       8: aload_0
       9: invokestatic  #73                 // InterfaceMethod scala/Product.$init$:(Lscala/Product;)V
      12: aload_0
      13: ldc           #75                 // String 2.4.2
      15: putfield      #22                 // Field version:Ljava/lang/String;
      18: aload_0
      19: new           #77                 // class scala/collection/immutable/StringOps
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant