[jira] Created: (OFBIZ-1378) Cannot instantiate a SerialBlob object with a null Blob object

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (OFBIZ-1378) Cannot instantiate a SerialBlob object with a null Blob object

Nicolas Malin (Jira)
Cannot instantiate a SerialBlob object with a null Blob object
--------------------------------------------------------------

                 Key: OFBIZ-1378
                 URL: https://issues.apache.org/jira/browse/OFBIZ-1378
             Project: OFBiz
          Issue Type: Bug
          Components: framework
    Affects Versions: SVN trunk
            Reporter: Scott Gray


Reproduce here:
https://demo.hotwaxmedia.com/accounting/control/ListAgreementItems?agreementId=9000

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-1378) Cannot instantiate a SerialBlob object with a null Blob object

Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-1378?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Scott Gray updated OFBIZ-1378:
------------------------------

    Attachment: blob.patch

Here's my attempt at fixing the problem, but I'll leave it to the experts :-)

> Cannot instantiate a SerialBlob object with a null Blob object
> --------------------------------------------------------------
>
>                 Key: OFBIZ-1378
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1378
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Scott Gray
>         Attachments: blob.patch
>
>
> Reproduce here:
> https://demo.hotwaxmedia.com/accounting/control/ListAgreementItems?agreementId=9000

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Closed: (OFBIZ-1378) Cannot instantiate a SerialBlob object with a null Blob object

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-1378?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David E. Jones closed OFBIZ-1378.
---------------------------------

       Resolution: Fixed
    Fix Version/s: SVN trunk
         Assignee: David E. Jones

Thanks Scott. This is fixed in SVN rev 591834.

I used a slightly different approach than in your patch to make it more efficient (which I should have considered when writing it originally). At least, hopefully it will be more efficient. The do nothing on null is more efficient but the creation of the SerialBlob only when needed may actually cause data to be transferred twice if the JDBC driver is really funny.

Anyway, seems to be working fine now.

> Cannot instantiate a SerialBlob object with a null Blob object
> --------------------------------------------------------------
>
>                 Key: OFBIZ-1378
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1378
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Scott Gray
>            Assignee: David E. Jones
>             Fix For: SVN trunk
>
>         Attachments: blob.patch
>
>
> Reproduce here:
> https://demo.hotwaxmedia.com/accounting/control/ListAgreementItems?agreementId=9000

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.