Subject: | RE: PI has no target |
Date: | Tue, 3 Nov 2009 14:37:02 +0100 |
To: | <bug-XML-SAX [...] rt.cpan.org> |
From: | "Konstantin KABASSANOV" <Konstantin.Kabassanov [...] lip6.fr> |
I'm sorry. There is no bug... Could you please close the ticket?
Show quoted text
> -----Message d'origine-----
> De : Konstantin KABASSANOV [mailto:Konstantin.Kabassanov@lip6.fr]
> Envoyé : lundi 2 novembre 2009 15:44
> À : 'bug-XML-SAX@rt.cpan.org'
> Objet : PI has no target
>
> 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)
>
>
> _____________________________________________________________________
>
> 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
> _____________________________________________________________________
>
Message body not shown because it is not plain text.