You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are getting following exception with our multimodule project.
Can not construct instance of com.myproject.events.CategoryCreatedEvent: no suitable constructor found, can not deserialize from Object value (missing default constructor or creator, or perhaps need to add/enable type information?)
at [Source: N/A; line: -1, column: -1]
The project structure looks as following:
myproject
`- api
`- events
`- projections
Within projections we try to deserialize the event which is published by api via RabbitMQ. To consume those events we are using our own library which contains the pub sub logic. Also this library has the same jackson-module-parameter-names module included and has the -parameters compiler argument.
Within the unittests in this rabbitmq project the deserializing is actually working. Within this projections library projects it gives the above error.
Is there a limitation on using this accross multiple modules?
We are running it using JDK 1.8.0_152.
The text was updated successfully, but these errors were encountered:
but as to specific question: no, multiple modules are not problematic, the whole idea is that module interface is designed to allow co-operation of components.
My main guesses would be that either parameter name information is not included everywhere due to compiler or IDE; or that parameter name module is not being registered in one place (different ObjectMapper being used).
We are getting following exception with our multimodule project.
The project structure looks as following:
Within projections we try to deserialize the event which is published by api via RabbitMQ. To consume those events we are using our own library which contains the pub sub logic. Also this library has the same jackson-module-parameter-names module included and has the
-parameters
compiler argument.Within the unittests in this rabbitmq project the deserializing is actually working. Within this projections library projects it gives the above error.
Is there a limitation on using this accross multiple modules?
We are running it using JDK 1.8.0_152.
The text was updated successfully, but these errors were encountered: