lebronjamesuit / event-driven-products

Using Axon Framework to build a small backend for an microservice ecommerce app. Style of coding is Domain-driven design (DDD) & Event-driven architecture
2 stars 0 forks source link

Xstream permisson issue with user-service #8

Open lebronjamesuit opened 1 year ago

lebronjamesuit commented 1 year ago

com.thoughtworks.xstream.security.ForbiddenClassException: org.msss.cqrs.saga.sharedcommon.query.FetchUserPaymentDetailsQuery at com.thoughtworks.xstream.security.NoTypePermission.allows(NoTypePermission.java:26) ~[xstream-1.4.20.jar:1.4.20] at com.thoughtworks.xstream.mapper.SecurityMapper.realClass(SecurityMapper.java:74) ~[xstream-1.4.20.jar:1.4.20] at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:125) ~[xstream-1.4.20.jar:1.4.20] at com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper.java:47) ~[xstream-1.4.20.jar:1.4.20] at org.axonframework.serialization.AbstractXStreamSerializer.classForType(AbstractXStreamSerializer.java:171) ~[axon-messaging-4.8.0.jar:4.8.0] at org.axonframework.serialization.LazyDeserializingObject.(LazyDeserializingObject.java:83) ~[axon-messaging-4.8.0.jar:4.8.0] at org.axonframework.serialization.LazyDeserializingObject.(LazyDeserializingObject.java:63) ~[axon-messaging-4.8.0.jar:4.8.0] at org.axonframework.axonserver.connector.query.GrpcBackedQueryMessage.(GrpcBackedQueryMessage.java:62) ~[axon-server-connector-4.8.0.jar:4.8.0] at org.axonframework.axonserver.connector.query.QuerySerializer.deserializeRequest(QuerySerializer.java:203) ~[axon-server-connector-4.8.0.jar:4.8.0] at org.axonframework.axonserver.connector.query.QueryProcessingTask.run(QueryProcessingTask.java:142) ~[axon-server-connector-4.8.0.jar:4.8.0] at org.axonframework.axonserver.connector.PriorityRunnable.run(PriorityRunnable.java:58) ~[axon-server-connector-4.8.0.jar:4.8.0] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[na:na] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[na:na] at java.base/java.lang.Thread.run(Thread.java:833) ~[na:na]