cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FEDIZ-167) JPA error with OIDC in Tomcat 7/8
Date Tue, 21 Jun 2016 15:23:58 GMT

     [ https://issues.apache.org/jira/browse/FEDIZ-167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sergey Beryozkin updated FEDIZ-167:
-----------------------------------
         Assignee: Sergey Beryozkin
    Fix Version/s:     (was: 1.3.1)
                   2.0.0
          Summary: JPA error with OIDC in Tomcat 7/8  (was: JPA error with OIDC in Tomcat
8)

Latest Tomcat 7.0.70 does not pick up OpenJPA runtime Enhancer the way earlier 7.0.64 can
thus it is possible in a 7.0.70 case Spring Tomcat Instrumentation ClassLoader may need to
be set-up as per Spring docs. 

The original issue reported may point either to Model or HSQLDB limitations.

Overall, it is becoming obvious quite a bit more effort will need to go into providing a stable
JPA persistence OOB.  Thus marking it for 2.0.0 

> JPA error with OIDC in Tomcat 7/8
> ---------------------------------
>
>                 Key: FEDIZ-167
>                 URL: https://issues.apache.org/jira/browse/FEDIZ-167
>             Project: CXF-Fediz
>          Issue Type: Bug
>            Reporter: Colm O hEigeartaigh
>            Assignee: Sergey Beryozkin
>             Fix For: 2.0.0
>
>
> There is a JPA error with the OIDC IdP in Tomcat 8. On the first user authentication,
everything seems to happen again. Then if you clear the browser cache and try again you get
the error attached below. Reproduced using Apache Tomcat 8.0.33 + HSQLDB 2.3.4.
> <openjpa-2.4.1-r422266:1730418 fatal store error> org.apache.openjpa.persistence.RollbackException:
The transaction has been rolled back.  See the nested exceptions for details on the errors
that occurred.
> 	org.apache.openjpa.persistence.EntityManagerImpl.commit(EntityManagerImpl.java:595)
> 	org.apache.cxf.rs.security.oauth2.grants.code.JPACodeDataProvider.saveCodeGrant(JPACodeDataProvider.java:58)
> 	org.apache.cxf.rs.security.oauth2.grants.code.JPACodeDataProvider.createCodeGrant(JPACodeDataProvider.java:37)
> 	org.apache.cxf.rs.security.oauth2.services.AuthorizationCodeGrantService.getGrantRepresentation(AuthorizationCodeGrantService.java:139)
> 	org.apache.cxf.rs.security.oauth2.services.AuthorizationCodeGrantService.createGrant(AuthorizationCodeGrantService.java:99)
> 	org.apache.cxf.rs.security.oauth2.services.RedirectionBasedGrantService.startAuthorization(RedirectionBasedGrantService.java:215)
> 	org.apache.cxf.rs.security.oidc.idp.OidcAuthorizationCodeService.startAuthorization(OidcAuthorizationCodeService.java:76)
> 	org.apache.cxf.rs.security.oauth2.services.RedirectionBasedGrantService.startAuthorization(RedirectionBasedGrantService.java:128)
> 	org.apache.cxf.rs.security.oauth2.services.RedirectionBasedGrantService.authorize(RedirectionBasedGrantService.java:94)
> 	org.apache.cxf.rs.security.oauth2.services.AuthorizationService.authorize(AuthorizationService.java:58)
> 	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	java.lang.reflect.Method.invoke(Method.java:498)
> 	org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)
> 	org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
> 	org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:189)
> 	org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:99)
> 	org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:59)
> 	org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:96)
> 	org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
> 	org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
> 	org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:254)
> 	org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:234)
> 	org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:208)
> 	org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:160)
> 	org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:180)
> 	org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:299)
> 	org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:223)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
> 	org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:274)
> 	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
> 	org.apache.cxf.fediz.core.servlet.FederationFilter.doFilter(FederationFilter.java:60)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message