Re: "Can't find a permissible class" error

Ulrich Mayring <[email protected]> Thu, 4 Jul 2024 10:39:07 +0200
Newsgroups gmane.comp.ai.weka
Message-ID <[email protected]>
Am 04.07.24 um 04:34 schrieb Eibe Frank:
> Have a look at
> 
> https://stackoverflow.com/questions/61761842/weka-cant-find-a-permissible-class <https://stackoverflow.com/questions/61761842/weka-cant-find-a-permissible-class>
> 
> Have you tried this?

I've seen this, but it doesn't help in my case, because I am getting the 
options as strings from a config file and need to set them as such (I 
don't know at runtime which classifier is going to be used).

> It is probably a class loader issue, see also
> 
> https://stackoverflow.com/questions/49440391/weka-running-via-spring-boot-jar-errors-with-cant-find-a-permissible-class-cal <https://stackoverflow.com/questions/49440391/weka-running-via-spring-boot-jar-errors-with-cant-find-a-permissible-class-cal>

I've also seen that, but there is no solution suggested. Weka is using 
its own classloader and it might be derived from another classloader, 
which some environments (e. g. Spring Boot) don't give applications 
access to. Or maybe Weka's classloader doesn't delegate to its parent 
classloader at all?

But I am not sure whether it is correct to load this class at all. I am 
setting options on RandomForest, so why would Weka try to set these 
options on the base classifier RandomTree? RandomTree doesn't support 
those same options anyway.

There is no general issue with loading either class, because the program 
runs fine if I don't set any options on RandomForest.

cheers,
Ulrich


_______________________________________________
Wekalist mailing list -- [email protected]
Send posts to [email protected]
To unsubscribe send an email to [email protected]
To subscribe, unsubscribe, etc., visit https://list.waikato.ac.nz/postorius/lists/wekalist.list.waikato.ac.nz
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html