“500 Internal Server Error” while accessing BPEL worklist

There are Active and Stand-by production sites in our architecture which has IDM and SOA nodes independent of each other. The BPEL worklist is integrated with OSSO, in turn with OAM and is working fine in Active production site. As discussed in the previous post for setting up Disaster Recovery of Oracle Application Server, we have just replicated the DB and copied the Oracle App server folder completely from Active to Stand-by sites.

We followed the metalink note 753087.1 for integrating BPEL worklist with OSSO. The osso.conf file generated in Active production site is used for configuring the BPEL worklist. We used the same osso.conf file to configure BPEL worklist in Stand-By site. Once configuration is completed, we accessed the BPEL worklist using the URL http://soa.oracle.com:7777/integration/worklistapp/Login and encountered with 500 Internal Server Error as shown in below screenshot.

We found the below error in SOA Apache logs.

[Wed Jun 15 17:30:02 2011] [error] [client 192.168.123.22] [ecid: 1308139202:10.200.37.36:929850:0:68,0] mod_oc4j: request to
OC4J NIC-PSOABP1A-AR:12502 failed: unknown
[Wed Jun 15 17:36:58 2011] [error] [client 192.168.123.4] [ecid: 1308139618:10.200.37.36:598030:0:29,0] mod_oc4j: Failed to f
ind a failover oc4j process for session request for destination: application://ascontrol (no island or jgroup).
[Wed Jun 15 17:38:56 2011] [error] [client 192.168.123.4] [ecid: 1308139736:10.200.37.36:671912:0:57,0] mod_oc4j: Response st
atus=499 and reason=Oracle SSO, but failed to get mod_osso global context.
[Wed Jun 15 17:38:56 2011] [error] [client 192.168.123.4] [ecid: 1308139736:10.200.37.36:671912:0:57,0] mod_oc4j: request to
OC4J NIC-PSOABP1A-AR:12502 failed: Connect failed

Troubleshooting process: The solution is very simple that same hostnames were used for IDM nodes in both Active and Stand-by sites. The hostname were configured incorrectly in Stand-by environment and due to which the request from BPEL to OSSO (IDM) is not transferring and resulting in 500 Server error.

After rectifying the hostnames in SOA servers, we are able to login to BPEL worklist as shown below.

About the Author Mahendra

I am engulfed in Oracle Identity & Access Management domain. I have expertise on providing the optimized solutions for user provisioning, web access management, Single Sign-On and federation capabilities etc., I am also well versed with complex integrations within Identity Management and other product domains. I have expertise on building demos and implementation experience on products Oracle Access Manager, Oracle Adaptive Access Manager, Oracle Entitlement Server, Oracle Virtual Directory, Oracle Internet Directory etc., Look @ my blog: http://talkidentity.blogspot.com

Leave a Comment:

7 comments
prakash says December 10, 2011

i am facing the same problem with my java application, but only for some of the pages . how to resolve this..

Reply
Atul Kumar says December 10, 2011

@ Prakash,
Check log file of server on which this java application is deployed.

Is this application deployed on 10g AS or WebLogic Server ?

Reply
prakash says December 11, 2011

yes i got it. form server log thanks..i was deployed it on apache.
by mistake i had used Float in place of float somewhere in code.
thanks.

Reply
varun says September 10, 2012

I am facing similar issue for email notification text. It only giving 500 error and does not show the content.

Reply
varun says September 10, 2012

Logs are

at oracle.bpel.services.notification.common.NSUtils.setBodyPart(NSUtils.java:448)
at oracle.bpel.services.notification.common.NSUtils.setContent(NSUtils.java:253)
at oracle.bpel.services.notification.impl.asns.ASNSDriver.sendEmailNotification(ASNSDriver.java:351)
at oracle.bpel.services.notification.impl.DefaultNotificationServiceImpl.sendEmailNotification(DefaultNotificationServiceImpl.java:281)
at oracle.bpel.services.notification.impl.NotificationManager.sendEmailNotification(NotificationManager.java:296)
at oracle.bpel.services.notification.queue.sender.MDBConsumer.deliverNotification(MDBConsumer.java:341)
at oracle.bpel.services.notification.queue.sender.MDBConsumer.processNotification(MDBConsumer.java:204)
at oracle.bpel.services.notification.queue.sender.MDBConsumer.onMessage(MDBConsumer.java:136)
at sun.reflect.GeneratedMethodAccessor1516.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy363.onMessage(Unknown Source)
at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:583)
at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:486)
at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:388)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4659)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:4345)
at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3821)
at weblogic.jms.client.JMSSession.access$000(JMSSession.java:115)
at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5170)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
Caused by: java.net.ProtocolException: unsupported protocol: http
at weblogic.net.http.HttpsClient.openServer(HttpsClient.java:329)
at weblogic.net.http.HttpsClient.New(HttpsClient.java:518)
at weblogic.net.http.HttpsURLConnection.connect(HttpsURLConnection.java:239)
at weblogic.net.http.HttpURLConnection.followRedirect(HttpURLConnection.java:698)
at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:464)
at weblogic.net.http.SOAPHttpsURLConnection.getInputStream(SOAPHttpsURLConnection.java:37)
at oracle.bpel.services.notification.common.NSUtils.setBodyPart(NSUtils.java:432)
at oracle.bpel.services.notification.common.NSUtils.setContent(NSUtils.java:253)
at oracle.bpel.services.notification.impl.asns.ASNSDriver.sendEmailNotification(ASNSDriver.java:351)
at oracle.bpel.services.notification.impl.DefaultNotificationServiceImpl.sendEmailNotification(DefaultNotificationServiceImpl.java:281)
at oracle.bpel.services.notification.impl.NotificationManager.sendEmailNotification(NotificationManager.java:296)
at oracle.bpel.services.notification.queue.sender.MDBConsumer.deliverNotification(MDBConsumer.java:341)
at oracle.bpel.services.notification.queue.sender.MDBConsumer.processNotification(MDBConsumer.java:204)
at oracle.bpel.services.notification.queue.sender.MDBConsumer.onMessage(MDBConsumer.java:136)
at sun.reflect.GeneratedMethodAccessor1516.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy363.onMessage(Unknown Source)
at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:583)
at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:486)
at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:389)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4659)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:4345)
at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3822)
at weblogic.jms.client.JMSSession.access$000(JMSSession.java:115)
at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5170)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)

Any help?

Reply
varun says September 10, 2012

at oracle.bpel.services.notification.common.NSUtils.setBodyPart(NSUtils.java:448)
at oracle.bpel.services.notification.common.NSUtils.setContent(NSUtils.java:253)
at oracle.bpel.services.notification.impl.asns.ASNSDriver.sendEmailNotification(ASNSDriver.java:351)
at oracle.bpel.services.notification.impl.DefaultNotificationServiceImpl.sendEmailNotification(DefaultNotificationServiceImpl.java:281)
at oracle.bpel.services.notification.impl.NotificationManager.sendEmailNotification(NotificationManager.java:296)
at oracle.bpel.services.notification.queue.sender.MDBConsumer.deliverNotification(MDBConsumer.java:341)
at oracle.bpel.services.notification.queue.sender.MDBConsumer.processNotification(MDBConsumer.java:204)
at oracle.bpel.services.notification.queue.sender.MDBConsumer.onMessage(MDBConsumer.java:136)
at sun.reflect.GeneratedMethodAccessor1516.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy363.onMessage(Unknown Source)
at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:583)
at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:486)
at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:388)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4659)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:4345)
at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3821)
at weblogic.jms.client.JMSSession.access$000(JMSSession.java:115)
at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5170)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
Caused by: java.net.ProtocolException: unsupported protocol: http
at weblogic.net.http.HttpsClient.openServer(HttpsClient.java:329)
at weblogic.net.http.HttpsClient.New(HttpsClient.java:518)
at weblogic.net.http.HttpsURLConnection.connect(HttpsURLConnection.java:239)
at weblogic.net.http.HttpURLConnection.followRedirect(HttpURLConnection.java:698)
at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:464)
at weblogic.net.http.SOAPHttpsURLConnection.getInputStream(SOAPHttpsURLConnection.java:37)
at oracle.bpel.services.notification.common.NSUtils.setBodyPart(NSUtils.java:432)
at oracle.bpel.services.notification.common.NSUtils.setContent(NSUtils.java:253)
at oracle.bpel.services.notification.impl.asns.ASNSDriver.sendEmailNotification(ASNSDriver.java:351)
at oracle.bpel.services.notification.impl.DefaultNotificationServiceImpl.sendEmailNotification(DefaultNotificationServiceImpl.java:281)
at oracle.bpel.services.notification.impl.NotificationManager.sendEmailNotification(NotificationManager.java:296)
at oracle.bpel.services.notification.queue.sender.MDBConsumer.deliverNotification(MDBConsumer.java:341)
at oracle.bpel.services.notification.queue.sender.MDBConsumer.processNotification(MDBConsumer.java:204)
at oracle.bpel.services.notification.queue.sender.MDBConsumer.onMessage(MDBConsumer.java:136)
at sun.reflect.GeneratedMethodAccessor1516.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy363.onMessage(Unknown Source)
at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:583)
at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:486)
at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:389)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4659)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:4345)
at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3822)
at weblogic.jms.client.JMSSession.access$000(JMSSession.java:115)
at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5170)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)

Reply
    Atul Kumar says September 10, 2012

    @ Varun,
    Do you have steps to replicate ? please share version of SOA as well.

    Reply
Add Your Reply

Not found