Comments (5)
This should work better now. Please give the latest snapshots a try.
from spring-modulith.
Caused by: java.lang.IllegalArgumentException: Failed to call setAccess()
on Field 'source' (of class java.util.EventObject
) due to java.lang.reflect.InaccessibleObjectException
, problem: Unable to make field protected transient java.lang.Object java.util.EventObject.source accessible: module java.base does not "opens java.util" to unnamed module @23811a09
at com.fasterxml.jackson.databind.util.ClassUtil.checkAndFixAccess(ClassUtil.java:1008)
at com.fasterxml.jackson.databind.deser.impl.FieldProperty.fixAccess(FieldProperty.java:104)
at com.fasterxml.jackson.databind.deser.BeanDeserializerBuilder._fixAccess(BeanDeserializerBuilder.java:535)
... 35 common frames omitted
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field protected transient java.lang.Object java.util.EventObject.source accessible: module java.base does not "opens java.util" to unnamed module @23811a09
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(Unknown Source)
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(Unknown Source)
at java.base/java.lang.reflect.Field.checkCanSetAccessible(Unknown Source)
at java.base/java.lang.reflect.Field.setAccessible(Unknown Source)
at com.fasterxml.jackson.databind.util.ClassUtil.checkAndFixAccess(ClassUtil.java:995)
from spring-modulith.
you are trying to use protected fields i guess @xjianyu
from spring-modulith.
This should only happen if you have an @TransactionalEventListener
listening to these events or a super type of them. The default EventSerializer
is backed by Jackson and thus only works for event types that are serializable by Jackson out of the box.
In other words, you have to either make sure that there's no transactional event listener listening to those Spring Data-internal events or provide a custom EventSerializer
implementation for those types.
from spring-modulith.
This seems to be caused by spring-projects/spring-framework#30399. I have a fix local to our event multicasting infrastructure available that we can use until the upstream ticket is fixed.
from spring-modulith.
Related Issues (20)
- Resubmission of incomplete publications fails silently if listener is not found
- Resubmission of incomplete publications fails silently if listener is not found
- Upgrade to ArchUnit 1.1.1
- Upgrade to ArchUnit 1.1.1
- Upgrade to Spring Framework 6.1.6
- Upgrade to Spring Boot 3.2.5
- Upgrade to jMolecules 2023.1.3
- Upgrade to Spring Boot 3.1.11
- Upgrade to jMolecules 2023.1.2
- Upgrade to Spring Framework 6.0.19
- Upgrade to Lombok 1.18.32
- Release 1.0.7
- Release 1.1.4
- Add support for nested modules
- Expose stream/List of Events for incompleteEventPublications
- Property: "spring.modulith.events.jdbc-schema-initialization.enabled" not available/working in springboot 3.2.5 HOT 2
- Correct `java.lang.boolean` to `java.lang.Boolean` in configuration property metadata
- Correct configuration property for JSON activation for RabbitMQ and Kafka
- Correct `java.lang.boolean` to `java.lang.Boolean` in configuration property metadata
- Correct configuration property for JSON activation for RabbitMQ and Kafka
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-modulith.