Hi ,
I am trying to create an application in which the user will upload a file and then the records which will be uploaded will get back to user in a text file with process indicator.
But in my DAO file, when i am extracting the data from DB in a bean class, and making an Arraylist object of that bean .
I am getting the below error :
java.lang.ClassCastException: report.fileUpload.mainUpload.DownloadBean incompatible with java.lang.String.
and in the console it is printing as below while printing to that Object:
Result 0 : report.fileUpload.recipeUpload.DownloadBean@74ba74ba
Result 1 : report.fileUpload.mainUpload.DownloadBean@762a762a
Result 2 : report.fileUpload.mainUpload.DownloadBean@77867786
Result 3 : report.fileUpload.mainUpload.DownloadBean@78ee78ee
Result 4 : report.fileUpload.mainUpload.DownloadBean@7a3e7a3e
Result 5 : report.fileUpload.mainUpload.DownloadBean@7bae7bae
Result 6 : report.fileUpload.mainUpload.DownloadBean@7d0a7d0a
Result 7 : report.fileUpload.mainUpload.DownloadBean@7e727e72
Result 8 : report.fileUpload.mainUpload.DownloadBean@7fc27fc2
Result 9 : report.fileUpload.mainUpload.DownloadBean@1320132
Result 10 : report.fileUpload.mainUpload.DownloadBean@2c802c8
Result 11 : report.fileUpload.mainUpload.DownloadBean@44a044a
Kindly help me in this,