[greenstone-devel] Re: My bad metadata is causing the gli to crash! - No my badmetadata parser not reading perfectly fine metadata

From John M Thompson
DateFri, 15 Aug 2003 09:48:38 +1200
Subject [greenstone-devel] Re: My bad metadata is causing the gli to crash! - No my badmetadata parser not reading perfectly fine metadata
In-Reply-To (OF3A3A0DC3-B763F677-ON69256D81-0016829D-69256D82-00158653-ntu-edu-au)
Hi Stephen,

Sorry about that. I accidently missed out one file from the patch :-[ .
If you download it now, and install it as before, it should work better.

http://www.cs.waikato.ac.nz/~jmt12/gli/patches/203B143.zip

I'll get it right one day,
John Thompson

Stephen.DeGabrielle@ntu.edu.au wrote:

> Hi John,
>
> I have applied the patch but now my metadata is not importing at all
> and crashing the GLI, without asking me what to do with my fields
> (add/merge/etc.).
>
> I have a small test group of files with a (tested) greenstone
> metadata.xml file (see below).
>
> While the four files are quite big (TOTAL>80mB), importing them alone
> the GLI works fine. But if I include my metadata file things go
> astray; it only gets one document and refuses to do any more
> importing. It doesn't actually freeze, but that menu option becomes
> unresponsive even though I can still use other functions.
>
> I tried this on an installation of GLI without your patch; It imported
> fine, but had the old bad 'funny metadata folder' effect that the
> patch fixed.
>
> What do you think?
>
> Regards,
>
> Stephen
>
>
>
> -librarian text output--
> Checking GSDL: ..
> Checking Perl: C:Program Filesgsdlbinwindowsperlbin
> Checking Java: C:WINNTsystem32
>
> Running the Greenstone Librarian Interface...
> java.lang.NoSuchMethodError:
> org.greenstone.gatherer.msm.MetadataSetManager.getE
> lement(Ljava/lang/String;Z)Lorg/greenstone/gatherer/msm/ElementWrapper;
> at org.greenstone.gatherer.msm.parsers.GreenstoneMetadataParser.addMetad
> ata(GreenstoneMetadataParser.java:284)
> at org.greenstone.gatherer.msm.parsers.GreenstoneMetadataParser.process(
> GreenstoneMetadataParser.java:197)
> at org.greenstone.gatherer.msm.ExistingMetadataLoader.searchForMetadata(
> ExistingMetadataLoader.java:119)
> at org.greenstone.gatherer.msm.MetadataSetManager.searchForMetadata(Meta
> dataSetManager.java:973)
> at org.greenstone.gatherer.msm.MetadataSetManager.searchForMetadata(Meta
> dataSetManager.java:969)
> at org.greenstone.gatherer.file.FileQueue.run(FileQueue.java:438)
>
>
>
> --metadata follows--
>
> <?xml version="1.0" ?>
> <!DOCTYPE GreenstoneDirectoryMetadata SYSTEM
> "http://greenstone.org/dtd/GreenstoneDirectoryMetadata/1.0/GreenstoneDirectoryMetadata.dtd">
> <DirectoryMetadata>
> <FileSet>
> <FileName>3408787.pdf</FileName>
> <Description>
> <Metadata name="Title" mode="accumulate">Glorias e martirios da
> colonizacao portuguesa[vol 2]</Metadata>
> <Metadata name="Creator" mode="accumulate">Martins, Luis Auguste
> Ferreira</Metadata>
> <Metadata name="Year" mode="accumulate">1939</Metadata>
> <Metadata name="Keywords" mode="accumulate">Portugal -- Colonies --
> History.</Metadata>
> </Description>
> </FileSet>
> <FileSet>
> <FileName>3408779.pdf</FileName>
> <Description>
> <Metadata name="Title" mode="accumulate">Glorias e martirios da
> colonizacao portuguesa[vol 1]</Metadata>
> <Metadata name="Creator" mode="accumulate">Martins, Luis Auguste
> Ferreira</Metadata>
> <Metadata name="Year" mode="accumulate">1939</Metadata>
> <Metadata name="Keywords" mode="accumulate">Portugal -- Colonies --
> History.</Metadata>
> </Description>
> </FileSet>
> <FileSet>
> <FileName>3408760.pdf</FileName>
> <Description>
> <Metadata name="Title" mode="accumulate">Glorias e martirios da
> colonizacao portuguesa[vol 3]</Metadata>
> <Metadata name="Creator" mode="accumulate">Martins, Luis Auguste
> Ferreira</Metadata>
> <Metadata name="Year" mode="accumulate">1939</Metadata>
> <Metadata name="Keywords" mode="accumulate">Portugal -- Colonies --
> History.</Metadata>
> </Description>
> </FileSet>
> <FileSet>
> <FileName>s158893.pdf</FileName>
> <Description>
> <Metadata name="Title" mode="accumulate">Revista de Guimaraes.</Metadata>
> <Metadata name="Creator" mode="accumulate"> Guimaraes : Sociedade
> Martins Sarmento[publisher]</Metadata>
> <Metadata name="Year" mode="accumulate">1938</Metadata>
> <Metadata name="Keywords" mode="accumulate">1. Portugal -- History --
> Periodicals.2. Portugal -- Antiquities -- Periodicals. 3. Guimar~aes,
> Portugal. 1. Sociedade Martins Sarmento.</Metadata>
> </Description>
> </FileSet>
> </DirectoryMetadata>
>