Re: [greenstone-devel] Re: WARNING: List::classify called multipletimesfor xxxxxx

From xiaohu@uiuc.edu
DateMon, 19 Jan 2004 15:27:32 -0600
Subject Re: [greenstone-devel] Re: WARNING: List::classify called multipletimesfor xxxxxx
Hi Stephen,

Thank you for your comments! I understand the "WARNING"s don't necessarily result in failures, but I don't quite understand the "No value given for -buttonname." error. In my config file, I specified all -buttonname for all classifiers. I attach my config file at the end of this email, would you please take a look at it?

The strange thing is: when picked out the file indicated in the warning message and built a collection of this only file, the building was successful despite the warning messages.

Thank you for your kind help!

***************collect.cfg******************

creator xiaohu@uiuc.edu
maintainer xiaohu@uiuc.edu
public true
indexes document:Title document:ContactCity document:ContactName document:ContactOrganization document:ContactZipCode document:Description document:Keywords document:Classification document:SiteTitle
defaultindex document:Title

plugin GAPlug
plugin HTMLPlug -metadata_fields Title,ContactCity,ContactName,ContactOrganization,ContactZip,Description,Keywords,Classification,SiteTitle -nolinks
plugin ArcPlug
plugin RecPlug

classify AZList -metadata Title
classify AZCompactList -mingroup 1 -metadata ContactOrganization -buttonname Organization
classify AZCompactList -mingroup 1 -metadata SiteTitle -buttonname Site
classify AZCompactList -mingroup 1 -metadata Keywords -buttonname Keyword
classify AZCompactList -mingroup 1 -metadata Classification -buttonname Classification

format SearchVList
"<td valign=top>[link][icon][/link]</td><td>[highlight][Title][/highlight]</td>"
format VList
"<td valign=top>[link][icon][/link]</td><td valign=top>[highlight][Title][/highlight]</td>"
format CL1VList
"<td valign=top>[link][icon][/link]</td><td valign=top>[highlight][Title][/highlight]</td>"
format CL2VList
"<td valign=top>[link][icon][/link]</td><td valign=top>{If}{[numleafdocs],<b>[Title]</b> <small><i>([numleafdocs])</i></small>,<b>[Title]</b>}</td>"
format CL3VList
"<td valign=top>[link][icon][/link]</td><td valign=top>{If}{[numleafdocs],<b>[Title]</b> <small><i>([numleafdocs])</i></small>,<b>[Title]</b>}</td>"
format CL4VList
"<td valign=top>[link][icon][/link]</td><td valign=top>{If}{[numleafdocs],<b>[Title]</b> <small><i>([numleafdocs])</i></small>,<b>[Title]</b>}</td>"
format CL5VList
"<td valign=top>[link][icon][/link]</td><td valign=top>{If}{[numleafdocs],<b>[Title]</b> <small><i>([numleafdocs])</i></small>,<b>[Title]</b>}</td>"

collectionmeta collectionname "Current Blue"
collectionmeta iconcollection ""
collectionmeta collectionextra ""
collectionmeta .document:Title "Titles"
collectionmeta .document:ContactCity,ContactName,ContactOrganization,ContactZipCode "Contactor"
collectionmeta .document:Description "Descriptions"
collectionmeta .document:Classification "Classifications"
collectionmeta .document:Keywords "Keywords"
collectionmeta .document:SiteTitle "Site Title"

*************************collect.cfg**************

Best!

Xiao

---- Original message ----
>Date: Mon, 19 Jan 2004 09:05:11 +0930
>From: Stephen.DeGabrielle@nt.gov.au
>Subject: Re: [greenstone-devel] Re: WARNING: List::classify called multipletimesfor xxxxxx
>To: xiaohu@uiuc.edu
>Cc: greenstone-devel@list.scms.waikato.ac.nz
>
> Hi Xiao,
>
> I've had the 'classify called multiple
> timesfor ' error before when I had the same
> metadata name/value combination appear more than
> once for a particular record.
> It didn't cause the build to fail but it was
> annoying.
> Maybe the failure if from the "No value given for
> -buttonname." issue? (I thought this failed more
> gracefully than this normally)
>
> s.
>
> Sent by:
> greenstone-devel-bounces@list.scms.waikato.ac.nz
>
> To: greenstone-devel@list.scms.waikato.ac.nz
> cc:
>
> Subject: [greenstone-devel] Re: WARNING:
> List::classify called multiple timesfor
> xxxxxx
>
> Hi, All,
>
> I also got this warning, and the collection couldn't
> be built. From the previous messages about this
> topic. I suspect the reason for the failure on
> building is that some of the documents don't contain
> the metadata that I am trying to build a List on.
>
> Could anyone give me a confirmation on if my
> suspection is correct or not? I really hope it can
> work even some documents don't have specified
> metadata, because my collection consists documents
> from heterogenous sources.
>
> I appreciate any suggestions and replies!
>
> ********Below are the warning messages*********
> Version: v2.40 for Unix
> Platform: Red Hat Linux release 7.3 (Valhalla)
> Built on commandline
>
> WARNING: List::classify called multiple times for
> HASH01679c6fdfcfd06834e6e54b
> No value given for -buttonname.
>
> Incorrect options passed to List, check your
> collect.cfg file
> usage: classify List [options]
>
> specific options:
> -metadata <metadata> (REQUIRED) Metadata field
> used for classification. List
> will be sorted by this
> element.
>
> -buttonname <string> Button name for this
> classification.
> Default: Metadata element
> specified with -metadata
>
> -sort <string> Metadata field to sort by. If
> not set, sorts in build
> (random) order.
> Default: Metadata field
> specified with -metadata
>
> general options (from BasClas):
> -builddir <string> Where to put the built
> indexes.
> Default:
>
> -outhandle <string> The file handle to write
> output to.
> Default: STDERR
>
> -verbosity <enum> Controls the quantity of
> output.
> Default: 2
>
> 0: No output.
> 1: A little bit of output.
> 2: Some output.
> 3: Lots of output.
>
> Uncaught exception from user code:
>
> List::new(undef, undef, undef, undef, undef,
> undef, undef) called at (eval 338) line 1
> eval '$listclassobj = new List(@args)
> ;' called at
> /ppa/DocRoot/gsdl/perllib/classify/AZCompactList.pm
> line 414
>
> AZCompactList::reinit('AZCompactList=HASH(0x8865ddc)',
> 'ARRAY(0x88a95a4)') called at
> /ppa/DocRoot/gsdl/perllib/classify/AZCompactList.pm
> line 621
>
> AZCompactList::get_classify_info('AZCompactList=HASH(0x8865ddc)')
> called at /ppa/DocRoot/gsdl/perllib/classify.pm line
> 117
>
> classify::output_classify_info('ARRAY(0x82276ec)',
> 'mgbuilder::PIPEOUT', 0) called at
> /ppa/DocRoot/gsdl/perllib/mgbuilder.pm line 762
>
> mgbuilder::make_infodatabase('mgbuilder=HASH(0x82423bc)')
> called at /ppa/DocRoot/gsdl/bin/script/buildcol.pl
> line 439
> buildcol::main() called at
> /ppa/DocRoot/gsdl/bin/script/buildcol.pl line 216
> Uncaught exception from user code:
>
> List::new(undef, undef, undef, undef, undef,
> undef, undef) called at (eval 338) line 1
> eval '$listclassobj = new List(@args)
> ;' called at
> /ppa/DocRoot/gsdl/perllib/classify/AZCompactList.pm
> line 414
>
> AZCompactList::reinit('AZCompactList=HASH(0x8865ddc)',
> 'ARRAY(0x88a95a4)') called at
> /ppa/DocRoot/gsdl/perllib/classify/AZCompactList.pm
> line 621
>
> AZCompactList::get_classify_info('AZCompactList=HASH(0x8865ddc)')
> called at /ppa/DocRoot/gsdl/perllib/classify.pm line
> 117
>
> classify::output_classify_info('ARRAY(0x82276ec)',
> 'mgbuilder::PIPEOUT', 0) called at
> /ppa/DocRoot/gsdl/perllib/mgbuilder.pm line 762
>
> mgbuilder::make_infodatabase('mgbuilder=HASH(0x82423bc)')
> called at /ppa/DocRoot/gsdl/bin/script/buildcol.pl
> line 439
> buildcol::main() called at
> /ppa/DocRoot/gsdl/bin/script/buildcol.pl line 216
> Uncaught exception from user code:
>
>
> AZCompactList::reinit('AZCompactList=HASH(0x8865ddc)',
> 'ARRAY(0x88a95a4)') called at
> /ppa/DocRoot/gsdl/perllib/classify/AZCompactList.pm
> line 621
>
> AZCompactList::get_classify_info('AZCompactList=HASH(0x8865ddc)')
> called at /ppa/DocRoot/gsdl/perllib/classify.pm line
> 117
>
> classify::output_classify_info('ARRAY(0x82276ec)',
> 'mgbuilder::PIPEOUT', 0) called at
> /ppa/DocRoot/gsdl/perllib/mgbuilder.pm line 762
>
> mgbuilder::make_infodatabase('mgbuilder=HASH(0x82423bc)')
> called at /ppa/DocRoot/gsdl/bin/script/buildcol.pl
> line 439
> buildcol::main() called at
> /ppa/DocRoot/gsdl/bin/script/buildcol.pl line 216
>
> ****************************
>
> Nice weekend!
>
> Xiao
>
> _______________________________________________
> greenstone-devel mailing list
> greenstone-devel@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-devel