You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling the static io.getstream.chat.java.models.User.createToken method outside of the SDK throws a ClassNotFound error. For example:
java.lang.ClassNotFoundException: io.jsonwebtoken.SignatureAlgorithm
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:636) ~[na:na]
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:182) ~[na:na]
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:519) ~[na:na]
at io.getstream.chat.java.models.User.createToken(User.java:1332) ~[stream-chat-java-1.2.0.jar:na]
at app.squaddy.api.service.external.GetStreamService.createTokenForUser(GetStreamService.java:218) ~[classes/:na]
Example usage:
createToken(chatId, null, null);
Adding the dependency to our POM.xml does fix the issue for now:
@TomBeckett@akul1994 I can't reproduce this issue. Could you please give some context how you package and run your application? If you could publish demo project with the issue it would be the best.
Why are you recommending to add the io.jsonwebtoken jjwt dependency when actually stream-java depends on the com.auth0 jwt implementation? In such a case the solution would be to removeio.jsonwebtoken, not to add it. You can see this dependency here https://mvnrepository.com/artifact/io.getstream.client/stream-java/3.2.4
Activity
akul1994 commentedon Jul 22, 2021
Facing the same issue
ferhatelmas commentedon Jul 22, 2021
Thanks for the report and confirmation! Will address it today!
driver-devel commentedon Oct 7, 2021
@TomBeckett @akul1994 I can't reproduce this issue. Could you please give some context how you package and run your application? If you could publish demo project with the issue it would be the best.
Add FAQ
TomBeckett commentedon Oct 25, 2021
@driver-devel Sorry for the late reply.. for some reason I didn't get a notification!
This occurs are runtime (not running locally via say, IntelliJ or Eclipse).
coderman2022 commentedon Jan 6, 2022
This is not resolved, a related issue is here: #38
coderman2022 commentedon Jan 7, 2022
Why are you recommending to add the
io.jsonwebtokenjjwt dependency when actuallystream-javadepends on thecom.auth0jwt implementation? In such a case the solution would be to removeio.jsonwebtoken, not to add it. You can see this dependency here https://mvnrepository.com/artifact/io.getstream.client/stream-java/3.2.4ferhatelmas commentedon Jan 7, 2022
stream-javaisn't this SDK/repo, It's this one, https://github.com/getstream/stream-java for feed client.