Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when trying to issue for >1 component in manufacturing #5193

Closed
metas-dh opened this issue May 14, 2019 · 0 comments

Comments

@metas-dh
Copy link
Member

commented May 14, 2019

Is this a bug or feature request?

Bug

What is the current behavior?

When you try to issue for >1 component at the same time, you get an error:

Error
{timestamp: 1557748578.035, status: 500, error: "Internal Server Error",…}
error: "Internal Server Error"
exception: "org.adempiere.exceptions.FillMandatoryException"
message: "Erforderliche Felder ausfüllen:  Menge CU"
path: "/rest//api/process/ADP_540969/1000518/start"
status: 500
timestamp: 1557748578.035
trace: ["org.adempiere.exceptions.FillMandatoryException: Erforderliche Felder ausfüllen: Menge CU",…]
[0 … 99]
0: "org.adempiere.exceptions.FillMandatoryException: Erforderliche Felder ausfüllen:  Menge CU"
1: "	at de.metas.process.ProcessClassParamInfo.loadParameterValue(ProcessClassParamInfo.java:136)"
2: "	at de.metas.process.JavaProcess.lambda$loadParametersFromContext$0(JavaProcess.java:405)"
3: "	at java.lang.Iterable.forEach(Iterable.java:75)"
4: "	at de.metas.process.JavaProcess.loadParametersFromContext(JavaProcess.java:403)"
5: "	at de.metas.ui.web.process.adprocess.ViewBasedProcessTemplate.loadParametersFromContext(ViewBasedProcessTemplate.java:134)"
6: "	at de.metas.process.JavaProcess.prepareProcess(JavaProcess.java:697)"
7: "	at de.metas.process.JavaProcess.startProcess(JavaProcess.java:292)"
8: "	at de.metas.process.ProcessExecutor.startJavaProcess(ProcessExecutor.java:565)"
9: "	at de.metas.process.ProcessExecutor.startJavaOrScriptProcess(ProcessExecutor.java:461)"
10: "	at de.metas.process.ProcessExecutor.access$700(ProcessExecutor.java:52)"
11: "	at de.metas.process.ProcessExecutor$1.run(ProcessExecutor.java:226)"
12: "	at org.adempiere.ad.trx.api.impl.TrxCallableWrappers$3.call(TrxCallableWrappers.java:145)"
13: "	at org.adempiere.ad.trx.api.impl.TrxCallableWrappers$3.call(TrxCallableWrappers.java:135)"
14: "	at org.adempiere.ad.trx.api.impl.AbstractTrxManager.call0(AbstractTrxManager.java:777)"
15: "	at org.adempiere.ad.trx.api.impl.AbstractTrxManager.call(AbstractTrxManager.java:690)"
16: "	at org.adempiere.ad.trx.api.impl.AbstractTrxManager.call(AbstractTrxManager.java:591)"
17: "	at org.adempiere.ad.trx.api.impl.AbstractTrxManager.call(AbstractTrxManager.java:522)"
18: "	at org.adempiere.ad.trx.api.impl.AbstractTrxManager.run(AbstractTrxManager.java:508)"
19: "	at de.metas.process.ProcessExecutor.executeNow(ProcessExecutor.java:288)"
20: "	at de.metas.process.ProcessExecutor.executeSync(ProcessExecutor.java:173)"
21: "	at de.metas.process.ProcessExecutor.access$1100(ProcessExecutor.java:52)"
22: "	at de.metas.process.ProcessExecutor$Builder.executeSync(ProcessExecutor.java:652)"
23: "	at de.metas.ui.web.process.adprocess.ADProcessInstanceController.executeADProcess(ADProcessInstanceController.java:331)"
24: "	at de.metas.ui.web.process.adprocess.ADProcessInstanceController.startProcess(ADProcessInstanceController.java:308)"
25: "	at de.metas.ui.web.process.ProcessRestController.lambda$null$7(ProcessRestController.java:259)"
26: "	at de.metas.ui.web.process.adprocess.ADProcessInstancesRepository.forProcessInstanceWritable(ADProcessInstancesRepository.java:422)"
27: "	at de.metas.ui.web.process.ProcessRestController.lambda$startProcess$8(ProcessRestController.java:258)"
28: "	at de.metas.ui.web.window.controller.Execution$ExecutionBuilder.lambda$execute$2(Execution.java:237)"
29: "	at de.metas.ui.web.window.controller.Execution$ExecutionBuilder.execute(Execution.java:260)"
30: "	at de.metas.ui.web.process.ProcessRestController.startProcess(ProcessRestController.java:257)"
31: "	at sun.reflect.GeneratedMethodAccessor308.invoke(Unknown Source)"
32: "	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)"
33: "	at java.lang.reflect.Method.invoke(Method.java:498)"
34: "	at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)"
35: "	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133)"
36: "	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:97)"
37: "	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)"
38: "	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)"
39: "	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)"
40: "	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963)"
41: "	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897)"
42: "	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)"
43: "	at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)"
44: "	at javax.servlet.http.HttpServlet.service(HttpServlet.java:635)"
45: "	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)"
46: "	at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)"
47: "	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)"
48: "	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)"
49: "	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)"
50: "	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)"
51: "	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)"
52: "	at org.springframework.boot.web.filter.ApplicationContextHeaderFilter.doFilterInternal(ApplicationContextHeaderFilter.java:55)"
53: "	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)"
54: "	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)"
55: "	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)"
56: "	at de.metas.ui.web.config.WebConfig$1.doFilter(WebConfig.java:82)"
57: "	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)"
58: "	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)"
59: "	at de.metas.ui.web.config.ServletLoggingFilter.doFilter(ServletLoggingFilter.java:89)"
60: "	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)"
61: "	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)"
62: "	at de.metas.ui.web.config.CORSFilter.doFilter(CORSFilter.java:79)"
63: "	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)"
64: "	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)"
65: "	at org.springframework.boot.actuate.trace.WebRequestTraceFilter.doFilterInternal(WebRequestTraceFilter.java:110)"
66: "	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)"
67: "	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)"
68: "	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)"
69: "	at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)"
70: "	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)"
71: "	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)"
72: "	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)"
73: "	at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:105)"
74: "	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)"
75: "	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)"
76: "	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)"
77: "	at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:81)"
78: "	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)"
79: "	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)"
80: "	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)"
81: "	at org.springframework.session.web.http.SessionRepositoryFilter.doFilterInternal(SessionRepositoryFilter.java:167)"
82: "	at org.springframework.session.web.http.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:80)"
83: "	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)"
84: "	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)"
85: "	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)"
86: "	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)"
87: "	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)"
88: "	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)"
89: "	at org.springframework.boot.actuate.autoconfigure.MetricsFilter.doFilterInternal(MetricsFilter.java:106)"
90: "	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)"
91: "	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)"
92: "	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)"
93: "	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)"
94: "	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)"
95: "	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478)"
96: "	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)"
97: "	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80)"
98: "	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)"
99: "	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)"
[100 … 109]
100: "	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:799)"
101: "	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)"
102: "	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:861)"
103: "	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1455)"
104: "	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)"
105: "	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)"
106: "	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)"
107: "	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)"
108: "	at java.lang.Thread.run(Thread.java:748)"
109: ""

Which are the steps to reproduce?

http://recordit.co/m44F97j1fF

What is the expected or desired behavior?

Shall work.

@metas-dh metas-dh added the bug label May 14, 2019

metas-rc added a commit to metasfresh/metasfresh-webui-api that referenced this issue Aug 20, 2019

@metas-ts metas-ts added branch:master type:bug and removed bug labels Aug 22, 2019

metas-ts added a commit to metasfresh/metasfresh-webui-api that referenced this issue Aug 22, 2019

@metas-ts metas-ts closed this Aug 26, 2019

metas-ts added a commit that referenced this issue Aug 26, 2019
Update ReleaseNotes.md
  * [#5426](#5426) Implement MetasfreshBeanNameGenerator to avoid spring bean name collisions in case of model Interceptors
  * [#125](metasfresh/metasfresh-e2e#125) Open Handling Unit Editor
  * [#145](metasfresh/metasfresh-e2e#145) Purchase order from sales order
  * [#210](metasfresh/metasfresh-e2e#210) Create material receipt with quality issue
  * [#5193](#5193) Error when trying to issue for >1 component in manufacturing
  * [#2334](metasfresh/metasfresh-webui-frontend#2334) Error when layout shortcuts is not defined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.