我嘗試解碼CDR文件以將其轉換爲XMLAsn.1開發工具,使用Java將CDR轉換爲XML
我已經在我的PC上安裝了Java編譯器。 我用這個鏈接http://www.asnlab.org/asndt/overview.html
我試圖解碼我的CDR文件,但它不能正常工作。
它顯示正確的前19個記錄,然後它給了我錯誤,我嘗試了2個不同的CDR文件。而且他們都只顯示了19條記錄。
一號文件給了我這個錯誤:
Record 20 org.asnlab.asndt.runtime.error.AsnRuntimeException: Can not invoke method 'valueOf()' 794995 at org.asnlab.asndt.runtime.conv.ReflectionEnumeratedConverter.toObject(ed:40) at org.asnlab.asndt.runtime.type.EnumeratedType.I(mc:126) at org.asnlab.asndt.runtime.type.ImplicitType.I(xc:152) at org.asnlab.asndt.runtime.type.SetType.I(gb:191) at org.asnlab.asndt.runtime.type.SetType.I(gb:158) at org.asnlab.asndt.runtime.type.ImplicitType.I(xc:152) at org.asnlab.asndt.runtime.type.ChoiceType.I(hc:183) at org.asnlab.asndt.runtime.type.SequenceType.I(xb:221) at org.asnlab.asndt.runtime.type.SequenceType.I(xb:46) at org.asnlab.asndt.runtime.type.ImplicitType.I(xc:152) at org.asnlab.asndt.runtime.type.AsnType.I(bb:354) at org.asnlab.asndt.runtime.type.ByteBuffer.decode(fc:18) at org.asnlab.asndt.runtime.type.AsnType.decode(bb:338) at Test.main(Test.java:20)
和2檔給了我這個錯誤:
Record 20 org.asnlab.asndt.runtime.error.InvalidTagException 229505 at org.asnlab.asndt.runtime.type.AsnType.I(bb:369) at org.asnlab.asndt.runtime.type.ByteBuffer.decode(fc:18) at org.asnlab.asndt.runtime.type.AsnType.decode(bb:338) at Test.main(Test.java:20)
我不明白是它的問題,我ASN.1定義或沒有?
謝謝你,對。 – Ryainad