Posted by
Nicolas Malin (Jira) on
URL: http://ofbiz.116.s1.nabble.com/jira-Commented-OFBIZ-3913-Automated-action-triggered-by-event-tp4221223.html
[
https://issues.apache.org/jira/browse/OFBIZ-3913?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13174015#comment-13174015 ]
Jacques Le Roux commented on OFBIZ-3913:
----------------------------------------
Hi Nicolas,
This is not clear to me, what is supposed to be externalDeviceId? And why do you set it as "PDF" in data by default?
I thought it was related to a Printer name (PDFCreator for instance for me under XP); but when I remove PDF (because of the issue below) and add PDFCreator, I find nothing in dropdown when wanting to associate with an user (login)
{code}
[java] 2011-12-21 12:10:31,859 (http-bio-/0.0.0.0-8443-exec-4) [ ControlServlet.java:141:INFO ] [[[createExample(Domain:
https://localhost)] Request Begun, encoding=[UTF-8]- total:0.0,since last(Begin
):0.0]]
[java] 2011-12-21 12:10:31,906 (http-bio-/0.0.0.0-8443-exec-4) [ SequenceUtil.java:239:WARN ] [SequenceUtil.SequenceBank.fillBank] first select failed: will try to add new row, result set was empty
for sequence [Example]
[java] Used SQL: SELECT SEQ_ID FROM OFBIZ.SEQUENCE_VALUE_ITEM WHERE SEQ_NAME='Example'
[java] Thread Name is: http-bio-/0.0.0.0-8443-exec-4:Thread[http-bio-/0.0.0.0-8443-exec-4,5,main]
[java] 2011-12-21 12:10:31,921 (http-bio-/0.0.0.0-8443-exec-4) [ SequenceUtil.java:348:INFO ] Got bank of sequenced IDs for [Example]; curSeqId=10000, maxSeqId=10010, bankSize=10
[java] 2011-12-21 12:10:31,937 (http-bio-/0.0.0.0-8443-exec-4) [ ServiceEcaRule.java:157:INFO ] Running Service ECA Service: createExampleStatus, triggered by rule on Service: createExample
[java] 2011-12-21 12:10:32,000 (http-bio-/0.0.0.0-8443-exec-4) [ ServiceDispatcher.java:604:INFO ] Sync service [example/createExampleStatus] finished in [63] milliseconds with response [{responseMessag
e=success}]
[java] 2011-12-21 12:10:32,000 (http-bio-/0.0.0.0-8443-exec-4) [ ServiceEcaRule.java:157:INFO ] Running Service ECA Service: sendPrintFromScreenByUserAction, triggered by rule on Service: createExamp
le
[java] 2011-12-21 12:10:32,000 (http-bio-/0.0.0.0-8443-exec-4) [ ModelService.java:469:INFO ] Set default value [PRINTER] for parameter [externalDeviceTypeId]
[java] 2011-12-21 12:10:32,000 (http-bio-/0.0.0.0-8443-exec-4) [ ModelService.java:469:INFO ] Set default value [GENERIC] for parameter [extDevicePurposeActionId]
[java] 2011-12-21 12:10:32,015 (http-bio-/0.0.0.0-8443-exec-4) [ Log.java:117:ERROR] [CommonServices.xml#findExternalDevice line 283] userLoginId = admin, externalDeviceTypeId =PRINTER , e
xtDevicePurposeActionId = GENERIC, parameters.actionEnumId =
[java] 2011-12-21 12:10:32,031 (http-bio-/0.0.0.0-8443-exec-4) [ UtilProperties.java:1056:INFO ] ResourceBundle DefaultMessages (fr) created in 0.0s with 3 properties
[java] 2011-12-21 12:10:32,937 (http-bio-/0.0.0.0-8443-exec-4) [FopFactoryConfigurator.java:179:INFO ] Default page-height set to: 11in
[java] 2011-12-21 12:10:32,937 (http-bio-/0.0.0.0-8443-exec-4) [FopFactoryConfigurator.java:186:INFO ] Default page-width set to: 8.26in
[java] 2011-12-21 12:10:32,937 (http-bio-/0.0.0.0-8443-exec-4) [ ApacheFopWorker.java:87 :INFO ] FOP-FontBaseURL: file:///D:/workspace/ofbizClean/framework/webapp/config/
[java] 2011-12-21 12:10:33,375 (http-bio-/0.0.0.0-8443-exec-4) [LoggingEventListener.java:80 :WARN ] The following feature isn't implemented by Apache FOP, yet: table-layout="auto" (on fo:table) (See pos
ition 72:11)
[java] 2011-12-21 12:10:33,484 (http-bio-/0.0.0.0-8443-exec-4) [LoggingEventListener.java:80 :WARN ] Font "Symbol,normal,700" not found. Substituting with "Symbol,normal,400".
[java] 2011-12-21 12:10:33,484 (http-bio-/0.0.0.0-8443-exec-4) [LoggingEventListener.java:80 :WARN ] Font "ZapfDingbats,normal,700" not found. Substituting with "ZapfDingbats,normal,400".
[java] 2011-12-21 12:10:33,578 (http-bio-/0.0.0.0-8443-exec-4) [LoggingEventListener.java:78 :INFO ] table-layout="fixed" and width="auto", but auto-layout not supported => assuming width="100%". (See po
sition 28:44)
[java] 2011-12-21 12:10:33,859 (http-bio-/0.0.0.0-8443-exec-4) [ OutputServices.java:118:INFO ] Printer Name Given PDF
[java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [ OutputServices.java:155:ERROR]
[java] ---- runtime exception report --------------------------------------------------
[java] Error rendering [application/postscript]: java.lang.IllegalArgumentException: locale cannot be null
[java] Exception: java.lang.IllegalArgumentException
[java] Message: locale cannot be null
[java] ---- stack trace ---------------------------------------------------------------
[java] java.lang.IllegalArgumentException: locale cannot be null
[java] org.ofbiz.base.util.UtilProperties.getResourceBundle(UtilProperties.java:666)
[java] org.ofbiz.base.util.UtilProperties.getMessage(UtilProperties.java:571)
[java] org.ofbiz.base.util.UtilProperties.getMessage(UtilProperties.java:639)
[java] org.ofbiz.content.output.OutputServices.sendPrint(OutputServices.java:130)
[java] sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[java] sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[java] java.lang.reflect.Method.invoke(Method.java:597)
[java] org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:100)
[java] org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:57)
[java] org.ofbiz.service.ModelServiceReader$GenericInvokerImpl.runSync(ModelServiceReader.java:761)
[java] _$gen.file_58$.D_58$.workspace.ofbizClean.applications.content.servicedef.services_95$output_46$xml_35$sendPrint.runSync(file:/D:/workspace/ofbizClean/applications/content/servicedef/services_outp
ut.xml#sendPrint:27)
[java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:399)
[java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226)
[java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
[java] org.ofbiz.content.output.OutputServices.sendPrintFromScreen(OutputServices.java:202)
[java] sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[java] sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[java] java.lang.reflect.Method.invoke(Method.java:597)
[java] org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:100)
[java] org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:57)
[java] org.ofbiz.service.ModelServiceReader$GenericInvokerImpl.runSync(ModelServiceReader.java:761)
[java] _$gen.file_58$.D_58$.workspace.ofbizClean.applications.content.servicedef.services_95$output_46$xml_35$sendPrintFromScreen.runSync(file:/D:/workspace/ofbizClean/applications/content/servicedef/ser
vices_output.xml#sendPrintFromScreen:45)
[java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:399)
[java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226)
[java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:177)
[java] org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:248)
[java] org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:920)
[java] org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:739)
[java] org.ofbiz.minilang.method.callops.CallSimpleMethod.exec(CallSimpleMethod.java:86)
[java] org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:920)
[java] org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:739)
[java] org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:160)
[java] org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:142)
[java] org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:78)
[java] org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:53)
[java] org.ofbiz.service.ModelServiceReader$GenericInvokerImpl.runSync(ModelServiceReader.java:761)
[java] _$gen.file_58$.D_58$.workspace.ofbizClean.applications.content.servicedef.services_95$output_46$xml_35$sendPrintFromScreenByUserAction.runSync(file:/D:/workspace/ofbizClean/applications/content/se
rvicedef/services_output.xml#sendPrintFromScreenByUserAction:53)
[java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:399)
[java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226)
[java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
[java] org.ofbiz.service.eca.ServiceEcaAction.runAction(ServiceEcaAction.java:138)
[java] org.ofbiz.service.eca.ServiceEcaRule.eval(ServiceEcaRule.java:159)
[java] org.ofbiz.service.eca.ServiceEcaUtil.evalRules(ServiceEcaUtil.java:188)
[java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:592)
[java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226)
[java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
[java] org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:337)
[java] org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:647)
[java] org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:393)
[java] org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:224)
[java] org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:87)
[java] javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
[java] javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
[java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
[java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
[java] org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:337)
[java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
[java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
[java] org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
[java] org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
[java] org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
[java] org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
[java] org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
[java] org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
[java] org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
[java] org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
[java] org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:964)
[java] org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
[java] org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:304)
[java] java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[java] java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[java] java.lang.Thread.run(Thread.java:662)
[java] --------------------------------------------------------------------------------
[java]
[java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [ ServiceDispatcher.java:515:INFO ] [[Sync service failed...- total:0.0,since last(Begin):0.0]] - 'example / sendPrint'
[java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [ TransactionUtil.java:378:WARN ]
[java] ---- exception report ----------------------------------------------------------
[java] [TransactionUtil.setRollbackOnly] Calling transaction setRollbackOnly; this stack trace shows where this is happening:
[java] Exception: java.lang.Exception
[java] Message: Service [sendPrint] threw an unexpected exception/error
[java] ---- stack trace ---------------------------------------------------------------
[java] java.lang.Exception: Service [sendPrint] threw an unexpected exception/error
[java] org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:378)
[java] org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:319)
[java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:524)
[java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226)
[java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
[java] org.ofbiz.content.output.OutputServices.sendPrintFromScreen(OutputServices.java:202)
[java] sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[java] sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[java] java.lang.reflect.Method.invoke(Method.java:597)
[java] org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:100)
[java] org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:57)
[java] org.ofbiz.service.ModelServiceReader$GenericInvokerImpl.runSync(ModelServiceReader.java:761)
[java] _$gen.file_58$.D_58$.workspace.ofbizClean.applications.content.servicedef.services_95$output_46$xml_35$sendPrintFromScreen.runSync(file:/D:/workspace/ofbizClean/applications/content/servicedef/ser
vices_output.xml#sendPrintFromScreen:45)
[java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:399)
[java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226)
[java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:177)
[java] org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:248)
[java] org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:920)
[java] org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:739)
[java] org.ofbiz.minilang.method.callops.CallSimpleMethod.exec(CallSimpleMethod.java:86)
[java] org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:920)
[java] org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:739)
[java] org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:160)
[java] org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:142)
[java] org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:78)
[java] org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:53)
[java] org.ofbiz.service.ModelServiceReader$GenericInvokerImpl.runSync(ModelServiceReader.java:761)
[java] _$gen.file_58$.D_58$.workspace.ofbizClean.applications.content.servicedef.services_95$output_46$xml_35$sendPrintFromScreenByUserAction.runSync(file:/D:/workspace/ofbizClean/applications/content/se
rvicedef/services_output.xml#sendPrintFromScreenByUserAction:53)
[java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:399)
[java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226)
[java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
[java] org.ofbiz.service.eca.ServiceEcaAction.runAction(ServiceEcaAction.java:138)
[java] org.ofbiz.service.eca.ServiceEcaRule.eval(ServiceEcaRule.java:159)
[java] org.ofbiz.service.eca.ServiceEcaUtil.evalRules(ServiceEcaUtil.java:188)
[java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:592)
[java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226)
[java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
[java] org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:337)
[java] org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:647)
[java] org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:393)
[java] org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:224)
[java] org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:87)
[java] javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
[java] javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
[java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
[java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
[java] org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:337)
[java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
[java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
[java] org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
[java] org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
[java] org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
[java] org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
[java] org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
[java] org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
[java] org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
[java] org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
[java] org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:964)
[java] org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
[java] org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:304)
[java] java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[java] java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[java] java.lang.Thread.run(Thread.java:662)
[java] --------------------------------------------------------------------------------
[java]
[java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [ OutputServices.java:205:ERROR]
[java] ---- exception report ----------------------------------------------------------
[java] Error rendering screen [component://example/widget/example/ExampleScreens.xml#ExampleReport]: org.ofbiz.service.GenericServiceException: Service [sendPrint] target threw an unexpected exception (l
ocale cannot be null)
[java] Exception: org.ofbiz.service.GenericServiceException
[java] Message: Service [sendPrint] target threw an unexpected exception (locale cannot be null)
[java] ---- cause ---------------------------------------------------------------------
[java] Exception: java.lang.IllegalArgumentException
[java] Message: locale cannot be null
[java] ---- stack trace ---------------------------------------------------------------
[java] java.lang.IllegalArgumentException: locale cannot be null
[java] org.ofbiz.base.util.UtilProperties.getResourceBundle(UtilProperties.java:666)
[java] org.ofbiz.base.util.UtilProperties.getMessage(UtilProperties.java:571)
[java] org.ofbiz.base.util.UtilProperties.getMessage(UtilProperties.java:639)
[java] org.ofbiz.content.output.OutputServices.sendPrint(OutputServices.java:156)
[java] sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[java] sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[java] java.lang.reflect.Method.invoke(Method.java:597)
[java] org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:100)
[java] org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:57)
[java] org.ofbiz.service.ModelServiceReader$GenericInvokerImpl.runSync(ModelServiceReader.java:761)
[java] _$gen.file_58$.D_58$.workspace.ofbizClean.applications.content.servicedef.services_95$output_46$xml_35$sendPrint.runSync(file:/D:/workspace/ofbizClean/applications/content/servicedef/services_outp
ut.xml#sendPrint:27)
[java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:399)
[java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226)
[java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
[java] org.ofbiz.content.output.OutputServices.sendPrintFromScreen(OutputServices.java:202)
[java] sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[java] sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[java] java.lang.reflect.Method.invoke(Method.java:597)
[java] org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:100)
[java] org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:57)
[java] org.ofbiz.service.ModelServiceReader$GenericInvokerImpl.runSync(ModelServiceReader.java:761)
[java] _$gen.file_58$.D_58$.workspace.ofbizClean.applications.content.servicedef.services_95$output_46$xml_35$sendPrintFromScreen.runSync(file:/D:/workspace/ofbizClean/applications/content/servicedef/ser
vices_output.xml#sendPrintFromScreen:45)
[java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:399)
[java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226)
[java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:177)
[java] org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:248)
[java] org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:920)
[java] org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:739)
[java] org.ofbiz.minilang.method.callops.CallSimpleMethod.exec(CallSimpleMethod.java:86)
[java] org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:920)
[java] org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:739)
[java] org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:160)
[java] org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:142)
[java] org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:78)
[java] org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:53)
[java] org.ofbiz.service.ModelServiceReader$GenericInvokerImpl.runSync(ModelServiceReader.java:761)
[java] _$gen.file_58$.D_58$.workspace.ofbizClean.applications.content.servicedef.services_95$output_46$xml_35$sendPrintFromScreenByUserAction.runSync(file:/D:/workspace/ofbizClean/applications/content/se
rvicedef/services_output.xml#sendPrintFromScreenByUserAction:53)
[java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:399)
[java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226)
[java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
[java] org.ofbiz.service.eca.ServiceEcaAction.runAction(ServiceEcaAction.java:138)
[java] org.ofbiz.service.eca.ServiceEcaRule.eval(ServiceEcaRule.java:159)
[java] org.ofbiz.service.eca.ServiceEcaUtil.evalRules(ServiceEcaUtil.java:188)
[java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:592)
[java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226)
[java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
[java] org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:337)
[java] org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:647)
[java] org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:393)
[java] org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:224)
[java] org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:87)
[java] javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
[java] javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
[java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
[java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
[java] org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:337)
[java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
[java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
[java] org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
[java] org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
[java] org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
[java] org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
[java] org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
[java] org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
[java] org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
[java] org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
[java] org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:964)
[java] org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
[java] org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:304)
[java] java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[java] java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[java] java.lang.Thread.run(Thread.java:662)
[java] --------------------------------------------------------------------------------
[java]
[java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [ ServiceDispatcher.java:543:ERROR] Error in Service [sendPrintFromScreen]: Error rendering screen [component://example/widget/example/Exam
pleScreens.xml#ExampleReport]: org.ofbiz.service.GenericServiceException: Service [sendPrint] target threw an unexpected exception (locale cannot be null)
[java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [ TransactionUtil.java:383:INFO ] [TransactionUtil.setRollbackOnly] transaction rollback only not set, rollback only is already set.
[java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [ ServiceDispatcher.java:604:INFO ] Sync service [example/sendPrintFromScreen] finished in [1844] milliseconds with response [{responseMess
age=error, errorMessage=Error rendering screen [component://example/widget/example/ExampleScreens.xml#ExampleReport]: org.ofbiz.service.GenericServiceException: Service [sendPrint] target threw an unexpected
exception (locale cannot be null)}]
[java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [ CallService.java:351:ERROR]
[java] ---- exception report ----------------------------------------------------------
[java] Exception: java.lang.Exception
[java] Message: Erreur :áError rendering screen [component://example/widget/example/ExampleScreens.xml#ExampleReport]: org.ofbiz.service.GenericServiceException: Service [sendPrint] target threw an unexp
ected exception (locale cannot be null)áá
[java] ---- stack trace ---------------------------------------------------------------
[java] java.lang.Exception: Erreur :áError rendering screen [component://example/widget/example/ExampleScreens.xml#ExampleReport]: org.ofbiz.service.GenericServiceException: Service [sendPrint] target th
rew an unexpected exception (locale cannot be null)áá
[java] org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:351)
[java] org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:920)
[java] org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:739)
[java] org.ofbiz.minilang.method.callops.CallSimpleMethod.exec(CallSimpleMethod.java:86)
[java] org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:920)
[java] org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:739)
[java] org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:160)
[java] org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:142)
[java] org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:78)
[java] org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:53)
[java] org.ofbiz.service.ModelServiceReader$GenericInvokerImpl.runSync(ModelServiceReader.java:761)
[java] _$gen.file_58$.D_58$.workspace.ofbizClean.applications.content.servicedef.services_95$output_46$xml_35$sendPrintFromScreenByUserAction.runSync(file:/D:/workspace/ofbizClean/applications/content/se
rvicedef/services_output.xml#sendPrintFromScreenByUserAction:53)
[java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:399)
[java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226)
[java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
[java] org.ofbiz.service.eca.ServiceEcaAction.runAction(ServiceEcaAction.java:138)
[java] org.ofbiz.service.eca.ServiceEcaRule.eval(ServiceEcaRule.java:159)
[java] org.ofbiz.service.eca.ServiceEcaUtil.evalRules(ServiceEcaUtil.java:188)
[java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:592)
[java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226)
[java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
[java] org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:337)
[java] org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:647)
[java] org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:393)
[java] org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:224)
[java] org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:87)
[java] javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
[java] javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
[java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
[java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
[java] org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:337)
[java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
[java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
[java] org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
[java] org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
[java] org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
[java] org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
[java] org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
[java] org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
[java] org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
[java] org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
[java] org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:964)
[java] org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
[java] org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:304)
[java] java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[java] java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[java] java.lang.Thread.run(Thread.java:662)
[java] --------------------------------------------------------------------------------
[java]
[java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [ TransactionUtil.java:383:INFO ] [TransactionUtil.setRollbackOnly] transaction rollback only not set, rollback only is already set.
[java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [ CallSimpleMethod.java:109:WARN ] Got error [error] calling inline simple-method named [sendPrintByUserAction] in resource [], message is
null, and the error message list is: {Error rendering screen [component://example/widget/example/ExampleScreens.xml#ExampleReport]: org.ofbiz.service.GenericServiceException: Service [sendPrint] target threw
an unexpected exception (locale cannot be null)}
[java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [ TransactionUtil.java:383:INFO ] [TransactionUtil.setRollbackOnly] transaction rollback only not set, rollback only is already set.
[java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [ ServiceDispatcher.java:543:ERROR] Error in Service [sendPrintFromScreenByUserAction]: Error rendering screen [component://example/widget/
example/ExampleScreens.xml#ExampleReport]: org.ofbiz.service.GenericServiceException: Service [sendPrint] target threw an unexpected exception (locale cannot be null)
[java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [ TransactionUtil.java:341:ERROR]
[java] ---- exception report ----------------------------------------------------------
[java] [TransactionUtil.rollback]
[java] Exception: java.lang.Exception
[java] Message: Stack Trace
[java] ---- stack trace ---------------------------------------------------------------
[java] java.lang.Exception: Stack Trace
[java] org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:340)
[java] org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:317)
[java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:547)
[java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226)
[java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
[java] org.ofbiz.service.eca.ServiceEcaAction.runAction(ServiceEcaAction.java:138)
[java] org.ofbiz.service.eca.ServiceEcaRule.eval(ServiceEcaRule.java:159)
[java] org.ofbiz.service.eca.ServiceEcaUtil.evalRules(ServiceEcaUtil.java:188)
[java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:592)
[java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226)
[java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
[java] org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:337)
[java] org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:647)
[java] org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:393)
[java] org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:224)
[java] org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:87)
[java] javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
[java] javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
[java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
[java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
[java] org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:337)
[java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
[java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
[java] org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
[java] org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
[java] org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
[java] org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
[java] org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
[java] org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
[java] org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
[java] org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
[java] org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:964)
[java] org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
[java] org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:304)
[java] java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[java] java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[java] java.lang.Thread.run(Thread.java:662)
[java] --------------------------------------------------------------------------------
[java]
[java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [ TransactionUtil.java:351:INFO ] [TransactionUtil.rollback] transaction rolled back
[java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [ ServiceDispatcher.java:604:INFO ] Sync service [example/sendPrintFromScreenByUserAction] finished in [1875] milliseconds with response [{
errorMessageList={Error rendering screen [component://example/widget/example/ExampleScreens.xml#ExampleReport]: org.ofbiz.service.GenericServiceException: Service [sendPrint] target threw an unexpected except
ion (locale cannot be null)}, responseMessage=error}]
[java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [ ServiceDispatcher.java:604:INFO ] Sync service [example/createExample] finished in [2016] milliseconds with response [{responseMessage=su
ccess, exampleId=10000}]
[java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [ RequestHandler.java:648:INFO ] Ran Event [service:#createExample] from [request], result is [success]
[java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [ RequestHandler.java:707:INFO ] Sending redirect to: [/example/control/FindExample?exampleId=10000], sessionId=A0E4A1D0500277F564626323
62256975.jvm1
[java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [ ServerHitBin.java:627:INFO ] Visit delegatorName=default, ServerHitBin delegatorName=default
[java] 2011-12-21 12:10:33,937 (http-bio-/0.0.0.0-8443-exec-2) [ ControlServlet.java:141:INFO ] [[[FindExample(Domain:
https://localhost)] Request Begun, encoding=[UTF-8]- total:0.0,since last(Begin):
0.0]]
[java] 2011-12-21 12:10:33,937 (http-bio-/0.0.0.0-8443-exec-2) [ RequestHandler.java:750:INFO ] Rendering View [FindExample], sessionId=A0E4A1D0500277F56462632362256975.jvm1
[java] 2011-12-21 12:10:33,968 (http-bio-/0.0.0.0-8443-exec-4) [ ControlServlet.java:324:INFO ] [[[createExample(Domain:
https://localhost)] Request Done- total:2.109,since last([createExample(Do...):
{code}
> Automated action triggered by event
> -----------------------------------
>
> Key: OFBIZ-3913
> URL:
https://issues.apache.org/jira/browse/OFBIZ-3913> Project: OFBiz
> Issue Type: New Feature
> Components: framework
> Affects Versions: SVN trunk
> Reporter: Nicolas Malin
> Assignee: Jacques Le Roux
> Attachments: ExternalDevice.patch, ExternalDevice.patch, ExternalDevice.patch, ExternalDevice.png, OFBIZ-3913.ogv, OFBIZ-3913.patch, OFBIZ-3913.patch, PDFCreator.png, What I did with PDFCreator.jpg
>
>
> Following a thread on the dev list, related to a printer automated selection, by an user and an event, here is a first draft.
> I added a new entity, ExternalDevice, which list all devices OFBiz can reach (and the associated command). This entity is related to an ExternalDeviceType and each record has a status, so we know if the device is available, out of order, in maintenance, waiting, etc...
> Then I added another entity, ExternalDeviceUserAction, which defines a device for an user, and/or an action through Enumeration. Finally, I added a service which find the commnand to execute based on an action and/or an user.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspaFor more information on JIRA, see:
http://www.atlassian.com/software/jira