Notification Service is Throwing ClassCastException (Doc ID 858366.1)

Last updated on NOVEMBER 03, 2016

Applies to:

Oracle(R) BPEL Process Manager - Version: 10.1.3.3 and later   [Release: and later ]
Information in this document applies to any platform.
***Checked for relevance on 04-Apr-2011***

Symptoms

BPEL process uses Email activity to send email.

During runtime, no email is received and there is a java.lang.ClassCastException in the log file.

For example, the error stack has the following information:

09/06/09 15:36:59 java.lang.ClassCastException: oracle.tip.pc.services.notification.NotificationService
09/06/09 15:36:59 at oracle.tip.pc.services.notification.NotificationServiceImpl.getCustomNotificationService(NotificationServiceImpl.java:677)
09/06/09 15:36:59 at oracle.tip.pc.services.notification.NotificationServiceImpl.sendEmailNotification(NotificationServiceImpl.java:270)
09/06/09 15:36:59 at oracle.bpel.services.notification.queue.sender.MDBConsumer.deliverNotification(MDBConsumer.java:256)
09/06/09 15:36:59 at oracle.bpel.services.notification.queue.sender.MDBConsumer.onMessage(MDBConsumer.java:137)
09/06/09 15:36:59 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
09/06/09 15:36:59 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
09/06/09 15:36:59 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
09/06/09 15:36:59 at java.lang.reflect.Method.invoke(Method.java:585)
09/06/09 15:36:59 at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
09/06/09 15:36:59 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
09/06/09 15:36:59 at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
09/06/09 15:36:59 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
09/06/09 15:36:59 at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
09/06/09 15:36:59 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
09/06/09 15:36:59 at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
09/06/09 15:36:59 at com.evermind.server.ejb.MessageDrivenConsumer.onMessage(MessageDrivenConsumer.java:347)
09/06/09 15:36:59 at com.evermind.server.ejb.MessageDrivenConsumer.processMessages(MessageDrivenConsumer.java:233)
09/06/09 15:36:59 at com.evermind.server.ejb.MessageDrivenConsumer.run(MessageDrivenConsumer.java:169)
09/06/09 15:36:59 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
09/06/09 15:36:59 at java.lang.Thread.run(Thread.java:595)
09/06/09 15:37:49 java.lang.ClassCastException: oracle.tip.pc.services.notification.NotificationService
09/06/09 15:37:49 at oracle.tip.pc.services.notification.NotificationServiceImpl.getCustomNotificationService(NotificationServiceImpl.java:677)
09/06/09 15:37:49 at oracle.tip.pc.services.notification.NotificationServiceImpl.sendEmailNotification(NotificationServiceImpl.java:270)
09/06/09 15:37:49 at oracle.bpel.services.notification.queue.sender.MDBConsumer.deliverNotification(MDBConsumer.java:256)
09/06/09 15:37:49 at oracle.bpel.services.notification.queue.sender.MDBConsumer.onMessage(MDBConsumer.java:137)
09/06/09 15:37:49 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
09/06/09 15:37:49 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
09/06/09 15:37:49 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
09/06/09 15:37:49 at java.lang.reflect.Method.invoke(Method.java:585)
09/06/09 15:37:49 at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
09/06/09 15:37:49 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
09/06/09 15:37:49 at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
09/06/09 15:37:49 at com.evermind.server.ejb.interceptor.InvocationContextImpl

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms