You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Fadhly (JIRA)" <ji...@apache.org> on 2014/11/19 08:36:39 UTC

[jira] [Issue Comment Deleted] (OLINGO-490) Olingo v2 JPA does not work with hibernate envers.

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

Fadhly updated OLINGO-490:
--------------------------
    Comment: was deleted

(was: "stacktrace": {
            "exceptions": [
                {
                    "class": "java.lang.ClassCastException",
                    "message": "org.hibernate.jpa.internal.metamodel.MapMember cannot be cast to java.lang.reflect.AnnotatedElement",
                    "invocation": {
                        "class": "org.apache.olingo.odata2.jpa.processor.core.model.JPAEdmProperty$JPAEdmPropertyBuilder",
                        "method": "addForeignKey",
                        "line": 350
                    }
                }
            ],
            "stacktrace": [
                {
                    "class": "org.apache.olingo.odata2.jpa.processor.core.model.JPAEdmProperty$JPAEdmPropertyBuilder",
                    "method": "addForeignKey",
                    "line": 350
                },
                {
                    "class": "org.apache.olingo.odata2.jpa.processor.core.model.JPAEdmProperty$JPAEdmPropertyBuilder",
                    "method": "build",
                    "line": 279
                },
                {
                    "class": "org.apache.olingo.odata2.jpa.processor.core.model.JPAEdmComplexType$JPAEdmComplexTypeBuilder",
                    "method": "build",
                    "line": 244
                },
                {
                    "class": "org.apache.olingo.odata2.jpa.processor.core.model.JPAEdmSchema$JPAEdmSchemaBuilder",
                    "method": "build",
                    "line": 116
                },
                {
                    "class": "org.apache.olingo.odata2.jpa.processor.core.model.JPAEdmModel$JPAEdmModelBuilder",
                    "method": "build",
                    "line": 61
                },
                {
                    "class": "org.apache.olingo.odata2.jpa.processor.core.edm.ODataJPAEdmProvider",
                    "method": "getSchemas",
                    "line": 282
                },
                {
                    "class": "org.apache.olingo.odata2.jpa.processor.core.edm.ODataJPAEdmProvider",
                    "method": "getEntityContainerInfo",
                    "line": 92
                },
                {
                    "class": "org.apache.olingo.odata2.core.edm.provider.EdmImplProv",
                    "method": "createEntityContainer",
                    "line": 59
                },
                {
                    "class": "org.apache.olingo.odata2.core.edm.EdmImpl",
                    "method": "getEntityContainer",
                    "line": 69
                },
                {
                    "class": "org.apache.olingo.odata2.core.edm.EdmImpl",
                    "method": "getDefaultEntityContainer",
                    "line": 184
                },
                {
                    "class": "org.apache.olingo.odata2.core.uri.UriParserImpl",
                    "method": "handleNormalInitialSegment",
                    "line": 196
                },
                {
                    "class": "org.apache.olingo.odata2.core.uri.UriParserImpl",
                    "method": "handleResourcePath",
                    "line": 180
                },
                {
                    "class": "org.apache.olingo.odata2.core.uri.UriParserImpl",
                    "method": "parseAll",
                    "line": 121
                },
                {
                    "class": "org.apache.olingo.odata2.core.ODataRequestHandler",
                    "method": "handle",
                    "line": 107
                },
                {
                    "class": "org.apache.olingo.odata2.core.servlet.ODataServlet",
                    "method": "handleRequest",
                    "line": 185
                },
                {
                    "class": "org.apache.olingo.odata2.core.servlet.ODataServlet",
                    "method": "handle",
                    "line": 103
                },
                {
                    "class": "org.apache.olingo.odata2.core.servlet.ODataServlet",
                    "method": "service",
                    "line": 93
                },
                {
                    "class": "javax.servlet.http.HttpServlet",
                    "method": "service",
                    "line": 725
                },
                {
                    "class": "org.apache.catalina.core.ApplicationFilterChain",
                    "method": "internalDoFilter",
                    "line": 301
                },
                {
                    "class": "org.apache.catalina.core.ApplicationFilterChain",
                    "method": "doFilter",
                    "line": 206
                },
                {
                    "class": "org.springframework.web.filter.HiddenHttpMethodFilter",
                    "method": "doFilterInternal",
                    "line": 77
                },
                {
                    "class": "org.springframework.web.filter.OncePerRequestFilter",
                    "method": "doFilter",
                    "line": 107
                },
                {
                    "class": "org.apache.catalina.core.ApplicationFilterChain",
                    "method": "internalDoFilter",
                    "line": 239
                },
                {
                    "class": "org.apache.catalina.core.ApplicationFilterChain",
                    "method": "doFilter",
                    "line": 206
                },
                {
                    "class": "org.springframework.security.web.authentication.preauth.AbstractPreAuthenticatedProcessingFilter",
                    "method": "doFilter",
                    "line": 94
                },
                {
                    "class": "org.apache.catalina.core.ApplicationFilterChain",
                    "method": "internalDoFilter",
                    "line": 239
                },
                {
                    "class": "org.apache.catalina.core.ApplicationFilterChain",
                    "method": "doFilter",
                    "line": 206
                },
                {
                    "class": "org.springframework.security.web.access.intercept.FilterSecurityInterceptor",
                    "method": "invoke",
                    "line": 108
                },
                {
                    "class": "org.springframework.security.web.access.intercept.FilterSecurityInterceptor",
                    "method": "doFilter",
                    "line": 84
                },
                {
                    "class": "org.apache.catalina.core.ApplicationFilterChain",
                    "method": "internalDoFilter",
                    "line": 239
                },
                {
                    "class": "org.apache.catalina.core.ApplicationFilterChain",
                    "method": "doFilter",
                    "line": 206
                },
                {
                    "class": "org.springframework.security.web.FilterChainProxy$VirtualFilterChain",
                    "method": "doFilter",
                    "line": 330
                },
                {
                    "class": "org.springframework.security.web.access.intercept.FilterSecurityInterceptor",
                    "method": "invoke",
                    "line": 118
                },
                {
                    "class": "org.springframework.security.web.access.intercept.FilterSecurityInterceptor",
                    "method": "doFilter",
                    "line": 84
                },
                {
                    "class": "org.springframework.security.web.FilterChainProxy$VirtualFilterChain",
                    "method": "doFilter",
                    "line": 342
                },
                {
                    "class": "org.springframework.security.web.access.ExceptionTranslationFilter",
                    "method": "doFilter",
                    "line": 113
                },
                {
                    "class": "org.springframework.security.web.FilterChainProxy$VirtualFilterChain",
                    "method": "doFilter",
                    "line": 342
                },
                {
                    "class": "org.springframework.security.web.authentication.AnonymousAuthenticationFilter",
                    "method": "doFilter",
                    "line": 113
                },
                {
                    "class": "org.springframework.security.web.FilterChainProxy$VirtualFilterChain",
                    "method": "doFilter",
                    "line": 342
                },
                {
                    "class": "org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter",
                    "method": "doFilter",
                    "line": 154
                },
                {
                    "class": "org.springframework.security.web.FilterChainProxy$VirtualFilterChain",
                    "method": "doFilter",
                    "line": 342
                },
                {
                    "class": "org.springframework.security.web.authentication.preauth.AbstractPreAuthenticatedProcessingFilter",
                    "method": "doFilter",
                    "line": 94
                },
                {
                    "class": "org.springframework.security.web.FilterChainProxy$VirtualFilterChain",
                    "method": "doFilter",
                    "line": 342
                },
                {
                    "class": "org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter",
                    "method": "doFilterInternal",
                    "line": 50
                },
                {
                    "class": "org.springframework.web.filter.OncePerRequestFilter",
                    "method": "doFilter",
                    "line": 107
                },
                {
                    "class": "org.springframework.security.web.FilterChainProxy$VirtualFilterChain",
                    "method": "doFilter",
                    "line": 342
                },
                {
                    "class": "org.springframework.security.web.context.SecurityContextPersistenceFilter",
                    "method": "doFilter",
                    "line": 87
                },
                {
                    "class": "org.springframework.security.web.FilterChainProxy$VirtualFilterChain",
                    "method": "doFilter",
                    "line": 342
                },
                {
                    "class": "org.springframework.security.web.FilterChainProxy",
                    "method": "doFilterInternal",
                    "line": 192
                },
                {
                    "class": "org.springframework.security.web.FilterChainProxy",
                    "method": "doFilter",
                    "line": 160
                },
                {
                    "class": "org.apache.catalina.core.ApplicationFilterChain",
                    "method": "internalDoFilter",
                    "line": 239
                },
                {
                    "class": "org.apache.catalina.core.ApplicationFilterChain",
                    "method": "doFilter",
                    "line": 206
                },
                {
                    "class": "my.mimos.tpcohcis.security.SimpleCORSFilter",
                    "method": "doFilter",
                    "line": 21
                },
                {
                    "class": "org.apache.catalina.core.ApplicationFilterChain",
                    "method": "internalDoFilter",
                    "line": 239
                },
                {
                    "class": "org.apache.catalina.core.ApplicationFilterChain",
                    "method": "doFilter",
                    "line": 206
                },
                {
                    "class": "org.apache.catalina.core.StandardWrapperValve",
                    "method": "invoke",
                    "line": 219
                },
                {
                    "class": "org.apache.catalina.core.StandardContextValve",
                    "method": "invoke",
                    "line": 106
                },
                {
                    "class": "org.apache.catalina.authenticator.AuthenticatorBase",
                    "method": "invoke",
                    "line": 503
                },
                {
                    "class": "org.apache.catalina.core.StandardHostValve",
                    "method": "invoke",
                    "line": 136
                },
                {
                    "class": "org.apache.catalina.valves.ErrorReportValve",
                    "method": "invoke",
                    "line": 78
                },
                {
                    "class": "org.apache.catalina.core.StandardEngineValve",
                    "method": "invoke",
                    "line": 88
                },
                {
                    "class": "org.apache.catalina.connector.CoyoteAdapter",
                    "method": "service",
                    "line": 526
                },
                {
                    "class": "org.apache.coyote.http11.AbstractHttp11Processor",
                    "method": "process",
                    "line": 1033
                },
                {
                    "class": "org.apache.coyote.AbstractProtocol$AbstractConnectionHandler",
                    "method": "process",
                    "line": 652
                },
                {
                    "class": "org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler",
                    "method": "process",
                    "line": 222
                },
                {
                    "class": "org.apache.tomcat.util.net.NioEndpoint$SocketProcessor",
                    "method": "doRun",
                    "line": 1566
                },
                {
                    "class": "org.apache.tomcat.util.net.NioEndpoint$SocketProcessor",
                    "method": "run",
                    "line": 1523
                },
                {
                    "class": "java.util.concurrent.ThreadPoolExecutor",
                    "method": "runWorker",
                    "line": 1142
                },
                {
                    "class": "java.util.concurrent.ThreadPoolExecutor$Worker",
                    "method": "run",
                    "line": 617
                },
                {
                    "class": "org.apache.tomcat.util.threads.TaskThread$WrappingRunnable",
                    "method": "run",
                    "line": 61
                },
                {
                    "class": "java.lang.Thread",
                    "method": "run",
                    "line": 745
                }
            ]
        })

> Olingo v2 JPA does not work with hibernate envers.
> --------------------------------------------------
>
>                 Key: OLINGO-490
>                 URL: https://issues.apache.org/jira/browse/OLINGO-490
>             Project: Olingo
>          Issue Type: Bug
>          Components: odata2-jpa
>    Affects Versions: V2 2.0.0
>            Reporter: Fadhly
>            Assignee: Chandan V.A
>
> Class cast exception when using JPA/Hibernate with Hibernate envers @Audited annotation. The current source did not make a class instance check hence the error below;
> org.hibernate.jpa.internal.metamodel.MapMember cannot be cast to java.lang.reflect.AnnotatedElement



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