Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
R12:Troubleshooting500InternalServerErrorinOracleEBusinesssuite(DocID813523.1)
InthisDocument
Purpose
TroubleshootingSteps
500InternalServerError
ErrorBlock:
Symptom:1
Solution:1
Symptom:2
Solution:2
AlternativeSolution
References
APPLIESTO:
OracleApplicationsTechnologyStackVersion12.0.6to12.2.5[Release12.0to12.2]
GenericLinux
HPUXPARISC(32bit)
OracleSolarisonx86(32bit)
OracleSolarisonSPARC(64bit)
IBMIA64AIX
GenericUNIX
***Checkedforrelevanceon30April2013***
PURPOSE
Thetroubleshootingguideisprovidedtoassistinsolvingvarious'500InternalServerError'issuesthatoccurinthe
browserwindowwhileaccessingOracleEBusinessuiteR12.Theerrorisverygeneric,andtheunderlyingerrorsinthelog
filescandiffer.Hence,theguideincludesdifferenttypesoferrorscenariosthatrelateproblemsymptomsandvarious
solutions.
OracleApplicationServer10.1.3(OracleAS10.1.3)isinstalledaspartofOracleApplicationsRelease12,andconsistsofthe
followingcomponents:
*OracleProcessManagerandNotificationServer(OPMN)
*OracleHTTPServer(Apache)
*OracleContainersforJ2EE(OC4J)
*ConfiguredApplicationModules
OACORECoreApplicationModules
OAFMOracleTransportAgent,MapViewer
FORMSForms(usingServletMode)
TROUBLESHOOTINGSTEPS
500InternalServerError
TheHTTPResponsestatuscodesbeginningwiththedigit"5"indicatescasesinwhichtheserverisawarethatithas
encounteredanerrororisotherwiseincapableofperformingtherequest.Anyclient(e.g.theWebbrowser)goesthroughthe
followingcyclewhenitcommunicateswithWebserver:
*ObtainanIPaddressfromtheIPnameofthewebsite.
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrlstate=8yzlotom1_9 1/4
11/15/2016 DocumentDisplay
*Thislookup(conversionofIPnametoIPaddress)isprovidedbydomainnameservers(DNS).
*OpenanIPsocketconnectiontothatIPaddress.
*WriteanHTTPdatastreamthroughthatsocket.
*ReceiveanHTTPdatastreambackfromyourWebserverinresponse.Thisdatastreamcontainsstatuscodeswhose
valuesaredeterminedbytheHTTPprotocol.Parsethisdatastreamforstatuscodesandotherusefulinformation.Nowthis
erroroccursinthefinalstepwhentheclientreceivesanHTTPstatuscodeof'500'.
Theerror'500InternalServerError'isaverygenericerrormessage.ThiserrorcanonlyberesolvedviatheWebserverend,
andgenerallyisnotaclientsideproblem.Henceitisimportanttolocateandanalyzethelogswhichshouldgivefurther
informationabouttheerror.
ErrorBlock:
Checkeachoftheerrorblocksforthecompleteerrordetails.Ifitismatchingtheerrordetailswhatisobservedatyour
instancethenreferthesuggestedsolution.
Symptom:1
BrowserError:IfYoureceivefollowingerrorwhileaccessingEBusinessR12instance
500InternalServerError
java.lang.NoClassDefFoundError
atoracle.apps.fnd.sso.AppsLoginRedirect.AppsSetting(AppsLoginRedirect.java:120)
atoracle.apps.fnd.sso.AppsLoginRedirect.init(AppsLoginRedirect.java:161)
Causedby:java.lang.Throwable:java.lang.RuntimeException:
oracle.apps.jtf.base.resources.FrameworkException:Cachenotinitialized
atoracle.apps.jtf.cache.CacheManager.registerCacheComponent(CacheManager.java:4691)
atoracle.apps.jtf.cache.CacheManager.registerCacheComponent(CacheManager.java:1731)
atoracle.apps.jtf.cache.CacheAdmin.registerComponentCacheNoDBSave(CacheAdmin.java:309)
atoracle.apps.fnd.cache.Cache.registerCache(Cache.java:159)
atoracle.apps.fnd.cache.Cache.initCache(Cache.java:123)
atoracle.apps.fnd.cache.Cache.<init>(Cache.java:89)
atoracle.apps.fnd.cache.AppsCache.<init>(AppsCache.java:86)
atoracle.apps.fnd.cache.AolCaches.getCache(AolCaches.java:155)
atoracle.apps.fnd.profiles.Profiles.<clinit>(Profiles.java:247)
atjava.lang.J9VMInternals.initializeImpl(NativeMethod)
Application.log:
Errorinitializingservlet
java.lang.NoClassDefFoundError
atoracle.apps.fnd.sso.AppsLoginRedirect.AppsSetting(AppsLoginRedirect.java:120)
atoracle.apps.fnd.sso.AppsLoginRedirect.init(AppsLoginRedirect.java:161)
atcom.evermind[OracleContainersforJ2EE10g(10.1.3.0.0)].server.http.HttpApplication.loadServlet(HttpApp
atcom.evermind[OracleContainersforJ2EE10g(10.1.3.0.0)].server.http.HttpApplication.findServlet(HttpApp
TheaboveerrorhasbeenobservedbothintermittentlyorsometimesconsistentlywhileaccessingEBusinessR12instancevia
browser.Inbothcasestheissueiswiththeportvalueforthejavaobjectcache.Eitheraportconflictatstartup,ormultiple
instanceswithJOCindistributedmodeattemptingtousethesameportcanresultinintermittenterrors.
Solution:1
1.Chooseacorrectvalueoranothervaluefor$CONTEXT_FILEvariable:s_java_object_cache_port
MakesureyourSystemProfile"JTF_DIST_CACHE_PORT"hasthesameportspecifiedasthevaluementionedforvariable:
s_java_object_cache_portincontextfile.Youcancheckthesytemprofilevaluebyrunningfollowingsql
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrlstate=8yzlotom1_9 2/4
11/15/2016 DocumentDisplay
selectfnd_profile.value('JTF_DIST_CACHE_PORT')fromdual
2.PleasechecktheGUESTpasswordaresetproperlyinfollowingplaces:
DBCfileunder$INST_TOP/appl/fnd/12.0.0/secure
SystemProfileoption:'GuestUserPassword'
selectfnd_web_sec.validate_login('GUEST','<PASSWORD>')fromdualshouldreturn'Y'
Incontextfilebyrunningcommand:grepiguest$CONTEXT_FILE
ForanyissueswithGuestuserpasswordmismatch,pleasereferthefollowingnote
Note443353.1HowToSuccessfullyChangeTheGuestPasswordInEBusinessSuite11.5.10andR12
Symptom:2
BrowserError:ThefollowingerroroccursinAIXplatform
500InternalServerError
java.lang.NoClassDefFoundError:oracle.apps.fnd.profiles.Profiles(initializationfailure)
atjava.lang.J9VMInternals.initialize(J9VMInternals.java:123)
atoracle.apps.fnd.sso.AppsLoginRedirect.AppsSetting(AppsLoginRedirect.java:120)
atoracle.apps.fnd.sso.AppsLoginRedirect.init(AppsLoginRedirect.java:161)
atcom.evermind[OracleContainersforJ2EE10g(10.1.3.0.0)].server.http.HttpApplication.loadServlet(HttpApp
Application.log
Exceptioninstaticblockofjtf.cache.CacheManager.Stacktraceis:
oracle.apps.jtf.base.resources.FrameworkException:IASCacheinitializationfailed.TheDistributed
CachingSystemfailedtoinitializeonport:12345.Thelistofhostsinthedistributedcac
hingsystemis:<host.domain>.Theport12345shouldbefreeoneachhostrunningtheJVMs.Thedefaultport
usingDoracle.apps.jtf.cache.IASCacheProvidercacheProvider.port=<portnumber>
JavaobjectControllerissuesaregenerallyspecifictoAIXplatform.ThisfailurewasaresultoftheApplicationsJDKmissing
requiredjava.securityupdatesspecifictotheapplicationsserverandaportspecificcodeissuewithincache.jar.
Solution:2
1.Applyboththefollowingpatches:
Patch5261515"AS10.1.3:PATCHOVERAIX5LJDK15"
Patch5946958"JOCDISTRIBUTEDMODEFAILUREWHENREGISTERINGGROUPMEMBERS"
UnpublishedBug<>hasbeenfiledtoinclude5946958inOracleAS10.1.3.4
Formoredetails,youcanreferfollowingnote
Note422766.1CacheInitializationFailureonAIXplatform
2.Sometimestheseerrorsarecausedbyafirewallbetweentheconcurrentmanagernodeandwebnode,orthedatabaseand
webnode,sobesuretoopentherequiredfirewallport.
AlternativeSolution
Incasetheabovesolutionsdonotsolvetheissue,thenfollowingstepscanalsobecarriedoutaftertakingproperbackups
ofthesystem
1.Removeany*.lockfilesin$ORA_CONFIG_HOME/10.1.3/j2ee/<group>/persistence/<group_default_group_<number>/
2.SettheparameterLONG_RUNNING_JVM=falsepresentin$ORA_CONFIG_HOME/10.1.3/j2ee/oacore/config/oc4j.properties
andtesttheresult.
3.Ensurethatallthemiddletierservicesarerunningcorrectlyviafollowingcommand
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrlstate=8yzlotom1_9 3/4
11/15/2016 DocumentDisplay
$adopmnctl.shstatusl
Youarerunningadopmnctl.shversion120.4.12000000.3
CheckingstatusofOPMNmanagedprocesses...
ProcessesinInstance:test9_celaixclu9.celaixclu9.us.oracle.com
+++
iascomponent|processtype|pid|status
+++
OC4JGroup:OC4J|OC4J:oafm|548916|Alive
OC4JGroup:OC4J|OC4J:forms|307358|Alive
OC4JGroup:OC4J|OC4J:oacore|581638|Alive
HTTP_Server|HTTP_Server|598042|Alive
4.EnsurethattheinstancemeetsOperatingSystemsRequirements,andSoftwareRequirementsspecifiedinOracle
ApplicationsEBusinessR12Installationdocument.
5.Iftheinstancehasbeencreatedbycloninganotherinstanceoranyissueswithlistenerconfigurationissuspectedthen
createacleanautoconfigenvrionmentandrerunautoconfig.Referthefollowingnote
Note391406.1HowtogetacleanAutoconfigEnvironment
6.ClearthebrowsercacheandEBusinesssuiteinstancecache.
7.CompileallJSPfilesaftersourcingtheenvironment.Runthecommand
cd$FND_TOP/patch/115/bin
ojspCompile.plcompileflush
8.Iffeasible,completelyreboottheinstance.StopallmiddletierservicesandstopdatabaseservicesaswellOS
services.Thenrestartallthoseservices.
Whileyoulogaservicerequestbesuretoprovidefollowinginformation:
1.AccessthefollowingURLandcompletealltests.UploadtheresultoutputtotheassociatedmetalinkSR
http://host.domain:port/OA_HTML/jsp/fnd/aoljtest.jsp
(Replacethehost,domain,portvaluewithyourinstancedetails)
2.Uploadthedebuglogfilesinstanceafterreproducingtheissue.Youmayreferfollowingnoteforthesame
Note422419.1R12HowToEnableandCollectDebugforHTTP,OC4JandOPMN
REFERENCES
NOTE:443353.1HowToSuccessfullyChangeTheGuestPasswordInEBusinessSuite11.5.10andR12
NOTE:422419.1R12,12.1HowToEnableandCollectDebugforHTTP,OC4JandOPMN
NOTE:422766.1CacheInitializationFailureonAIXplatformWith"oracle.apps.fnd.profiles.Profiles(initializationfailure)"
Didn'tfindwhatyouarelookingfor?
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrlstate=8yzlotom1_9 4/4