Monday 28 July 2014



Internal Error --- 500

1. Shutdown the http server, oc4j and opmn services using following scripts at $INST_TOP/admin/scripts

adapcctl.sh stop
adoacorectl.sh stop
adformsctl.sh stop
adoafmctl.sh stop
adopmnctl.sh stop

Note: If its during Production Down Time or a UAT/TEST Instance then all the middle tier services can be shutdown.

2. Backup/Delete existing log files in:

$LOG_HOME/ora/10.1.3/Apache
$LOG_HOME/ora/10.1.3/j2ee
$LOG_HOME/ora/10.1.3/opmn

Note: If the issue is easily reproducible it is safe to delete the log files (unless otherwise required)

3. Enable HTTP/OC4J/OPMN debug logging

a) Enable http ODL logging, Edit httpd.conf file, add the following to the end of file $ORA_CONFIG_HOME/10.1.3/Apache/Apache/conf/httpd.conf

OraLogMode oracle
OraLogSeverity TRACE:32
OraLogDir $LOG_HOME/ora/10.1.3/Apache/oracle

Note: Please use the full path to $LOG_HOME e.g. OraLogDir /u01/inst/apps/JCB_atg/logs/ora/10.1.3/Apache/oracle

b) Make the following directory which will be holding the created Apache ODL log files

> mkdir $LOG_HOME/ora/10.1.3/Apache/oracle


4. Increase OC4J logging for oacore

a) edit j2ee-logging.xml adjust the following in file: $ORA_CONFIG_HOME/10.1.3/j2ee/oacore/config/j2ee-logging.xml

<logger name='oracle' level='TRACE:32' useParentHandlers='false'>


b) Increase OC4J logging for forms:
edit j2ee-logging.xml adjust the following in file:
$ORA_CONFIG_HOME/10.1.3/j2ee/forms/config/j2ee-logging.xml
<logger name='oracle' level='TRACE:32' useParentHandlers='false'>

c) edit orion-web.xml adjust the following in file:
$ORA_CONFIG_HOME/10.1.3/j2ee/oacore/application-deployments/oacore/html/orion-web.xml

param-name>debug_mode</param-name>

<param-value>true</param-value>


5. Increase OPMN Logging

a) edit opmn.xml adjust the following in file:
$ORA_CONFIG_HOME/10.1.3/opmn/conf/opmn.xml

<debug path="/u01/inst/apps/JB_atg/logs/ora/10.1.3/opmn/opmn.dbg" comp=" internal;ons;pm" rotation-size="1500000" rotation-hour="0" />


6. Use the ojspcompile.pl perl script to perform a manual pre-compilation of the JSP pages. The following command will compile all the JSP pages and build up the JSP cache again.

Unix: # $FND_TOP/patch/115/bin/perl ojspCompile.pl --compile --flush -p 2

Windows: C:> <FND_TOP>\patch\115\bin\perl -x ojspCompile.pl --compile --flush

This utility is also used by the AD utilities to perform this action, for example after patches are applied which replaced 1 or more JSP pages. Since this a manual action which also requires understanding of parameters to be passed to have the right (set of) JSP compiled this option may be error-prone.




7. Startup the http server, oc4j and opmn (reverse the startup sequence above)

8. Reproduce the issue

- Access the following urls and inform support if the url was successful or unsuccessful (with the resulting error):

http://<server>.<domain>:<PORT>/OA_HTML/ServletPing
http://<server>.<domain>:<PORT>/OA_HTML/OA.jsp?OAFunc=OAHOMEPAGE
http://<server>.<domain>:<PORT>
http://<server>.<domain>:<PORT>/OA_HTML/OAInfo.jsp
http://<server>.<domain>:<PORT>/OA_HTML/jsp/fnd/aoljtest.jsp
http://<server>.<domain>:<PORT>/OA_MEDIA/FNDLOGOL.gif
http://<server>.<domain>:<PORT>/forms/frmservlet
http://<hostname.domainname>:<port>/OA_HTML/fndvald.jsp?username=sysadmin&password=<sysadmin_password>


9. Upload the FRESH log files at:

$LOG_HOME/ora/10.1.3/Apache
$LOG_HOME/ora/10.1.3/j2ee
$LOG_HOME/ora/10.1.3/opmn
https://support.oracle.com/epmos/adf/images/t.gif




Action plan-2
1.Choose another value for $CONTEXT_FILE variable: s_java_object_cache_port

2.Make sure its the same on all apps tiers

3.Run AutoConfig and retest


NOTE:issue is resolved

No comments:

Post a Comment