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.NullPointerException in BerClassWriter #39

Open
alpercoskun opened this issue Jun 17, 2021 · 0 comments
Open

java.lang.NullPointerException in BerClassWriter #39

alpercoskun opened this issue Jun 17, 2021 · 0 comments

Comments

@alpercoskun
Copy link

When I try to compile ROSE ASN.1 files [which can you find in: https://github.com/wireshark/wireshark/tree/master/epan/dissectors/asn1/ros]

I got below exception:

Generating classes for module "Remote-Operations-Useful-Definitions"
Exception in thread "main" java.lang.NullPointerException
at java.lang.String.compareTo(String.java:1155)
at java.lang.String.compareTo(String.java:111)
at java.util.ComparableTimSort.countRunAndMakeAscending(ComparableTimSort.java:320)
at java.util.ComparableTimSort.sort(ComparableTimSort.java:188)
at java.util.Arrays.sort(Arrays.java:1312)
at java.util.Arrays.sort(Arrays.java:1506)
at java.util.ArrayList.sort(ArrayList.java:1464)
at java.util.Collections.sort(Collections.java:143)
at com.beanit.asn1bean.compiler.BerClassWriter.writeOidValues(BerClassWriter.java:247)
at com.beanit.asn1bean.compiler.BerClassWriter.translateModule(BerClassWriter.java:241)
at com.beanit.asn1bean.compiler.BerClassWriter.translate(BerClassWriter.java:173)
at com.beanit.asn1bean.compiler.Compiler.main(Compiler.java:111)

Full output:

Parsing "Remote-Operations-Generic-ROS-PDUs.asn"
line 20:1: expecting "END", found '('
line 21:15: unexpected token: :
line 164:1: expecting "DEFINITIONS", found 'null'
Parsing "Remote-Operations-Information-Objects.asn"
line 21:26: unexpected token: ERROR
line 22:26: unexpected token: OPERATION
line 25:26: unexpected token: Priority
line 26:26: unexpected token: Priority
line 47:27: unexpected token: Priority
line 58:14: unexpected token: OPERATION
line 59:14: unexpected token: OPERATION
line 60:14: unexpected token: OPERATION
line 88:25: unexpected token: OPERATION-PACKAGE
line 89:25: unexpected token: OPERATION-PACKAGE
line 90:25: unexpected token: OPERATION-PACKAGE
line 102:26: unexpected token: ROS-OBJECT-CLASS
line 103:26: unexpected token: CONTRACT
line 104:26: unexpected token: CONTRACT
line 105:26: unexpected token: CONTRACT
Parsing "Remote-Operations-Useful-Definitions.asn"
line 16:39: expecting R_BRACE, found '{'
line 16:46: unexpected token: }
line 17:26: expecting ASSIGN_OP, found 'SYNCHRONOUS'
line 20:41: expecting R_BRACE, found 'TRUE'
line 23:30: expecting R_BRACE, found ':'
line 23:31: expecting "END", found '-1'
line 26:17: unexpected token: ::=
line 96:1: expecting "DEFINITIONS", found 'null'
Generating classes for module "Remote-Operations-Useful-Definitions"
Exception in thread "main" java.lang.NullPointerException
at java.lang.String.compareTo(String.java:1155)
at java.lang.String.compareTo(String.java:111)
at java.util.ComparableTimSort.countRunAndMakeAscending(ComparableTimSort.java:320)
at java.util.ComparableTimSort.sort(ComparableTimSort.java:188)
at java.util.Arrays.sort(Arrays.java:1312)
at java.util.Arrays.sort(Arrays.java:1506)
at java.util.ArrayList.sort(ArrayList.java:1464)
at java.util.Collections.sort(Collections.java:143)
at com.beanit.asn1bean.compiler.BerClassWriter.writeOidValues(BerClassWriter.java:247)
at com.beanit.asn1bean.compiler.BerClassWriter.translateModule(BerClassWriter.java:241)
at com.beanit.asn1bean.compiler.BerClassWriter.translate(BerClassWriter.java:173)
at com.beanit.asn1bean.compiler.Compiler.main(Compiler.java:111)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant