Getting a Blank Page and java.lang.ClassCastException Error in the Logs After Redeploying a WebCenter Portal Application with Content Presenter
(Doc ID 1664144.1)
Last updated on MAY 16, 2024
Applies to:
Oracle WebCenter Portal - Version 11.1.1.7.1 to 11.1.1.8.3 [Release 11g]Information in this document applies to any platform.
Symptoms
WebCenter Portal applications with Content Presenter configured with Coherence comes up with a blank page after redeploying the application.
Refreshing the browser brings the page.
However the Content Presenter is not displayed.
The managed server log will show the following error:
<ContentTypeFetchAndCacheListener> <contextInitialized> Exception occurred when initializing content type cache in ContentTypeFetchAndCacheListener.
java.lang.ClassCastException: oracle.webcenter.content.integration.ContentType
at oracle.webcenter.content.integration.spi.ucm.UCMCacheHelper.getContentType(UCMCacheHelper.java:361)
at oracle.webcenter.content.integration.spi.ucm.factory.ContentTypeFactory.getMinimalContentTypes(ContentTypeFactory.java:238)
at oracle.webcenter.content.integration.spi.ucm.factory.ContentTypeFactory.ensureAllContentTypesLoaded(ContentTypeFactory.java:273)
at oracle.webcenter.content.integration.spi.ucm.factory.ContentTypeFactory.<init>(ContentTypeFactory.java:78)
at oracle.webcenter.content.integration.spi.ucm.factory.ContentTypeFactory.getInstance(ContentTypeFactory.java:97)
at oracle.webcenter.content.integration.spi.ucm.ContentTypeFetchAndCacheListener.contextInitialized(ContentTypeFetchAndCacheListener.java:93)
at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:181)
at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1874)
...
java.lang.ClassCastException: oracle.webcenter.content.integration.ContentType
at oracle.webcenter.content.integration.spi.ucm.UCMCacheHelper.getContentType(UCMCacheHelper.java:361)
at oracle.webcenter.content.integration.spi.ucm.factory.ContentTypeFactory.getMinimalContentTypes(ContentTypeFactory.java:238)
at oracle.webcenter.content.integration.spi.ucm.factory.ContentTypeFactory.ensureAllContentTypesLoaded(ContentTypeFactory.java:273)
at oracle.webcenter.content.integration.spi.ucm.factory.ContentTypeFactory.<init>(ContentTypeFactory.java:78)
at oracle.webcenter.content.integration.spi.ucm.factory.ContentTypeFactory.getInstance(ContentTypeFactory.java:97)
at oracle.webcenter.content.integration.spi.ucm.ContentTypeFetchAndCacheListener.contextInitialized(ContentTypeFetchAndCacheListener.java:93)
at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:181)
at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1874)
...
This happens only when having the following 2 patches applied:
Without Patch 17292891 the issue doesn't reproduce.
The issue is cleared doing any of the following:
- Restarting the managed server.
- Wait until the Coherence Cache expires.
e.g. by default 30 minutes
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Cause |
Solution |
References |