Re: Problem with MARC::File::XML

[email protected] (Claire Hernandez) Mon, 20 Dec 2010 13:35:24 +0100
Newsgroups perl.perl4lib
Message-ID <[email protected]>
Hi,

First, when the patch is not applied, in both case, I have no error.

There are 2 cases:

1/ $ more /etc/perl/XML/SAX/ParserDetails.ini
[XML::SAX::PurePerl]
http://xml.org/sax/features/namespaces = 1
[XML::LibXML::SAX]
http://xml.org/sax/features/namespaces = 1
[XML::LibXML::SAX::Parser]
http://xml.org/sax/features/namespaces = 1
[XML::SAX::Expat]
http://xml.org/sax/features/namespaces = 1
http://xml.org/sax/features/external-general-entities = 1
http://xml.org/sax/features/external-parameter-entities = 1

at /home/claire/Workspace/versions/solr/C4/Search.pm line 2986.
DBD::mysql::st execute failed: Lost connection to MySQL server during 
query at /home/claire/Workspace/versions/solr/C4/MarcFramework.pm line 114.
DBD::mysql::st fetchrow_hashref failed: fetch() without execute() at 
/home/claire/Workspace/versions/solr/C4/MarcFramework.pm line 117.
     problem with :80 :
not well-formed (invalid token) at line 34, column 36, byte 1316 at 
/usr/lib/perl5/XML/Parser.pm line 187
...
     problem with :81 :
not well-formed (invalid token) at line 12, column 24, byte 498 at 
/usr/lib/perl5/XML/Parser.pm line 187

2/ $ cat /etc/perl/XML/SAX/ParserDetails.ini
[XML::LibXML::SAX]
http://xml.org/sax/features/namespaces = 1

problem with :88 : Malformed UTF-8 character (fatal) at 
/usr/lib/perl5/XML/LibXML/Error.pm line 217.
at /usr/share/perl5/MARC/File/XML.pm line 445
...
problem with :89 : Entity: line 34: parser error : Input is not proper 
UTF-8, indicate encoding !
Bytes: 0xE9 0x72 0x69 0x63
<subfield code="g">trad. de l'américain par Christine Le Boeuf</subfield>

The second seems to be an encoding problem (never on the same biblio 
number) but doesn't arrive without threading...

Thanks for help,
Claire;

On 15/12/2010 16:38, Galen Charlton wrote:
> Hi,
>
> On Tue, Dec 14, 2010 at 11:55 AM, Claire Hernandez
> <[email protected]>  wrote:
>> I had another issue, with another sax parser:
>>     Malformed UTF-8 character (unexpected end of string) in substitution
>> (s///) at /usr/lib/perl5/XML/LibXML/Error.pm line 217.
>>     problem with :84 : :61: parser error : Input is not proper UTF-8,
>> indicate encoding !
>>
> With the patch you attached, are you getting the XML::LibXML error
> above, the XML::Parser error that Henri-Damien cited, or both?
>
> Regards,
>
> Galen