Thread: token based authenticationn problem

Forum : Restful Services.   19 Days ago
User Image
PIYUSH4169

Newbie

Joined: 20 Apr, 2017

Points: 100

Threads: 1

Posts: 2

token based authenticationn problem

| Quote Date : 5 May, 2019    Views:47    



java.lang.NoSuchMethodError: io.jsonwebtoken.lang.Classes.invokeStatic(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Class;[Ljava/lang/Object;)Ljava/lang/Object;
                                                                                                                              at io.jsonwebtoken.security.Keys.secretKeyFor(Keys.java:121)
                                                                                                                              at com.cmcltd.tsrtc.api.JwTokenHelper.<init>(JwTokenHelper.java:17)
                                                                                                                              at com.cmcltd.tsrtc.api.JwTokenHelper.getInstance(JwTokenHelper.java:24)
                                                                                                                              at com.cmcltd.tsrtc.api.JsTokenFilterNeeded.<init>(JsTokenFilterNeeded.java:25)
                                                                                                                              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
                                                                                                                              at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
                                                                                                                              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
                                                                                                                              at java.lang.reflect.Constructor.newInstance(Unknown Source)
                                                                                                                              at org.glassfish.hk2.utilities.reflection.ReflectionHelper.makeMe(ReflectionHelper.java:1350)
                                                                                                                              at org.jvnet.hk2.internal.ClazzCreator.createMe(ClazzCreator.java:271)
                                                                                                                              at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:365)
                                                                                                                              at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:471)
                                                                                                                              at org.jvnet.hk2.internal.SingletonContext$1.compute(SingletonContext.java:83)
                                                                                                                              at org.jvnet.hk2.internal.SingletonContext$1.compute(SingletonContext.java:71)
                                                                                                                              at org.glassfish.hk2.utilities.cache.Cache$OriginThreadAwareFuture$1.call(Cache.java:97)
                                                                                                                              at java.util.concurrent.FutureTask.run(Unknown Source)
                                                                                                                              at org.glassfish.hk2.utilities.cache.Cache$OriginThreadAwareFuture.run(Cache.java:154)
                                                                                                                              at org.glassfish.hk2.utilities.cache.Cache.compute(Cache.java:199)
                                                                                                                             
                                                                                                                              MultiException stack 2 of 2
                                                                                                                              java.lang.IllegalStateException: Unable to perform operation: create on com.cmcltd.tsrtc.api.JsTokenFilterNeeded
    at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:392)
                                                                                                                              at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:471)
                                                                                                                              at org.jvnet.hk2.internal.SingletonContext$1.compute(SingletonContext.java:83)
                                                                                                                              at org.jvnet.hk2.internal.SingletonContext$1.compute(SingletonContext.java:71)
                                                                                                                              at org.glassfish.hk2.utilities.cache.Cache$OriginThreadAwareFuture$1.call(Cache.java:97)
                                                                                                                              at java.util.concurrent.FutureTask.run(Unknown Source)
                                                                                                                              at org.glassfish.hk2.utilities.cache.Cache$OriginThreadAwareFuture.run(Cache.java:154)
                                                                                                                              at org.glassfish.hk2.utilities.cache.Cache.compute(Cache.java:19ead.run(Unknown Source)

Load More

No More Comments