Re: [greenstone-users] Build error with GenericList classifier

From John R. McPherson
DateFri, 24 Feb 2006 11:18:12 +1300
Subject Re: [greenstone-users] Build error with GenericList classifier
In-Reply-To (Pine-LNX-4-44-0602221752330-32336-100000-fornax-it-iitb-ac-in)
On Wed, Feb 22, 2006 at 05:58:44PM +0530, Chaitra Rao wrote:
> Hi,
> I'm unable to use GenericList classifier bundled with the greenstone
> installation (v2.62).
>
> I get the foll error while building:
> Command: E:Program Filesgs2.62binwindowsperlbinPerl.exe -S
> E:Program Filesgs2.62binscriptbuildcol.pl -gli -language en
> -collectdir E:Program Filesgs2.62collect -removeold aaqua
> buildcol.pl> Can't coerce array into hash at E:Program
> Filesgs2.62/perllib/classify/BasClas.pm line 234.
> buildcol.pl> Command failed.
>
> The line no. 234 on BasPlug.pm corresponds to the foll line:
> if(defined $arguments){
> push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});}

That should be line 234 of BasClass.pm, not BasPlug.pm, although you've
pasted the correct line.

The GenericList.pm on line 94 has
my $self = (defined $hashArgOptLists) ? new BasClas($classifierslist, $inputargs, $hashArgOptLists) : new BasClas($classifierslist, $inputargs);

but as you pointed out, the BasClass tries to use $hashArgOptLists without
checking if it was passed in. I'm not sure if this is a bug in
GenericList or BasClas - this might have to wait until Michael gets
back, since he wrote the GenericList classifier.

John