[jira] [Commented] (OFBIZ-6512) service engine notification cause exception

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

[jira] [Commented] (OFBIZ-6512) service engine notification cause exception

Nicolas Malin (Jira)

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

Arun Patidar commented on OFBIZ-6512:
-------------------------------------

Hi Wai,

I checked the functionality of notification-group for a new loader and its working fine for me. Only the issue with 'main' loader on success is number of services that get success and throwing StackOverflow exception which is causing error as you reported. I think this should not consider as a bug. if you want notification on success of certain services then create new resource loader and put selected services in it.

In this way, you will get notification only on success of these limited set of services.



> service engine notification cause exception
> -------------------------------------------
>
>                 Key: OFBIZ-6512
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-6512
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Wai
>
> In serviceengine.xml, when notification group, default.success.main, is enabled, exception occurs.
> eg.
> <service-config ...>
>     ...
>     <notification-group name="default.success.main">
>         <notification subject="Service Success ${model.serviceName}"
>            screen="component://content/widget/EmailScreens.xml#ServiceNotification"/>
>         <notify type="from">[hidden email]</notify>
>         <notify type="to">[hidden email]</notify>
>     </notification-group>
> 2015-06-17 08:12:03,832 |http-bio-8443-exec-1 |ServiceDispatcher             |T| [[Sync service failed...- total:0.0,since last(Begin):0.0]] - 'catalog / sendMailFromScreen'
> 2015-06-17 08:12:03,833 |http-bio-8443-exec-1 |TransactionUtil               |W| Not committing transaction, status is No Transaction (6)
> 2015-06-17 08:12:03,833 |http-bio-8443-exec-1 |ServiceDispatcher             |T| [[Sync service failed...- total:0.0,since last(Begin):0.0]] - 'catalog / sendMailFromScreen'
> 2015-06-17 08:12:03,837 |http-bio-8443-exec-1 |TransactionUtil               |I| Transaction rolled back
> 2015-06-17 08:12:03,837 |http-bio-8443-exec-1 |TransactionUtil               |W| Not committing transaction, status is No Transaction (6)
> 2015-06-17 08:12:03,837 |http-bio-8443-exec-1 |ServiceDispatcher             |T| [[Sync service failed...- total:0.0,since last(Begin):0.0]] - 'catalog / sendMailFromScreen'
> 2015-06-17 08:12:03,837 |http-bio-8443-exec-1 |TransactionUtil               |I| Transaction rolled back
> 2015-06-17 08:12:03,837 |http-bio-8443-exec-1 |TransactionUtil               |W| Not committing transaction, status is No Transaction (6)
> 2015-06-17 08:12:03,838 |http-bio-8443-exec-1 |ModelNotification             |E| null
> org.ofbiz.service.GenericServiceException: Service [sendMailFromScreen] target threw an unexpected exception (null)
> at org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:115) ~[ofbiz-service.jar:?]
> at org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:57) ~[ofbiz-service.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:103) ~[ofbiz-service.jar:?]
> at org.ofbiz.service.ModelNotification.callNotify(ModelNotification.java:54) ~[ofbiz-service.jar:?]
> at org.ofbiz.service.ModelService.evalNotifications(ModelService.java:1020) ~[ofbiz-service.jar:?]
> at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:554) ~[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.widget.renderer.ScreenRenderer.populateBasicContext(ScreenRenderer.java:172) ~[ofbiz-widget.jar:?]
> at org.ofbiz.widget.renderer.ScreenRenderer.populateBasicContext(ScreenRenderer.java:150) ~[ofbiz-widget.jar:?]
> at org.ofbiz.widget.renderer.ScreenRenderer.populateContextForService(ScreenRenderer.java:320) ~[ofbiz-widget.jar:?]
> at org.ofbiz.common.email.EmailServices.sendMailFromScreen(EmailServices.java:465) ~[ofbiz-common.jar:?]
> at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source) ~[?:?]
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_31]
> at java.lang.reflect.Method.invoke(Method.java:483) ~[?:1.8.0_31]
> at org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:100) ~[ofbiz-service.jar:?]
> at org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:57) ~[ofbiz-service.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:103) ~[ofbiz-service.jar:?]
> at org.ofbiz.service.ModelNotification.callNotify(ModelNotification.java:54) ~[ofbiz-service.jar:?]
> at org.ofbiz.service.ModelService.evalNotifications(ModelService.java:1020) ~[ofbiz-service.jar:?]
> at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:554) ~[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.widget.renderer.ScreenRenderer.populateBasicContext(ScreenRenderer.java:172) ~[ofbiz-widget.jar:?]
> at org.ofbiz.widget.renderer.ScreenRenderer.populateBasicContext(ScreenRenderer.java:150) ~[ofbiz-widget.jar:?]
> at org.ofbiz.widget.renderer.ScreenRenderer.populateContextForService(ScreenRenderer.java:320) ~[ofbiz-widget.jar:?]
> at org.ofbiz.common.email.EmailServices.sendMailFromScreen(EmailServices.java:465) ~[ofbiz-common.jar:?]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)