droolsfiddle / drools-fiddle

The fiddle for Drools
Apache License 2.0
30 stars 25 forks source link

KieBase serialization issue with security manager activated #3

Open jvipret opened 7 years ago

jvipret commented 7 years ago

Hello,

We are facing the following issue when we serialize the kieBase with security manager activated: global policy: https://github.com/droolsfiddle/drools-fiddle/blob/master/src/main/webapp/META-INF/permissions.xml kie policy: https://github.com/droolsfiddle/drools-fiddle/blob/master/src/main/webapp/META-INF/rules.policy

2016-12-13 20:55:56 WARN DrlContextPersistenceServiceImpl:135 - Caught exception in post context org.springframework.data.redis.serializer.SerializationException: Cannot serialize; nested exception is org.springframework.core.serializer.support.SerializationFailedException: Failed to serialize object using DefaultSerializer; nested exception is java.io.NotSerializableException: defaultpkg.Rule_Rule1529085518DefaultConsequenceInvoker

Try to grant AllPermission in the kie policy but it doesn't help.