Spring Batch & My Batis: MyBatisBatchItemWriter throws IllegalArgumentException: argument type mismatch

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Spring Batch & My Batis: MyBatisBatchItemWriter throws IllegalArgumentException: argument type mismatch

Aditya Singh
I had posted a question on stackoverflow.com, but I haven't received any input as of yet.
Please see the link for detailed issue and let me know if it can be resolved or point me in the right direction.

PS: If required I can add the entire question here.

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/mybatis-user/e4c0ed4e-1d17-4a7c-a32e-b80dd01c6ed7%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Spring Batch & My Batis: MyBatisBatchItemWriter throws IllegalArgumentException: argument type mismatch

Kazuki Shimizu
Hi Aditya,

I've replied the your question at Stack Overflow. Please confirm it. Thanks!

On Monday, October 14, 2019 at 12:50:43 PM UTC+9, Aditya Singh wrote:
I had posted a <a href="https://stackoverflow.com/questions/58334625/spring-batch-my-batis-mybatisbatchitemwriter-throws-illegalargumentexception" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fstackoverflow.com%2Fquestions%2F58334625%2Fspring-batch-my-batis-mybatisbatchitemwriter-throws-illegalargumentexception\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGsvHhWOOWkYWhOmkI_CSmlJbMFvg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fstackoverflow.com%2Fquestions%2F58334625%2Fspring-batch-my-batis-mybatisbatchitemwriter-throws-illegalargumentexception\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGsvHhWOOWkYWhOmkI_CSmlJbMFvg&#39;;return true;">question on <a href="http://stackoverflow.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fstackoverflow.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFUoKKmZVS3Nibgy4xGsagbeUbT-Q&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fstackoverflow.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFUoKKmZVS3Nibgy4xGsagbeUbT-Q&#39;;return true;">stackoverflow.com, but I haven't received any input as of yet.
Please see the link for detailed issue and let me know if it can be resolved or point me in the right direction.

PS: If required I can add the entire question here.

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/mybatis-user/acac6f4e-6bb3-4bee-a101-dbfee1ed9476%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Spring Batch & My Batis: MyBatisBatchItemWriter throws IllegalArgumentException: argument type mismatch

Aditya Singh
Hi Kazuki,

I have added a comment.
Basically, Spring batch's processor will provide a writable model to writer. In the answer, given by you, it is expected to pass a "record" field, which I don't have.
This seems equivalent to Injecting Mapper interface and directly calling insert method on it.

On Monday, 14 October 2019 10:28:22 UTC+5:30, Kazuki Shimizu wrote:
Hi Aditya,

I've replied the your question at Stack Overflow. Please confirm it. Thanks!

On Monday, October 14, 2019 at 12:50:43 PM UTC+9, Aditya Singh wrote:
I had posted a <a href="https://stackoverflow.com/questions/58334625/spring-batch-my-batis-mybatisbatchitemwriter-throws-illegalargumentexception" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fstackoverflow.com%2Fquestions%2F58334625%2Fspring-batch-my-batis-mybatisbatchitemwriter-throws-illegalargumentexception\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGsvHhWOOWkYWhOmkI_CSmlJbMFvg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fstackoverflow.com%2Fquestions%2F58334625%2Fspring-batch-my-batis-mybatisbatchitemwriter-throws-illegalargumentexception\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGsvHhWOOWkYWhOmkI_CSmlJbMFvg&#39;;return true;">question on <a href="http://stackoverflow.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fstackoverflow.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFUoKKmZVS3Nibgy4xGsagbeUbT-Q&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fstackoverflow.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFUoKKmZVS3Nibgy4xGsagbeUbT-Q&#39;;return true;">stackoverflow.com, but I haven't received any input as of yet.
Please see the link for detailed issue and let me know if it can be resolved or point me in the right direction.

PS: If required I can add the entire question here.

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/mybatis-user/b8d5d08e-950f-4e66-b617-5f59b34052f6%40googlegroups.com.