Fwd: Error parsing file
Rajesh Jayaprakash
rajesh.jayaprakash at gmail.com
Tue Nov 20 10:44:19 EST 2007
Well, I fixed the problem, sort of. I disabled the check in
dom_tree_handlers_all_gotten_p() in sixtp-dom-parsers.c, and the file
opens successfully. Only catch is that the accounts get prefixed with
'Root Account', but that's a small price to pay, I guess :)
Regards,
Rajesh
---------- Forwarded message ----------
From: Rajesh Jayaprakash <rajesh.jayaprakash at gmail.com>
Date: Nov 20, 2007 9:16 AM
Subject: Re: Error parsing file
To: Derek Atkins <warlord at mit.edu>
I guess the only option is to wade through the source code and
hopefully debug the problem.
Regards,
Rajes
On Nov 20, 2007 4:27 AM, Derek Atkins <warlord at mit.edu> wrote:
> Sorry, there really isn't a DTD or Schema available.
> It doesn't look like the file is malformed, only that
> the DATA is wrong/corrupt.. But I've no clue how or
> why that could happen.
>
>
> -derek
>
> "Rajesh Jayaprakash" <rajesh.jayaprakash at gmail.com> writes:
>
> > Derek,
> >
> > I unzipped the data file and ran an XML well-formedness check: looks
> > like the file is well-formed. Not sure whether there's a schema or DTD
> > that I can validate against. I am OK with sharing the data file if it
> > would help (maybe not with the entire mailing list -- anyway, the file
> > just contains about three year's worth of mundane personal
> > transactions <grin>).
> >
> > Thanks,
> > Rajesh
> >
> > On Nov 19, 2007 9:08 PM, Derek Atkins <warlord at mit.edu> wrote:
> >> this looks like your data file got corrupted somehow..
> >>
> >> -derek
> >>
> >>
> >> "Rajesh Jayaprakash" <rajesh.jayaprakash at gmail.com> writes:
> >>
> >> > Hi folks,
> >> >
> >> > Some history first:
> >> >
> >> > I have been using Gnucash 2.2.1 on Ubuntu 7.10. When I tried to open
> >> > the same account file in Kubuntu 7.04 installed in another partition,
> >> > there was a parsing error, with an XML snippet related to scheduled
> >> > transactions displayed on the console.
> >> >
> >> > I rebooted into Ubuntu, opened the file successfully, and deleted the
> >> > scheduled transaction. After this, I was able to open and save the
> >> > file in Kubuntu as well.
> >> >
> >> > Next I did a distro upgrade in Kububtu, which brought the Gnucash
> >> > version to 2.2.1 as well. But now I am no longer able to open the
> >> > file, either in Kubuntu or in Ubuntu (not to mention Mandriva 2008,
> >> > existing in another partition and running 2.2.1). The error essage is
> >> > "There is an error parsing the file <file name>".
> >> >
> >> > Here are the contents of /tmp/gnucash.trace:
> >> > ----------------------------------------------------------------
> >> > * 16:04:26 CRIT <gnc.io> [dom_tree_handlers_all_gotten_p()] Not
> >> > defined and it should be: act:type
> >> > * 16:04:26 CRIT <gnc.io> [dom_tree_generic_parse()] didn't find all
> >> > of the expected tags in the input
> >> > * 16:04:26 CRIT <gnc.io> [dom_tree_to_account()] failed to parse account tree
> >> > * 16:04:26 CRIT <gnc.backend.file> account_parent_handler: assertion
> >> > `parent' failed
> >> > * 16:04:26 CRIT <gnc.backend.file> account_parent_handler: assertion
> >> > `parent' failed
> >> > * 16:04:26 CRIT <gnc.backend.file> account_parent_handler: assertion
> >> > `parent' failed
> >> > * 16:04:26 CRIT <gnc.backend.file> account_parent_handler: assertion
> >> > `parent' failed
> >> > * 16:04:26 CRIT <gnc.backend.file> account_parent_handler: assertion
> >> > `parent' failed
> >> > * 16:04:26 CRIT <gnc.backend.file> account_parent_handler: assertion
> >> > `parent' failed
> >> > * 16:04:26 CRIT <gnc.backend.file> account_parent_handler: assertion
> >> > `parent' failed
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_handlers_all_gotten_p()] Not
> >> > defined and it should be: act:type
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_generic_parse()] didn't find all
> >> > of the expected tags in the input
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_to_account()] failed to parse account tree
> >> > * 16:04:28 CRIT <gnc.backend.file> account_parent_handler: assertion
> >> > `parent' failed
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_handlers_all_gotten_p()] Not
> >> > defined and it should be: act:type
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_generic_parse()] didn't find all
> >> > of the expected tags in the input
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_to_account()] failed to parse account tree
> >> > * 16:04:28 CRIT <gnc.backend.file> account_parent_handler: assertion
> >> > `parent' failed
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_handlers_all_gotten_p()] Not
> >> > defined and it should be: act:type
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_generic_parse()] didn't find all
> >> > of the expected tags in the input
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_to_account()] failed to parse account tree
> >> > * 16:04:28 CRIT <gnc.backend.file> account_parent_handler: assertion
> >> > `parent' failed
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_handlers_all_gotten_p()] Not
> >> > defined and it should be: act:type
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_generic_parse()] didn't find all
> >> > of the expected tags in the input
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_to_account()] failed to parse account tree
> >> > * 16:04:28 CRIT <gnc.backend.file> account_parent_handler: assertion
> >> > `parent' failed
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_handlers_all_gotten_p()] Not
> >> > defined and it should be: act:type
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_generic_parse()] didn't find all
> >> > of the expected tags in the input
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_to_account()] failed to parse account tree
> >> > * 16:04:28 CRIT <gnc.backend.file> account_parent_handler: assertion
> >> > `parent' failed
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_handlers_all_gotten_p()] Not
> >> > defined and it should be: act:type
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_generic_parse()] didn't find all
> >> > of the expected tags in the input
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_to_account()] failed to parse account tree
> >> > * 16:04:28 CRIT <gnc.backend.file> account_parent_handler: assertion
> >> > `parent' failed
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_handlers_all_gotten_p()] Not
> >> > defined and it should be: act:type
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_generic_parse()] didn't find all
> >> > of the expected tags in the input
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_to_account()] failed to parse account tree
> >> > * 16:04:28 CRIT <gnc.backend.file> account_parent_handler: assertion
> >> > `parent' failed
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_handlers_all_gotten_p()] Not
> >> > defined and it should be: act:type
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_generic_parse()] didn't find all
> >> > of the expected tags in the input
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_to_account()] failed to parse account tree
> >> > * 16:04:28 CRIT <gnc.backend.file> account_parent_handler: assertion
> >> > `parent' failed
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_handlers_all_gotten_p()] Not
> >> > defined and it should be: act:type
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_generic_parse()] didn't find all
> >> > of the expected tags in the input
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_to_account()] failed to parse account tree
> >> > * 16:04:28 CRIT <gnc.backend.file> account_parent_handler: assertion
> >> > `parent' failed
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_handlers_all_gotten_p()] Not
> >> > defined and it should be: act:type
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_generic_parse()] didn't find all
> >> > of the expected tags in the input
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_to_account()] failed to parse account tree
> >> > * 16:04:28 CRIT <gnc.backend.file> account_parent_handler: assertion
> >> > `parent' failed
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_handlers_all_gotten_p()] Not
> >> > defined and it should be: act:type
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_generic_parse()] didn't find all
> >> > of the expected tags in the input
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_to_account()] failed to parse account tree
> >> > * 16:04:28 CRIT <gnc.backend.file> account_parent_handler: assertion
> >> > `parent' failed
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_handlers_all_gotten_p()] Not
> >> > defined and it should be: act:type
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_generic_parse()] didn't find all
> >> > of the expected tags in the input
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_to_account()] failed to parse account tree
> >> > * 16:04:28 CRIT <gnc.backend.file> account_parent_handler: assertion
> >> > `parent' failed
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_handlers_all_gotten_p()] Not
> >> > defined and it should be: act:type
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_generic_parse()] didn't find all
> >> > of the expected tags in the input
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_to_account()] failed to parse account tree
> >> > * 16:04:28 CRIT <gnc.backend.file> account_parent_handler: assertion
> >> > `parent' failed
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_handlers_all_gotten_p()] Not
> >> > defined and it should be: act:type
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_generic_parse()] didn't find all
> >> > of the expected tags in the input
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_to_account()] failed to parse account tree
> >> > * 16:04:28 CRIT <gnc.backend.file> account_parent_handler: assertion
> >> > `parent' failed
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_handlers_all_gotten_p()] Not
> >> > defined and it should be: act:type
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_generic_parse()] didn't find all
> >> > of the expected tags in the input
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_to_account()] failed to parse account tree
> >> > * 16:04:28 CRIT <gnc.backend.file> account_parent_handler: assertion
> >> > `parent' failed
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_handlers_all_gotten_p()] Not
> >> > defined and it should be: act:type
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_generic_parse()] didn't find all
> >> > of the expected tags in the input
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_to_account()] failed to parse account tree
> >> > * 16:04:28 CRIT <gnc.backend.file> account_parent_handler: assertion
> >> > `parent' failed
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_handlers_all_gotten_p()] Not
> >> > defined and it should be: act:type
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_generic_parse()] didn't find all
> >> > of the expected tags in the input
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_to_account()] failed to parse account tree
> >> > * 16:04:28 CRIT <gnc.backend.file> account_parent_handler: assertion
> >> > `parent' failed
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_handlers_all_gotten_p()] Not
> >> > defined and it should be: act:type
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_generic_parse()] didn't find all
> >> > of the expected tags in the input
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_to_account()] failed to parse account tree
> >> > * 16:04:28 CRIT <gnc.backend.file> account_parent_handler: assertion
> >> > `parent' failed
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_handlers_all_gotten_p()] Not
> >> > defined and it should be: act:type
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_generic_parse()] didn't find all
> >> > of the expected tags in the input
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_to_account()] failed to parse account tree
> >> > * 16:04:28 CRIT <gnc.backend.file> account_parent_handler: assertion
> >> > `parent' failed
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_handlers_all_gotten_p()] Not
> >> > defined and it should be: act:type
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_generic_parse()] didn't find all
> >> > of the expected tags in the input
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_to_account()] failed to parse account tree
> >> > * 16:04:28 CRIT <gnc.backend.file> account_parent_handler: assertion
> >> > `parent' failed
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_handlers_all_gotten_p()] Not
> >> > defined and it should be: act:type
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_generic_parse()] didn't find all
> >> > of the expected tags in the input
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_to_account()] failed to parse account tree
> >> > * 16:04:28 CRIT <gnc.backend.file> account_parent_handler: assertion
> >> > `parent' failed
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_handlers_all_gotten_p()] Not
> >> > defined and it should be: act:type
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_generic_parse()] didn't find all
> >> > of the expected tags in the input
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_to_account()] failed to parse account tree
> >> > * 16:04:28 CRIT <gnc.backend.file> account_parent_handler: assertion
> >> > `parent' failed
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_handlers_all_gotten_p()] Not
> >> > defined and it should be: act:type
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_generic_parse()] didn't find all
> >> > of the expected tags in the input
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_to_account()] failed to parse account tree
> >> > * 16:04:28 CRIT <gnc.backend.file> account_parent_handler: assertion
> >> > `parent' failed
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_handlers_all_gotten_p()] Not
> >> > defined and it should be: act:type
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_generic_parse()] didn't find all
> >> > of the expected tags in the input
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_to_account()] failed to parse account tree
> >> > * 16:04:28 CRIT <gnc.backend.file> account_parent_handler: assertion
> >> > `parent' failed
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_handlers_all_gotten_p()] Not
> >> > defined and it should be: act:type
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_generic_parse()] didn't find all
> >> > of the expected tags in the input
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_to_account()] failed to parse account tree
> >> > * 16:04:28 CRIT <gnc.backend.file> account_parent_handler: assertion
> >> > `parent' failed
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_handlers_all_gotten_p()] Not
> >> > defined and it should be: act:type
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_generic_parse()] didn't find all
> >> > of the expected tags in the input
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_to_account()] failed to parse account tree
> >> > * 16:04:28 CRIT <gnc.backend.file> account_parent_handler: assertion
> >> > `parent' failed
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_handlers_all_gotten_p()] Not
> >> > defined and it should be: act:type
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_generic_parse()] didn't find all
> >> > of the expected tags in the input
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_to_account()] failed to parse account tree
> >> > * 16:04:28 CRIT <gnc.backend.file> account_parent_handler: assertion
> >> > `parent' failed
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_handlers_all_gotten_p()] Not
> >> > defined and it should be: act:type
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_generic_parse()] didn't find all
> >> > of the expected tags in the input
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_to_account()] failed to parse account tree
> >> > * 16:04:28 CRIT <gnc.backend.file> account_parent_handler: assertion
> >> > `parent' failed
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_handlers_all_gotten_p()] Not
> >> > defined and it should be: act:type
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_generic_parse()] didn't find all
> >> > of the expected tags in the input
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_to_account()] failed to parse account tree
> >> > * 16:04:28 CRIT <gnc.backend.file> account_parent_handler: assertion
> >> > `parent' failed
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_handlers_all_gotten_p()] Not
> >> > defined and it should be: act:type
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_generic_parse()] didn't find all
> >> > of the expected tags in the input
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_to_account()] failed to parse account tree
> >> > * 16:04:28 CRIT <gnc.backend.file> account_parent_handler: assertion
> >> > `parent' failed
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_handlers_all_gotten_p()] Not
> >> > defined and it should be: act:type
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_generic_parse()] didn't find all
> >> > of the expected tags in the input
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_to_account()] failed to parse account tree
> >> > * 16:04:28 CRIT <gnc.backend.file> account_parent_handler: assertion
> >> > `parent' failed
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_handlers_all_gotten_p()] Not
> >> > defined and it should be: act:type
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_generic_parse()] didn't find all
> >> > of the expected tags in the input
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_to_account()] failed to parse account tree
> >> > * 16:04:28 CRIT <gnc.backend.file> account_parent_handler: assertion
> >> > `parent' failed
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_handlers_all_gotten_p()] Not
> >> > defined and it should be: act:type
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_generic_parse()] didn't find all
> >> > of the expected tags in the input
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_to_account()] failed to parse account tree
> >> > * 16:04:28 CRIT <gnc.backend.file> account_parent_handler: assertion
> >> > `parent' failed
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_handlers_all_gotten_p()] Not
> >> > defined and it should be: act:type
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_generic_parse()] didn't find all
> >> > of the expected tags in the input
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_to_account()] failed to parse account tree
> >> > * 16:04:28 CRIT <gnc.backend.file> account_parent_handler: assertion
> >> > `parent' failed
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_handlers_all_gotten_p()] Not
> >> > defined and it should be: act:type
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_generic_parse()] didn't find all
> >> > of the expected tags in the input
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_to_account()] failed to parse account tree
> >> > * 16:04:28 CRIT <gnc.backend.file> account_parent_handler: assertion
> >> > `parent' failed
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_handlers_all_gotten_p()] Not
> >> > defined and it should be: act:type
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_generic_parse()] didn't find all
> >> > of the expected tags in the input
> >> > * 16:04:28 CRIT <gnc.io> [dom_tree_to_account()] failed to parse account tree
> >> > * 16:04:28 CRIT <gnc.backend.file> account_parent_handler: assertion
> >> > `parent' failed
> >> > ----------------------------------------------------------------
> >> >
> >> > The account file has not been corrupted; I am able to unzip it and
> >> > view it in a text editor.
> >> >
> >> > Any help would be greatly appreciated.
> >> >
> >> > Regards,
> >> >
> >> > Rajesh
> >> > _______________________________________________
> >> > gnucash-user mailing list
> >> > gnucash-user at gnucash.org
> >> > https://lists.gnucash.org/mailman/listinfo/gnucash-user
> >> > -----
> >> > Please remember to CC this list on all your replies.
> >> > You can do this by using Reply-To-List or Reply-All.
> >> >
> >> >
> >>
> >> --
> >> Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
> >> Member, MIT Student Information Processing Board (SIPB)
> >> URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
> >> warlord at MIT.EDU PGP key available
> >>
> >
> >
>
> --
>
> Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
> Member, MIT Student Information Processing Board (SIPB)
> URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
> warlord at MIT.EDU PGP key available
>
More information about the gnucash-user
mailing list