-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: IdentifierGenerator.generate() throws AbstractMethodError
PostPosted: Wed Sep 07, 2016 11:20 pm 
Newbie

Joined: Wed Sep 07, 2016 11:03 pm
Posts: 1
I have write java class to generate the customize ID. my application is working on Wildfly10.

I met a exception when hibernate call generate() method.

Code:
public class PKGen implements IdentifierGenerator,Configurable {

   public PKGen(){
   }

   @Override
   public String generate( org.hibernate.engine.spi.SharedSessionContractImplementor session,   Object object) throws HibernateException {
      
      ColtLogger.debug("------------------------ Generate PKGen....");

      String newId = ColtIdGenerator.genNextId("000000000000001", "JVN");

      return newId;
   }

   @Override
   public void configure(Type type, Properties params, ServiceRegistry serviceRegistry) throws MappingException {
      
      ColtLogger.debug("------------------------> Configured PKGen...." + params.getProperty("tableName")  + " : " + this.ENTITY_NAME );

   }

}


the Exception is :
Code:
11:10:35,576 INFO  [org.colt.core.ColtLogger] (default task-41) --------------------- Start Insert Organization ...
11:10:35,579 ERROR [org.jboss.as.ejb3.invocation] (default task-41) WFLYEJB0034: EJB Invocation failed on component Database for method public org.colt.platform.core.entity.SuperObject org.colt.core.Database.insert(org.colt.platform.core.entity.SuperObject): javax.ejb.EJBTransactionRolledbackException: WFLYEJB0457: Unexpected Error
   at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleInCallerTx(CMTTxInterceptor.java:153)
   at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:256)
   at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:329)
   at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:239)
   at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
   at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
   at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
   at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:43)
   at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
   at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:100)
   at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
   at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64)
   at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
   at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:66)
   at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
   at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
   at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
   at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:54)
   at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
   at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64)
   at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
   at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356)
   at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:636)
   at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:61)
   at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
   at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356)
   at org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80)
   at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
   at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
   at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:195)
   at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:185)
   at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
   at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
   at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:73)
   at org.colt.core.Database$$$view35.insert(Unknown Source)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:497)
   at org.jboss.weld.util.reflection.Reflections.invokeAndUnwrap(Reflections.java:436)
   at org.jboss.weld.bean.proxy.EnterpriseBeanProxyMethodHandler.invoke(EnterpriseBeanProxyMethodHandler.java:127)
   at org.jboss.weld.bean.proxy.EnterpriseTargetBeanInstance.invoke(EnterpriseTargetBeanInstance.java:56)
   at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:100)
   at org.colt.core.Database$Proxy$_$$_Weld$EnterpriseProxy$.insert(Unknown Source)
   at test.TestHibernateConnection.shouldUseHibernateOrm52(TestHibernateConnection.java:73)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:497)
   at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
   at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
   at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
   at org.jboss.arquillian.junit.Arquillian$8$1.invoke(Arquillian.java:374)
   at org.jboss.arquillian.container.test.impl.execution.LocalTestExecuter.execute(LocalTestExecuter.java:60)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:497)
   at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
   at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
   at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
   at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145)
   at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)
   at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)
   at org.jboss.arquillian.container.test.impl.execution.ContainerTestExecuter.execute(ContainerTestExecuter.java:38)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:497)
   at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
   at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
   at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
   at org.jboss.arquillian.test.impl.TestContextHandler.createTestContext(TestContextHandler.java:130)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:497)
   at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
   at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
   at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:92)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:497)
   at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
   at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
   at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:73)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:497)
   at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
   at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
   at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145)
   at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.test(EventTestRunnerAdaptor.java:136)
   at org.jboss.arquillian.junit.Arquillian$8.evaluate(Arquillian.java:367)
   at org.jboss.arquillian.junit.Arquillian$4.evaluate(Arquillian.java:245)
   at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:426)
   at org.jboss.arquillian.junit.Arquillian.access$200(Arquillian.java:54)
   at org.jboss.arquillian.junit.Arquillian$5.evaluate(Arquillian.java:259)
   at org.jboss.arquillian.junit.Arquillian$7$1.invoke(Arquillian.java:319)
   at org.jboss.arquillian.container.test.impl.execution.BeforeLifecycleEventExecuter.on(BeforeLifecycleEventExecuter.java:35)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:497)
   at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
   at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
   at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
   at org.jboss.arquillian.test.impl.TestContextHandler.createTestContext(TestContextHandler.java:130)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:497)
   at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
   at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
   at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:92)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:497)
   at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
   at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
   at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:73)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:497)
   at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
   at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
   at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145)
   at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)
   at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.fireCustomLifecycle(EventTestRunnerAdaptor.java:159)
   at org.jboss.arquillian.junit.Arquillian$7.evaluate(Arquillian.java:312)
   at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
   at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
   at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
   at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
   at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
   at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
   at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
   at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
   at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:204)
   at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:426)
   at org.jboss.arquillian.junit.Arquillian.access$200(Arquillian.java:54)
   at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:218)
   at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
   at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:166)
   at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
   at org.junit.runner.JUnitCore.run(JUnitCore.java:136)
   at org.jboss.arquillian.junit.container.JUnitTestRunner.execute(JUnitTestRunner.java:66)
   at org.jboss.arquillian.protocol.servlet.runner.ServletTestRunner.executeTest(ServletTestRunner.java:170)
   at org.jboss.arquillian.protocol.servlet.runner.ServletTestRunner.execute(ServletTestRunner.java:135)
   at org.jboss.arquillian.protocol.servlet.runner.ServletTestRunner.doGet(ServletTestRunner.java:98)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
   at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)
   at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
   at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
   at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
   at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
   at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)
   at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
   at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
   at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
   at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
   at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
   at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
   at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)
   at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
   at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
   at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
   at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
   at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
   at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:284)
   at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:263)
   at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)
   at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:174)
   at io.undertow.server.Connectors.executeRootHandler(Connectors.java:202)
   at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:793)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.AbstractMethodError: org.colt.platform.persistence.id.PKGen.generate(Lorg/hibernate/engine/spi/SessionImplementor;Ljava/lang/Object;)Ljava/io/Serializable;
   at org.hibernate.mapping.Component$ValueGenerationPlan.execute(Component.java:418)
   at org.hibernate.id.CompositeNestedGeneratedValueGenerator.generate(CompositeNestedGeneratedValueGenerator.java:97)
   at org.hibernate.event.internal.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:101)
   at org.hibernate.jpa.event.internal.core.JpaSaveEventListener.saveWithGeneratedId(JpaSaveEventListener.java:56)
   at org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:192)
   at org.hibernate.event.internal.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:38)
   at org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:177)
   at org.hibernate.event.internal.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:32)
   at org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:73)
   at org.hibernate.internal.SessionImpl.fireSave(SessionImpl.java:679)
   at org.hibernate.internal.SessionImpl.save(SessionImpl.java:671)
   at org.hibernate.internal.SessionImpl.save(SessionImpl.java:666)
   at org.colt.core.Database.insert(Database.java:39)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:497)
   at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)
   at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
   at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)
   at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:82)
   at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:93)
   at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
   at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
   at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)
   at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
   at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)
   at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
   at org.jboss.as.jpa.interceptor.SFSBInvocationInterceptor.processInvocation(SFSBInvocationInterceptor.java:57)
   at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
   at org.jboss.as.ejb3.component.stateful.StatefulSessionSynchronizationInterceptor.processInvocation(StatefulSessionSynchronizationInterceptor.java:125)
   at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
   at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)
   at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:64)
   at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:83)
   at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
   at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45)
   at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
   at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)
   at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
   at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
   at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:52)
   at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
   at org.jboss.as.ejb3.component.stateful.StatefulComponentInstanceInterceptor.processInvocation(StatefulComponentInstanceInterceptor.java:65)
   at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
   at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:254)
   ... 181 more


Please advises.


Top
 Profile  
 
 Post subject: Re: Hibernate call IdentifierGenerator.generate() failed
PostPosted: Thu Sep 08, 2016 9:46 am 
Hibernate Team
Hibernate Team

Joined: Thu Sep 11, 2014 2:50 am
Posts: 1628
Location: Romania
The java.lang.AbstractMethodError is thrown if the Runtime uses a different class version than the one you compiled. Maybe you compiled the IdentifierGenerator implementation using a newer version of Hibernate, whereas at runtime you are using an old version of Hibernate where the IdentifierGenerator method signature is different.

Wildfly 10 uses Hibernate 5.0, so the IdentifierGenerator#generate method signature is:

Code:
Serializable   generate(SessionImplementor session, Object object)


Whereas, most likely, you are using Hibernate 5.2 during compilation, and the method signature is:

Code:
Serializable   generate(SharedSessionContractImplementor session, Object object)


This will surely explain the AbstractMethodError that you are getting.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.