javax.ejb.EJBException: JBAS014580: Unexpected Error

Hibernate JIRA | Marco Ronconi | 3 years ago
  1. 0

    By executing the following native query to mongodb {code} List<Customer> result = session.createSQLQuery("{$and:[{username:'testUser'},{password:'testPwd'}]}").addEntity("Customer", Customer.class).list(); {code} or JPA like {code} Customer c = (Customer) entityManager.createNativeQuery("{$and:[{username:'testUser'},{password:'testPwd'}]}", Customer.class).getSingleResult(); {code} I always get the following exception : {code} javax.ejb.EJBException: JBAS014580: Unexpected Error at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterceptor.java:187) at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:275) at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:340) at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:239) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:43) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:95) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:55) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:325) at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:437) at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:61) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:325) at org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165) at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:182) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:72) at it.telecomitalia.angel.ejb.TestEjb$$$view5.testNativeQuery(Unknown Source) at it.telecomitalia.angel.service.AuthenticationService.login(AuthenticationService.java:54) at it.telecomitalia.angel.service.AuthenticationService$Proxy$_$$_WeldClientProxy.login(Unknown Source) at it.telecomitalia.angel.api.rest.service.AuthenticationService.login(AuthenticationService.java:65) at it.telecomitalia.angel.api.rest.service.AuthenticationService$Proxy$_$$_WeldClientProxy.login(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:137) at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:280) at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:234) at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:221) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:179) at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:220) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:87) at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:59) at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:81) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:113) at io.undertow.security.handlers.AuthenticationCallHandler.handleRequest(AuthenticationCallHandler.java:52) at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45) at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:65) at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:70) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:218) at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:205) at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:69) at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:134) at io.undertow.server.HttpHandlers.executeRootHandler(HttpHandlers.java:36) at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:619) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Caused by: java.lang.IllegalAccessError: tried to access method org.hibernate.internal.SQLQueryImpl.<init>(Ljava/lang/String;Lorg/hibernate/engine/spi/SessionImplementor;Lorg/hibernate/engine/query/spi/ParameterMetadata;)V from class org.hibernate.internal.NoSQLQuery at org.hibernate.internal.NoSQLQuery.<init>(NoSQLQuery.java:39) at org.hibernate.ogm.hibernatecore.impl.OgmSession.createSQLQuery(OgmSession.java:179) at it.telecomitalia.angel.ejb.TestEjb.testNativeQuery(TestEjb.java:30) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53) at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:406) at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:130) at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:138) at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53) at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:406) at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:46) at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:84) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:273) ... 72 more {code}

    Hibernate JIRA | 3 years ago | Marco Ronconi
    javax.ejb.EJBException: JBAS014580: Unexpected Error
  2. 0

    By executing the following native query to mongodb {code} List<Customer> result = session.createSQLQuery("{$and:[{username:'testUser'},{password:'testPwd'}]}").addEntity("Customer", Customer.class).list(); {code} or JPA like {code} Customer c = (Customer) entityManager.createNativeQuery("{$and:[{username:'testUser'},{password:'testPwd'}]}", Customer.class).getSingleResult(); {code} I always get the following exception : {code} javax.ejb.EJBException: JBAS014580: Unexpected Error at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterceptor.java:187) at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:275) at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:340) at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:239) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:43) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:95) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:55) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:325) at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:437) at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:61) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:325) at org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165) at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:182) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:72) at it.telecomitalia.angel.ejb.TestEjb$$$view5.testNativeQuery(Unknown Source) at it.telecomitalia.angel.service.AuthenticationService.login(AuthenticationService.java:54) at it.telecomitalia.angel.service.AuthenticationService$Proxy$_$$_WeldClientProxy.login(Unknown Source) at it.telecomitalia.angel.api.rest.service.AuthenticationService.login(AuthenticationService.java:65) at it.telecomitalia.angel.api.rest.service.AuthenticationService$Proxy$_$$_WeldClientProxy.login(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:137) at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:280) at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:234) at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:221) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:179) at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:220) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:87) at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:59) at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:81) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:113) at io.undertow.security.handlers.AuthenticationCallHandler.handleRequest(AuthenticationCallHandler.java:52) at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45) at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:65) at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:70) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:218) at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:205) at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:69) at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:134) at io.undertow.server.HttpHandlers.executeRootHandler(HttpHandlers.java:36) at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:619) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Caused by: java.lang.IllegalAccessError: tried to access method org.hibernate.internal.SQLQueryImpl.<init>(Ljava/lang/String;Lorg/hibernate/engine/spi/SessionImplementor;Lorg/hibernate/engine/query/spi/ParameterMetadata;)V from class org.hibernate.internal.NoSQLQuery at org.hibernate.internal.NoSQLQuery.<init>(NoSQLQuery.java:39) at org.hibernate.ogm.hibernatecore.impl.OgmSession.createSQLQuery(OgmSession.java:179) at it.telecomitalia.angel.ejb.TestEjb.testNativeQuery(TestEjb.java:30) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53) at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:406) at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:130) at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:138) at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53) at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:406) at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:46) at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:84) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:273) ... 72 more {code}

    Hibernate JIRA | 3 years ago | Marco Ronconi
    javax.ejb.EJBException: JBAS014580: Unexpected Error
  3. 0

    error while testing Hibernate JPA

    Stack Overflow | 4 years ago | allthenutsandbolts
    java.lang.IllegalAccessError: tried to access method org.hibernate.cfg.Configuration.<init>(Lorg/hibernate/cfg/SettingsFactory;)V from class org.hibernate.ejb.Ejb3Configuration
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How to configure Hibernate+JPA with Configuration?

    Stack Overflow | 3 years ago | IgCiphEr
    java.lang.IllegalAccessError: tried to access method org.hibernate.cfg.Configuration.<init>(Lorg/hibernate/cfg/SettingsFactory;)V from class org.hibernate.ejb.Ejb3Configuration
  6. 0

    db:: 3.42::Consuming messages from a remote HornetQ node zf

    hivmr.com | 8 months ago
    io.netty.handler.codec.DecoderException: java.lang.IllegalAccessError: tried to access method org.hornetq.core.protocol.core.impl.RemotingConnectionImpl.init(Lorg/hornetq/core/protocol/core/impl/PacketDecoder;Lorg/hornetq/spi/core/remoting/Connection;Ljava/util/List;Ljava/util/List;Ljava/util/concurrent/Executor;Lorg/hornetq/api/core/SimpleString;)V from class org.hornetq.core.protocol.core.impl.CoreProtocolManager

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalAccessError

      tried to access method org.hibernate.internal.SQLQueryImpl.<init>(Ljava/lang/String;Lorg/hibernate/engine/spi/SessionImplementor;Lorg/hibernate/engine/query/spi/ParameterMetadata;)V from class org.hibernate.internal.NoSQLQuery

      at org.hibernate.internal.NoSQLQuery.<init>()
    2. Hibernate
      NoSQLQuery.<init>
      1. org.hibernate.internal.NoSQLQuery.<init>(NoSQLQuery.java:39)
      1 frame
    3. Hibernate Object Grid Mapper
      OgmSession.createSQLQuery
      1. org.hibernate.ogm.hibernatecore.impl.OgmSession.createSQLQuery(OgmSession.java:179)
      1 frame
    4. it.telecomitalia.angel
      TestEjb.testNativeQuery
      1. it.telecomitalia.angel.ejb.TestEjb.testNativeQuery(TestEjb.java:30)
      1 frame
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    6. JBoss Application Server: EE
      ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation
      1. org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72)
      1 frame
    7. JBoss Application Server Server
      InterceptorContext.proceed
      1. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
      1 frame
    8. WildFly: EE
      ConcurrentContextInterceptor.processInvocation
      1. org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45)
      1 frame
    9. JBoss Application Server Server
      WeavedInterceptor.processInvocation
      1. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
      2. org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
      2 frames
    10. JBoss Application Server: EE
      UserInterceptorFactory$1.processInvocation
      1. org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
      1 frame
    11. JBoss Application Server Server
      InterceptorContext$Invocation.proceed
      1. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
      2. org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:406)
      2 frames
    12. Weld
      Jsr299BindingsInterceptor.processInvocation
      1. org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:130)
      2. org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:138)
      2 frames
    13. JBoss Application Server: EE
      UserInterceptorFactory$1.processInvocation
      1. org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
      1 frame
    14. JBoss Application Server Server
      WeavedInterceptor.processInvocation
      1. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
      2. org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
      2 frames
    15. JBoss Application Server: EE
      UserInterceptorFactory$1.processInvocation
      1. org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
      1 frame
    16. JBoss Application Server Server
      InterceptorContext.proceed
      1. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
      1 frame
    17. JBoss Application Server: EJB Subsystem
      ExecutionTimeInterceptor.processInvocation
      1. org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)
      1 frame
    18. JBoss Application Server Server
      InterceptorContext.proceed
      1. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
      1 frame
    19. JPA
      SBInvocationInterceptor.processInvocation
      1. org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)
      1 frame
    20. JBoss Application Server Server
      InterceptorContext$Invocation.proceed
      1. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
      2. org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:406)
      2 frames
    21. Weld Implementation
      AbstractEJBRequestScopeActivationInterceptor.aroundInvoke
      1. org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:46)
      1 frame
    22. Weld
      EjbRequestScopeActivationInterceptor.processInvocation
      1. org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:84)
      1 frame
    23. JBoss Application Server Server
      ChainedInterceptor.processInvocation
      1. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
      2. org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)
      3. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
      4. org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
      4 frames
    24. JBoss Application Server: EE
      ComponentDispatcherInterceptor.processInvocation
      1. org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53)
      1 frame
    25. JBoss Application Server Server
      InterceptorContext.proceed
      1. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
      1 frame
    26. JBoss Application Server: EJB Subsystem
      PooledInstanceInterceptor.processInvocation
      1. org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)
      1 frame
    27. JBoss Application Server Server
      InterceptorContext.proceed
      1. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
      1 frame
    28. JBoss Application Server: EJB Subsystem
      CMTTxInterceptor.processInvocation
      1. org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:273)
      2. org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:340)
      3. org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:239)
      3 frames
    29. JBoss Application Server Server
      InterceptorContext.proceed
      1. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
      1 frame
    30. JBoss Application Server: EJB Subsystem
      CurrentInvocationContextInterceptor.processInvocation
      1. org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
      1 frame
    31. JBoss Application Server Server
      InterceptorContext.proceed
      1. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
      1 frame
    32. JBoss Application Server: EJB Subsystem
      WaitTimeInterceptor.processInvocation
      1. org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:43)
      1 frame
    33. JBoss Application Server Server
      InterceptorContext.proceed
      1. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
      1 frame
    34. JBoss Application Server: EJB Subsystem
      SecurityContextInterceptor.processInvocation
      1. org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:95)
      1 frame
    35. JBoss Application Server Server
      InterceptorContext.proceed
      1. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
      1 frame
    36. JBoss Application Server: EJB Subsystem
      ShutDownInterceptorFactory$1.processInvocation
      1. org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64)
      1 frame
    37. JBoss Application Server Server
      InterceptorContext.proceed
      1. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
      1 frame
    38. JBoss Application Server: EJB Subsystem
      LoggingInterceptor.processInvocation
      1. org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59)
      1 frame
    39. JBoss Application Server Server
      InterceptorContext.proceed
      1. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
      1 frame
    40. JBoss Application Server: EE
      NamespaceContextInterceptor.processInvocation
      1. org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
      1 frame
    41. JBoss Application Server Server
      InterceptorContext.proceed
      1. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
      1 frame
    42. JBoss Application Server: EJB Subsystem
      AdditionalSetupInterceptor.processInvocation
      1. org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:55)
      1 frame
    43. JBoss Application Server Server
      InterceptorContext.run
      1. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
      2. org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64)
      3. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
      4. org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:325)
      4 frames
    44. WildFly Security Manager
      WildFlySecurityManager.doChecked
      1. org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:437)
      1 frame
    45. JBoss Application Server Server
      ChainedInterceptor.processInvocation
      1. org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:61)
      2. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
      3. org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:325)
      4. org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80)
      5. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
      6. org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
      6 frames
    46. JBoss Application Server: EE
      ViewDescription$1.processInvocation
      1. org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165)
      2. org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:182)
      2 frames
    47. JBoss Application Server Server
      ChainedInterceptor.processInvocation
      1. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
      2. org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
      2 frames
    48. JBoss Application Server: EE
      ProxyInvocationHandler.invoke
      1. org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:72)
      1 frame
    49. it.telecomitalia.angel
      AuthenticationService$Proxy$_$$_WeldClientProxy.login
      1. it.telecomitalia.angel.ejb.TestEjb$$$view5.testNativeQuery(Unknown Source)
      2. it.telecomitalia.angel.service.AuthenticationService.login(AuthenticationService.java:54)
      3. it.telecomitalia.angel.service.AuthenticationService$Proxy$_$$_WeldClientProxy.login(Unknown Source)
      4. it.telecomitalia.angel.api.rest.service.AuthenticationService.login(AuthenticationService.java:65)
      5. it.telecomitalia.angel.api.rest.service.AuthenticationService$Proxy$_$$_WeldClientProxy.login(Unknown Source)
      5 frames
    50. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    51. RESTEasy JAX-RS Implementation
      HttpServletDispatcher.service
      1. org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:137)
      2. org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:280)
      3. org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:234)
      4. org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:221)
      5. org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)
      6. org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:179)
      7. org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:220)
      8. org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56)
      9. org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51)
      9 frames
    52. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
      1 frame
    53. Undertow Servlet
      ServletDispatchingHandler.handleRequest
      1. io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:87)
      2. io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:59)
      3. io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
      3 frames
    54. WildFly: Undertow
      SecurityContextAssociationHandler.handleRequest
      1. org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:81)
      1 frame
    55. Undertow Core
      PredicateHandler.handleRequest
      1. io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)
      1 frame
    56. Undertow Servlet
      SSLInformationAssociationHandler.handleRequest
      1. io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:113)
      1 frame
    57. Undertow Core
      AbstractConfidentialityHandler.handleRequest
      1. io.undertow.security.handlers.AuthenticationCallHandler.handleRequest(AuthenticationCallHandler.java:52)
      2. io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45)
      2 frames
    58. Undertow Servlet
      CachedAuthenticatedSessionHandler.handleRequest
      1. io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:65)
      1 frame
    59. Undertow Core
      PredicateHandler.handleRequest
      1. io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:70)
      2. io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)
      3. io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)
      3 frames
    60. Undertow Servlet
      ServletInitialHandler$1.handleRequest
      1. io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:218)
      2. io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:205)
      3. io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:69)
      4. io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:134)
      4 frames
    61. Undertow Core
      HttpServerExchange$1.run
      1. io.undertow.server.HttpHandlers.executeRootHandler(HttpHandlers.java:36)
      2. io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:619)
      2 frames
    62. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      3. java.lang.Thread.run(Thread.java:744)
      3 frames