Jboss AS 7.1.1
JDK 7
Eclipse Kepler with m2e 1.4
Issue and context:
I have been trying to migrate from PostgreSQL to SAP's HANAONE DB
Everything works properly except when I try to persist an Object.
Jboss as 7.1.1 supplies a subsystem jpa module, which i read somewhere it can be deleted from the standalone.xml of the jboss as 7.1.1 server.
IF I do not delete it i get the following error:
I'll note here that the hibernate4 module does exist in the Jboss Modules directory.
Code:
14:56:24,683 WARN [org.jboss.modules] Failed to define class org.jboss.as.jpa.hibernate4.JBossAppServerJtaPlatform in Module "org.jboss.as.jpa.hibernate:4" from local module loader @2b9c1dc4 (roots: C:\Development\Servers\JbossCLEAN\jboss-as-7.1.1.Final\modules): java.lang.LinkageError: Failed to link org/jboss/as/jpa/hibernate4/JBossAppServerJtaPlatform (Module "org.jboss.as.jpa.hibernate:4" from local module loader @2b9c1dc4 (roots: C:\Development\Servers\JbossCLEAN\jboss-as-7.1.1.Final\modules))
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:396) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:243) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.Module.loadModuleClass(Module.java:517) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.1.GA]
at org.jboss.as.jpa.hibernate4.HibernatePersistenceProviderAdaptor.injectJtaManager(HibernatePersistenceProviderAdaptor.java:50)
at org.jboss.as.jpa.processor.PersistenceProviderAdaptorLoader.loadPersistenceAdapterModule(PersistenceProviderAdaptorLoader.java:112) [jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.jpa.subsystem.JPAExtension.initialize(JPAExtension.java:118) [jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.controller.extension.ExtensionAddHandler.initializeExtension(ExtensionAddHandler.java:88) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.controller.extension.ParallelExtensionAddHandler$ExtensionInitializeTask.call(ParallelExtensionAddHandler.java:127) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.controller.extension.ParallelExtensionAddHandler$ExtensionInitializeTask.call(ParallelExtensionAddHandler.java:113) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
at java.util.concurrent.FutureTask.run(Unknown Source) [rt.jar:1.7.0_40]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.7.0_40]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_40]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_40]
at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.0.0.GA.jar:2.0.0.GA]
Caused by: java.lang.NoClassDefFoundError: org/hibernate/service/jta/platform/internal/JBossAppServerJtaPlatform
at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.7.0_40]
at java.lang.ClassLoader.defineClass(Unknown Source) [rt.jar:1.7.0_40]
at java.security.SecureClassLoader.defineClass(Unknown Source) [rt.jar:1.7.0_40]
at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:327) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:391) [jboss-modules.jar:1.1.1.GA]
... 19 more
Caused by: java.lang.ClassNotFoundException: org.hibernate.service.jta.platform.internal.JBossAppServerJtaPlatform from [Module "org.jboss.as.jpa.hibernate:4" from local module loader @2b9c1dc4 (roots: C:\Development\Servers\JbossCLEAN\jboss-as-7.1.1.Final\modules)]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.1.GA]
... 24 more
14:56:24,707 ERROR [org.jboss.as.controller.management-operation] JBAS014612: Operation ("parallel-extension-add") failed - address: ([]): java.lang.RuntimeException: JBAS014670: Failed initializing module org.jboss.as.jpa
at org.jboss.as.controller.extension.ParallelExtensionAddHandler$1.execute(ParallelExtensionAddHandler.java:99) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:385) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:272) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:200) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.controller.ModelControllerImpl.boot(ModelControllerImpl.java:149) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:190) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.server.ServerService.boot(ServerService.java:291) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.server.ServerService.boot(ServerService.java:266) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:155) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_40]
Caused by: java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: org/jboss/as/jpa/hibernate4/JBossAppServerJtaPlatform
at java.util.concurrent.FutureTask.report(Unknown Source) [rt.jar:1.7.0_40]
at java.util.concurrent.FutureTask.get(Unknown Source) [rt.jar:1.7.0_40]
at org.jboss.as.controller.extension.ParallelExtensionAddHandler$1.execute(ParallelExtensionAddHandler.java:91) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
... 9 more
Caused by: java.lang.NoClassDefFoundError: org/jboss/as/jpa/hibernate4/JBossAppServerJtaPlatform
at org.jboss.as.jpa.hibernate4.HibernatePersistenceProviderAdaptor.injectJtaManager(HibernatePersistenceProviderAdaptor.java:50)
at org.jboss.as.jpa.processor.PersistenceProviderAdaptorLoader.loadPersistenceAdapterModule(PersistenceProviderAdaptorLoader.java:112)
at org.jboss.as.jpa.subsystem.JPAExtension.initialize(JPAExtension.java:118)
at org.jboss.as.controller.extension.ExtensionAddHandler.initializeExtension(ExtensionAddHandler.java:88) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.controller.extension.ParallelExtensionAddHandler$ExtensionInitializeTask.call(ParallelExtensionAddHandler.java:127) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.controller.extension.ParallelExtensionAddHandler$ExtensionInitializeTask.call(ParallelExtensionAddHandler.java:113) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
at java.util.concurrent.FutureTask.run(Unknown Source) [rt.jar:1.7.0_40]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.7.0_40]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_40]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_40]
at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.0.0.GA.jar:2.0.0.GA]
Caused by: java.lang.ClassNotFoundException: org.jboss.as.jpa.hibernate4.JBossAppServerJtaPlatform from [Module "org.jboss.as.jpa.hibernate:4" from local module loader @2b9c1dc4 (roots: C:\Development\Servers\JbossCLEAN\jboss-as-7.1.1.Final\modules)]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.1.GA]
... 11 more
My POM, CFG.xml, and stack trace are posted below
pom.xml (Relative to hibernate dependencies)
Code:
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-c3p0</artifactId>
<version>4.2.1.Final</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>4.3.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-search</artifactId>
<version>4.4.0.Final</version>
</dependency>
hibernate.cfg.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="current_session_context_class">thread</property>
<property name="hibernate.bytecode.use_reflection_optimizer">false</property>
<!-- <property name="hibernate.dialect">dal.PhizzlePostGresDialect</property> -->
<property name="hibernate.dialect">org.hibernate.dialect.HANARowStoreDialect</property>
<property name="hibernate.transaction.factory_class">jdbc</property>
<!-- LocalHost -->
<!--
<property name="hibernate.connection.url">jdbc:postgresql://localhost/Phizzle</property>
-->
<!-- Dev DB -->
<property name="hibernate.connection.url">jdbc:sap://*******/?autocommit=false</property>
<property name="hibernate.connection.username">***</property>
<property name="hibernate.connection.password">****</property>
<property name="hibernate.default_schema">*****</property>
<property name="hibernate.connection.driver_class">com.sap.db.jdbc.Driver</property>
<property name="javax.persistence.validation.mode">none</property>
<property name="hibernate.c3p0.min_size">5</property>
<property name="hibernate.temp.use_jdbc_metadata_defaults">false</property>
<property name="hibernate.c3p0.max_size">100</property>
<property name="hibernate.c3p0.timeout">300</property>
<!-- <property name="hibernate.c3p0.timeout">300</property> -->
<property name="hibernate.c3p0.max_statements">50</property>
<property name="hibernate.c3p0.unreturnedConnectionTimeout">3000</property>
<property name="c3p0.acquireRetryAttempts">0</property>
<property name="c3p0.acquireRetryDelay">3000</property>
<property name="c3p0.breakAfterAcquireFailure">false</property>
<property name="c3p0.maxConnectionAge">6000</property>
<property name="c3p0.maxIdleTime">6000</property>
<property name="c3p0.maxIdleTimeExcessConnections">1800</property>
<property name="c3p0.idleConnectionTestPeriod">3600</property>
<property name="hibernate.c3p0.idle_test_period">3000</property>
<!-- <property name="hibernate.c3p0.idle_test_period">3000</property>
c3p0 Debugging REMOVE IN PRODUCTION -->
<property name="hibernate.c3p0.debugUnreturnedConnectionStackTraces">false</property>
<property name="hibernate.search.autoregister_listeners">true</property>
<property name="hibernate.show_sql">true</property>
<property name="hibernate.search.worker.batch_size">1000</property>
<!-- <property name="hibernate.cache.provider_class">com.googlecode.hibernate.memcached.MemcachedCacheProvider</property> -->
<property name="hibernate.search.default.directory_provider">filesystem</property>
<property name="hibernate.search.worker.execution">async</property>
<property name="hibernate.search.default.indexBase">/var/lucene/indexes</property>
<property name="hibernate.search.default.exclusive_index_use">false</property>
<mapping resource="resource/Reseller.hbm.xml"/>
<mapping resource="resource/Client.hbm.xml"/>
<mapping resource="resource/Campaigntochannel.hbm.xml"/>
<mapping resource="resource/Blast.hbm.xml"/>
<mapping resource="resource/Bannedword.hbm.xml" />
<mapping resource="resource/Aliasgroup.hbm.xml"/>
<mapping resource="resource/Fantolist.hbm.xml"/>
<mapping resource="resource/Profile.hbm.xml"/>
<mapping resource="resource/Reward.hbm.xml"/>
<mapping resource="resource/Consumer.hbm.xml"/>
<mapping resource="resource/Keyword.hbm.xml"/>
<mapping resource="resource/Question.hbm.xml"/>
<mapping resource="resource/Campaign.hbm.xml"/>
<mapping resource="resource/Programmember.hbm.xml"/>
<mapping resource="resource/Tag.hbm.xml"/>
<mapping resource="resource/Fanlist.hbm.xml"/>
<mapping resource="resource/Fanlisttoparent.hbm.xml"/>
<mapping resource="resource/Fanprofile.hbm.xml"/>
<mapping resource="resource/Fan.hbm.xml"/>
<mapping resource="resource/Permission.hbm.xml"/>
<mapping resource="resource/Engagementchannel.hbm.xml"/>
<mapping resource="resource/Profiletag.hbm.xml"/>
<mapping resource="resource/Programpointrule.hbm.xml"/>
<mapping resource="resource/Loyaltyprogram.hbm.xml"/>
<mapping resource="resource/Programtimerule.hbm.xml"/>
<mapping resource="resource/Qrcode.hbm.xml"/>
<mapping resource="resource/Programtransaction.hbm.xml"/>
<mapping resource="resource/Profiletype.hbm.xml"/>
<mapping resource="resource/Alias.hbm.xml"/>
<mapping resource="resource/Activity.hbm.xml"/>
<mapping resource="resource/Group.hbm.xml"/>
<mapping resource="resource/User.hbm.xml"/>
<mapping resource="resource/Bounceback.hbm.xml"/>
<mapping resource="resource/Shortcode.hbm.xml"/>
<mapping resource="resource/Programtier.hbm.xml"/>
<mapping resource="resource/Blasttoprofiletype.hbm.xml"/>
<mapping resource="resource/Campaigntoclientprofile.hbm.xml"/>
<mapping resource="resource/Clientprofile.hbm.xml"/>
<mapping resource="resource/Blastmessage.hbm.xml"/>
<mapping resource="resource/Filtercriteria.hbm.xml"/>
<mapping resource="resource/Customfield.hbm.xml"/>
<mapping resource="resource/Customfieldvalue.hbm.xml"/>
<mapping resource="resource/Winner.hbm.xml"/>
<mapping resource="resource/Bixasset.hbm.xml"/>
<mapping resource="resource/Ticket.hbm.xml"/>
<mapping resource="resource/Weboptin.hbm.xml"/>
<mapping resource="resource/Weboptinfield.hbm.xml"/>
<mapping resource="resource/Activitylist.hbm.xml"/>
<mapping resource="resource/Activitytolist.hbm.xml"/>
<mapping resource="resource/Bixscene.hbm.xml"/>
<mapping resource="resource/Bixbundel.hbm.xml"/>
<mapping resource="resource/Campaigntoprofiletype.hbm.xml"/>
</session-factory>
</hibernate-configuration>
Stack Trace
Code:
13:57:36,976 WARNING [javax.enterprise.resource.webcontainer.jsf.lifecycle] (http-localhost-127.0.0.1-8080-1) #{campaignWizard.save()}: java.lang.NoSuchMethodError: org.hibernate.engine.transaction.spi.TransactionEnvironment.getJtaPlatform()Lorg/hibernate/service/jta/platform/spi/JtaPlatform;: javax.faces.FacesException: #{campaignWizard.save()}: java.lang.NoSuchMethodError: org.hibernate.engine.transaction.spi.TransactionEnvironment.getJtaPlatform()Lorg/hibernate/service/jta/platform/spi/JtaPlatform;
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:118) [jsf-impl-2.1.7-jbossorg-2.jar:]
at javax.faces.component.UICommand.broadcast(UICommand.java:315) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) [jsf-impl-2.1.7-jbossorg-2.jar:]
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]
at org.jboss.web.rewrite.RewriteValve.invoke(RewriteValve.java:466) [jbossweb-7.0.13.Final.jar:]
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_40]
Caused by: javax.faces.el.EvaluationException: java.lang.NoSuchMethodError: org.hibernate.engine.transaction.spi.TransactionEnvironment.getJtaPlatform()Lorg/hibernate/service/jta/platform/spi/JtaPlatform;
at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102) [jsf-impl-2.1.7-jbossorg-2.jar:]
... 24 more
Caused by: java.lang.NoSuchMethodError: org.hibernate.engine.transaction.spi.TransactionEnvironment.getJtaPlatform()Lorg/hibernate/service/jta/platform/spi/JtaPlatform;
at org.hibernate.search.backend.impl.EventSourceTransactionContext.isLocalTransaction(EventSourceTransactionContext.java:134) [hibernate-search-orm-4.4.0.Final.jar:4.4.0.Final]
at org.hibernate.search.backend.impl.EventSourceTransactionContext.registerSynchronization(EventSourceTransactionContext.java:102) [hibernate-search-orm-4.4.0.Final.jar:4.4.0.Final]
at org.hibernate.search.backend.impl.TransactionalWorker.performWork(TransactionalWorker.java:91) [hibernate-search-engine-4.4.0.Final.jar:4.4.0.Final]
at org.hibernate.search.event.impl.FullTextIndexEventListener.processWork(FullTextIndexEventListener.java:247) [hibernate-search-orm-4.4.0.Final.jar:4.4.0.Final]
at org.hibernate.search.event.impl.FullTextIndexEventListener.onPostInsert(FullTextIndexEventListener.java:129) [hibernate-search-orm-4.4.0.Final.jar:4.4.0.Final]
at org.hibernate.action.internal.EntityInsertAction.postInsert(EntityInsertAction.java:176) [hibernate-core-4.3.0-SNAPSHOT.jar:4.3.0.SNAPSHOT]
at org.hibernate.action.internal.EntityInsertAction.execute(EntityInsertAction.java:144) [hibernate-core-4.3.0-SNAPSHOT.jar:4.3.0.SNAPSHOT]
at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:453) [hibernate-core-4.3.0-SNAPSHOT.jar:4.3.0.SNAPSHOT]
at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:345) [hibernate-core-4.3.0-SNAPSHOT.jar:4.3.0.SNAPSHOT]
at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:350) [hibernate-core-4.3.0-SNAPSHOT.jar:4.3.0.SNAPSHOT]
at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:56) [hibernate-core-4.3.0-SNAPSHOT.jar:4.3.0.SNAPSHOT]
at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1298) [hibernate-core-4.3.0-SNAPSHOT.jar:4.3.0.SNAPSHOT]
at org.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:414) [hibernate-core-4.3.0-SNAPSHOT.jar:4.3.0.SNAPSHOT]
at org.hibernate.engine.transaction.internal.jdbc.JdbcTransaction.beforeTransactionCommit(JdbcTransaction.java:101) [hibernate-core-4.3.0-SNAPSHOT.jar:4.3.0.SNAPSHOT]
at org.hibernate.engine.transaction.spi.AbstractTransactionImpl.commit(AbstractTransactionImpl.java:175) [hibernate-core-4.3.0-SNAPSHOT.jar:4.3.0.SNAPSHOT]
at dal.DAL.upsert(DAL.java:225) [classes:]
at campaign.CampaignWizard.save(CampaignWizard.java:368) [classes:]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_40]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [rt.jar:1.7.0_40]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [rt.jar:1.7.0_40]
at java.lang.reflect.Method.invoke(Unknown Source) [rt.jar:1.7.0_40]
at org.apache.el.parser.AstValue.invoke(AstValue.java:262) [jbossweb-7.0.13.Final.jar:]
at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:278) [jbossweb-7.0.13.Final.jar:]
at org.jboss.weld.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:39) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105) [jsf-impl-2.1.7-jbossorg-2.jar:]
at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
... 25 more
I call the transaction manager in my upsert method from my Data Accesss Layer class
the stack trace is thrown at the tx.commit();
Code:
Transaction tx = null;
tx = session.beginTransaction();
session.saveOrUpdate(o);
tx.commit();
return o;
All insight is appreciated.
Thank you for your diligence.