thanks for helping, but this still didn't solve my problem, still getting
Exception in thread "main" org.asnlab.asndt.runtime.error.InvalidTagException
at org.asnlab.asndt.runtime.type.SequenceType.D(yb:39)
at org.asnlab.asndt.runtime.type.SequenceType.D(yb:74)
at org.asnlab.asndt.runtime.type.AsnType.D(ib:322)
at org.asnlab.asndt.runtime.type.ListType.D(eb:52)
at org.asnlab.asndt.runtime.type.ImplicitType.D(cc:70)
at org.asnlab.asndt.runtime.type.SequenceType.D(yb:181)
at org.asnlab.asndt.runtime.type.SequenceType.D(yb:74)
at org.asnlab.asndt.runtime.type.ImplicitType.D(cc:70)
at org.asnlab.asndt.runtime.type.SequenceType.D(yb:181)
at org.asnlab.asndt.runtime.type.SequenceType.D(yb:74)
at org.asnlab.asndt.runtime.type.ImplicitType.D(cc:70)
at org.asnlab.asndt.runtime.type.ChoiceType.D(yc:100)
at org.asnlab.asndt.runtime.type.AsnType.D(ib:322)
at org.asnlab.asndt.runtime.type.ListType.D(eb:52)
at org.asnlab.asndt.runtime.type.ImplicitType.D(cc:70)
at org.asnlab.asndt.runtime.type.SequenceType.D(yb:181)
at org.asnlab.asndt.runtime.type.SequenceType.D(yb:74)
at org.asnlab.asndt.runtime.type.ImplicitType.D(cc:70)
at org.asnlab.asndt.runtime.type.ChoiceType.D(yc:100)
at org.asnlab.asndt.runtime.type.AsnType.D(ib:322)
at org.asnlab.asndt.runtime.type.ByteBuffer.decode(pc:202)
at org.asnlab.asndt.runtime.type.AsnType.decode(ib:424)
at CDRCCN.CDRCCN.main(CDRCCN.java:63)
below is the code I used:
/*
* Generated by ASN.1 Java Compiler (
http://www.asnlab.org/)
* From ASN.1 module "CDRCCN"
*/
package CDRCCN;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Vector;
import org.apache.commons.io.FileUtils;
import org.asnlab.asndt.runtime.conv.AsnConverter;
import org.asnlab.asndt.runtime.conv.EncodingRules;
import org.asnlab.asndt.runtime.type.AsnModule;
import org.asnlab.asndt.runtime.type.AsnType;
import org.asnlab.asndt.runtime.type.Buffer;
import org.asnlab.asndt.runtime.type.ByteBuffer;
public class CDRCCN extends AsnModule {
public final static CDRCCN instance = new CDRCCN();
/**
/* Creates the ASN.1 module.
/* The ASN.1 module instance is created automatically, clients must not call.
/* A metadata file named CDRCCN.meta must exist in the same package of this class.
**/
private CDRCCN() {
super(CDRCCN.class);
}
public static AsnType type(int id) {
return instance.getType(id);
}
public static Object value(int valueId, AsnConverter converter) {
return instance.getValue(valueId, converter);
}
public static Object object(int objectId, AsnConverter converter) {
return instance.getObject(objectId, converter);
}
public static Vector objectSet(int objectSetId, AsnConverter converter) {
return instance.getObjectSet(objectSetId, converter);
}
/**
* Sample test code
*/
public static void main(String[] args) {
try {
ByteBuffer buffer = (ByteBuffer) Buffer.wrap(FileUtils.readFileToByteArray(new File("D:\\Downloads\\tmp\\CDRS\\CCNCDR44-Blk32768Blk-03-130822-1531-1854")), EncodingRules.BASIC_ENCODING_RULES);