[jira] [Commented] (OFBIZ-12050) NotSerializableException using uploadPartyContentFile service

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

[jira] [Commented] (OFBIZ-12050) NotSerializableException using uploadPartyContentFile service

Nicolas Malin (Jira)

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

ASF subversion and git services commented on OFBIZ-12050:
---------------------------------------------------------

Commit af464dfa7071bef39d686a4d3109b2672844dbfb in ofbiz-framework's branch refs/heads/release18.12 from Jacques Le Roux
[ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=af464df ]

Fixed: NotSerializableException using uploadPartyContentFile service (OFBIZ-12050)

This error appears after trying to upload a file to party content:

2020-11-06 07:48:22,488 |jsse-nio-8443-exec-7 |RequestHandler                |I|
Sending redirect to:
[https://localhost:8443/partymgr/control/viewprofile?partyId=admin].
2020-11-06 07:48:29,288 |jsse-nio-8443-exec-7 |UtilObject                    |E|
null
java.io.NotSerializableException: org.apache.commons.fileupload.disk.DiskFileItem

# Conflicts handled by hand
# framework/base/src/main/java/org/apache/ofbiz/base/util/UtilMisc.java
# framework/webapp/src/main/java/org/apache/ofbiz/webapp/control/RequestHandler.java


> NotSerializableException using uploadPartyContentFile service
> -------------------------------------------------------------
>
>                 Key: OFBIZ-12050
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-12050
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Jacques Le Roux
>            Assignee: Jacques Le Roux
>            Priority: Major
>
> This error appears after trying to upload a file to party content:
> {noformat}
> 2020-11-06 07:48:22,488 |jsse-nio-8443-exec-7 |RequestHandler                |I| Sending redirect to: [https://localhost:8443/partymgr/control/viewprofile?partyId=admin].  Hidden sessionId by default.
> 2020-11-06 07:48:29,288 |jsse-nio-8443-exec-7 |UtilObject                    |E| null
> java.io.NotSerializableException: org.apache.commons.fileupload.disk.DiskFileItem
>         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.ArrayList.writeObject(ArrayList.java:766) ~[?: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) [main/:?]
>         at org.apache.ofbiz.webapp.control.RequestHandler.callRedirect(RequestHandler.java:257) [main/:?]
> {noformat}



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