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
I am doing a XSD based development where I make use of this plugin to generate JAXB annotated classes.
I am able to read and consume the xmls via Spring Boot , but when I try to do the same in micronaut it is not working.
Is there something different in the way that Spring Boot and Micronaut do this ?
"message": "Failed to convert argument [commsHubReq] for value [null] due to: Unexpected end-of-input when trying read value of type com.mns.commshub.ExtendedData\n at [Source: (io.netty.buffer.ByteBufInputStream); line: 25, column: 19] (through reference chain: com.mns.commshub.CommsHubReq[\"Header\"]->com.mns.commshub.Header[\"actionType\"]->com.mns.commshub.ActionType[\"ExtendedData\"]->java.util.ArrayList[4])"
I am doing a XSD based development where I make use of this plugin to generate JAXB annotated classes.
I am able to read and consume the xmls via Spring Boot , but when I try to do the same in micronaut it is not working.
Is there something different in the way that Spring Boot and Micronaut do this ?
"message": "Failed to convert argument [commsHubReq] for value [null] due to: Unexpected end-of-input when trying read value of type
com.mns.commshub.ExtendedData\n at [Source: (io.netty.buffer.ByteBufInputStream); line: 25, column: 19] (through reference chain: com.mns.commshub.CommsHubReq[\"Header\"]->com.mns.commshub.Header[\"actionType\"]->com.mns.commshub.ActionType[\"ExtendedData\"]->java.util.ArrayList[4])"
The above error is what is causing issues for me.
The xml is :
<NS1:CommsHubReq xmlns:NS1="http://service.commhub.commerce.mns.com/"> <NS1:Header> <NS1:source>XXX</NS1:source> <NS1:txnID>-3b1c8d90:19345def737:-6609</NS1:txnID> <NS1:TxnTimestamp>2024-11-19T21:59:03.722Z</NS1:TxnTimestamp> <NS1:messageType>ORDER_CONFIRMATION</NS1:messageType> <NS1:actionType> <NS1:ExtendedData name="sendSMS">N</NS1:ExtendedData> <NS1:ExtendedData name="sendEmail">Y</NS1:ExtendedData> </NS1:actionType> </NS1:Header> <NS1:Payload> <NS1:Commshub> <NS1:customerID>504083807</NS1:customerID> <NS1:subscriberID>[email protected]</NS1:subscriberID> <NS1:ToEmailAddress>[email protected]</NS1:ToEmailAddress> <NS1:storeID>101</NS1:storeID> <NS1:Language>en</NS1:Language> <NS1:Country>GB</NS1:Country> <NS1:channelID>-6</NS1:channelID> <NS1:MessageDetails> </NS1:MessageDetails> </NS1:Commshub> </NS1:Payload> </NS1:CommsHubReq>
Somehow when it comes to the ActionType the list is not being parsed properly.
Any help with this is appreciated.
The text was updated successfully, but these errors were encountered: