AnsweredAssumed Answered

Installation problem: NPE during db.create target

Question asked by lje67 on May 19, 2011
Latest reply on Nov 29, 2011 by emeka_kanu
I'm having trouble installing the demo.  I get to the db.create target and it fails with a NullPointerException as the root cause.  The entire stack trace of the failure is copied below.  It's quite long.  Any ideas about how to fix this?  Ant reports the build failed for the following reason:


…\activiti-5.5\setup\build.xml:227: org.h2.jdbc.JdbcSQLException: Table "ACT_ID_GROUP" not found; SQL statement:
insert into ACT_ID_GROUP values ('admin',       1, 'System administrator', 'sec
urity-role') [42102-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.command.Parser.readTableOrView(Parser.java:4347)
        at org.h2.command.Parser.readTableOrView(Parser.java:4327)
        at org.h2.command.Parser.parseInsert(Parser.java:908)
        at org.h2.command.Parser.parsePrepared(Parser.java:365)
        at org.h2.command.Parser.parse(Parser.java:278)
        at org.h2.command.Parser.parse(Parser.java:250)
        at org.h2.command.Parser.prepareCommand(Parser.java:222)
        at org.h2.engine.Session.prepareLocal(Session.java:420)
        at org.h2.server.TcpServerThread.process(TcpServerThread.java:224)
        at org.h2.server.TcpServerThread.run(TcpServerThread.java:135)
        at java.lang.Thread.run(Unknown Source)




     [java] SEVERE: Exception while initializing process engine :Error while bui
lding ibatis SqlSessionFactory: XPathFactory#newInstance() failed to create an X
PathFactory for the default object model: http://java.sun.com/jaxp/xpath/dom wit
h the XPathFactoryConfigurationException: javax.xml.xpath.XPathFactoryConfigurat
ionException: No XPathFactory implementation found for the object model: http://
java.sun.com/jaxp/xpath/dom
     [java] org.activiti.engine.ActivitiException: Error while building ibatis S
qlSessionFactory: XPathFactory#newInstance() failed to create an XPathFactory fo
r the default object model: http://java.sun.com/jaxp/xpath/dom with the XPathFac
toryConfigurationException: javax.xml.xpath.XPathFactoryConfigurationException:
No XPathFactory implementation found for the object model: http://java.sun.com/j
axp/xpath/dom
     [java]     at org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl.i
nitSqlSessionFactory(ProcessEngineConfigurationImpl.java:506)
     [java]     at org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl.i
nit(ProcessEngineConfigurationImpl.java:287)
     [java]     at org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl.b
uildProcessEngine(ProcessEngineConfigurationImpl.java:262)
     [java]     at org.activiti.engine.ProcessEngines.buildProcessEngine(Process
Engines.java:177)
     [java]     at org.activiti.engine.ProcessEngines.initProcessEnginFromResour
ce(ProcessEngines.java:150)
     [java]     at org.activiti.engine.ProcessEngines.init(ProcessEngines.java:8
8)
     [java]     at org.activiti.engine.ProcessEngines.getProcessEngine(ProcessEn
gines.java:207)
     [java]     at org.activiti.engine.ProcessEngines.getDefaultProcessEngine(Pr
ocessEngines.java:200)
     [java]     at org.activiti.engine.impl.db.DbSchemaUpdate.main(DbSchemaUpdat
e.java:34)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
     [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
     [java]     at java.lang.reflect.Method.invoke(Method.java:597)
     [java]     at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.jav
a:202)
     [java]     at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava
.java:134)
     [java]     at org.apache.tools.ant.taskdefs.Java.run(Java.java:710)
     [java]     at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:178)

     [java]     at org.apache.tools.ant.taskdefs.Java.execute(Java.java:84)
     [java]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
va:275)
     [java]     at org.apache.tools.ant.Task.perform(Task.java:364)
     [java]     at org.apache.tools.ant.Target.execute(Target.java:341)
     [java]     at org.apache.tools.ant.Target.performTasks(Target.java:369)
     [java]     at org.apache.tools.ant.Project.executeSortedTargets(Project.jav
a:1216)
     [java]     at org.apache.tools.ant.helper.SingleCheckExecutor.executeTarget
s(SingleCheckExecutor.java:37)
     [java]     at org.apache.tools.ant.Project.executeTargets(Project.java:1068
)
     [java]     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
     [java]     at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.j
ava:107)
     [java]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
va:275)
     [java]     at org.apache.tools.ant.Task.perform(Task.java:364)
     [java]     at org.apache.tools.ant.Target.execute(Target.java:341)
     [java]     at org.apache.tools.ant.Target.performTasks(Target.java:369)
     [java]     at org.apache.tools.ant.Project.executeSortedTargets(Project.jav
a:1216)
     [java]     at org.apache.tools.ant.Project.executeTarget(Project.java:1185)

     [java]     at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(De
faultExecutor.java:40)
     [java]     at org.apache.tools.ant.Project.executeTargets(Project.java:1068
)
     [java]     at org.apache.tools.ant.Main.runBuild(Main.java:668)
     [java]     at org.apache.tools.ant.Main.startAnt(Main.java:187)
     [java]     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
     [java]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
     [java] Caused by: java.lang.RuntimeException: XPathFactory#newInstance() fa
iled to create an XPathFactory for the default object model: http://java.sun.com
/jaxp/xpath/dom with the XPathFactoryConfigurationException: javax.xml.xpath.XPa
thFactoryConfigurationException: No XPathFactory implementation found for the ob
ject model: http://java.sun.com/jaxp/xpath/dom
     [java]     at javax.xml.xpath.XPathFactory.newInstance(XPathFactory.java:10
1)
     [java]     at org.apache.ibatis.parsing.XPathParser.commonConstructor(XPath
Parser.java:225)
     [java]     at org.apache.ibatis.parsing.XPathParser.<init>(XPathParser.java
:85)
     [java]     at org.apache.ibatis.builder.xml.XMLConfigBuilder.<init>(XMLConf
igBuilder.java:61)
     [java]     at org.apache.ibatis.builder.xml.XMLConfigBuilder.<init>(XMLConf
igBuilder.java:44)
     [java]     at org.apache.ibatis.builder.xml.XMLConfigBuilder.<init>(XMLConf
igBuilder.java:34)
     [java]     at org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl.i
nitSqlSessionFactory(ProcessEngineConfigurationImpl.java:497)
     [java]     … 38 more
     [java] java.lang.NullPointerException
     [java]     at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava
.java:180)
     [java]     at org.apache.tools.ant.taskdefs.Java.run(Java.java:710)
     [java]     at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:178)

     [java]     at org.apache.tools.ant.taskdefs.Java.execute(Java.java:84)
     [java]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
va:275)
     [java]     at org.apache.tools.ant.Task.perform(Task.java:364)
     [java]     at org.apache.tools.ant.Target.execute(Target.java:341)
     [java]     at org.apache.tools.ant.Target.performTasks(Target.java:369)
     [java]     at org.apache.tools.ant.Project.executeSortedTargets(Project.jav
a:1216)
     [java]     at org.apache.tools.ant.helper.SingleCheckExecutor.executeTarget
s(SingleCheckExecutor.java:37)
     [java]     at org.apache.tools.ant.Project.executeTargets(Project.java:1068
)
     [java]     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
     [java]     at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.j
ava:107)
     [java]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
va:275)
     [java]     at org.apache.tools.ant.Task.perform(Task.java:364)
     [java]     at org.apache.tools.ant.Target.execute(Target.java:341)
     [java]     at org.apache.tools.ant.Target.performTasks(Target.java:369)
     [java]     at org.apache.tools.ant.Project.executeSortedTargets(Project.jav
a:1216)
     [java]     at org.apache.tools.ant.Project.executeTarget(Project.java:1185)

     [java]     at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(De
faultExecutor.java:40)
     [java]     at org.apache.tools.ant.Project.executeTargets(Project.java:1068
)
     [java]     at org.apache.tools.ant.Main.runBuild(Main.java:668)
     [java]     at org.apache.tools.ant.Main.startAnt(Main.java:187)
     [java]     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
     [java]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
     [java] Caused by: java.lang.NullPointerException
     [java]     at org.activiti.engine.impl.db.DbSchemaUpdate.main(DbSchemaUpdat
e.java:35)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
     [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
     [java]     at java.lang.reflect.Method.invoke(Method.java:597)
     [java]     at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.jav
a:202)
     [java]     at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava
.java:134)
     [java]     … 24 more
     [java] — Nested Exception —
     [java] java.lang.NullPointerException
     [java]     at org.activiti.engine.impl.db.DbSchemaUpdate.main(DbSchemaUpdat
e.java:35)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
     [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
     [java]     at java.lang.reflect.Method.invoke(Method.java:597)
     [java]     at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.jav
a:202)
     [java]     at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava
.java:134)
     [java]     at org.apache.tools.ant.taskdefs.Java.run(Java.java:710)
     [java]     at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:178)

     [java]     at org.apache.tools.ant.taskdefs.Java.execute(Java.java:84)
     [java]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
va:275)
     [java]     at org.apache.tools.ant.Task.perform(Task.java:364)
     [java]     at org.apache.tools.ant.Target.execute(Target.java:341)
     [java]     at org.apache.tools.ant.Target.performTasks(Target.java:369)
     [java]     at org.apache.tools.ant.Project.executeSortedTargets(Project.jav
a:1216)
     [java]     at org.apache.tools.ant.helper.SingleCheckExecutor.executeTarget
s(SingleCheckExecutor.java:37)
     [java]     at org.apache.tools.ant.Project.executeTargets(Project.java:1068
)
     [java]     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
     [java]     at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.j
ava:107)
     [java]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
va:275)
     [java]     at org.apache.tools.ant.Task.perform(Task.java:364)
     [java]     at org.apache.tools.ant.Target.execute(Target.java:341)
     [java]     at org.apache.tools.ant.Target.performTasks(Target.java:369)
     [java]     at org.apache.tools.ant.Project.executeSortedTargets(Project.jav
a:1216)
     [java]     at org.apache.tools.ant.Project.executeTarget(Project.java:1185)

     [java]     at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(De
faultExecutor.java:40)
     [java]     at org.apache.tools.ant.Project.executeTargets(Project.java:1068
)
     [java]     at org.apache.tools.ant.Main.runBuild(Main.java:668)
     [java]     at org.apache.tools.ant.Main.startAnt(Main.java:187)
     [java]     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
     [java]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)

Outcomes