I upgraded the atomikos version in my application from 4 to 5 after which toArray function started throwing "java.lang.ArrayStoreException" error. When i revert the version back to 4 it seems to be working fine. I am using toArray to convert a list of map to array of map.
Kindly help on this.