cancel
Showing results for 
Search instead for 
Did you mean: 

Setup errors, my java and ant is ok, please help!

leman
Champ in-the-making
Champ in-the-making
BUILD FAILED
E:\activiti-5.9\setup\build.xml:114: The following error occurred while executin
g this line:
E:\activiti-5.9\setup\build.xml:156: org.h2.jdbc.JdbcSQLException: Connection is
broken: "unexpected status 1148347247" [90067-132]
        at org.h2.message.DbException.getJdbcSQLException(DbException.java:316)
        at org.h2.message.DbException.get(DbException.java:167)
        at org.h2.message.DbException.get(DbException.java:144)
        at org.h2.engine.SessionRemote.done(SessionRemote.java:513)
        at org.h2.engine.SessionRemote.initTransfer(SessionRemote.java:111)
        at org.h2.engine.SessionRemote.connectServer(SessionRemote.java:320)
        at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.jav
a:219)
        at org.h2.engine.SessionRemote.createSession(SessionRemote.java:213)
        at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:110)
        at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:94)
        at org.h2.Driver.connect(Driver.java:58)
        at org.apache.tools.ant.taskdefs.JDBCTask.getConnection(JDBCTask.java:37
0)
        at org.apache.tools.ant.taskdefs.SQLExec.getConnection(SQLExec.java:942)

        at org.apache.tools.ant.taskdefs.SQLExec.execute(SQLExec.java:614)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
a:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:390)
        at org.apache.tools.ant.Target.performTasks(Target.java:411)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
        at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(Single
CheckExecutor.java:38)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
        at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)

        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
a:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:390)
        at org.apache.tools.ant.Target.performTasks(Target.java:411)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
        at org.apache.tools.ant.Main.runBuild(Main.java:809)
        at org.apache.tools.ant.Main.startAnt(Main.java:217)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

Total time: 59 seconds
4 REPLIES 4

p4w3l
Champ in-the-making
Champ in-the-making
what ant task?

narenn
Champ in-the-making
Champ in-the-making
Please help.  I also get exactly the same error.  The ant command is "ant demo.start"

With little bit of research i determined that the error comes while executing the following ant command

ant internal.db.create

I am running Windows 7, Java version build 1.7.0_02-b13,  ant version is 1.7.0RC1

Here's few lines of stack trace with relevant errors …

     [java] Mar 10, 2012 6:23:52 PM org.activiti.engine.impl.cfg.standalone.StandaloneMybatis
TransactionContext rollback
     [java] INFO: Exception during transaction:
     [java] ### Error opening session.  Cause: org.h2.jdbc.JdbcSQLException: Connection is br
oken: "session closed" [90067-132]
     [java] ### Cause: org.h2.jdbc.JdbcSQLException: Connection is broken: "session closed" [
90067-132]
     [java] Mar 10, 2012 6:23:52 PM org.activiti.engine.impl.interceptor.CommandContext excep
tion
     [java] SEVERE: masked exception in command context. for root cause, see below as it will
be rethrown later.
     [java] org.apache.ibatis.exceptions.PersistenceException:
     [java] ### Error opening session.  Cause: org.h2.jdbc.JdbcSQLException: Connection is br
oken: "session closed" [90067-132]
     [java] ### Cause: org.h2.jdbc.JdbcSQLException: Connection is broken: "session closed" [
90067-132]
     [java]     at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFacto
ry.java:8)

narenn
Champ in-the-making
Champ in-the-making
Any ideas please?  i am using the Activiti 5.9.

I am able to start the h2 db and stop it using ant command.  But the step to setup ACT tables fails with the errors i mentioned in the prev post.

Thanks, appreciate your help/suggestions

trademak
Star Contributor
Star Contributor
Hi,

Are you sure the H2 database is up?
Maybe it's a good idea to start with a new fresh and clean installation.

Best regards,