Hi Jacques,

As a workaround, I set auth="false" for <service name="executeMrp" 
engine="java" ..> in service_mrp.xml to make it "work". 

I apparently was not allowed to signup to Jira, please see the screen shot 
attached.

Thanks,
Yannong

On 11/24/22, 8:07 AM, "Jacques Le Roux" <[email protected]> wrote:

    Hi Yannong,

    Your message has been moderated, else it would not have reached this 
Mailing List.

    Please subscribe to the user ML for such questions and then use your email 
client.
    See why here http://ofbiz.apache.org/mailing-lists.html.

    You will get a better support, people can answer you on the ML.
    The wider the audience the better the answers you might get.

    Also it's more work for moderators who have to accept your messages as long 
as you have not subscribed.
    I'll personally no longer accept them (other moderators still could).

    This said, I was able to reproduce the issue using trunk HEAD and will have 
a look at it ASAP

    Thanks for report, would you mind creating a Jira about that? You may 
follow:
    
https://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+Contributors+Best+Practices

    TIA

    Jacques

    Le 22/11/2022 à 03:32, yannong huang a écrit :
    > Hi there,
    >
    >   
    >
    > I recently downloaded, installed and run OfBiz 18.12 in my local 
environment (MacOS M1, jdk1.8.0_351.jdk), but failed with the Manufacturing / 
MRP Run with the Table made of (Wood + Nails + Varnish) tutorial. I attached 
error messages below.
    >
    >   
    >
    > Can anyone shed some lights on that?
    >
    >   
    >
    > Thanks,
    >
    > Yannong
    >
    >   
    >
    >   
--------------------------------------------------------------------------
    >
    >   
    >
    >   
    >
    > 2022-11-21 17:40:40,916 |jsse-nio-8443-exec-2 |ServiceDispatcher          
   |T| Sync service [manufacturing/getLastSystemInfoNote] finished in [1] 
milliseconds
    >
    > 2022-11-21 17:40:41,088 |jsse-nio-8443-exec-2 |ServerHitBin               
   |I| Visit delegatorName=default, ServerHitBin delegatorName=default
    >
    > 2022-11-21 17:40:41,099 |jsse-nio-8443-exec-2 |ControlServlet             
   |T| [[[FindInventoryEventPlan(Domain:https://localhost)] Request Done- 
total:0.268,since last([FindInventoryEve...):0.269]]
    >
    > 2022-11-21 17:40:43,746 |jsse-nio-8443-exec-4 |LoginWorker                
   |W| Received a null Security object from HttpServletRequest
    >
    > 2022-11-21 17:40:43,750 |jsse-nio-8443-exec-4 |ControlServlet             
   |T| [[[FindInventoryEventPlan(Domain:https://localhost)] Request Begun, 
encoding=[UTF-8]- total:0.0,since last(Begin):0.0]]
    >
    > 2022-11-21 17:40:43,798 |jsse-nio-8443-exec-4 |ConfigXMLReader            
   |I| controller loaded: 0.005s, 149 requests, 66 views in 
file:/Users/yannonghuang/ofbiz/ofbiz-framework/applications/manufacturing/webapp/manufacturing/WEB-INF/controller.xml
    >
    > 2022-11-21 17:40:43,812 |jsse-nio-8443-exec-4 |ConfigXMLReader            
   |I| controller loaded: 0.001s, 49 requests, 21 views in 
file:/Users/yannonghuang/ofbiz/ofbiz-framework/framework/common/webcommon/WEB-INF/common-controller.xml
    >
    > 2022-11-21 17:40:43,822 |jsse-nio-8443-exec-4 |ConfigXMLReader            
   |I| controller loaded: 0.0s, 0 requests, 0 views in 
file:/Users/yannonghuang/ofbiz/ofbiz-framework/framework/common/webcommon/WEB-INF/handlers-controller.xml
    >
    > 2022-11-21 17:40:43,830 |jsse-nio-8443-exec-4 |ConfigXMLReader            
   |I| controller loaded: 0.0s, 4 requests, 0 views in 
file:/Users/yannonghuang/ofbiz/ofbiz-framework/applications/commonext/webapp/WEB-INF/controller.xml
    >
    > 2022-11-21 17:40:43,833 |jsse-nio-8443-exec-4 |JWTManager                 
   |I| Internal single sign on is disabled.
    >
    > 2022-11-21 17:40:43,842 |jsse-nio-8443-exec-4 |RequestHandler             
   |I| Rendering View [FindMrpPlannedEvents].  Hidden sessionId by default.
    >
    > 2022-11-21 17:40:43,849 |jsse-nio-8443-exec-4 |ServiceDispatcher          
   |T| Sync service [manufacturing/getUserPreferenceGroup] finished in [2] 
milliseconds
    >
    > 2022-11-21 17:40:43,961 |jsse-nio-8443-exec-4 |ScreenFactory              
   |I| Got 2 screens in 0.006s from: 
file:/Users/yannonghuang/ofbiz/ofbiz-framework/applications/manufacturing/widget/manufacturing/CommonScreens.xml
    >
    > 2022-11-21 17:40:43,966 |jsse-nio-8443-exec-4 |ScreenFactory              
   |I| Got 1 screens in 0.004s from: 
file:/Users/yannonghuang/ofbiz/ofbiz-framework/applications/commonext/widget/CommonScreens.xml
    >
    > 2022-11-21 17:40:44,001 |jsse-nio-8443-exec-4 |ServiceDispatcher          
   |T| Sync service [manufacturing/getLastSystemInfoNote] finished in [14] 
milliseconds
    >
    > 2022-11-21 17:40:44,008 |jsse-nio-8443-exec-4 |ScreenFactory              
   |I| Got 26 screens in 0.004s from: 
file:/Users/yannonghuang/ofbiz/ofbiz-framework/framework/common/widget/CommonScreens.xml
    >
    > 2022-11-21 17:40:44,048 |jsse-nio-8443-exec-4 |ScreenFactory              
   |I| Got 25 screens in 0.007s from: 
file:/Users/yannonghuang/ofbiz/ofbiz-framework/themes/common-theme/widget/CommonScreens.xml
    >
    > 2022-11-21 17:40:44,133 |jsse-nio-8443-exec-4 |ServerHitBin               
   |I| Visit delegatorName=default, ServerHitBin delegatorName=default
    >
    > 2022-11-21 17:40:44,137 |jsse-nio-8443-exec-4 |ControlServlet             
   |T| [[[FindInventoryEventPlan(Domain:https://localhost)] Request Done- 
total:0.387,since last([FindInventoryEve...):0.387]]
    >
    > 2022-11-21 17:40:47,558 |jsse-nio-8443-exec-1 |LoginWorker                
   |W| Received a null Security object from HttpServletRequest
    >
    > 2022-11-21 17:40:47,560 |jsse-nio-8443-exec-1 |ControlServlet             
   |T| [[[FindInventoryEventPlan(Domain:https://localhost)] Request Begun, 
encoding=[UTF-8]- total:0.0,since last(Begin):0.0]]
    >
    > 2022-11-21 17:40:47,562 |jsse-nio-8443-exec-1 |JWTManager                 
   |I| Internal single sign on is disabled.
    >
    > 2022-11-21 17:40:47,576 |jsse-nio-8443-exec-1 |RequestHandler             
   |I| Rendering View [FindMrpPlannedEvents].  Hidden sessionId by default.
    >
    > 2022-11-21 17:40:47,581 |jsse-nio-8443-exec-1 |ServiceDispatcher          
   |T| Sync service [manufacturing/getUserPreferenceGroup] finished in [1] 
milliseconds
    >
    > 2022-11-21 17:40:47,594 |jsse-nio-8443-exec-1 |ServiceDispatcher          
   |T| Sync service [manufacturing/getLastSystemInfoNote] finished in [1] 
milliseconds
    >
    > 2022-11-21 17:40:47,705 |jsse-nio-8443-exec-1 |ServerHitBin               
   |I| Visit delegatorName=default, ServerHitBin delegatorName=default
    >
    > 2022-11-21 17:40:47,731 |jsse-nio-8443-exec-1 |ControlServlet             
   |T| [[[FindInventoryEventPlan(Domain:https://localhost)] Request Done- 
total:0.171,since last([FindInventoryEve...):0.171]]
    >
    > 2022-11-21 17:40:51,044 |OFBiz-JobQueue-0     |PersistedServiceJob        
   |I| Job  [1669081224242] Id [10018] -- Next runtime: Wed Dec 31 15:59:59 PST 
1969
    >
    > Nov 21, 2022 5:40:51 PM java.io.ObjectInputStream filterCheck
    >
    > INFO: ObjectInputFilter REJECTED: null, array length: -1, nRefs: 501, 
depth: 6, bytes: 13065, ex: n/a
    >
    > 2022-11-21 17:40:51,134 |OFBiz-JobQueue-0     |UtilObject                 
   |E| null
    >
    > java.io.InvalidClassException: filter status: REJECTED
    >
    >          at 
java.io.ObjectInputStream.filterCheck(ObjectInputStream.java:1356) 
~[?:1.8.0_351]
    >
    >          at 
java.io.ObjectInputStream.readHandle(ObjectInputStream.java:1824) ~[?:1.8.0_351]
    >
    >          at 
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1657) 
~[?:1.8.0_351]
    >
    >          at 
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2454) 
~[?:1.8.0_351]
    >
    >          at 
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2378) 
~[?:1.8.0_351]
    >
    >          at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2236) 
~[?:1.8.0_351]
    >
    >          at 
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1692) 
~[?:1.8.0_351]
    >
    >          at 
java.io.ObjectInputStream.readObject(ObjectInputStream.java:508) ~[?:1.8.0_351]
    >
    >          at 
java.io.ObjectInputStream.readObject(ObjectInputStream.java:466) ~[?:1.8.0_351]
    >
    >          at java.util.HashMap.readObject(HashMap.java:1418) ~[?:1.8.0_351]
    >
    >          at sun.reflect.GeneratedMethodAccessor377.invoke(Unknown Source) 
~[?:?]
    >
    >          at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 ~[?:1.8.0_351]
    >
    >          at java.lang.reflect.Method.invoke(Method.java:498) 
~[?:1.8.0_351]
    >
    >          at 
java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1185) 
~[?:1.8.0_351]
    >
    >          at 
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2345) 
~[?:1.8.0_351]
    >
    >          at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2236) 
~[?:1.8.0_351]
    >
    >          at 
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1692) 
~[?:1.8.0_351]
    >
    >          at 
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2454) 
~[?:1.8.0_351]
    >
    >          at 
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2378) 
~[?:1.8.0_351]
    >
    >          at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2236) 
~[?:1.8.0_351]
    >
    >          at 
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1692) 
~[?:1.8.0_351]
    >
    >          at 
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2454) 
~[?:1.8.0_351]
    >
    >          at 
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2378) 
~[?:1.8.0_351]
    >
    >          at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2236) 
~[?:1.8.0_351]
    >
    >          at 
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1692) 
~[?:1.8.0_351]
    >
    >          at 
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2454) 
~[?:1.8.0_351]
    >
    >          at 
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2378) 
~[?:1.8.0_351]
    >
    >          at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2236) 
~[?:1.8.0_351]
    >
    >          at 
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1692) 
~[?:1.8.0_351]
    >
    >          at 
java.io.ObjectInputStream.readObject(ObjectInputStream.java:508) ~[?:1.8.0_351]
    >
    >          at 
java.io.ObjectInputStream.readObject(ObjectInputStream.java:466) ~[?:1.8.0_351]
    >
    >          at 
org.apache.ofbiz.base.util.UtilObject.getObjectException(UtilObject.java:96) 
~[ofbiz.jar:?]
    >
    >          at 
org.apache.ofbiz.base.util.UtilObject.getObject(UtilObject.java:79) 
~[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_351]
    >
    >          at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
~[?:1.8.0_351]
    >
    >          at java.lang.Thread.run(Thread.java:750) ~[?:1.8.0_351]
    >
    > 2022-11-21 17:40:51,138 |OFBiz-JobQueue-0     |PersistedServiceJob        
   |E| PersistedServiceJob.getContext(): Serialize Exception
    >
    > org.apache.ofbiz.entity.serialize.SerializeException: Problem 
deserializing object from byte array + cus-obj
    >
    >          at 
org.apache.ofbiz.entity.serialize.XmlSerializer.deserializeCustom(XmlSerializer.java:481)
 ~[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_351]
    >
    >          at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
~[?:1.8.0_351]
    >
    >          at java.lang.Thread.run(Thread.java:750) ~[?:1.8.0_351]
    >
    > 2022-11-21 17:40:51,142 |OFBiz-JobQueue-0     |PersistedServiceJob        
   |E| Job context is null
    >
    > 2022-11-21 17:40:51,148 |OFBiz-JobQueue-0     |ServiceDispatcher          
   |T| [[Sync service failed...- total:0.0,since last(Begin):0.001]] - 'default 
/ executeMrp'
    >
    > 2022-11-21 17:40:51,150 |OFBiz-JobQueue-0     |TransactionUtil            
   |I| Transaction rolled back
    >
    > 2022-11-21 17:40:51,152 |OFBiz-JobQueue-0     |TransactionUtil            
   |W| Not committing transaction, status is No Transaction (6)
    >
    > 2022-11-21 17:40:51,153 |OFBiz-JobQueue-0     |GenericServiceJob          
   |E| Async-Service failed.
    >
    > org.apache.ofbiz.service.ServiceAuthException: User authorization is 
required for this service: executeMrp
    >
    >          at 
org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:375) 
~[ofbiz.jar:?]
    >
    >          at 
org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:240) 
~[ofbiz.jar:?]
    >
    >          at 
org.apache.ofbiz.service.GenericDispatcherFactory$GenericDispatcher.runSync(GenericDispatcherFactory.java:88)
 ~[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_351]
    >
    >          at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
~[?:1.8.0_351]
    >
    >          at java.lang.Thread.run(Thread.java:750) ~[?:1.8.0_351]
    >
    > 2022-11-21 17:40:51,153 |OFBiz-JobQueue-0     |PersistedServiceJob        
   |W| Persisted Job [10018] Failed. Max Retry Hit, not re-scheduling
    >
    > 2022-11-21 17:41:46,108 |jsse-nio-8443-exec-7 |LoginWorker                
   |W| Received a null Security object from HttpServletRequest
    >
    > 2022-11-21 17:41:46,121 |jsse-nio-8443-exec-7 |ControlServlet             
   |T| [[[FindInventoryEventPlan(Domain:https://localhost)] Request Begun, 
encoding=[UTF-8]- total:0.001,since last(Begin):0.001]]
    >
    > 2022-11-21 17:41:46,180 |jsse-nio-8443-exec-7 |ConfigXMLReader            
   |I| controller loaded: 0.005s, 149 requests, 66 views in 
file:/Users/yannonghuang/ofbiz/ofbiz-framework/applications/manufacturing/webapp/manufacturing/WEB-INF/controller.xml
    >
    > 2022-11-21 17:41:46,196 |jsse-nio-8443-exec-7 |ConfigXMLReader            
   |I| controller loaded: 0.001s, 49 requests, 21 views in 
file:/Users/yannonghuang/ofbiz/ofbiz-framework/framework/common/webcommon/WEB-INF/common-controller.xml
    >
    > 2022-11-21 17:41:46,207 |jsse-nio-8443-exec-7 |ConfigXMLReader            
   |I| controller loaded: 0.0s, 0 requests, 0 views in 
file:/Users/yannonghuang/ofbiz/ofbiz-framework/framework/common/webcommon/WEB-INF/handlers-controller.xml
    >
    > 2022-11-21 17:41:46,217 |jsse-nio-8443-exec-7 |ConfigXMLReader            
   |I| controller loaded: 0.0s, 4 requests, 0 views in 
file:/Users/yannonghuang/ofbiz/ofbiz-framework/applications/commonext/webapp/WEB-INF/controller.xml
    >
    > 2022-11-21 17:41:46,222 |jsse-nio-8443-exec-7 |JWTManager                 
   |I| Internal single sign on is disabled.
    >
    > 2022-11-21 17:41:46,237 |jsse-nio-8443-exec-7 |RequestHandler             
   |I| Rendering View [FindMrpPlannedEvents].  Hidden sessionId by default.
    >
    > 2022-11-21 17:41:46,250 |jsse-nio-8443-exec-7 |ServiceDispatcher          
   |T| Sync service [manufacturing/getUserPreferenceGroup] finished in [4] 
milliseconds
    >
    >   
    >

Reply via email to