JBO-27513: значение заголовка недопустимо. Заголовок: REST-Framework-Version; Значение: 5 - PullRequest
0 голосов
/ 12 марта 2020

Я создаю Oracle приложение ADF, и мне нужно изменить атрибут restFrameworkVersion в моем adf-config. xml, поскольку мне нужно вернуть List в моем Programmati c Пользовательский метод View Object. Я изменил свой adf-config следующим образом:

<version name="v1" displayName="1" restFrameworkVersion="5"/>

, и я установил свой заголовок следующим образом:

enter image description here

Однако Я получаю ошибку 500 и следующую ошибку. Я не уверен, что именно не так. Моя версия Jdeveloper - 12.2.1.4.0.

<REST> <Unexpected error while processing the request> <Error Type=oracle.adf.internal.model.rest.core.exception.InvalidHeaderValueException> 
<oracle.adf.model> <RESTHttpRequestExecutor> <execute> <Unexpected error while processing the request> 
oracle.adf.internal.model.rest.core.exception.InvalidHeaderValueException: JBO-27513: Header value is not valid. Header: REST-Framework-Version; Value: 5
    at oracle.adf.internal.model.rest.core.http.header.RESTFrameworkVersion.parse(RESTFrameworkVersion.java:36)
    at oracle.adf.internal.model.rest.core.http.RESTHttpRequestWrapper.getFrameworkVersionFromHeader(RESTHttpRequestWrapper.java:431)
    at oracle.adf.internal.model.rest.core.http.RESTHttpRequestWrapper.<init>(RESTHttpRequestWrapper.java:104)
    at oracle.adf.internal.model.rest.core.http.RESTHttpRequestWrapper.<init>(RESTHttpRequestWrapper.java:61)
    at oracle.adf.internal.model.rest.core.http.RESTHttpRequestExecutor.execute(RESTHttpRequestExecutor.java:84)
    at oracle.adf.model.servlet.rest.ResourceServlet.execute(ResourceServlet.java:283)
    at oracle.adf.model.servlet.rest.ResourceServlet.doPost(ResourceServlet.java:94)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
    at oracle.adf.model.servlet.rest.ResourceServlet.service(ResourceServlet.java:135)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:286)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:260)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:137)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:350)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:78)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:207)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:78)
    at oracle.wsm.agent.handler.servlet.SecurityFilter.doFilter(SecurityFilter.java:360)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:78)
    at oracle.security.jps.ee.http.JpsAbsFilter$3.run(JpsAbsFilter.java:172)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:650)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:110)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilterInternal(JpsAbsFilter.java:273)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:147)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:94)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:78)
    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:248)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:78)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3701)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3667)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:326)
    at weblogic.security.service.SecurityManager.runAsForUserCode(SecurityManager.java:197)
    at weblogic.servlet.provider.WlsSecurityProvider.runAsForUserCode(WlsSecurityProvider.java:203)
    at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:71)
    at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2443)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2291)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2269)
    at weblogic.servlet.internal.ServletRequestImpl.runInternal(ServletRequestImpl.java:1703)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1663)
    at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:272)
    at weblogic.invocation.ComponentInvocationContextManager._runAs(ComponentInvocationContextManager.java:352)
    at weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:337)
    at weblogic.work.LivePartitionUtility.doRunWorkUnderContext(LivePartitionUtility.java:57)
    at weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUtility.java:41)
    at weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:644)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:415)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:355)
<oracle.adf.model> <ADFBindingFilter> <checkSessionCreation> <Detected an HttpSession when running in stateless mode.>

Что может быть возможным решением для этого? Большое спасибо :)

...