Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Convert-ASN1 CPAN distribution.

Report information
The Basics
Id: 5685
Status: resolved
Priority: 0/
Queue: Convert-ASN1

People
Owner: Nobody in particular
Requestors: Jason.Bruce [...] Nextel.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Convert::ASN1 parsing problems
Date: Tue, 16 Mar 2004 13:03:24 -0500
From: "Bruce, Jason" <Jason.Bruce [...] Nextel.com>
To: <bug-Convert-ASN1 [...] rt.cpan.org>
I have tried to parse the attached to no avail. I get different output depending on whether I attempt to parse it using asn_read or asn_get. My latest attempt is attached. It contains 3 files and uses asn_read. 1) CDAUSTAUSANC01169.tap3 2) parse_tap3.pl 3) tap3.asn Where 1 is the data file, 2 is the perl script used, and 3 is the asn rules/definitions. Note that asn_dump and asn_dumphex work fine. I have verifed the dump output through another parser which runs on Windows. The fact that the dumps work ok leads me to believe that tap3.asn is fine. Contradicting this, I get the following error when trying to read in the file... Bad ASN PDU at /usr/lib/perl5/site_perl/5.6.0/Convert/ASN1/IO.pm line 178. When I try to decode the file - just after the hex dump, I get the following... decode error 61<=>7f827b at /usr/lib/perl5/site_perl/5.6.0/Convert/ASN1/_decode.pm line 110. Any help you can give would be appreciated. Jason Bruce <<tap3.zip>>
Download tap3.zip
application/x-zip-compressed 18.8k

Message body not shown because it is not plain text.

From: Graham Barr <gbarr [...] pobox.com>
Subject: Re: [cpan #5685] Convert::ASN1 parsing problems
Date: Mon, 22 Mar 2004 13:19:38 +0000
To: bug-Convert-ASN1 [...] rt.cpan.org
RT-Send-Cc:
You need to call decode on the result of find for the element you want to decode $DataInterChange_asn = $asn->find('DataInterChange'); $DataInterChange_asn->decode9$buffer); Graham. On 16 Mar 2004, at 18:11, Bruce, Jason via RT wrote: Show quoted text
> I have tried to parse the attached to no avail. I get different > output depending on whether I attempt to parse it using asn_read or > asn_get. My latest attempt is attached. It contains 3 files and uses > asn_read. > > 1) CDAUSTAUSANC01169.tap3 > 2) parse_tap3.pl > 3) tap3.asn > > Where 1 is the data file, 2 is the perl script used, and 3 is the asn > rules/definitions. > > Note that asn_dump and asn_dumphex work fine. I have verifed the dump > output through another parser which runs on Windows. The fact that > the dumps work ok leads me to believe that tap3.asn is fine. > Contradicting this, I get the following error when trying to read in > the file... > > Bad ASN PDU at /usr/lib/perl5/site_perl/5.6.0/Convert/ASN1/IO.pm line > 178. > > When I try to decode the file - just after the hex dump, I get the > following... > > decode error 61<=>7f827b at > /usr/lib/perl5/site_perl/5.6.0/Convert/ASN1/_decode.pm line 110. > > Any help you can give would be appreciated. > > Jason Bruce > > <<tap3.zip>> > >