Re: [greenstone-devel] Odds of AZCompactList in V2.40

From Katherine Don
DateTue, 10 Feb 2004 10:10:49 +1300
Subject Re: [greenstone-devel] Odds of AZCompactList in V2.40
In-Reply-To (b804b498-cff62d5-81bd100-expms3-cites-uiuc-edu)
Hi Xiao

This sounds like the same problem you were having before, where you got warning list::classify called multiple times (see emails 16, 17 jan)

I suspect that there is something funny with the metadata for one of your documents - which is why it works for 27 docs and not 56. Try running the building with verbosity 4 or greater and see if you can work out which document is going wrong. Then removing that document should fix the
problem. The suggestion last time was that things can go wrong if you have the same name/value metadata pair more than once in a document.


Regards,
Katherine Don

PS Greenstone 2.41 is also out now

xiaohu@uiuc.edu wrote:

> Dear Collegues,
>
> I encountered a problem with AZCompactList. This kind of list is actually one of my favorites, and I've successfully built several collections with AZCompactList in V2.38 and V2.39 of Greenstone. However, when using V2.40 now, I got problems:
>
> Platform: linux:Red Hat Enterprise Linux AS release 3 (Taroon)
> (I got the same problems with Red Hat Linux release 9 (Shrike))
>
> Greenstone: V2.40
>
> The import process goes well.
>
> Problem 1: When I build a collection of 56 html documents with configuration:
>
> classify AZCompactList -mingroup 1 -metadata ContactOrganization -buttonname Organization
> classify AZCompactList -mingroup 1 -metadata Description -buttonname Description
> classify AZCompactList -mingroup 1 -metadata Keywords -buttonname Keyword
>
> The building process failed, with following error message:
>
> *************Error Message****************
> 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:
>
> AZCompactList::reinit('AZCompactList=HASH(0x88dbdac)','ARRAY(0x89065bc)') called at /ppa/DocRoot/gsdl/perllib/classify/AZCompactList.pm line 621
> AZCompactList::get_classify_info('AZCompactList=HASH(0x88dbdac)') called at /ppa/DocRoot/gsdl/perllib/classify.pm line 117
> classify::output_classify_info('ARRAY(0x81e53dc)','mgbuilder::PIPEOUT',0) called at /ppa/DocRoot/gsdl/perllib/mgbuilder.pm line 762
> mgbuilder::make_infodatabase('mgbuilder=HASH(0x81ead98)') called at /ppa/DocRoot/gsdl/bin/script/buildcol.pl line 439
> buildcol::main() called at /ppa/DocRoot/gsdl/bin/script/buildcol.pl line 216
>
> ***********End of Error Message*************
>
> Problem2: According to the message (it didn't mention "-mingroup" option, but it doesn't mean there is no such option for AZCompactList. Actually I found the option in AZCompactList.pm code.), I deleted the -mingroup option in the configuration file, then the configuration settings change to:
>
> classify AZCompactList -metadata ContactOrganization -buttonname Organization
> classify AZCompactList -metadata Description -buttonname Description
> classify AZCompactList -metadata Keywords -buttonname Keyword
>
> This time the building process succeeded, I got a collection. But there still a message at the end of the building process:
>
> *********message*************
> Use of uninitialized value in array dereference at /ppa/DocRoot/gsdl/perllib/classify/AZCompactList.pm line 832.
> Use of uninitialized value in concatenation (.) or string at /ppa/DocRoot/gsdl/perllib/classify/AZCompactList.pm line 834
>
> ***********end of message ***********
>
> Because of the lack of "-mingroup 1" option, the list format is not as good as previous lists. So I really want to have the option work.
>
> Problem 3: I built a collection with 27 files pulled from the above 56 files. This time, I specified the "-mingroup 1" options in configuration file. So the configuration setting is the same as that in Problem 1. (the only difference between problem 1 and problem 3 is the number of files.)
>
> The building process succeeded, and I got a collection working perfectly, except for the same message as problem 2 at the end of the building process.
>
> **********message************************
> Use of uninitialized value in array dereference at /ppa/DocRoot/gsdl/perllib/classify/AZCompactList.pm line 832.
> Use of uninitialized value in concatenation (.) or string at /ppa/DocRoot/gsdl/perllib/classify/AZCompactList.pm line 834.
> **************end of message***********
>
> So, it seems wierd and ustable. Does anyone have any hints about these problems? I really like AZCompactList, and most of the student projects in my class are going to use it. So we'll highly appreciate your helps!
>
> Thank you very much!
>
> Xiao
>
> _______________________________________________
> greenstone-devel mailing list
> greenstone-devel@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-devel