ofbiz-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacques Le Roux (Jira)" <j...@apache.org>
Subject [jira] [Closed] (OFBIZ-11123) NotSerializableException after uploading images to an order
Date Fri, 11 Oct 2019 16:48:00 GMT

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

Jacques Le Roux closed OFBIZ-11123.
-----------------------------------
    Fix Version/s: 16.11.07
       Resolution: Fixed

The error above was a red herring. HeapByteBuffer in RequestHandler.java is not concerned.
The createTaskContent does not work.  I have created OFBIZ-11246 for that.

Nevertheless, I have worked on the by-product issue, ie HeapByteBuffer in RequestHandler.java.

I found that using in r1866259 the same fix than Si Chen used in OFBIZ-750 was wrong. The
code just above this fix is

{code:java}
            if (obj instanceof Serializable) {
                reqAttrMap.put(name, obj);
            }
{code}

The problem with this code is that if does not handle inner Maps which may contain a non Serializable
Object

Fixed in 
trunk r1868298
R18 r1868299
R17 r1868300
R16 r1868301



> NotSerializableException after uploading images to an order
> -----------------------------------------------------------
>
>                 Key: OFBIZ-11123
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-11123
>             Project: OFBiz
>          Issue Type: Bug
>    Affects Versions: Trunk
>            Reporter: Devanshu Vyas
>            Assignee: Jacques Le Roux
>            Priority: Minor
>             Fix For: 17.12.01, 16.11.07, 18.12.01, 16.11.06
>
>         Attachments: OFBIZ-11123-2.patch, OFBIZ-11123-3.patch, OFBIZ-11123.patch
>
>
> {noformat}
> 2019-08-18 11:13:24,914 |jsse-nio-8443-exec-8 |UtilObject                    |E| null
> java.io.NotSerializableException: java.nio.HeapByteBuffer
>         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1184) ~[?:1.8.0_202]
>         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348) ~[?:1.8.0_202]
>         at java.util.HashMap.internalWriteEntries(HashMap.java:1793) ~[?:1.8.0_202]
>         at java.util.HashMap.writeObject(HashMap.java:1363) ~[?:1.8.0_202]
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_202]
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
~[?:1.8.0_202]
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[?:1.8.0_202]
>         at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_202]
>         at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:1140) ~[?:1.8.0_202]
>         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496) ~[?:1.8.0_202]
>         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
~[?:1.8.0_202]
>         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178) ~[?:1.8.0_202]
>         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348) ~[?:1.8.0_202]
>         at java.util.HashMap.internalWriteEntries(HashMap.java:1793) ~[?:1.8.0_202]
>         at java.util.HashMap.writeObject(HashMap.java:1363) ~[?:1.8.0_202]
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_202]
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
~[?:1.8.0_202]
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[?:1.8.0_202]
>         at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_202]
>         at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:1140) ~[?:1.8.0_202]
>         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496) ~[?:1.8.0_202]
>         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
~[?:1.8.0_202]
>         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178) ~[?:1.8.0_202]
>         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348) ~[?:1.8.0_202]
>         at org.apache.ofbiz.base.util.UtilObject.getBytes(UtilObject.java:47) [ofbiz.jar:?]{code}
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message