|
[ https://issues.apache.org/jira/browse/OFBIZ-11123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jacques Le Roux reopened OFBIZ-11123: ------------------------------------- I reopen because I found another case: {noformat} 2019-10-10 13:36:46,950 |jsse-nio-8460-exec-9 |TransactionUtil |W| Calling transaction setRollbackOnly; this stack trace shows where this is happening: java.lang.Exception: Error in simple-method [Attach an uploaded file to a data resource as LOCAL_FILE [file:/C:/projectsASF/release17.12/applications/content/minilang/data/DataServices.xml#saveLocalFileDataResource]]: ; [No uploaded content found in context] [....] 2019-10-10 13:36:47,080 |jsse-nio-8460-exec-9 |SimpleEventHandler |E| null org.apache.ofbiz.entity.transaction.GenericTransactionException: Roll back error, could not commit transaction, was rolled back instead because of: Error in simple-method [Attach an uploaded file to a data resource as LOCAL_FILE [file:/C:/projectsASF/release17.12/applications/content/minilang/data/DataServices.xml#saveLocalFileDataResource]]: ; [No uploaded content found in context] [...] 2019-10-10 13:36:47,080 |jsse-nio-8460-exec-9 |RequestHandler |I| Ran Event [simple:component://projectmgr/minilang/ProjectSimpleEvents.xml#createWorkEffortContent] from [request], result is [error] 2019-10-10 13:36:47,080 |jsse-nio-8460-exec-9 |RequestHandler |W| Could not find response in request [createTaskContent] for event return [error] 2019-10-10 13:36:47,081 |jsse-nio-8460-exec-9 |RequestHandler |I| Sending redirect to: [https://localhost:8460/projectmgr/control/EditTaskContents]. Hidden sessionId by default. 2019-10-10 13:36:47,083 |jsse-nio-8460-exec-9 |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:64) [ofbiz.jar:?] at org.apache.ofbiz.webapp.control.RequestHandler.callRedirect(RequestHandler.java:822) [ofbiz.jar:?] at org.apache.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:637) [ofbiz.jar:?] [...] 2019-10-10 13:36:47,083 |jsse-nio-8460-exec-9 |ServerHitBin |I| Visit delegatorName=default, ServerHitBin delegatorName=default 2019-10-10 13:36:47,084 |jsse-nio-8460-exec-9 |ControlServlet |T| [[[createTaskContent(Domain:https://localhost)] Request Done- total:0.286,since last([createTaskConten...):0.286]] 2019-10-10 13:36:47,334 |jsse-nio-8460-exec-7 |ControlServlet |T| [[[EditTaskContents(Domain:https://localhost)] Request Begun, encoding=[UTF-8]- total:0.0,since last(Begin):0.0]] 2019-10-10 13:36:47,341 |jsse-nio-8460-exec-7 |RequestHandler |I| Rendering View [EditTaskContents]. Hidden sessionId by default. 2019-10-10 13:36:47,342 |jsse-nio-8460-exec-7 |ServiceDispatcher |T| Sync service [projectmgr/getUserPreferenceGroup] finished in [1] milliseconds 2019-10-10 13:36:47,429 |jsse-nio-8460-exec-7 |ScreenFactory |I| Got 23 screens in 0.086s from: file:/C:/projectsASF/release17.12/plugins/projectmgr/widget/TaskScreens.xml 2019-10-10 13:36:47,430 |jsse-nio-8460-exec-7 |PrimaryKeyFinder |I| Returning null because found incomplete primary key in find: [GenericEntity:Content][contentId,null()] 2019-10-10 13:36:47,448 |jsse-nio-8460-exec-7 |ScreenFactory |I| Got 11 screens in 0.018s from: file:/C:/projectsASF/release17.12/plugins/projectmgr/widget/CommonScreens.xml 2019-10-10 13:36:47,448 |jsse-nio-8460-exec-7 |PrimaryKeyFinder |I| Returning null because found incomplete primary key in find: [GenericEntity:WorkEffort][workEffortId,null()] 2019-10-10 13:36:47,496 |jsse-nio-8460-exec-7 |ScreenFactory |I| Got 1 screens in 0.015s from: file:/C:/projectsASF/release17.12/applications/commonext/widget/CommonScreens.xml 2019-10-10 13:36:47,546 |jsse-nio-8460-exec-7 |ServiceDispatcher |T| Sync service [projectmgr/getLastSystemInfoNote] finished in [19] milliseconds 2019-10-10 13:36:47,701 |jsse-nio-8460-exec-7 |PrimaryKeyFinder |I| Returning null because found incomplete primary key in find: [GenericEntity:StatusItem][statusId,null()] 2019-10-10 13:36:47,701 |jsse-nio-8460-exec-7 |PrimaryKeyFinder |I| Returning null because found incomplete primary key in find: [GenericEntity:DataResource][dataResourceId,null()] 2019-10-10 13:36:47,929 |jsse-nio-8460-exec-7 |ServerHitBin |I| Visit delegatorName=default, ServerHitBin delegatorName=default 2019-10-10 13:36:47,930 |jsse-nio-8460-exec-7 |ControlServlet |T| [[[EditTaskContents(Domain:https://localhost)] Request Done- total:0.596,since last([EditTaskContents...):0.596]] {noformat} My 3rd patch was pretty but it does not handle all cases. So I'll certainly revert and use my 1st patch. > 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.06, 18.12.01 > > 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) |
| Free forum by Nabble | Edit this page |
