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
Attempting to serialize a NoViableAltException, or an Exception whose cause chain contains an instance of NoViableAltException fails because the ctx member (RuleContext) from parent class RecognitionException is not serializable.
Need to make the ANTLR classes that can be included in ANTLR exceptions serializable, or need to make the members of these classes in ANTLR exceptions transient.
public static class GSContext extends ParserRuleContext {
...
}
Caused by: java.io.NotSerializableException: c.n.j.j.parser.antlr.JP$GSContext
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1184)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548)
at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:441)
at java.lang.Throwable.writeObject(Throwable.java:1024)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:1155)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)
at c.n.j.d.s.s.jse.writeRes(jse.java:880)
at c.n.j.d.s.s.jse.writeScriptRes(jse.java:994)
at c.n.j.d.s.s.jse.main(jse.java:944)
The text was updated successfully, but these errors were encountered:
Attempting to serialize a NoViableAltException, or an Exception whose cause chain contains an instance of NoViableAltException fails because the ctx member (RuleContext) from parent class RecognitionException is not serializable.
Need to make the ANTLR classes that can be included in ANTLR exceptions serializable, or need to make the members of these classes in ANTLR exceptions transient.
The text was updated successfully, but these errors were encountered: