Skip Menu |

This queue is for tickets about the MzML-Parser CPAN distribution.

Report information
The Basics
Id: 100879
Status: resolved
Priority: 0/
Queue: MzML-Parser

People
Owner: Nobody in particular
Requestors: Patrick.Guterl [...] unistra.fr
Cc:
AdminCc:

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



Subject: Attribute (scanWindowList) does not pass the type constraint because: Validation
Date: Fri, 12 Dec 2014 10:06:46 +0100
To: <bug-MzML-Parser [...] rt.cpan.org>
From: "Patrick Guterl" <Patrick.Guterl [...] unistra.fr>
Hi, I have a error with my sample.mzML The program: #!/usr/bin/perl use strict; use warnings; use MzML::Parser; my $p = MzML::Parser->new(); my $res = $p->parse("sample.mzML"); A error is generated: Attribute (scanWindowList) does not pass the type constraint because: Validation failed for 'MzML::ScanWindowList' with value undef at accessor MzML::Scan::scanWindowList (defined at /usr/local/share/perl5/MzML/Scan.pm line 39) line 4 MzML::Scan::scanWindowList('MzML::Scan=HASH(0x3d967a0)', undef) called at /usr/local/share/perl5/MzML/Parser.pm line 918 MzML::Parser::parse_run('XML::Twig=HASH(0x34f9d80)', 'XML::Twig::Elt=HASH(0x3022f98)') called at /usr/local/share/perl5/XML/Twig.pm line 2332 XML::Twig::_twig_end('XML::Parser::Expat=HASH(0x34fa980)', 'run') called at /usr/local/lib64/perl5/XML/Parser/Expat.pm line 470 XML::Parser::Expat::parse('XML::Parser::Expat=HASH(0x34fa980)', '*XML::Parser::FILE') called at /usr/local/lib64/perl5/XML/Parser.pm line 187 eval {...} at /usr/local/lib64/perl5/XML/Parser.pm line 186 XML::Parser::parse('XML::Twig=HASH(0x34f9d80)', '*XML::Parser::FILE') called at /usr/local/share/perl5/XML/Twig.pm line 761 eval {...} at /usr/local/share/perl5/XML/Twig.pm line 761 XML::Twig::parse('XML::Twig=HASH(0x34f9d80)', '*XML::Parser::FILE') called at /usr/local/lib64/perl5/XML/Parser.pm line 233 eval {...} at /usr/local/lib64/perl5/XML/Parser.pm line 232 XML::Parser::parsefile('XML::Twig=HASH(0x34f9d80)', 'sample.mzML') called at /usr/local/share/perl5/XML/Twig.pm line 774 eval {...} at /usr/local/share/perl5/XML/Twig.pm line 774 XML::Twig::parsefile('XML::Twig=HASH(0x34f9d80)', 'sample.mzML') called at /usr/local/share/perl5/MzML/Parser.pm line 80 MzML::Parser::parse('MzML::Parser=HASH(0x34772e0)', 'sample.mzML') called at parserML.pl line 10 The file t/sample.mzML work fine. My sample.mzML is attached Bien cordialement, Patrick GUTERL Show quoted text
____________________________________ Patrick GUTERL Tél: 03 68 85 28 12 Fax: 03 68 85 27 47 E-mail: Patrick.Guterl@unistra.fr IPHC UMR7178 Institut Pluridisciplinaire Hubert Curien 25 Rue Becquerel 67087 STRASBOURG CEDEX
____________________________________ Trust in CNRS's certificates: http://igc.services.cnrs.fr/Doc/General/trust.html
Download sample.mzML
application/octet-stream 81.7k

Message body not shown because it is not plain text.

I just fixed the faulty subroutines. The problem was with some missing tags like scanWindowList that can be missing in the MzML file. The test file I use and that is used in the testing libraries do not present a scenario like that. I'm calling this resolve, please if you notice something wrong, feel free to report.