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
radish34/Registrar : Problem with initializing the address while deploying:
DeployParameters:
data class RegistrarDeployParameters(
val ERC1820RegistryAddress: String
)
Error:
{
"title": "Cannot construct instance of `com.gen.app.core.registrar.model.RegistrarDeployParameters` (although at least one Creator exists): cannot deserialize from Object value (no delegate- or property-based Creator)\n at [Source: (org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream); line: 1, column: 2]",
"responseStatus": 400,
"requestMethod": "POST",
"requestUrl": "http://localhost:9090/testApp/contracts/registrar",
"userAgent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0"
}
How to make it work ?
Add another field to the data class and everything works fine:
data class RegistrarDeployParameters(
val ERC1820RegistryAddress: String,
val something: Int
)
In forums, they say to add default constructor, but that doesn't work as the value being sent in the request gets omitted.
Another suggestion is adding the jackson-module-kotlin dependency. However, we already have that.
radish34/Registrar : Problem with initializing the
address
while deploying:DeployParameters
:Error:
How to make it work ?
Add another field to the
data class
and everything works fine:In forums, they say to add
default constructor
, but that doesn't work as the value being sent in therequest
gets omitted.Another suggestion is adding the
jackson-module-kotlin
dependency. However, we already have that.Edit: The following contracts too: EnumerableMapMock
The text was updated successfully, but these errors were encountered: