Snappy despeckle integer error

Hi,
I am using snappy to process S1 images. despeckle operation raise an error “org.esa.snap.core.gpf.OperatorException: Operator ‘SpeckleFilterOp’: Value for ‘Size Y’ must be of type ‘int’”
My code :

    parameters = HashMap()
    parameters.put('filter', 'Lee')
    parameters.put('filterSizeX', 5)
    parameters.put('filterSizeY', 5)
    product = GPF.createProduct('Speckle-Filter', parameters, product)

I tried with int(‘5’), same result.

Does someone had the same error?
SNAP 8.0 Python 3.10
Thanks

Hi there!!
I was wondering that if you solved this error??
I am going through the same error with speckle filter part by using snappy. :cry:

Just for the notice, I had attempted several changes to my code.
I had changed the integer type from python to JAVA.

Integer = jpy.get_type('java.lang.Integer')
def do_speckle_filtering(source):
    parameters.put('filterSizeX', Integer(3))
    parameters.put('filterSizeY', Integer(3))

By applying this code, it successfully processed this step. Maybe I think this error popped out due to some issue of Java and Python compatibility.

Thank you @tanaka111.
I used windowSize parameter instead, which is a string arg.
I will try this.