我们的服务器已升级如下,
Weblogic Server从版本10.3.3到10.3.6 Portal 11g Midtier从版本11.1.1.3到11.1.1.7 门户网站存储库(数据库中的门户网站模式)从版本11.1.1.3到版本11.1.1.6
我们在几个页面上收到以下错误,感谢
java.lang.RuntimeException:java.lang.reflect.InvocationTargetException at oracle.adfinternal.view.faces.config.rich.XmlRenderResponseInvocationHandler。(XmlRenderResponseInvocationHandler.java:50) at oracle.adfinternal.view.faces.config.rich.RegistrationConfigurator.getExternalContext(RegistrationConfigurator.java:181) at org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl.getExternalContext(GlobalConfiguratorImpl.java:368) at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl $ CacheRenderKit。(FacesContextFactoryImpl.java:86) at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:64) at oracle.portlet.bridge.adf.application.ADFBridgePortlet.doFacesRequest(ADFBridgePortlet.java:344) 在fi.luottokunta.partner.util.BridgePortlet.doFacesRequest(BridgePortlet.java:52)
在weblogic.work.ExecuteThread.execute(ExecuteThread.java:256) 在weblogic.work.ExecuteThread.run(ExecuteThread.java:221) 引起:oracle.portlet.server.containerimpl.ContainerIllegalArgumentException:当前不允许内容类型 " text / xml; charset = utf-8" 上下文。 at oracle.portlet.server.containerimpl.RenderResponseImpl.setContentType(RenderResponseImpl.java:269) at oracle.portlet.bridge.adf.application.ResourceResponseWrapper.setContentType(ResourceResponseWrapper.java:41) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 在java.lang.reflect.Method.invoke(Method.java:597) at oracle.adfinternal.view.faces.config.rich.XmlRenderResponseInvocationHandler。(XmlRenderResponseInvocationHandler.java:44) 在oracle.adfinternal.view.faces.config.rich.RegistrationConfigurator.getExternalContext(RegistrationConfigurator.java:181)
的
其他信息,由于ADF组件可能会出现此问题。
例如,在下面的示例中,如果我们从jspx中删除selectionListener组件,则应用程序可以正常工作。 SP500.jspx
<af:table contentDelivery="immediate" width="915" var="user" value="#{viewScope.SP500.sortableModel}" rowBandingInterval="0"
rendered="#{viewScope.SP500.renderResults}" autoHeightRows="12" immediate="true" binding="#{viewScope.SP500.userTable}"
rowSelection="multiple" selectionListener="#{viewScope.SP500.selectionListener}" columnStretching="last"
disableColumnReordering="true">
<af:column styleClass="datacolumns" minimumWidth="155" width="200px" headerText="#{msg.SP500_F016}" sortable="true"
sortProperty="uid">
<af:commandLink text="#{user.uid}" action="#{viewScope.SP500.viewUser}">
<af:setPropertyListener from="#{user}" to="#{requestScope.viewUser}" type="action"/>
</af:commandLink>
</af:column>
SP500.java
public void selectionListener(final SelectionEvent selectionEvent) {
//Trigger a check of whether the delete button is enabled
AdfFacesContext.getCurrentInstance().addPartialTarget(deleteButton);
}