[jboss-user] [JBoss jBPM] - Re: Hibernate error while deploying process in a web applica
vignesh57
do-not-reply at jboss.com
Thu Jul 9 07:06:30 EDT 2009
yeah it did showed up 8000 lines !
I don't know whether it is right or wrong but i added this property to my hibernate.cfg.xml file & got rid of the above error.
anonymous wrote : org.hibernate.context.ThreadLocalSessionContext
But again, i faced another problem. Removed few repeated log statements add embedded it below.
16:21:45,481 INFO [STDOUT] ->public String redeployProcess(String processName)
| 16:21:45,481 INFO [STDOUT] ----->Creating jBPM Configuration....
| 16:21:45,544 INFO [STDOUT] ----->Parsing process definition....
| 16:21:46,122 INFO [STDOUT] ----->Deploying Process definition....
| 16:21:46,200 INFO [Environment] Hibernate 3.2.6
| 16:21:46,200 INFO [Environment] hibernate.properties not found
| 16:21:46,216 INFO [Environment] Bytecode provider name : cglib
| 16:21:46,216 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling
| 16:21:46,325 INFO [Configuration] configuring from resource: hibernate.cfg.xml
| 16:21:46,325 INFO [Configuration] Configuration resource: hibernate.cfg.xml
| 16:21:46,341 INFO [Configuration] Reading mappings from resource : hibernate.extra.hbm.xml
| 16:21:46,419 INFO [Configuration] Reading mappings from resource : hibernate.identity.hbm.xml
| 16:21:46,434 INFO [HbmBinder] Mapping class: org.jbpm.identity.User -> JBPM_ID_USER
| .
| .
| .
| 16:21:47,216 INFO [Configuration] Reading mappings from resource : org/jbpm/taskmgmt/log/SwimlaneAssignLog.hbm.xml
| 16:21:47,216 INFO [HbmBinder] Mapping subclass: org.jbpm.taskmgmt.log.SwimlaneAssignLog -> JBPM_LOG
| 16:21:47,216 INFO [Configuration] Configured SessionFactory: null
| 16:21:47,216 INFO [HbmBinder] Mapping subclass: org.jbpm.graph.action.MailAction -> JBPM_ACTION
| 16:21:47,216 INFO [HbmBinder] Mapping subclass: org.jbpm.context.def.ContextDefinition -> JBPM_MODULEDEFINITION
| 16:21:47,216 INFO [HbmBinder] Mapping collection: org.jbpm.identity.User.memberships -> JBPM_ID_MEMBERSHIP
| 16:21:47,216 INFO [HbmBinder] Mapping collection: org.jbpm.identity.Group.children -> JBPM_ID_GROUP
| .
| .
| .
| 16:21:47,231 INFO [HbmBinder] Mapping collection: org.jbpm.taskmgmt.exe.TaskInstance.variableInstances -> JBPM_VARIABLEINSTANCE
| 16:21:47,231 INFO [HbmBinder] Mapping collection: org.jbpm.taskmgmt.exe.TaskInstance.comments -> JBPM_COMMENT
| 16:21:47,231 INFO [HbmBinder] Mapping collection: org.jbpm.taskmgmt.exe.SwimlaneInstance.pooledActors -> JBPM_POOLEDACTOR
| 16:21:47,231 INFO [HbmBinder] Mapping collection: org.jbpm.logging.log.CompositeLog.children -> JBPM_LOG
| 16:21:47,309 INFO [NamingHelper] JNDI InitialContext properties:{}
| 16:21:47,309 INFO [DatasourceConnectionProvider] Using datasource: java:JbpmDS
| 16:21:47,325 INFO [SettingsFactory] RDBMS: MySQL, version: 5.1.30-community
| 16:21:47,325 INFO [SettingsFactory] JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.0.4 ( $Date: 2006-10-19 17:47:48 +0200 (Thu, 19 Oct 2006) $, $Revision: 5908 $ )
| 16:21:47,341 INFO [Dialect] Using dialect: org.hibernate.dialect.MySQLDialect
| 16:21:47,341 INFO [TransactionFactoryFactory] Transaction strategy: org.hibernate.transaction.JTATransactionFactory
| 16:21:47,356 INFO [NamingHelper] JNDI InitialContext properties:{}
| 16:21:47,356 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
| 16:21:47,356 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup
| 16:21:47,356 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled
| 16:21:47,356 INFO [SettingsFactory] Automatic session close at end of transaction: disabled
| 16:21:47,356 INFO [SettingsFactory] JDBC batch size: 15
| 16:21:47,356 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled
| 16:21:47,356 INFO [SettingsFactory] Scrollable result sets: enabled
| 16:21:47,356 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): enabled
| 16:21:47,356 INFO [SettingsFactory] Connection release mode: auto
| 16:21:47,356 INFO [SettingsFactory] Maximum outer join fetch depth: 2
| 16:21:47,356 INFO [SettingsFactory] Default batch fetch size: 1
| 16:21:47,356 INFO [SettingsFactory] Generate SQL with comments: enabled
| 16:21:47,356 INFO [SettingsFactory] Order SQL updates by primary key: disabled
| 16:21:47,356 INFO [SettingsFactory] Order SQL inserts for batching: disabled
| 16:21:47,356 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
| 16:21:47,372 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
| 16:21:47,372 INFO [SettingsFactory] Query language substitutions: {}
| 16:21:47,372 INFO [SettingsFactory] JPA-QL strict compliance: disabled
| 16:21:47,372 INFO [SettingsFactory] Second-level cache: enabled
| 16:21:47,372 INFO [SettingsFactory] Query cache: disabled
| 16:21:47,372 INFO [SettingsFactory] Cache provider: org.hibernate.cache.HashtableCacheProvider
| 16:21:47,372 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
| 16:21:47,372 INFO [SettingsFactory] Structured second-level cache entries: disabled
| 16:21:47,372 INFO [SettingsFactory] Statistics: disabled
| 16:21:47,372 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
| 16:21:47,372 INFO [SettingsFactory] Default entity-mode: pojo
| 16:21:47,372 INFO [SettingsFactory] Named query checking : enabled
| 16:21:47,434 INFO [SessionFactoryImpl] building session factory
| 16:21:48,325 INFO [SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name configured
| 16:21:48,341 INFO [NamingHelper] JNDI InitialContext properties:{}
| 16:21:49,388 ERROR [GraphSession] org.hibernate.HibernateException: getNamedQuery is not valid without active transaction
| 16:21:49,388 INFO [STDOUT] ----->Exception is
| 16:21:49,388 INFO [STDOUT] ----->Deploy Failed....
| 16:21:49,388 ERROR [STDERR] org.jbpm.JbpmException: could not find process definition 'simple'
| 16:21:49,388 ERROR [STDERR] at org.jbpm.db.GraphSession.findLatestProcessDefinition(GraphSession.java:163)
| 16:21:49,388 ERROR [STDERR] at org.jbpm.db.GraphSession.deployProcessDefinition(GraphSession.java:69)
| 16:21:49,388 ERROR [STDERR] at org.jbpm.JbpmContext.deployProcessDefinition(JbpmContext.java:170)
| 16:21:49,388 ERROR [STDERR] at com.sample.dao.JBPMDao.redeployProcess(JBPMDao.java:23)
| 16:21:49,388 ERROR [STDERR] at com.sample.JBPMServlet.doGet(JBPMServlet.java:34)
| 16:21:49,388 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
| 16:21:49,388 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| 16:21:49,388 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
|
| 16:21:49,388 ERROR [STDERR] Caused by: org.hibernate.HibernateException: getNamedQuery is not valid without active transaction
| 16:21:49,388 ERROR [STDERR] at org.hibernate.context.ThreadLocalSessionContext$TransactionProtectionWrapper.invoke(ThreadLocalSessionContext.java:297)
| 16:21:49,388 ERROR [STDERR] at $Proxy50.getNamedQuery(Unknown Source)
| 16:21:49,388 ERROR [STDERR] at org.jbpm.db.GraphSession.findLatestProcessDefinition(GraphSession.java:156)
| 16:21:49,388 ERROR [STDERR] ... 24 more
| 16:21:49,388 INFO [STDOUT] ----->Exception ends
| 16:21:49,388 INFO [STDOUT] ----->Closing jBPM Context....
|
And this is my Hibernate Config file. I removed the mappings & collection-cache.
anonymous wrote : <?xml version='1.0' encoding='utf-8'?>
|
| <!DOCTYPE hibernate-configuration PUBLIC
| "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
| "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
|
| <hibernate-configuration>
| <session-factory>
|
| <!-- hibernate dialect -->
| org.hibernate.dialect.MySQLDialect
|
| <!-- DataSource properties (begin) -->
| java:JbpmDS
|
| org.hibernate.context.ThreadLocalSessionContext
|
| <!-- JTA transaction properties (begin) === -->
| org.hibernate.transaction.JTATransactionFactory
| org.hibernate.transaction.JBossTransactionManagerLookup
| UserTransaction
| <!--==== JTA transaction properties (end) -->
|
| <!-- Simple memory-only cache -->
| org.hibernate.cache.HashtableCacheProvider
|
| <!-- logging properties -->
| true
| true
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4242591#4242591
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4242591
More information about the jboss-user
mailing list