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

From xiaohu@uiuc.edu
DateWed, 4 Feb 2004 13:25:14 -0600
Subject [greenstone-devel] Odds of AZCompactList in V2.40
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.

-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:

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.

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!