Spaces Managed Servers will not Start Correctly all the Time After Upgrading from 11g to 12c with Logs Showing Error "java.lang.ClassCastException: oracle.webcenter.portal.persistence.entity.PortalEntityObject"
(Doc ID 2454514.1)
Last updated on OCTOBER 23, 2023
Applies to:
Oracle WebCenter Portal - Version 12.2.1.0.0 and laterInformation in this document applies to any platform.
Symptoms
WebCenter Portal managed servers do not start correctly all the time after upgrading from 11g to 12c.
Users will get a blank page when accessing WebCenter Portal.
Symptoms:
- WebCenter Portal managed server is not starting correctly all the time.
- Sometimes the managed server starts properly and users can connect to WebCenter Portal.
But other times the managed server shows the following errors just after startup and a blank page is displayed when accessing WebCenter Portal:
<TIMESTAMP> <Notice> <Stdout> <BEA-000000> <
java.lang.IllegalArgumentException: Unknown Entity bean class: class oracle.webcenter.portal.persistence.entity.PortalEntityObject, please verify that this class has been marked with the @Entity annotation.
at org.eclipse.persistence.internal.jpa.EntityManagerImpl.find(EntityManagerImpl.java:718)
at org.eclipse.persistence.internal.jpa.EntityManagerImpl.find(EntityManagerImpl.java:622)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
...
<TIMESTAMP> <Notice> <Stdout> <BEA-000000> <Exception in cinit
java.lang.ClassCastException: oracle.webcenter.portal.persistence.entity.PortalEntityObject cannot be cast to oracle.webcenter.portal.persistence.entity.PortalEntityObject
at oracle.webcenter.portal.persistence.impl.entitymanager.SwitchingTypedQuery.getSingleResult(SwitchingTypedQuery.java:63)
at oracle.webcenter.portal.persistence.impl.entitymanager.SwitchingTypedQuery.getSingleResult(SwitchingTypedQuery.java:20)
at oracle.webcenter.portal.persistence.impl.entitymanager.PortalEntityObjectManagerImpl.findPortalEntityObjectByNamespaceAndName(PortalEntityObjectManagerImpl.java:182)
at oracle.webcenter.portal.persistence.impl.entitymanager.PortalEntityObjectManagerImpl$Proxy$_$$_WeldClientProxy.findPortalEntityObjectByNamespaceAndName(Unknown Source)
at oracle.webcenter.portal.persistence.impl.PersistenceManagerImpl.findByName(PersistenceManagerImpl.java:253)
...<TIMESTAMP> <Notice> <Stdout> <BEA-000000> <stServletFilter$1.call(PortalRequestServletFilter.java:48)
at oracle.webcenter.portal.context.impl.PortalRequestExecutorImpl.execute(PortalRequestExecutorImpl.java:47)
at oracle.webcenter.portal.context.impl.PortalRequestServletFilter.doFilter(PortalRequestServletFilter.java:47)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:78)
...<TIMESTAMP> <Error> <HTTP> <BEA-101107> <[ServletContext@1761653129[app:webcenter module:/webcenter path:null spec-version:3.1]] Problem occurred while serving the error page.
java.lang.ExceptionInInitializerError
at oracle.webcenter.framework.view.support.impl.DeviceSupportImpl.getDeviceByUserAgent(DeviceSupportImpl.java:403)
at oracle.webcenter.framework.view.support.DeviceAgent.getDevice(DeviceAgent.java:292)
at oracle.webcenter.framework.view.support.DeviceAgent.getDeviceGroups(DeviceAgent.java:319)
...Caused By: java.lang.RuntimeException: java.lang.ClassCastException: oracle.webcenter.portal.persistence.entity.PortalEntityObject cannot be cast to oracle.webcenter.portal.persistence.entity.PortalEntityObject
at oracle.webcenter.framework.view.support.impl.DeviceSupportUtils.<clinit>(DeviceSupportUtils.java:231)
at oracle.webcenter.framework.view.support.impl.DeviceSupportImpl.getDeviceByUserAgent(DeviceSupportImpl.java:403)
at oracle.webcenter.framework.view.support.DeviceAgent.getDevice(DeviceAgent.java:292)
...Caused By: java.lang.ClassCastException: oracle.webcenter.portal.persistence.entity.PortalEntityObject cannot be cast to oracle.webcenter.portal.persistence.entity.PortalEntityObject
at oracle.webcenter.portal.persistence.impl.entitymanager.SwitchingTypedQuery.getSingleResult(SwitchingTypedQuery.java:63)
at oracle.webcenter.portal.persistence.impl.entitymanager.SwitchingTypedQuery.getSingleResult(SwitchingTypedQuery.java:20)
at oracle.webcenter.portal.persistence.impl.entitymanager.PortalEntityObjectManagerImpl.findPortalEntityObjectByNamespaceAndName(PortalEntityObjectManagerImpl.java:182)
at oracle.webcenter.portal.persistence.impl.entitymanager.PortalEntityObjectManagerImpl$Proxy$_$$_WeldClientProxy.findPortalEntityObjectByNamespaceAndName(Unknown Source)
at oracle.webcenter.portal.persistence.impl.PersistenceManagerImpl.findByName(PersistenceManagerImpl.java:253) - When issue reproduces the users get a blank page when attempting to connect to WebCenter Portal and the following error is seen in the log:
<TIMESTAMP> <Notice> <Stdout> <BEA-000000> <<BEA-000000> <
java.lang.IllegalArgumentException: Unknown Entity bean class: class oracle.webcenter.portal.persistence.entity.PortalEntityObject, please verify that this class has been marked with the @Entity annotation.
at org.eclipse.persistence.internal.jpa.EntityManagerImpl.find(EntityManagerImpl.java:718)
at org.eclipse.persistence.internal.jpa.EntityManagerImpl.find(EntityManagerImpl.java:622)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
...
<TIMESTAMP> <Error> <HTTP> <BEA-101107> <[ServletContext@851971315[app:webcenter module:/webcenter path:null spec-version:3.1]] Problem occurred while serving the error page.
java.lang.NoClassDefFoundError: Could not initialize class oracle.webcenter.framework.view.support.impl.DeviceSupportUtils
at oracle.webcenter.framework.view.support.impl.DeviceSupportImpl.getDeviceByUserAgent(DeviceSupportImpl.java:403)
at oracle.webcenter.framework.view.support.DeviceAgent.getDevice(DeviceAgent.java:292)
at oracle.webcenter.framework.view.support.DeviceAgent.getDeviceGroups(DeviceAgent.java:319)
Changes
Upgraded WebCenter Portal from 11g to 12c.
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 |
Changes |
Cause |
Solution |
References |