question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exception after connection

See original GitHub issue

It used to and works fine but throws following exception after socket is connected

INFO: Exception thrown from onError method public void it.auties.whatsapp4j.whatsapp.internal.WhatsappWebSocket.onError(java.lang.Throwable). java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at org.glassfish.tyrus.core.AnnotatedEndpoint.callMethod(AnnotatedEndpoint.java:553) at org.glassfish.tyrus.core.AnnotatedEndpoint.onError(AnnotatedEndpoint.java:583) at org.glassfish.tyrus.core.AnnotatedEndpoint.callMethod(AnnotatedEndpoint.java:556) at org.glassfish.tyrus.core.AnnotatedEndpoint.access$100(AnnotatedEndpoint.java:66) at org.glassfish.tyrus.core.AnnotatedEndpoint$WholeHandler$1.onMessage(AnnotatedEndpoint.java:652) at org.glassfish.tyrus.core.TyrusSession.notifyMessageHandlers(TyrusSession.java:559) at org.glassfish.tyrus.core.TyrusEndpointWrapper.onMessage(TyrusEndpointWrapper.java:800) at org.glassfish.tyrus.core.TyrusWebSocket.onMessage(TyrusWebSocket.java:183) at org.glassfish.tyrus.core.frame.BinaryFrame.respond(BinaryFrame.java:70) at org.glassfish.tyrus.core.ProtocolHandler.process(ProtocolHandler.java:819) at org.glassfish.tyrus.client.TyrusClientEngine$TyrusReadHandler.handle(TyrusClientEngine.java:725) at org.glassfish.tyrus.container.grizzly.client.GrizzlyClientFilter$ProcessTask.execute(GrizzlyClientFilter.java:452) at org.glassfish.tyrus.container.grizzly.client.TaskProcessor.processTask(TaskProcessor.java:91) at org.glassfish.tyrus.container.grizzly.client.TaskProcessor.processTask(TaskProcessor.java:68) at org.glassfish.tyrus.container.grizzly.client.GrizzlyClientFilter.handleRead(GrizzlyClientFilter.java:248) at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:88) at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:248) at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:181) at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:121) at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:99) at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:51) at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:510) at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:82) at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:83) at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:34) at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:101) at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:535) at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:515) at java.base/java.lang.Thread.run(Thread.java:833) Caused by: java.lang.RuntimeException: An uncaught exception was thrown during the WebSocket lifecycle at it.auties.whatsapp4j.whatsapp.internal.WhatsappWebSocket.onError(WhatsappWebSocket.java:243) ... 33 more Caused by: java.lang.IllegalArgumentException: Cannot deserialize { "1" : { "1" : "917012233980@s.whatsapp.net", "2" : 1, "3" : "3ADCD8A5A7E5AF5BEC9F" }, "2" : { "8" : { "17" : { "1" : "3AC991E84A0028B65BC4", "2" : "917012233980@s.whatsapp.net", "3" : { "8" : { "1" : "https://mmg.whatsapp.net/d/f/AgowQNNAOk9-2Jv6BFyN4hfvOOn968zuYr9NLrgZ8CYB.enc", "18" : "pE/gRyY+LahBLg==", "2" : "audio/ogg; codecs=opus", "19" : ", *'\u001DF[ZddddcO/Yddd_dddddddddddd\E(\u0019\u00192_O\cbbdb_V-\u001F]cdddddV8"\u0017\u0015\u0012", “3” : “jVV5soWHA8GehKc7unbO9jfkaWTyzBPQ3nLOAwCToMs=”, “4” : 20392, “5” : 8, “6” : 1, “7” : “RI/7VOLRSpZvQReECjN4NmWEKGht1cmeJNqRTXgdO5c=”, “8” : “LZ0HReglxq1aXX+pjFU7rOEwQibLdcOiVCD3Lp7oJjE=”, “9” : “/v/t62.7117-24/32124920_133048572471208_6352557858052594146_n.enc?ccb=11-4&oh=01_AVxL8UeFf1I0T9fXgTQ9dEb81D8Kr1B6jpvslceqOfkxJA&oe=61E6C0B5”, “10” : 1640150826 } } }, “1” : “https://mmg.whatsapp.net/d/f/AjeRdlL9yU73ggy_SeUk5BnKRDtVAd2MUJ6Y0buuKMnT.enc”, “18” : “���C-��\r��\r���3���", "2" : "audio/ogg; codecs=opus", "19" : "\u0014%-Q;&WddE_bG\u001B\u000Faa_ddd7%8[NbdVdLd=:$)\u0011\u001CHdX^NDdWWTYbY5/SU2NQ\u001C\r\r\u0014\u0013”, “3” : “+89ecCCO3Q+RmTzSEJKc968icrYz0lz9MpzDAA/dLbA=”, “4” : 66615, “5” : 28, “6” : 1, “7” : “EdpWsK4Bi3E0q6IUIocSZlxLRbLSDPv8QSlWE6OyC6o=”, “8” : “Zc0ZtUZgxpegmcSDt3p4uijzkSsJsZlD7uUQadG/Xsw=”, “9” : “/v/t62.7117-24/30081163_312109604121683_1434762101187545757_n.enc?ccb=11-4&oh=01_AVwsuZH9jbifSAwyIAwFdvejiLMk2yBasKXH1SaVHdRXKA&oe=61E9DC05”, “10” : 1640150870 } }, “3” : 1640150899, “4” : 5 } at it.auties.whatsapp4j.binary.BinaryDecoder.decodeMessage(BinaryDecoder.java:206) at it.auties.whatsapp4j.binary.BinaryDecoder.parseMessage(BinaryDecoder.java:199) at it.auties.whatsapp4j.binary.BinaryDecoder.readNode(BinaryDecoder.java:187) at it.auties.whatsapp4j.binary.BinaryDecoder.lambda$readList$3(BinaryDecoder.java:211) at java.base/java.util.stream.IntPipeline$1$1.accept(IntPipeline.java:180) at java.base/java.util.stream.Streams$RangeIntSpliterator.forEachRemaining(Streams.java:104) at java.base/java.util.Spliterator$OfInt.forEachRemaining(Spliterator.java:711) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:575) at java.base/java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260) at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:616) at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:622) at java.base/java.util.stream.ReferencePipeline.toList(ReferencePipeline.java:627) at it.auties.whatsapp4j.binary.BinaryDecoder.readList(BinaryDecoder.java:211) at it.auties.whatsapp4j.binary.BinaryDecoder.readNode(BinaryDecoder.java:187) at it.auties.whatsapp4j.binary.BinaryDecoder.decodeDecryptedMessage(BinaryDecoder.java:48) at it.auties.whatsapp4j.whatsapp.internal.WhatsappWebSocket.onBinary(WhatsappWebSocket.java:233) at jdk.internal.reflect.GeneratedMethodAccessor44.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at org.glassfish.tyrus.core.AnnotatedEndpoint.callMethod(AnnotatedEndpoint.java:553) … 26 more ��`�3���": Illegal character ‘�’ (code 0xfffd) in base64 content at [Source: UNKNOWN; byte offset: #UNKNOWN] (through reference chain: it.auties.whatsapp4j.protobuf.info.MessageInfo[“2”]->it.auties.whatsapp4j.protobuf.message.model.MessageContainer[“8”]->it.auties.whatsapp4j.protobuf.message.standard.AudioMessage[“18”]) at com.fasterxml.jackson.databind.ObjectMapper._convert(ObjectMapper.java:4394) at com.fasterxml.jackson.databind.ObjectMapper.convertValue(ObjectMapper.java:4325) at it.auties.protobuf.decoder.ProtobufDecoder.decode(ProtobufDecoder.java:25) at it.auties.whatsapp4j.binary.BinaryDecoder.decodeMessage(BinaryDecoder.java:204) … 47 more ��`�3���": Illegal character ‘�’ (code 0xfffd) in base64 content`

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Auties00commented, Feb 2, 2022
java.lang.reflect.InvocationTargetException: null
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[na:na]
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
	at java.base/java.lang.reflect.Method.invoke(Method.java:568) ~[na:na]
	at org.glassfish.tyrus.core.AnnotatedEndpoint.callMethod(AnnotatedEndpoint.java:553) ~[tyrus-core-2.0.0.jar:na]
	at org.glassfish.tyrus.core.AnnotatedEndpoint.onError(AnnotatedEndpoint.java:583) ~[tyrus-core-2.0.0.jar:na]
	at org.glassfish.tyrus.core.AnnotatedEndpoint.callMethod(AnnotatedEndpoint.java:556) ~[tyrus-core-2.0.0.jar:na]
	at org.glassfish.tyrus.core.AnnotatedEndpoint.access$100(AnnotatedEndpoint.java:66) ~[tyrus-core-2.0.0.jar:na]
	at org.glassfish.tyrus.core.AnnotatedEndpoint$WholeHandler$1.onMessage(AnnotatedEndpoint.java:652) ~[tyrus-core-2.0.0.jar:na]
	at org.glassfish.tyrus.core.TyrusSession.notifyMessageHandlers(TyrusSession.java:559) ~[tyrus-core-2.0.0.jar:na]
	at org.glassfish.tyrus.core.TyrusEndpointWrapper.onMessage(TyrusEndpointWrapper.java:800) ~[tyrus-core-2.0.0.jar:na]
	at org.glassfish.tyrus.core.TyrusWebSocket.onMessage(TyrusWebSocket.java:183) ~[tyrus-core-2.0.0.jar:na]
	at org.glassfish.tyrus.core.frame.BinaryFrame.respond(BinaryFrame.java:70) ~[tyrus-core-2.0.0.jar:na]
	at org.glassfish.tyrus.core.ProtocolHandler.process(ProtocolHandler.java:819) ~[tyrus-core-2.0.0.jar:na]
	at org.glassfish.tyrus.client.TyrusClientEngine$TyrusReadHandler.handle(TyrusClientEngine.java:725) ~[tyrus-client-2.0.0.jar:na]
	at org.glassfish.tyrus.container.grizzly.client.GrizzlyClientFilter$ProcessTask.execute(GrizzlyClientFilter.java:452) ~[tyrus-container-grizzly-client-2.0.0.jar:na]
	at org.glassfish.tyrus.container.grizzly.client.TaskProcessor.processTask(TaskProcessor.java:91) ~[tyrus-container-grizzly-client-2.0.0.jar:na]
	at org.glassfish.tyrus.container.grizzly.client.TaskProcessor.processTask(TaskProcessor.java:68) ~[tyrus-container-grizzly-client-2.0.0.jar:na]
	at org.glassfish.tyrus.container.grizzly.client.GrizzlyClientFilter.handleRead(GrizzlyClientFilter.java:248) ~[tyrus-container-grizzly-client-2.0.0.jar:na]
	at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:88) ~[grizzly-framework-3.0.0-M1.jar:3.0.0-M1]
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:248) ~[grizzly-framework-3.0.0-M1.jar:3.0.0-M1]
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:181) ~[grizzly-framework-3.0.0-M1.jar:3.0.0-M1]
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:121) ~[grizzly-framework-3.0.0-M1.jar:3.0.0-M1]
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:99) ~[grizzly-framework-3.0.0-M1.jar:3.0.0-M1]
	at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:51) ~[grizzly-framework-3.0.0-M1.jar:3.0.0-M1]
	at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:510) ~[grizzly-framework-3.0.0-M1.jar:3.0.0-M1]
	at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:82) ~[grizzly-framework-3.0.0-M1.jar:3.0.0-M1]
	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:83) ~[grizzly-framework-3.0.0-M1.jar:3.0.0-M1]
	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:34) ~[grizzly-framework-3.0.0-M1.jar:3.0.0-M1]
	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:101) ~[grizzly-framework-3.0.0-M1.jar:3.0.0-M1]
	at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:535) ~[grizzly-framework-3.0.0-M1.jar:3.0.0-M1]
	at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:515) ~[grizzly-framework-3.0.0-M1.jar:3.0.0-M1]
	at java.base/java.lang.Thread.run(Thread.java:833) ~[na:na]
Caused by: java.lang.RuntimeException: An uncaught exception was thrown during the WebSocket lifecycle
	at it.auties.whatsapp4j.whatsapp.internal.WhatsappWebSocket.onError(WhatsappWebSocket.java:243) ~[whatsappweb4j-2.2.7.jar:na]
	... 33 common frames omitted
Caused by: java.lang.UnsupportedClassVersionError: Preview features are not enabled for it/auties/protobuf/util/ProtobufUtils (class file version 61.65535). Try running with '--enable-preview'
	at java.base/java.lang.ClassLoader.defineClass1(Native Method) ~[na:na]
	at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1012) ~[na:na]
	at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150) ~[na:na]
	at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:862) ~[na:na]
	at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:760) ~[na:na]
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:681) ~[na:na]
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:639) ~[na:na]
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188) ~[na:na]
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[na:na]
	at it.auties.protobuf.decoder.ProtobufDecoder.lambda$getFields$6(ProtobufDecoder.java:213) ~[protoc-api-1.8.jar:na]
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) ~[na:na]
	at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) ~[na:na]
	at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:992) ~[na:na]
	at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762) ~[na:na]
	at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276) ~[na:na]
	at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:992) ~[na:na]
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[na:na]
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[na:na]
	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) ~[na:na]
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) ~[na:na]
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[na:na]
	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) ~[na:na]
	at it.auties.protobuf.decoder.ProtobufDecoder.getFields(ProtobufDecoder.java:214) ~[protoc-api-1.8.jar:na]
	at it.auties.protobuf.decoder.ProtobufDecoder.lambda$getFields$4(ProtobufDecoder.java:189) ~[protoc-api-1.8.jar:na]
	at java.base/java.util.Optional.orElseGet(Optional.java:364) ~[na:na]
	at it.auties.protobuf.decoder.ProtobufDecoder.getFields(ProtobufDecoder.java:189) ~[protoc-api-1.8.jar:na]
	at it.auties.protobuf.decoder.ProtobufDecoder.readDelimited(ProtobufDecoder.java:130) ~[protoc-api-1.8.jar:na]
	at it.auties.protobuf.decoder.ProtobufDecoder.readFieldContent(ProtobufDecoder.java:109) ~[protoc-api-1.8.jar:na]
	at it.auties.protobuf.decoder.ProtobufDecoder.parseField(ProtobufDecoder.java:99) ~[protoc-api-1.8.jar:na]
	at it.auties.protobuf.decoder.ProtobufDecoder.decode(ProtobufDecoder.java:73) ~[protoc-api-1.8.jar:na]
	at it.auties.protobuf.decoder.ProtobufDecoder.decodeAsMap(ProtobufDecoder.java:57) ~[protoc-api-1.8.jar:na]
	at it.auties.protobuf.decoder.ProtobufDecoder.decode(ProtobufDecoder.java:47) ~[protoc-api-1.8.jar:na]
	at it.auties.whatsapp4j.binary.BinaryDecoder.decodeMessage(BinaryDecoder.java:204) ~[whatsappweb4j-2.2.7.jar:na]
	at it.auties.whatsapp4j.binary.BinaryDecoder.parseMessage(BinaryDecoder.java:199) ~[whatsappweb4j-2.2.7.jar:na]
	at it.auties.whatsapp4j.binary.BinaryDecoder.readNode(BinaryDecoder.java:187) ~[whatsappweb4j-2.2.7.jar:na]
	at it.auties.whatsapp4j.binary.BinaryDecoder.lambda$readList$3(BinaryDecoder.java:211) ~[whatsappweb4j-2.2.7.jar:na]
	at java.base/java.util.stream.IntPipeline$1$1.accept(IntPipeline.java:180) ~[na:na]
	at java.base/java.util.stream.Streams$RangeIntSpliterator.forEachRemaining(Streams.java:104) ~[na:na]
	at java.base/java.util.Spliterator$OfInt.forEachRemaining(Spliterator.java:711) ~[na:na]
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[na:na]
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[na:na]
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:575) ~[na:na]
	at java.base/java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260) ~[na:na]
	at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:616) ~[na:na]
	at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:622) ~[na:na]
	at java.base/java.util.stream.ReferencePipeline.toList(ReferencePipeline.java:627) ~[na:na]
	at it.auties.whatsapp4j.binary.BinaryDecoder.readList(BinaryDecoder.java:211) ~[whatsappweb4j-2.2.7.jar:na]
	at it.auties.whatsapp4j.binary.BinaryDecoder.readNode(BinaryDecoder.java:187) ~[whatsappweb4j-2.2.7.jar:na]
	at it.auties.whatsapp4j.binary.BinaryDecoder.decodeDecryptedMessage(BinaryDecoder.java:48) ~[whatsappweb4j-2.2.7.jar:na]
	at it.auties.whatsapp4j.whatsapp.internal.WhatsappWebSocket.onBinary(WhatsappWebSocket.java:233) ~[whatsappweb4j-2.2.7.jar:na]
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[na:na]
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
	at java.base/java.lang.reflect.Method.invoke(Method.java:568) ~[na:na]
	at org.glassfish.tyrus.core.AnnotatedEndpoint.callMethod(AnnotatedEndpoint.java:553) ~[tyrus-core-2.0.0.jar:na]
	... 26 common frames omitted

This is a completely different exception, you are not running with preview features enabled(–enable-preview)

0reactions
alessandrolopopolocommented, Feb 2, 2022
java.lang.reflect.InvocationTargetException: null
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[na:na]
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
	at java.base/java.lang.reflect.Method.invoke(Method.java:568) ~[na:na]
	at org.glassfish.tyrus.core.AnnotatedEndpoint.callMethod(AnnotatedEndpoint.java:553) ~[tyrus-core-2.0.0.jar:na]
	at org.glassfish.tyrus.core.AnnotatedEndpoint.onError(AnnotatedEndpoint.java:583) ~[tyrus-core-2.0.0.jar:na]
	at org.glassfish.tyrus.core.AnnotatedEndpoint.callMethod(AnnotatedEndpoint.java:556) ~[tyrus-core-2.0.0.jar:na]
	at org.glassfish.tyrus.core.AnnotatedEndpoint.access$100(AnnotatedEndpoint.java:66) ~[tyrus-core-2.0.0.jar:na]
	at org.glassfish.tyrus.core.AnnotatedEndpoint$WholeHandler$1.onMessage(AnnotatedEndpoint.java:652) ~[tyrus-core-2.0.0.jar:na]
	at org.glassfish.tyrus.core.TyrusSession.notifyMessageHandlers(TyrusSession.java:559) ~[tyrus-core-2.0.0.jar:na]
	at org.glassfish.tyrus.core.TyrusEndpointWrapper.onMessage(TyrusEndpointWrapper.java:800) ~[tyrus-core-2.0.0.jar:na]
	at org.glassfish.tyrus.core.TyrusWebSocket.onMessage(TyrusWebSocket.java:183) ~[tyrus-core-2.0.0.jar:na]
	at org.glassfish.tyrus.core.frame.BinaryFrame.respond(BinaryFrame.java:70) ~[tyrus-core-2.0.0.jar:na]
	at org.glassfish.tyrus.core.ProtocolHandler.process(ProtocolHandler.java:819) ~[tyrus-core-2.0.0.jar:na]
	at org.glassfish.tyrus.client.TyrusClientEngine$TyrusReadHandler.handle(TyrusClientEngine.java:725) ~[tyrus-client-2.0.0.jar:na]
	at org.glassfish.tyrus.container.grizzly.client.GrizzlyClientFilter$ProcessTask.execute(GrizzlyClientFilter.java:452) ~[tyrus-container-grizzly-client-2.0.0.jar:na]
	at org.glassfish.tyrus.container.grizzly.client.TaskProcessor.processTask(TaskProcessor.java:91) ~[tyrus-container-grizzly-client-2.0.0.jar:na]
	at org.glassfish.tyrus.container.grizzly.client.TaskProcessor.processTask(TaskProcessor.java:68) ~[tyrus-container-grizzly-client-2.0.0.jar:na]
	at org.glassfish.tyrus.container.grizzly.client.GrizzlyClientFilter.handleRead(GrizzlyClientFilter.java:248) ~[tyrus-container-grizzly-client-2.0.0.jar:na]
	at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:88) ~[grizzly-framework-3.0.0-M1.jar:3.0.0-M1]
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:248) ~[grizzly-framework-3.0.0-M1.jar:3.0.0-M1]
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:181) ~[grizzly-framework-3.0.0-M1.jar:3.0.0-M1]
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:121) ~[grizzly-framework-3.0.0-M1.jar:3.0.0-M1]
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:99) ~[grizzly-framework-3.0.0-M1.jar:3.0.0-M1]
	at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:51) ~[grizzly-framework-3.0.0-M1.jar:3.0.0-M1]
	at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:510) ~[grizzly-framework-3.0.0-M1.jar:3.0.0-M1]
	at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:82) ~[grizzly-framework-3.0.0-M1.jar:3.0.0-M1]
	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:83) ~[grizzly-framework-3.0.0-M1.jar:3.0.0-M1]
	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:34) ~[grizzly-framework-3.0.0-M1.jar:3.0.0-M1]
	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:101) ~[grizzly-framework-3.0.0-M1.jar:3.0.0-M1]
	at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:535) ~[grizzly-framework-3.0.0-M1.jar:3.0.0-M1]
	at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:515) ~[grizzly-framework-3.0.0-M1.jar:3.0.0-M1]
	at java.base/java.lang.Thread.run(Thread.java:833) ~[na:na]
Caused by: java.lang.RuntimeException: An uncaught exception was thrown during the WebSocket lifecycle
	at it.auties.whatsapp4j.whatsapp.internal.WhatsappWebSocket.onError(WhatsappWebSocket.java:243) ~[whatsappweb4j-2.2.7.jar:na]
	... 33 common frames omitted
Caused by: java.lang.UnsupportedClassVersionError: Preview features are not enabled for it/auties/protobuf/util/ProtobufUtils (class file version 61.65535). Try running with '--enable-preview'
	at java.base/java.lang.ClassLoader.defineClass1(Native Method) ~[na:na]
	at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1012) ~[na:na]
	at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150) ~[na:na]
	at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:862) ~[na:na]
	at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:760) ~[na:na]
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:681) ~[na:na]
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:639) ~[na:na]
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188) ~[na:na]
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[na:na]
	at it.auties.protobuf.decoder.ProtobufDecoder.lambda$getFields$6(ProtobufDecoder.java:213) ~[protoc-api-1.8.jar:na]
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) ~[na:na]
	at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) ~[na:na]
	at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:992) ~[na:na]
	at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762) ~[na:na]
	at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276) ~[na:na]
	at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:992) ~[na:na]
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[na:na]
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[na:na]
	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) ~[na:na]
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) ~[na:na]
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[na:na]
	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) ~[na:na]
	at it.auties.protobuf.decoder.ProtobufDecoder.getFields(ProtobufDecoder.java:214) ~[protoc-api-1.8.jar:na]
	at it.auties.protobuf.decoder.ProtobufDecoder.lambda$getFields$4(ProtobufDecoder.java:189) ~[protoc-api-1.8.jar:na]
	at java.base/java.util.Optional.orElseGet(Optional.java:364) ~[na:na]
	at it.auties.protobuf.decoder.ProtobufDecoder.getFields(ProtobufDecoder.java:189) ~[protoc-api-1.8.jar:na]
	at it.auties.protobuf.decoder.ProtobufDecoder.readDelimited(ProtobufDecoder.java:130) ~[protoc-api-1.8.jar:na]
	at it.auties.protobuf.decoder.ProtobufDecoder.readFieldContent(ProtobufDecoder.java:109) ~[protoc-api-1.8.jar:na]
	at it.auties.protobuf.decoder.ProtobufDecoder.parseField(ProtobufDecoder.java:99) ~[protoc-api-1.8.jar:na]
	at it.auties.protobuf.decoder.ProtobufDecoder.decode(ProtobufDecoder.java:73) ~[protoc-api-1.8.jar:na]
	at it.auties.protobuf.decoder.ProtobufDecoder.decodeAsMap(ProtobufDecoder.java:57) ~[protoc-api-1.8.jar:na]
	at it.auties.protobuf.decoder.ProtobufDecoder.decode(ProtobufDecoder.java:47) ~[protoc-api-1.8.jar:na]
	at it.auties.whatsapp4j.binary.BinaryDecoder.decodeMessage(BinaryDecoder.java:204) ~[whatsappweb4j-2.2.7.jar:na]
	at it.auties.whatsapp4j.binary.BinaryDecoder.parseMessage(BinaryDecoder.java:199) ~[whatsappweb4j-2.2.7.jar:na]
	at it.auties.whatsapp4j.binary.BinaryDecoder.readNode(BinaryDecoder.java:187) ~[whatsappweb4j-2.2.7.jar:na]
	at it.auties.whatsapp4j.binary.BinaryDecoder.lambda$readList$3(BinaryDecoder.java:211) ~[whatsappweb4j-2.2.7.jar:na]
	at java.base/java.util.stream.IntPipeline$1$1.accept(IntPipeline.java:180) ~[na:na]
	at java.base/java.util.stream.Streams$RangeIntSpliterator.forEachRemaining(Streams.java:104) ~[na:na]
	at java.base/java.util.Spliterator$OfInt.forEachRemaining(Spliterator.java:711) ~[na:na]
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[na:na]
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[na:na]
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:575) ~[na:na]
	at java.base/java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260) ~[na:na]
	at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:616) ~[na:na]
	at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:622) ~[na:na]
	at java.base/java.util.stream.ReferencePipeline.toList(ReferencePipeline.java:627) ~[na:na]
	at it.auties.whatsapp4j.binary.BinaryDecoder.readList(BinaryDecoder.java:211) ~[whatsappweb4j-2.2.7.jar:na]
	at it.auties.whatsapp4j.binary.BinaryDecoder.readNode(BinaryDecoder.java:187) ~[whatsappweb4j-2.2.7.jar:na]
	at it.auties.whatsapp4j.binary.BinaryDecoder.decodeDecryptedMessage(BinaryDecoder.java:48) ~[whatsappweb4j-2.2.7.jar:na]
	at it.auties.whatsapp4j.whatsapp.internal.WhatsappWebSocket.onBinary(WhatsappWebSocket.java:233) ~[whatsappweb4j-2.2.7.jar:na]
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[na:na]
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
	at java.base/java.lang.reflect.Method.invoke(Method.java:568) ~[na:na]
	at org.glassfish.tyrus.core.AnnotatedEndpoint.callMethod(AnnotatedEndpoint.java:553) ~[tyrus-core-2.0.0.jar:na]
	... 26 common frames omitted
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Handle the Socket Exception in Java - Rollbar
The following is an example of a SocketException thrown when trying to write to a closed socket connection. Two classes, MyServer and MyClient ......
Read more >
Connection dies after exception from mysql - Stack Overflow
Usually when an application level exception happens, the transaction rollbacks and the connection can be used for future requests. How can I ...
Read more >
Entity Framework throw Exception: The connection could have ...
The application will process multiple tasks concurrently, sometimes the application throws an exception when it tries to connect the database.
Read more >
Exceptions pertaining to data access - IBM
When an application receives a stale connection exception on a database operation, it indicates that the connection currently held is no longer valid....
Read more >
How to Fix with java.net.SocketException: Connection reset ...
The java.net.SocketException: Connection reset error usually comes when one of the parties in TCP connection like client or server is trying to read/write...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found