Skip Menu |

This queue is for tickets about the XML-SAX CPAN distribution.

Report information
The Basics
Id: 51045
Status: new
Priority: 0/
Queue: XML-SAX

People
Owner: Nobody in particular
Requestors: Konstantin.Kabassanov [...] lip6.fr
Cc:
AdminCc:

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



Subject: PI has no target
Date: Mon, 2 Nov 2009 15:43:30 +0100
To: <bug-XML-SAX [...] rt.cpan.org>
From: "Konstantin KABASSANOV" <Konstantin.Kabassanov [...] lip6.fr>
Hello, There is a problem with the _parse_string function of the PurePerl.pm module. The function creates a reader object (XML::SAX::PurePerl::Reader::String). If the string length is over the CHUNK_SIZE, the string is truncated in the new object. When this happens after a comment line in the string, there is an error message: "PI has no target". I have no idea how to correct this. Any idea? Uncaught exception from user code: PI has no target [Ln: 1, Col: 9383946240] at /usr/pkg/lib/perl5/vendor_perl/5.10.0/XML/SAX/Exception.pm line 24 XML::SAX::Exception::throw('XML::SAX::Exception::Parse=HASH(0xba6ea8b0)') called at /usr/pkg/lib/perl5/vendor_perl/5.10.0/XML/SAX/PurePerl.pm line 125 XML::SAX::PurePerl::parser_error('XML::SAX::PurePerl=HASH(0xbaca9370)', 'PI has no target', 'XML::SAX::PurePerl::Reader::String=ARRAY(0xba713800)') called at /usr/pkg/lib/perl5/vendor_perl/5.10.0/XML/SAX/PurePerl.pm line 645 XML::SAX::PurePerl::PI('XML::SAX::PurePerl=HASH(0xbaca9370)', 'XML::SAX::PurePerl::Reader::String=ARRAY(0xba713800)') called at /usr/pkg/lib/perl5/vendor_perl/5.10.0/XML/SAX/PurePerl.pm line 370 XML::SAX::PurePerl::Misc('XML::SAX::PurePerl=HASH(0xbaca9370)', 'XML::SAX::PurePerl::Reader::String=ARRAY(0xba713800)') called at /usr/pkg/lib/perl5/vendor_perl/5.10.0/XML/SAX/PurePerl.pm line 150 XML::SAX::PurePerl::prolog('XML::SAX::PurePerl=HASH(0xbaca9370)', 'XML::SAX::PurePerl::Reader::String=ARRAY(0xba713800)') called at /usr/pkg/lib/perl5/vendor_perl/5.10.0/XML/SAX/PurePerl.pm line 133 XML::SAX::PurePerl::document('XML::SAX::PurePerl=HASH(0xbaca9370)', 'XML::SAX::PurePerl::Reader::String=ARRAY(0xba713800)') called at /usr/pkg/lib/perl5/vendor_perl/5.10.0/XML/SAX/PurePerl.pm line 106 XML::SAX::PurePerl::_parse('XML::SAX::PurePerl=HASH(0xbaca9370)', 'XML::SAX::PurePerl::Reader::String=ARRAY(0xba713800)') called at /usr/pkg/lib/perl5/vendor_perl/5.10.0/XML/SAX/PurePerl.pm line 66 XML::SAX::PurePerl::_parse_string('XML::SAX::PurePerl=HASH(0xbaca9370)', '\x{ef}\x{bb}\x{bf}<?\x{a}# Version 1.01\x{a}# Correspondance between Description of ...') called at /usr/pkg/lib/perl5/vendor_perl/5.10.0/XML/SAX/Base.pm line 2611 XML::SAX::Base::parse('XML::SAX::PurePerl=HASH(0xbaca9370)', 'HASH(0xba6daf80)') called at /usr/pkg/lib/perl5/vendor_perl/5.10.0/XML/SAX/Base.pm line 2657 XML::SAX::Base::parse_string('XML::SAX::PurePerl=HASH(0xbaca9370)', '\x{ef}\x{bb}\x{bf}<?\x{a}# Version 1.01\x{a}# Correspondance between Description of ...') called at /usr/pkg/lib/perl5/vendor_perl/5.10.0/XML/Simple.pm line 370 XML::Simple::build_tree('XML::Simple=HASH(0xbaca94e0)', undef, 'SCALAR(0xbaf97580)') called at /usr/pkg/lib/perl5/vendor_perl/5.10.0/XML/Simple.pm line 308 XML::Simple::build_simple_tree('XML::Simple=HASH(0xbaca94e0)', undef, 'SCALAR(0xbaf97580)') called at /usr/pkg/lib/perl5/vendor_perl/5.10.0/XML/Simple.pm line 270 XML::Simple::parse_string('XML::Simple=HASH(0xbaca94e0)', 'SCALAR(0xbaf97580)') called at /usr/pkg/lib/perl5/vendor_perl/5.10.0/XML/Simple.pm line 171 XML::Simple::XMLin('XML::Simple=HASH(0xbaca94e0)', '\x{ef}\x{bb}\x{bf}<?\x{a}# Version 1.01\x{a}# Correspondance between Description of ...') called at tracker_agent.pl line 165 The truncated part of the string: <? # Version 1.01 # Correspondance between Description of device and oid to get serial ########################################### ################# Switchs ################# ##########ric################################# #* 3Com $SerialNumberDef['3Com IntelliJack NJ225'] = '.1.3.6.1.4.1.43.29.4.18.2.1.7.1'; $TypeDef['3Com IntelliJack NJ225'] = 2; $ModelDef['3Com IntelliJack NJ225'] = 'Networking0004'; $SerialNumberDef['3Com SuperStack'] = '.1.3.6.1.4.1.43.10.27.1.1.1.13.1'; $TypeDef['3Com SuperStack'] = 2; $ModelDef['3Com SuperStack'] = 'Networking0002'; #* Alcatel $SerialNumberDef['OmniStack LS'] = '.1.3.6.1.2.1.47.1.1.1.1.11.67108992'; $TypeDef['OmniStack LS'] = 2; $ModelDef['OmniStack LS'] = 'Networking0002'; #* Alvarion (Wireless) $SerialNumberDef['Alvarion - BreezeNet B'] = ''; $TypeDef['Alvarion - BreezeNet B'] = 2; $ModelDef['Alvarion - BreezeNet B'] = 'Networking0002'; #* Apple (wireless router) $SerialNumberDef['Apple AirPort'] = ''; $TypeDef['Apple AirPort'] = 2; $ModelDef['Apple AirPort'] = ''; $SerialNumberDef['Apple Base Station'] = ''; $TypeDef['Apple Base Station'] = 2; $ModelDef['Apple Base Station'] = ''; #* Avaya $SerialNumberDef['Avaya Inc. - P330 Stackable Switch'] = ''; $TypeDef['Avaya Inc. - P330 Stackable Switch'] = 2; $ModelDef['Avaya Inc. - P330 Stackable Switch'] = 'Networking0002'; #* Cisco #** C850 (Router) $SerialNumberDef['Cisco IOS Software, C850'] = ''; $TypeDef['Cisco IOS Software, C850'] = 2; $ModelDef['Cisco IOS Software, C850'] = ''; #** C870 (Router) $SerialNumberDef['Cisco IOS Software, C870'] = ''; $TypeDef['Cisco IOS Software, C870'] = 2; $ModelDef['Cisco IOS Software, C870'] = ''; #** C2800 $SerialNumberDef['Cisco IOS Software, 2800 Software'] = '.1.3.6.1.2.1.47.1.1.1.1.11.1'; $TypeDef['Cisco IOS Software, 2800 Software'] = 2; $ModelDef['Cisco IOS Software, 2800 Software'] = 'Networking0007'; #** C2900XL (2912 / 2924) Show quoted text
_____________________________________________________________________ Konstantin KABASSANOV LIP6/CNRS 104, avenue du Président Kennedy, 75016 Paris, France Phone: +33 (0) 1 44 27 71 26 Fax: +33 (0) 1 44 27 74 95 E-mail: konstantin@kabassanov.com Web: http://www.kabassanov.com Certificate: http://igc.services.cnrs.fr/CNRS-Standard/recherche.html
_____________________________________________________________________
Download smime.p7s
application/x-pkcs7-signature 3.6k

Message body not shown because it is not plain text.