[jBPM] - i run ant start.demo.db and error
by trang truong
trang truong [https://community.jboss.org/people/lone] created the discussion
"i run ant start.demo.db and error"
To view the discussion, visit: https://community.jboss.org/message/778049#778049
--------------------------------------------------------------
I work wiht jbpm 5.3 . i run ant start.demo.db and error an get below error. Can anyone show me how to fix it? Thanks
D:\OpenSource\BPM\jbpm-installer>ant start.demo.db
Buildfile: D:\OpenSource\BPM\jbpm-installer\build.xml
check.jboss.version:
download.db.driver.check:
[echo] Checking if db driver jar has been downloaded ...
download.mysql.driver:
install.db.files:
start.jboss:
check.jboss.version:
start.jboss5:
check.jboss.version:
start.jboss7:
start.human.task:
[javac] D:\OpenSource\BPM\jbpm-installer\build.xml:844: warning: 'includeant
runtime' was not set, defaulting to build.sysclasspath=last; set to false for re
peatable builds
[java] 1 23/11 13:37:56,140[main] ERROR tool.hbm2ddl.SchemaExport.execut
e - schema export unsuccessful
[java] com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown d
atabase 'task'
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeC
onstructorAccessorImpl.java:57)
[java] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Del
egatingConstructorAccessorImpl.java:45)
[java] at java.lang.reflect.Constructor.newInstance(Constructor.java:52
5)
[java] at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
[java] at com.mysql.jdbc.Util.getInstance(Util.java:386)
[java] at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1052
)
[java] at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3609)
[java] at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3541)
[java] at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:943)
[java] at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:4113)
[java] at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1308)
[java] at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java
:2336)
[java] at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImp
l.java:2369)
[java] at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java
:2153)
[java] at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:792)
[java] at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47
)
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeC
onstructorAccessorImpl.java:57)
[java] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Del
egatingConstructorAccessorImpl.java:45)
[java] at java.lang.reflect.Constructor.newInstance(Constructor.java:52
5)
[java] at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
[java] at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java
:381)
[java] at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDri
ver.java:305)
[java] at java.sql.DriverManager.getConnection(DriverManager.java:579)
[java] at java.sql.DriverManager.getConnection(DriverManager.java:190)
[java] at org.hibernate.connection.DriverManagerConnectionProvider.getC
onnection(DriverManagerConnectionProvider.java:133)
[java] at org.hibernate.tool.hbm2ddl.SuppliedConnectionProviderConnecti
onHelper.prepare(SuppliedConnectionProviderConnectionHelper.java:51)
[java] at org.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.
java:252)
[java] at org.hibernate.tool.hbm2ddl.SchemaExport.create(SchemaExport.j
ava:211)
[java] at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryIm
pl.java:353)
[java] at org.hibernate.cfg.Configuration.buildSessionFactory(Configura
tion.java:1341)
[java] at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory
(AnnotationConfiguration.java:867)
[java] at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory
(Ejb3Configuration.java:669)
[java] at org.hibernate.ejb.HibernatePersistence.createEntityManagerFac
tory(HibernatePersistence.java:126)
[java] at javax.persistence.Persistence.createEntityManagerFactory(Pers
istence.java:52)
[java] at javax.persistence.Persistence.createEntityManagerFactory(Pers
istence.java:34)
[java] at org.jbpm.DemoTaskService.main(Unknown Source)
[java] 1053 23/11 13:37:57,192[main] ERROR hibernate.util.JDBCExceptionRepo
rter.logExceptions - Unknown database 'task'
[java] 1055 23/11 13:37:57,194[main] WARN service.persistence.TaskLocalTra
nsactionManager.begin - Unable to begin transaction
[java] javax.persistence.PersistenceException: org.hibernate.exception.SQLG
rammarException: Cannot open connection
[java] at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceE
xception(AbstractEntityManagerImpl.java:614)
[java] at org.hibernate.ejb.TransactionImpl.begin(TransactionImpl.java:
41)
[java] at org.jbpm.task.service.persistence.TaskLocalTransactionManager
.begin(TaskLocalTransactionManager.java:42)
[java] at org.jbpm.task.service.persistence.TaskPersistenceManager.begi
nTransaction(TaskPersistenceManager.java:79)
[java] at org.jbpm.task.service.persistence.TaskPersistenceManager.getU
nescalatedDeadlines(TaskPersistenceManager.java:144)
[java] at org.jbpm.task.service.TaskServiceSession.scheduleUnescalatedD
eadlines(TaskServiceSession.java:231)
[java] at org.jbpm.task.service.TaskService.initialize(TaskService.java
:116)
[java] at org.jbpm.task.service.TaskService.initialize(TaskService.java
:101)
[java] at org.jbpm.task.service.TaskService.<init>(TaskService.java:79)
[java] at org.jbpm.DemoTaskService.main(Unknown Source)
[java] Caused by: org.hibernate.exception.SQLGrammarException: Cannot open
connection
[java] at org.hibernate.exception.SQLStateConverter.convert(SQLStateCon
verter.java:90)
[java] at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExcep
tionHelper.java:66)
[java] at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExcep
tionHelper.java:52)
[java] at org.hibernate.jdbc.ConnectionManager.openConnection(Connectio
nManager.java:449)
[java] at org.hibernate.jdbc.ConnectionManager.getConnection(Connection
Manager.java:167)
[java] at org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:14
2)
[java] at org.hibernate.transaction.JDBCTransaction.begin(JDBCTransacti
on.java:85)
[java] at org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.j
ava:1354)
[java] at org.hibernate.ejb.TransactionImpl.begin(TransactionImpl.java:
38)
[java] Exception in thread "main" java.lang.RuntimeException: Unable to beg
in transaction
[java] at org.jbpm.task.service.persistence.TaskLocalTransactionManager
.begin(TaskLocalTransactionManager.java:46)
[java] at org.jbpm.task.service.persistence.TaskPersistenceManager.begi
nTransaction(TaskPersistenceManager.java:79)
[java] at org.jbpm.task.service.persistence.TaskPersistenceManager.getU
nescalatedDeadlines(TaskPersistenceManager.java:144)
[java] at org.jbpm.task.service.TaskServiceSession.scheduleUnescalatedD
eadlines(TaskServiceSession.java:231)
[java] at org.jbpm.task.service.TaskService.initialize(TaskService.java
:116)
[java] ... 8 more
[java] at org.jbpm.task.service.TaskService.initialize(TaskService.java
:101)
[java] Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException
: Unknown database 'task' at org.jbpm.task.service.TaskService.<init>(Task
Service.java:79)
[java]
[java] at org.jbpm.DemoTaskService.main(Unknown Source)
[java] Caused by: javax.persistence.PersistenceException: org.hibernate.exc
eption.SQLGrammarException: Cannot open connection
[java] at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceE
xception(AbstractEntityManagerImpl.java:614)
[java] at org.hibernate.ejb.TransactionImpl.begin(TransactionImpl.java:
41)
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeC
onstructorAccessorImpl.java:57)
[java] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Del
egatingConstructorAccessorImpl.java:45)
[java] at java.lang.reflect.Constructor.newInstance(Constructor.java:52
5)
[java] at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
[java] at com.mysql.jdbc.Util.getInstance(Util.java:386)
[java] at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1052
)
[java] at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3609)
[java] at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3541)
[java] at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:943)
[java] at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:4113)
[java] at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1308)
[java] at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java
:2336)
[java] at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImp
l.java:2369)
[java] at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java
:2153)
[java] at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:792)
[java] at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47
)
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeC
onstructorAccessorImpl.java:57)
[java] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Del
egatingConstructorAccessorImpl.java:45)
[java] at java.lang.reflect.Constructor.newInstance(Constructor.java:52
5)
[java] at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
[java] at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java
:381)
[java] at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDri
ver.java:305)
[java] at java.sql.DriverManager.getConnection(DriverManager.java:579)
[java] at java.sql.DriverManager.getConnection(DriverManager.java:190)
[java] at org.hibernate.connection.DriverManagerConnectionProvider.getC
onnection(DriverManagerConnectionProvider.java:133)
[java] at org.hibernate.jdbc.ConnectionManager.openConnection(Connectio
nManager.java:446)
[java] ... 13 more
[java] at org.jbpm.task.service.persistence.TaskLocalTransactionManager
.begin(TaskLocalTransactionManager.java:42)
[java] ... 7 more
[java] Caused by: org.hibernate.exception.SQLGrammarException: Cannot open
connection
[java] at org.hibernate.exception.SQLStateConverter.convert(SQLStateCon
verter.java:90)
[java] at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExcep
tionHelper.java:66)
[java] at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExcep
tionHelper.java:52)
[java] at org.hibernate.jdbc.ConnectionManager.openConnection(Connectio
nManager.java:449)
[java] at org.hibernate.jdbc.ConnectionManager.getConnection(Connection
Manager.java:167)
[java] at org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:14
2)
[java] at org.hibernate.transaction.JDBCTransaction.begin(JDBCTransacti
on.java:85)
[java] at org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.j
ava:1354)
[java] at org.hibernate.ejb.TransactionImpl.begin(TransactionImpl.java:
38)
[java] ... 8 more
[java] Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException
: Unknown database 'task'
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeC
onstructorAccessorImpl.java:57)
[java] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Del
egatingConstructorAccessorImpl.java:45)
[java] at java.lang.reflect.Constructor.newInstance(Constructor.java:52
5)
[java] at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
[java] at com.mysql.jdbc.Util.getInstance(Util.java:386)
[java] at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1052
)
[java] at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3609)
[java] at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3541)
[java] at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:943)
[java] at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:4113)
[java] at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1308)
[java] at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java
:2336)
[java] at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImp
l.java:2369)
[java] at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java
:2153)
[java] at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:792)
[java] at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47
)
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeC
onstructorAccessorImpl.java:57)
[java] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Del
egatingConstructorAccessorImpl.java:45)
[java] at java.lang.reflect.Constructor.newInstance(Constructor.java:52
5)
[java] at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
[java] at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java
:381)
[java] at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDri
ver.java:305)
[java] at java.sql.DriverManager.getConnection(DriverManager.java:579)
[java] at java.sql.DriverManager.getConnection(DriverManager.java:190)
[java] at org.hibernate.connection.DriverManagerConnectionProvider.getC
onnection(DriverManagerConnectionProvider.java:133)
[java] at org.hibernate.jdbc.ConnectionManager.openConnection(Connectio
nManager.java:446)
[java] ... 13 more
[java] Java Result: 1
start.demo.db:
BUILD SUCCESSFUL
Total time: 8 seconds
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/778049#778049]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years
[jBPM] - Attempt to test human task API on jbpm5.4.CR1 failed
by dany171
dany171 [https://community.jboss.org/people/dany171] created the discussion
"Attempt to test human task API on jbpm5.4.CR1 failed"
To view the discussion, visit: https://community.jboss.org/message/777560#777560
--------------------------------------------------------------
Hi all,
I tried to test the human task API over the jbpm5.4.CR1 version, based on https://community.jboss.org/people/bpmn2user/blog/2011/04/03/jbpm5-human-... https://community.jboss.org/people/bpmn2user/blog/2011/04/03/jbpm5-human-....
I created a maven project and started to setup it , so , I added dependencies into the pom.xml and configuring it to use jBPM5.4.CR1 libraries, because the original example did not compiled.
After that I get the TaskServer running succesfully, I was very happy.
Then I tried to run ProcessTaskAPITest class and in the instruction (the bold line)
|
|
| KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder(); |
|
|
| *kbuilder.add(ResourceFactory.newClassPathResource(process), ResourceType.BPMN2);* |
it throwns the next exception in execution time.
*java.lang.NoSuchMethodError: org.jbpm.workflow.core.node.EndNode.setScope(I)V*
at org.jbpm.bpmn2.xml.EndEventHandler.handleTerminateNode(EndEventHandler.java:116)
at org.jbpm.bpmn2.xml.EndEventHandler.end(EndEventHandler.java:63)
at org.drools.xml.ExtensibleXmlParser.endElement(ExtensibleXmlParser.java:417)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.endElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(Unknown Source)
at org.drools.xml.ExtensibleXmlParser.read(ExtensibleXmlParser.java:296)
at org.drools.xml.ExtensibleXmlParser.read(ExtensibleXmlParser.java:175)
at org.jbpm.compiler.xml.XmlProcessReader.read(XmlProcessReader.java:46)
at org.jbpm.compiler.ProcessBuilderImpl.addProcessFromXml(ProcessBuilderImpl.java:247)
at org.drools.compiler.PackageBuilder.addProcessFromXml(PackageBuilder.java:652)
at org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:688)
at org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:45)
at org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:34)
at com.test.human.api.ProcessTaskAPITest.readKnowledgeBase(ProcessTaskAPITest.java:182)
at com.test.human.api.ProcessTaskAPITest.main(ProcessTaskAPITest.java:116)
I think, it is because of the versions of the dependencies in my pom.xml, because I changed them, but I can't fix it until now.
I'm attaching my project, so, if somebody can take a look and give guideliness I will really appreciate (I have some days trying to run it), or fi anybody can share to me an project testing the human task api with jbpm 5.3 or 5.4 it will be really nice for me.
Thanks in advanced.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/777560#777560]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years