[ 
https://issues.apache.org/jira/browse/OFBIZ-5788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14151516#comment-14151516
 ] 

Deepak Dixit commented on OFBIZ-5788:
-------------------------------------

Hi Nicolas,

Here is the sample data to test this:
{code}
<DataResource dataResourceId="TEST" dataResourceTypeId="ELECTRONIC_TEXT" 
mimeTypeId="text/html" dataTemplateTypeId="NONE" isPublic="Y"/>
<ElectronicText dataResourceId="TEST" textData="This is test streaming"/>
<Content contentId="TEST" dataResourceId="TEST" contentName="Test Streaming"/>
{code}

And then access the TEST content via stream request, you will get the class 
cast exception.

http://demo-trunk-ofbiz.apache.org/content/control/stream?contentId=TEST

> ClassCastException in DataResourceWorker.getDataResourceStream method
> ---------------------------------------------------------------------
>
>                 Key: OFBIZ-5788
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5788
>             Project: OFBiz
>          Issue Type: Bug
>          Components: content
>    Affects Versions: Release Branch 13.07, Trunk
>            Reporter: Deepak Dixit
>            Assignee: Nicolas Malin
>            Priority: Minor
>         Attachments: OFBIZ-5788.patch
>
>
> I am getting following error while accessing 
> DataResourceWorker.getDataResourceStream()
> {quote}
> 20140925162041093 |-0.0.0.0-8443-exec-7 |RequestHandler      |E| Request 
> stream caused an error with the following message: Error calling event: 
> org.ofbiz.webapp.event.EventHandlerException: Problems processing event: 
> java.lang.ClassCastException: java.lang.Integer cannot be cast to 
> java.lang.Long (java.lang.Integer cannot be cast to java.lang.Long)
> {quote}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to