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

Michael Brohl commented on OFBIZ-10876:
---------------------------------------

This is broken by the SafeObjectInputStream "improvements".

> Run MRP fails, Incompatible class
> ---------------------------------
>
>                 Key: OFBIZ-10876
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-10876
>             Project: OFBiz
>          Issue Type: Bug
>          Components: manufacturing
>    Affects Versions: Trunk, Release Branch 18.12
>         Environment: Testing if a "fresh" environment, just cloned from 
> github:
> {code:java}
> git clone g...@github.com:apache/ofbiz-framework.git{code}
> or
> {code:java}
> git clone -b release18.12 g...@github.com:apache/ofbiz-framework.git{code}
> Then build and run:
> {code:java}
> ./gradlew cleanAll loadAll
> ./gradlew ofbiz{code}
> Login and go to manufacturing tab -> MRP, click Run MRP. Then MRP Log, show 
> processing then failed. Default environment, no changes.
> Using:
> {code:java}
> $ java -version
> java version "1.8.0_201"
> Java(TM) SE Runtime Environment (build 1.8.0_201-b09)
> Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode){code}
>            Reporter: Ed Mack
>            Priority: Major
>
> When trying to "Run MRP" it starts processing, then ends with error, so I 
> can't run my MRP:
> {code:java}
>  
>  2019-03-27 11:32:30,871 |OFBiz-JobQueue-0 |SafeObjectInputStream |W| 
> ************************Incompatible class: 
> org.apache.ofbiz.widget.renderer.VisualTheme. Please see OFBIZ-10837. Report 
> to dev ML if you use OFBiz without changes. Else add you class into 
> UtilObject::getObjectException
>  2019-03-27 11:32:30,871 |OFBiz-JobQueue-0 |GenericServiceJob |E| 
> Async-Service failed.
>  java.lang.ClassCastException: Incompatible class: 
> org.apache.ofbiz.widget.renderer.VisualTheme
>  at 
> org.apache.ofbiz.base.util.SafeObjectInputStream.resolveClass(SafeObjectInputStream.java:66)
>  ~[ofbiz.jar:?]
>  at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1868) 
> ~[?:1.8.0_201]
>  at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1751) 
> ~[?:1.8.0_201]
>  at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2042) 
> ~[?:1.8.0_201]
>  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1573) 
> ~[?:1.8.0_201]
>  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:431) 
> ~[?:1.8.0_201]
>  at 
> org.apache.ofbiz.base.util.UtilObject.getObjectException(UtilObject.java:148) 
> ~[ofbiz.jar:?]
>  at org.apache.ofbiz.base.util.UtilObject.getObject(UtilObject.java:133) 
> ~[ofbiz.jar:?]
>  at 
> org.apache.ofbiz.entity.serialize.XmlSerializer.deserializeCustom(XmlSerializer.java:475)
>  ~[ofbiz.jar:?]
>  at 
> org.apache.ofbiz.entity.serialize.XmlSerializer.deserializeSingle(XmlSerializer.java:465)
>  ~[ofbiz.jar:?]
>  at 
> org.apache.ofbiz.entity.serialize.XmlSerializer.deserializeSingle(XmlSerializer.java:453)
>  ~[ofbiz.jar:?]
>  at 
> org.apache.ofbiz.entity.serialize.XmlSerializer.deserialize(XmlSerializer.java:128)
>  ~[ofbiz.jar:?]
>  at 
> org.apache.ofbiz.entity.serialize.XmlSerializer.deserialize(XmlSerializer.java:102)
>  ~[ofbiz.jar:?]
>  at 
> org.apache.ofbiz.service.job.PersistedServiceJob.getContext(PersistedServiceJob.java:293)
>  [ofbiz.jar:?]
>  at 
> org.apache.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:70)
>  [ofbiz.jar:?]
>  at org.apache.ofbiz.service.job.AbstractJob.run(AbstractJob.java:87) 
> [ofbiz.jar:?]
>  at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>  [?:1.8.0_201]
>  at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>  [?:1.8.0_201]
>  at java.lang.Thread.run(Thread.java:748) [?:1.8.0_201]
>  {code}
> I see that was addressed in OFBIZ-9794, but I don't see how to fix it.
> Please advise steps I should try to fix this.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to