[
https://issues.apache.org/jira/browse/OFBIZ-4919?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13287959#comment-13287959
]
Nandani Aggarwal commented on OFBIZ-4919:
-----------------------------------------
The issue was arising because of line : byte[] wrapper = (byte[])
context.get("uploadedFile"); in file
"PromoServices.java" and function "importPromoCodeEmailsFromFile".Because of
this line ClassCastException was occurring.To resolve an error a patch has been
attached.
> Upload file throws java.lang.ClassCastException: java.nio.HeapByteBuffer
> ------------------------------------------------------------------------
>
> Key: OFBIZ-4919
> URL: https://issues.apache.org/jira/browse/OFBIZ-4919
> Project: OFBiz
> Issue Type: Bug
> Components: product
> Affects Versions: Release 10.04
> Environment: SVN version : 1345504
> Reporter: Nandani Aggarwal
> Priority: Minor
> Labels: patch
> Fix For: Release Branch 10.04
>
> Attachments: OFBIZ-4919_ERROR.jpg, OFBIZ-4919_FileUploadError.patch
>
>
> Upload file throws java.lang.ClassCastException: java.nio.HeapByteBuffer
> problem occurred while creating Product Promo, when we upload file
> for Promo Code Emails then ERROR: java.lang.ClassCastException:
> java.nio.HeapByteBuffer occurs.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira