[ASN.1] [ASN1]Problem with IMPORTS and ERROR PARAMETER
Hello, Using a java compiler which use asn1 files to generate java files but we have some problems with two differents keyword : - IMPORTS : we don't manage to use these instruction. We first compile the java class which is imported but in the second file it seems not to see the classes imported. - ERROR PARAMETER : we use a file containing some errors described as followed : CancelFailed ::= ERROR PARAMETER SEQUENCE { problem [0] ENUMERATED { unknownOperation (0), tooLate(1), operationNotCancellable (2) }, operation [1] InvokeID --... } When we compile, an error occurs for this sentence. Does anyone faced those problems? Does anyone have some clues? Furthermore there are no error when compiling with a C compiler. Thanks, Karine DUVAL
Re: [ASN.1] [ASN1]Problem with IMPORTS and ERROR PARAMETER
Karine Duval wrote: Hello, Using a java compiler which use asn1 files to generate java files but we have some problems with two differents keyword : - IMPORTS : we don't manage to use these instruction. We first compile the java class which is imported but in the second file it seems not to see the classes imported. - ERROR PARAMETER : we use a file containing some errors described as followed : CancelFailed ::= ERROR PARAMETER SEQUENCE { problem [0] ENUMERATED { unknownOperation (0), tooLate(1), operationNotCancellable (2) }, operation [1] InvokeID --... } When we compile, an error occurs for this sentence. Does anyone faced those problems? Does anyone have some clues? Furthermore there are no error when compiling with a C compiler. Thanks, Karine DUVAL If I'm not mistakes, your example is using the old X.208 ASN.1 macro notation. Do your java compiler support X.208 or X.680-series? Best regards Egon Andersen -- * Talura ApS * Phone: +45 43 52 50 00 * * Baldershøj 24 B * mailto:[EMAIL PROTECTED] * * DK-2635 Ishøj * http://www.talura.dk *
Re: [ASN.1] [ASN1]Problem with IMPORTS and ERROR PARAMETER
Karine Duval wrote: Egon Andersen, Talura a écrit : Karine Duval wrote: Hello, Using a java compiler which use asn1 files to generate java files but we have some problems with two differents keyword : - IMPORTS : we don't manage to use these instruction. We first compile the java class which is imported but in the second file it seems not to see the classes imported. - ERROR PARAMETER : we use a file containing some errors described as followed : CancelFailed ::= ERROR PARAMETER SEQUENCE { problem [0] ENUMERATED { unknownOperation (0), tooLate(1), operationNotCancellable (2) }, operation [1] InvokeID --... } When we compile, an error occurs for this sentence. Does anyone faced those problems? Does anyone have some clues? Furthermore there are no error when compiling with a C compiler. Thanks, Karine DUVAL If I'm not mistakes, your example is using the old X.208 ASN.1 macro notation. Do your java compiler support X.208 or X.680-series? I don't know what support my java compiler but it is surely the problem. But how can I translate these expressions in new ASN.1 macro notation? Othewise where can I find the new notation? Or do you know java compiler supporting this old notation? Thanks, Karine DUVAL I don't know what protocol you are trying to compile, but I'll recommend you to try to find a version of the protocol that uses X.680-series syntax. X.680-series (actually X.681) do not use macros, but objects. Best regards Egon Andersen -- * Talura ApS * Phone: +45 43 52 50 00 * * Baldershøj 24 B * mailto:[EMAIL PROTECTED] * * DK-2635 Ishøj * http://www.talura.dk *