|
Nandani Aggarwal created OFBIZ-4919:
--------------------------------------- Summary: 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: Windows Reporter: Nandani Aggarwal Priority: Minor Fix For: Release Branch 10.04 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 |
|
[ https://issues.apache.org/jira/browse/OFBIZ-4919?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Nandani Aggarwal updated OFBIZ-4919: ------------------------------------ Environment: SVN version : 1345504 (was: Windows) > 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 > > > 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 |
|
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4919?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Nandani Aggarwal updated OFBIZ-4919: ------------------------------------ Attachment: OFBIZ-4919_ERROR.jpg > 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 > > > 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 |
|
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4919?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Nandani Aggarwal updated OFBIZ-4919: ------------------------------------ Attachment: screenshot-1.jpg > 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, screenshot-1.jpg > > > 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 |
|
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4919?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Nandani Aggarwal updated OFBIZ-4919: ------------------------------------ Attachment: OFBIZ-4919_FileUploadError.patch Now file can be uploaded successfully. > 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, screenshot-1.jpg > > > 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 |
|
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4919?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Nandani Aggarwal updated OFBIZ-4919: ------------------------------------ Attachment: (was: screenshot-1.jpg) > 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 |
|
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4919?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13287958#comment-13287958 ] Nandani Aggarwal commented on OFBIZ-4919: ----------------------------------------- While creating Promo under catalog in Admin , we create Promo Code so that party or Email can be attached to Promo and also there we can set expiry date for that Promo.While uploading list of Email Ids for which Promo will be applicable.Then while uploading file ,i encountered with error : java.lang.ClassCasrrException:java.nio.HeapByteBuffer. > 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 |
|
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4919?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13287958#comment-13287958 ] Nandani Aggarwal edited comment on OFBIZ-4919 at 6/2/12 3:35 PM: ----------------------------------------------------------------- While creating Promo under catalog in Admin , we create Promo Code so that party or Email can be attached to Promo and also there we can set expiry date for that Promo.While uploading list of Email Ids for which Promo will be applicable,,i encountered with error : java.lang.ClassCasrrException:java.nio.HeapByteBuffer. was (Author: [hidden email]): While creating Promo under catalog in Admin , we create Promo Code so that party or Email can be attached to Promo and also there we can set expiry date for that Promo.While uploading list of Email Ids for which Promo will be applicable.Then while uploading file ,i encountered with error : java.lang.ClassCasrrException:java.nio.HeapByteBuffer. > 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 |
|
In reply to this post by Nicolas Malin (Jira)
[ 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 |
|
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4919?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13287958#comment-13287958 ] Nandani Aggarwal edited comment on OFBIZ-4919 at 6/2/12 3:44 PM: ----------------------------------------------------------------- While creating Promo under catalog in Admin , we create Promo Code so that party or Email can be attached to Promo and also there we can set expiry date for that Promo.While uploading list of Email Ids for which Promo will be applicable,,i encountered with error : java.lang.ClassCasrrException:java.nio.HeapByteBuffer. Error can be reproduced by following link : https://localhost:8443/catalog/control/createBulkProductPromoCodeEmail?productPromoCodeId="Name of : Product Promo Code Id" Or with help of attached screenshot. was (Author: [hidden email]): While creating Promo under catalog in Admin , we create Promo Code so that party or Email can be attached to Promo and also there we can set expiry date for that Promo.While uploading list of Email Ids for which Promo will be applicable,,i encountered with error : java.lang.ClassCasrrException:java.nio.HeapByteBuffer. > 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 |
|
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4919?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jacques Le Roux reassigned OFBIZ-4919: -------------------------------------- Assignee: Jacques Le Roux > 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 > Assignee: Jacques Le Roux > 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 |
|
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4919?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jacques Le Roux reopened OFBIZ-4919: ------------------------------------ I certainly closed by error, mixing with another issue, bad day... > 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 > Assignee: Jacques Le Roux > 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 |
|
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4919?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13287988#comment-13287988 ] Jacques Le Roux commented on OFBIZ-4919: ---------------------------------------- Ha, but it's not me who closed :D. Nandani, never close an issue on your own when you attach a patch, rather use the button "Patch available". This allows us (commiters) to know that this issue is ready for review. Thanks > 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 > Assignee: Jacques Le Roux > 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 |
|
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4919?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13287989#comment-13287989 ] Jacques Le Roux commented on OFBIZ-4919: ---------------------------------------- BTW, the button is named "Provide Patch" and the status becomes "Patch Available" > 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 > Assignee: Jacques Le Roux > 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 |
|
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4919?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13287991#comment-13287991 ] Jacques Le Roux commented on OFBIZ-4919: ---------------------------------------- Also when you attach a patch don't forget to check the "ASF License granted" box. Not a big deal for a small patch but better rather do everytime. BTW all that is already explained in the link I gave you ;) This saids, it's exactly what I expect and it will help me to quicly review and hopefully commit. > 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 > Assignee: Jacques Le Roux > 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 |
|
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4919?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jacques Le Roux closed OFBIZ-4919. ---------------------------------- Resolution: Fixed Fix Version/s: Release Branch 12.04 SVN trunk Release Branch 11.04 Thanks Nandani, Your patch is in trunk r1345547 R12.04 r1345549 R11.04 r1345550 R10.04 r1345551 > 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 > Assignee: Jacques Le Roux > Priority: Minor > Labels: patch > Fix For: Release Branch 10.04, Release Branch 11.04, SVN trunk, Release Branch 12.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 |
| Free forum by Nabble | Edit this page |
