[jira] [Comment Edited] (OFBIZ-6549) workeffort/control/addTimesheetToInvoice missing workEffort for call to createTimeEntryInvoiceItemsInline

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

[jira] [Comment Edited] (OFBIZ-6549) workeffort/control/addTimesheetToInvoice missing workEffort for call to createTimeEntryInvoiceItemsInline

JIRA jira@apache.org

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

Jacques Le Roux edited comment on OFBIZ-6549 at 8/12/17 8:26 AM:
-----------------------------------------------------------------

Hi [~ofbizzer],

I've got problems testing your patch. The following errors occurs when I try to add the timesheet to an invoice using "Add Timesheet To Invoice" in /workeffort/control/EditTimesheet :
{code}
java.lang.Exception: Error in simple-method [createTimeEntryInvoiceItemsInline [file:/Users/mbrohl/Projects/apache-ofbiz/trunk/ofbiz/applications/workeffort/script/org/ofbiz/workeffort/timesheet/TimesheetServices.xml#createTimeEntryInvoiceItemsInline]]: Fehler beim Ausf├╝hren der simple-method: Entity value not found with name: workEffort Method = createTimeEntryInvoiceItemsInline, File = file:/Users/mbrohl/Projects/apache-ofbiz/trunk/ofbiz/applications/workeffort/script/org/ofbiz/workeffort/timesheet/TimesheetServices.xml, Element = <get-related>, Line 163null
        at org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:360) [ofbiz-entity.jar:?]
        at org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:301) [ofbiz-entity.jar:?]
        at org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:576) [ofbiz-minilang.jar:?]
        at org.ofbiz.minilang.method.callops.CallSimpleMethod.exec(CallSimpleMethod.java:112) [ofbiz-minilang.jar:?]
        at org.ofbiz.minilang.method.envops.Iterate.exec(Iterate.java:117) [ofbiz-minilang.jar:?]
        at org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:305) [ofbiz-minilang.jar:?]
        at org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:452) [ofbiz-minilang.jar:?]
        at org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:269) [ofbiz-minilang.jar:?]
        at org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:288) [ofbiz-minilang.jar:?]
        at org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:79) [ofbiz-minilang.jar:?]
        at org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:48) [ofbiz-minilang.jar:?]
        at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:395) [ofbiz-service.jar:?]
        at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:227) [ofbiz-service.jar:?]
        at org.ofbiz.service.GenericDispatcherFactory$GenericDispatcher.runSync(GenericDispatcherFactory.java:88) [ofbiz-service.jar:?]
        at org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:340) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:759) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:476) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:213) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:88) [ofbiz-webapp.jar:?]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:646) [servlet-api-3.0.jar:?]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) [servlet-api-3.0.jar:?]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) [tomcat-7.0.64-catalina.jar:7.0.64]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) [tomcat-7.0.64-catalina.jar:7.0.64]
        at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:324) [ofbiz-webapp.jar:?]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) [tomcat-7.0.64-catalina.jar:7.0.64]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) [tomcat-7.0.64-catalina.jar:7.0.64]
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) [tomcat-7.0.64-catalina.jar:7.0.64]
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) [tomcat-7.0.64-catalina.jar:7.0.64]
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505) [tomcat-7.0.64-catalina.jar:7.0.64]
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) [tomcat-7.0.64-catalina.jar:7.0.64]
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) [tomcat-7.0.64-catalina.jar:7.0.64]
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) [tomcat-7.0.64-catalina.jar:7.0.64]
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956) [tomcat-7.0.64-catalina.jar:7.0.64]
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423) [tomcat-7.0.64-catalina.jar:7.0.64]
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079) [tomcat-7.0.64-tomcat-coyote.jar:7.0.64]
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625) [tomcat-7.0.64-tomcat-coyote.jar:7.0.64]
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318) [tomcat-7.0.64-tomcat-coyote.jar:7.0.64]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_45]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_45]
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-7.0.64-tomcat-coyote.jar:7.0.64]
        at java.lang.Thread.run(Thread.java:745) [?:1.8.0_45]
{code}

Can you please check this?

Thanks,
Michael


was (Author: mbrohl):
Hi [~ofbizzer],

I've got problems testing your patch. The following errors occurs when I try to add the timesheet to an invoice using "Add Timesheet To Invoice" in /workeffort/control/EditTimesheet :

java.lang.Exception: Error in simple-method [createTimeEntryInvoiceItemsInline [file:/Users/mbrohl/Projects/apache-ofbiz/trunk/ofbiz/applications/workeffort/script/org/ofbiz/workeffort/timesheet/TimesheetServices.xml#createTimeEntryInvoiceItemsInline]]: Fehler beim Ausf├╝hren der simple-method: Entity value not found with name: workEffort Method = createTimeEntryInvoiceItemsInline, File = file:/Users/mbrohl/Projects/apache-ofbiz/trunk/ofbiz/applications/workeffort/script/org/ofbiz/workeffort/timesheet/TimesheetServices.xml, Element = <get-related>, Line 163null
        at org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:360) [ofbiz-entity.jar:?]
        at org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:301) [ofbiz-entity.jar:?]
        at org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:576) [ofbiz-minilang.jar:?]
        at org.ofbiz.minilang.method.callops.CallSimpleMethod.exec(CallSimpleMethod.java:112) [ofbiz-minilang.jar:?]
        at org.ofbiz.minilang.method.envops.Iterate.exec(Iterate.java:117) [ofbiz-minilang.jar:?]
        at org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:305) [ofbiz-minilang.jar:?]
        at org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:452) [ofbiz-minilang.jar:?]
        at org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:269) [ofbiz-minilang.jar:?]
        at org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:288) [ofbiz-minilang.jar:?]
        at org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:79) [ofbiz-minilang.jar:?]
        at org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:48) [ofbiz-minilang.jar:?]
        at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:395) [ofbiz-service.jar:?]
        at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:227) [ofbiz-service.jar:?]
        at org.ofbiz.service.GenericDispatcherFactory$GenericDispatcher.runSync(GenericDispatcherFactory.java:88) [ofbiz-service.jar:?]
        at org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:340) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:759) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:476) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:213) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:88) [ofbiz-webapp.jar:?]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:646) [servlet-api-3.0.jar:?]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) [servlet-api-3.0.jar:?]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) [tomcat-7.0.64-catalina.jar:7.0.64]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) [tomcat-7.0.64-catalina.jar:7.0.64]
        at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:324) [ofbiz-webapp.jar:?]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) [tomcat-7.0.64-catalina.jar:7.0.64]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) [tomcat-7.0.64-catalina.jar:7.0.64]
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) [tomcat-7.0.64-catalina.jar:7.0.64]
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) [tomcat-7.0.64-catalina.jar:7.0.64]
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505) [tomcat-7.0.64-catalina.jar:7.0.64]
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) [tomcat-7.0.64-catalina.jar:7.0.64]
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) [tomcat-7.0.64-catalina.jar:7.0.64]
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) [tomcat-7.0.64-catalina.jar:7.0.64]
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956) [tomcat-7.0.64-catalina.jar:7.0.64]
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423) [tomcat-7.0.64-catalina.jar:7.0.64]
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079) [tomcat-7.0.64-tomcat-coyote.jar:7.0.64]
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625) [tomcat-7.0.64-tomcat-coyote.jar:7.0.64]
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318) [tomcat-7.0.64-tomcat-coyote.jar:7.0.64]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_45]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_45]
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-7.0.64-tomcat-coyote.jar:7.0.64]
        at java.lang.Thread.run(Thread.java:745) [?:1.8.0_45]


Can you please check this?

Thanks,
Michael

> workeffort/control/addTimesheetToInvoice missing workEffort for call to createTimeEntryInvoiceItemsInline
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-6549
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-6549
>             Project: OFBiz
>          Issue Type: Bug
>          Components: workeffort
>    Affects Versions: 16.11.01
>            Reporter: Christian Carlow
>            Assignee: Michael Brohl
>            Priority: Minor
>         Attachments: OFBIZ-6549.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)