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

java.lang.NoSuchMethodError: No static method join(Ljava/lang/CharSequence;Ljava/lang/Iterable;)Ljava/lang/String; in class Ljava/lang/String; or its super classes (declaration of 'java.lang.String' appears in /system/framework/core-oj.jar) #2774

Closed
MJHou opened this issue Jun 6, 2023 · 7 comments · Fixed by #2778
Assignees
Labels
Platform: Android Type: Bug Something isn't working

Comments

@MJHou
Copy link

MJHou commented Jun 6, 2023

Problem Statement

at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:10)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:1)
at j.j.j.j.a.intercept(EncryptInterceptor.java:1)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:10)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:1)
at com.package.data.api.c.intercept(HeaderInterceptor.java:33)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:10)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:1)
at j.j.j.j.b.intercept(HttpCacheInterceptor.java:3)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:10)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:1)
at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:13)
at okhttp3.RealCall$AsyncCall.execute(RealCall.java:2)
at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:3)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:761)

Solution Brainstorm

No response

@romtsn
Copy link
Member

romtsn commented Jun 6, 2023

@MJHou thanks for reporting, but why do you think this is caused by our SDK? There are no sentry frames in the stacktrace

@MJHou
Copy link
Author

MJHou commented Jun 7, 2023

@romtsn Last time the information was incomplete, this is the most complete
Thread Name: 'OkHttp Dispatcher'
Back traces starts.
java.lang.NoSuchMethodError: No static method join(Ljava/lang/CharSequence;Ljava/lang/Iterable;)Ljava/lang/String; in class Ljava/lang/String; or its super classes (declaration of 'java.lang.String' appears in /system/framework/core-oj.jar)
at io.sentry.a1.a(Baggage.java:5)
at io.sentry.b1.a(BaggageHeader.java:2)
at io.sentry.i5.a(SentryTracer.java:57)
at io.sentry.l5.a(Span.java:10)
at com.msxf.android.module.apm.SentryOkHttpInterceptor.intercept(SentryOkHttpInterceptor.kt:12)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:10)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:1)
at package.intercept(RSAInterceptor.java:12)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:10)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:1)
at j.j.j.j.a.intercept(EncryptInterceptor.java:1)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:10)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:1)
at com.msxf.ayh.data.api.c.intercept(HeaderInterceptor.java:33)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:10)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:1)
at j.j.j.j.b.intercept(HttpCacheInterceptor.java:3)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:10)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:1)
at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:13)
at okhttp3.RealCall$AsyncCall.execute(RealCall.java:2)
at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:3)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:761)
Back traces ends.

@adinauer
Copy link
Member

adinauer commented Jun 7, 2023

Hello @MJHou looks like we're using String.join in Baggage which doesn't seem to be available until API Level 26 (https://developer.android.com/reference/java/lang/String#join(java.lang.CharSequence,%20java.lang.CharSequence[])).

We can provide a fix for it.

@romtsn romtsn added Type: Bug Something isn't working and removed waiting for feedback labels Jun 7, 2023
@romtsn romtsn moved this from Needs More Information to Backlog in Mobile & Cross Platform SDK Jun 7, 2023
@adinauer adinauer self-assigned this Jun 7, 2023
@MJHou
Copy link
Author

MJHou commented Jun 7, 2023

Is a new version provided?Approximately when can I use it @romtsn

@romtsn
Copy link
Member

romtsn commented Jun 7, 2023

Is a new version provided?Approximately when can I use it @romtsn

No, we still have to fix it and ship it. Either today or next week it should be available.

@adinauer
Copy link
Member

adinauer commented Jun 7, 2023

Working on it right now. Will PR later today.

@MJHou
Copy link
Author

MJHou commented Jun 7, 2023

OK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: Android Type: Bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants