2017-02-24 16:38:09,342 INFO [main] GoSslSocketConnector:78 - Included ciphers: null 2017-02-24 16:38:09,343 INFO [main] GoSslSocketConnector:79 - Excluded ciphers: null 2017-02-24 16:38:09,344 INFO [main] GoSslSocketConnector:80 - Included protocols: null 2017-02-24 16:38:09,344 INFO [main] GoSslSocketConnector:81 - Excluded protocols: null 2017-02-24 16:38:09,344 INFO [main] GoSslSocketConnector:82 - Renegotiation Allowed: true 2017-02-24 16:38:09,393 INFO [main] Jetty9Server:161 - Configuring Jetty using /Users/mosquitodigital/Library/Application Support/Go Server/config/jetty.xml 2017-02-24 16:38:09,434 INFO [main] GoServer:98 - Including addons: 2017-02-24 16:38:18,882 INFO [main] H2Database:128 - [db] Using connection configuration jdbc:h2:db/h2db/cruise;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE;MVCC=FALSE;CACHE_SIZE=131072;TRACE_LEVEL_FILE=1;TRACE_MAX_FILE_SIZE=16;DATABASE_EVENT_LISTENER='com.thoughtworks.go.server.util.H2EventListener' [User: sa] 2017-02-24 16:38:18,889 INFO [main] H2Database:118 - Creating data source with url=jdbc:h2:db/h2db/cruise;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE;MVCC=FALSE;CACHE_SIZE=131072;TRACE_LEVEL_FILE=1;TRACE_MAX_FILE_SIZE=16;DATABASE_EVENT_LISTENER='com.thoughtworks.go.server.util.H2EventListener' 2017-02-24 16:38:18,892 INFO [main] DbDeployMigration:48 - Upgrading database at org.apache.commons.dbcp.BasicDataSource@2d0dd3d. This might take a while depending on the size of the database. Reading change scripts from directory /Users/mosquitodigital/Library/Application Support/Go Server/db/h2deltas... dbdeploy v2.11 2017-02-24 16:38:18,971 INFO [main] H2EventListener:30 - Initializing database: jdbc:h2:db/h2db/cruise Creating index SYS:SYS_ID 0% 2017-02-24 16:38:19,283 INFO [main] H2EventListener:82 - Creating index SYS:SYS_ID 0% Creating index SYS:SYS_ID 0% 2017-02-24 16:38:19,289 INFO [main] H2EventListener:82 - Creating index SYS:SYS_ID 0% 2017-02-24 16:38:19,478 INFO [main] H2EventListener:34 - Database is opened 2017-02-24 16:38:19,490 INFO [main] H2EventListener:30 - Initializing database: jdbc:h2:db/h2db/cruise Changes currently applied to database: 1..90, 221001, 230001..230009, 240001, 240002, 300001..300011, 1202001..1202003, 1203002..1203005, 1301001, 1302001, 1303001..1303004, 1304001, 1401001, 1403001, 1403002, 1501001..1501003, 1502001, 1503001, 1503002 Scripts available: 1..90, 221001, 230001..230009, 240001, 240002, 300001..300011, 1202001..1202003, 1203002..1203005, 1301001, 1302001, 1303001..1303004, 1304001, 1401001, 1403001, 1403002, 1501001..1501003, 1502001, 1503001, 1503002 To be applied: (none) 2017-02-24 16:38:19,514 INFO [main] H2EventListener:30 - Initializing database: jdbc:h2:db/h2db/cruise 2017-02-24 16:38:19,520 INFO [main] DbDeployMigration:63 - Database upgraded 2017-02-24 16:38:19,522 INFO [main] H2EventListener:77 - Closing database 2017-02-24 16:38:19,541 INFO [main] H2Database:128 - [db] Using connection configuration jdbc:h2:db/h2db/cruise;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE;MVCC=TRUE;CACHE_SIZE=131072;TRACE_LEVEL_FILE=1;TRACE_MAX_FILE_SIZE=16;DATABASE_EVENT_LISTENER='com.thoughtworks.go.server.util.H2EventListener' [User: sa] 2017-02-24 16:38:19,542 INFO [main] H2Database:118 - Creating data source with url=jdbc:h2:db/h2db/cruise;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE;MVCC=TRUE;CACHE_SIZE=131072;TRACE_LEVEL_FILE=1;TRACE_MAX_FILE_SIZE=16;DATABASE_EVENT_LISTENER='com.thoughtworks.go.server.util.H2EventListener' 2017-02-24 16:38:20,769 INFO [main] H2EventListener:30 - Initializing database: jdbc:h2:db/h2db/cruise Creating index SYS:SYS_ID 0% 2017-02-24 16:38:20,824 INFO [main] H2EventListener:82 - Creating index SYS:SYS_ID 0% Creating index SYS:SYS_ID 0% 2017-02-24 16:38:20,826 INFO [main] H2EventListener:82 - Creating index SYS:SYS_ID 0% 2017-02-24 16:38:20,944 INFO [main] H2EventListener:34 - Database is opened 2017-02-24 16:38:21,058 INFO [main] H2EventListener:30 - Initializing database: jdbc:h2:db/h2db/cruise 2017-02-24 16:38:21,165 WARN [main] ConfigurationFactory:134 - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/Users/mosquitodigital/Library/Application%20Support/Go%20Server/work/jetty-0.0.0.0-8153-cruise.war-_go-any-/webapp/WEB-INF/lib/ehcache-core-2.0.0.jar!/ehcache-failsafe.xml 2017-02-24 16:38:21,208 WARN [main] CacheManager:566 - Creating a new instance of CacheManager using the diskStorePath "/var/folders/__/z3k_jfjj75360p3427q3fsk80000gn/T/" which is already used by an existing CacheManager. The source of the configuration was net.sf.ehcache.config.generator.ConfigurationSource$DefaultConfigurationSource@71f68411. The diskStore path for this CacheManager will be set to /var/folders/__/z3k_jfjj75360p3427q3fsk80000gn/T//ehcache_auto_created_1487954301208. To avoid this warning consider using the CacheManager factory methods to create a singleton CacheManager or specifying a separate ehcache configuration (ehcache.xml) for each CacheManager instance. 2017-02-24 16:38:21,363 WARN [main] EhCacheProvider:93 - Could not find configuration [com.thoughtworks.go.domain.Plugin]; using defaults. 2017-02-24 16:38:21,380 WARN [main] EhCacheProvider:93 - Could not find configuration [com.thoughtworks.go.domain.NotificationFilter]; using defaults. 2017-02-24 16:38:21,394 WARN [main] EhCacheProvider:93 - Could not find configuration [com.thoughtworks.go.domain.User]; using defaults. 2017-02-24 16:38:21,399 WARN [main] EhCacheProvider:93 - Could not find configuration [com.thoughtworks.go.config.EnvironmentVariableConfig]; using defaults. 2017-02-24 16:38:21,427 WARN [main] EhCacheProvider:93 - Could not find configuration [com.thoughtworks.go.domain.User.notificationFilters]; using defaults. 2017-02-24 16:38:21,505 WARN [main] EhCacheProvider:93 - Could not find configuration [org.hibernate.cache.UpdateTimestampsCache]; using defaults. 2017-02-24 16:38:21,510 WARN [main] EhCacheProvider:93 - Could not find configuration [org.hibernate.cache.StandardQueryCache]; using defaults. 2017-02-24 16:38:22,761 INFO [main] ServerVersion:69 - [Startup] Go Version: 16.4.0(3223-71ed3f0abf6ee673d1f0c7ca4e2262afae38dea6) 2017-02-24 16:38:22,783 INFO [main] ServerVersion:70 - [Startup] PID: 1628 2017-02-24 16:38:22,784 INFO [main] ServerVersion:71 - [Startup] JVM properties: {java.runtime.name=Java(TM) SE Runtime Environment, java.protocol.handler.pkgs=com.simontuffs, sun.boot.library.path=/Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/jre/lib, java.vm.version=24.71-b01, gopherProxySet=false, java.vm.vendor=Oracle Corporation, java.vendor.url=http://java.oracle.com/, path.separator=:, java.vm.name=Java HotSpot(TM) 64-Bit Server VM, file.encoding.pkg=sun.io, sun.java.launcher=SUN_STANDARD, user.country=US, sun.os.patch.level=unknown, java.vm.specification.name=Java Virtual Machine Specification, user.dir=/Users/mosquitodigital/Library/Application Support/Go Server, jetty.xml.file.name=jetty.xml, java.runtime.version=1.7.0_71-b14, java.awt.graphicsenv=sun.awt.CGraphicsEnvironment, java.endorsed.dirs=/Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/jre/lib/endorsed, os.arch=x86_64, java.io.tmpdir=/var/folders/__/z3k_jfjj75360p3427q3fsk80000gn/T/, line.separator= , java.vm.specification.vendor=Oracle Corporation, os.name=Mac OS X, cruise.config.dir=/Users/mosquitodigital/Library/Application Support/Go Server/config/, sun.jnu.encoding=UTF-8, java.library.path=/Users/mosquitodigital/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:., java.specification.name=Java Platform API Specification, java.class.version=51.0, jetty.home=/Users/mosquitodigital/Library/Application Support/Go Server, sun.management.compiler=HotSpot 64-Bit Tiered Compilers, os.version=10.11.6, cruise.server.port=8153, http.nonProxyHosts=local|*.local|169.254/16|*.169.254/16, user.home=/Users/mosquitodigital, user.timezone=Europe/London, java.awt.printerjob=sun.lwawt.macosx.CPrinterJob, file.encoding=UTF-8, java.specification.version=1.7, java.class.path=/Users/mosquitodigital/Downloads/Go Server.app/Contents/Resources/go.jar, user.name=mosquitodigital, jetty.base=/Users/mosquitodigital/Library/Application Support/Go Server, cruise.config.file=/Users/mosquitodigital/Library/Application Support/Go Server/config/cruise-config.xml, jruby.compile.invokedynamic=false, java.vm.specification.version=1.7, sun.java.command=/Users/mosquitodigital/Downloads/Go Server.app/Contents/Resources/go.jar, java.home=/Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/jre, sun.arch.data.model=64, user.language=en, java.specification.vendor=Oracle Corporation, awt.toolkit=sun.lwawt.macosx.LWCToolkit, java.vm.info=mixed mode, java.version=1.7.0_71, java.ext.dirs=/Users/mosquitodigital/Library/Java/Extensions:/Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/jre/lib/ext:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java, sun.boot.class.path=/Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/jre/lib/resources.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/jre/lib/rt.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/jre/lib/sunrsasign.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/jre/lib/jsse.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/jre/lib/jce.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/jre/lib/jfr.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/jre/classes, java.vendor=Oracle Corporation, net.sf.ehcache.skipUpdateCheck=true, file.separator=/, apple.awt.UIElement=true, java.vendor.url.bug=http://bugreport.sun.com/bugreport/, sun.io.unicode.encoding=UnicodeBig, sun.cpu.endian=little, cruise.server.ssl.port=8154, socksNonProxyHosts=local|*.local|169.254/16|*.169.254/16, rails.use.compressed.js=true, ftp.nonProxyHosts=local|*.local|169.254/16|*.169.254/16, sun.cpu.isalist=} 2017-02-24 16:38:22,789 INFO [main] ServerVersion:72 - [Startup] Environment Variables: {OLDPWD=/, SHELL=/bin/bash, TMPDIR=/var/folders/__/z3k_jfjj75360p3427q3fsk80000gn/T/, SHLVL=0, __CF_USER_TEXT_ENCODING=0x1F5:0x0:0x0, PATH=/usr/bin:/bin:/usr/sbin:/sbin, JAVA_MAIN_CLASS_1477=com.thoughtworks.go.server.util.GoMacLauncher, XPC_FLAGS=0x0, JAVA_MAIN_CLASS_1628=com.simontuffs.onejar.Boot, USER=mosquitodigital, PWD=/Users/mosquitodigital/Library/Application Support/Go Server, HOME=/Users/mosquitodigital, XPC_SERVICE_NAME=com.thoughtworks.studios.cruise.server.198752, LOGNAME=mosquitodigital, Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.XkrTZddHjN/Render, SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.H72sQAWDxU/Listeners} Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. Compiler warnings: WARNING: 'org.apache.xerces.jaxp.SAXParserImpl: Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized.' Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. Compiler warnings: WARNING: 'org.apache.xerces.jaxp.SAXParserImpl: Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized.' Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. Compiler warnings: WARNING: 'org.apache.xerces.jaxp.SAXParserImpl: Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized.' Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. Compiler warnings: WARNING: 'org.apache.xerces.jaxp.SAXParserImpl: Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized.' Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. Compiler warnings: WARNING: 'org.apache.xerces.jaxp.SAXParserImpl: Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized.' 2017-02-24 16:38:30,661 INFO [main] MagicalGoConfigXmlWriter:91 - [Serializing Config] Generating config partial. 2017-02-24 16:38:30,766 INFO [main] GoFileConfigDataSource:126 - Config file changed at 1487954310000 2017-02-24 16:38:30,768 INFO [main] GoFileConfigDataSource:127 - Reloading config file: /Users/mosquitodigital/Library/Application Support/Go Server/config/cruise-config.xml 2017-02-24 16:38:31,269 INFO [main] MagicalGoConfigXmlWriter:91 - [Serializing Config] Generating config partial. 2017-02-24 16:38:31,571 INFO [main] CachedFileGoConfig:235 - About to notify config listeners 2017-02-24 16:38:31,572 INFO [main] CachedFileGoConfig:243 - About to notify config listeners 2017-02-24 16:38:31,573 INFO [main] CachedFileGoConfig:251 - Finished notifying all listeners 2017-02-24 16:38:31,573 INFO [main] CachedFileGoConfig:245 - Finished notifying all listeners 2017-02-24 16:38:31,592 INFO [main] BuildAssignmentService:195 - [Configuration Changed] Removing jobs for pipelines that no longer exist in configuration. 2017-02-24 16:38:31,663 INFO [main] PipelineRepository:88 - Start updating pipeline timeline 2017-02-24 16:38:33,822 WARN [main] PipelineRepository:109 - updating in memory pipeline-timeline took: 2149 ms 2017-02-24 16:38:34,473 INFO [main] PipelineRepository:92 - Pipeline timeline updated 2017-02-24 16:38:34,476 INFO [main] PipelineSqlMapDao:94 - Loading active pipelines into memory. 2017-02-24 16:38:34,477 INFO [main] PipelineSqlMapDao:390 - Retriving Active Pipelines from Database... 2017-02-24 16:38:34,554 ERROR [main] H2EventListener:38 - Exception thrown from database on sql statement: SELECT pipelines.id as pipelineId, pipelines.name as pipelineName, buildCauseType, label, buildCauseMessage, pipelines.counter as pipelineCounter, pipelines.label as pipelineLabel, pipelines.naturalOrder as naturalOrder, pipelines.comment as pipelineComment, stages.name as stageName,stages.counter as stageCounter, stages.id as stageId, stages.approvedBy as approvedBy, stages.approvalType as approvalType, stages.result as stageResult, stages.latestRun, stages.rerunOfCounter, builds.id as buildId, builds.name as buildName, builds.state as buildState, builds.result as buildResult, builds.scheduledDate as scheduledDate, stages.orderId as orderId FROM pipelines INNER JOIN stages ON stages.pipelineId = pipelines.id AND stages.latestRun = true INNER JOIN builds ON builds.stageId = stages.id AND builds.ignored != true INNER JOIN ( SELECT stages.pipelineId AS id FROM stages WHERE stages.state = 'Building' AND latestRun = true UNION SELECT max(pipelines.id) AS id FROM pipelines GROUP BY pipelines.name ) pipelines_to_show ON pipelines.id = pipelines_to_show.id ORDER BY pipelines.id DESC, stages.orderId ASC org.h2.jdbc.JdbcSQLException: General error: "java.lang.ClassCastException: org.h2.index.PageBtreeLeaf cannot be cast to org.h2.index.PageBtreeNode"; SQL statement: SELECT pipelines.id as pipelineId, pipelines.name as pipelineName, buildCauseType, label, buildCauseMessage, pipelines.counter as pipelineCounter, pipelines.label as pipelineLabel, pipelines.naturalOrder as naturalOrder, pipelines.comment as pipelineComment, stages.name as stageName,stages.counter as stageCounter, stages.id as stageId, stages.approvedBy as approvedBy, stages.approvalType as approvalType, stages.result as stageResult, stages.latestRun, stages.rerunOfCounter, builds.id as buildId, builds.name as buildName, builds.state as buildState, builds.result as buildResult, builds.scheduledDate as scheduledDate, stages.orderId as orderId FROM pipelines INNER JOIN stages ON stages.pipelineId = pipelines.id AND stages.latestRun = true INNER JOIN builds ON builds.stageId = stages.id AND builds.ignored != true INNER JOIN ( SELECT stages.pipelineId AS id FROM stages WHERE stages.state = 'Building' AND latestRun = true UNION SELECT max(pipelines.id) AS id FROM pipelines GROUP BY pipelines.name ) pipelines_to_show ON pipelines.id = pipelines_to_show.id ORDER BY pipelines.id DESC, stages.orderId ASC [50000-168] at org.h2.message.DbException.getJdbcSQLException(DbException.java:329) at org.h2.message.DbException.get(DbException.java:158) at org.h2.message.DbException.convert(DbException.java:281) at org.h2.command.Command.executeQuery(Command.java:195) at org.h2.jdbc.JdbcPreparedStatement.execute(JdbcPreparedStatement.java:190) at org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:172) at org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:172) at com.ibatis.sqlmap.engine.execution.SqlExecutor.executeQuery(SqlExecutor.java:185) at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.sqlExecuteQuery(MappedStatement.java:221) at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryWithCallback(MappedStatement.java:189) at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryForList(MappedStatement.java:139) at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:567) at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:541) at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.queryForList(SqlMapSessionImpl.java:118) at org.springframework.orm.ibatis.SqlMapClientTemplate$3.doInSqlMapClient(SqlMapClientTemplate.java:295) at org.springframework.orm.ibatis.SqlMapClientTemplate$3.doInSqlMapClient(SqlMapClientTemplate.java:1) at org.springframework.orm.ibatis.SqlMapClientTemplate.execute(SqlMapClientTemplate.java:200) at com.thoughtworks.go.server.transaction.SqlMapClientDaoSupport$SqlMapClientTemplate.execute(SqlMapClientDaoSupport.java:112) at org.springframework.orm.ibatis.SqlMapClientTemplate.queryForList(SqlMapClientTemplate.java:293) at com.thoughtworks.go.server.transaction.SqlMapClientDaoSupport$SqlMapClientTemplate.access$601(SqlMapClientDaoSupport.java:39) at com.thoughtworks.go.server.transaction.SqlMapClientDaoSupport$SqlMapClientTemplate$5.execute(SqlMapClientDaoSupport.java:105) at com.thoughtworks.go.server.transaction.SqlMapClientDaoSupport$SqlMapClientTemplate$5.execute(SqlMapClientDaoSupport.java:103) at com.thoughtworks.go.server.transaction.SqlMapClientDaoSupport$SqlMapClientTemplate.executeInternal(SqlMapClientDaoSupport.java:120) at com.thoughtworks.go.server.transaction.SqlMapClientDaoSupport$SqlMapClientTemplate.queryForList(SqlMapClientDaoSupport.java:103) at org.springframework.orm.ibatis.SqlMapClientTemplate.queryForList(SqlMapClientTemplate.java:287) at com.thoughtworks.go.server.dao.PipelineSqlMapDao.getAllPIMs(PipelineSqlMapDao.java:401) at com.thoughtworks.go.server.dao.PipelineSqlMapDao.cacheActivePipelines(PipelineSqlMapDao.java:391) at com.thoughtworks.go.server.dao.PipelineSqlMapDao.initialize(PipelineSqlMapDao.java:95) at com.thoughtworks.go.server.initializers.ApplicationInitializer.onApplicationEvent(ApplicationInitializer.java:127) at com.thoughtworks.go.server.initializers.ApplicationInitializer.onApplicationEvent(ApplicationInitializer.java:48) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:327) at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:941) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:475) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111) at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:800) at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:444) at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:791) at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:294) at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1349) at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1342) at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741) at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:505) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114) at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132) at org.eclipse.jetty.server.Server.start(Server.java:387) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114) at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61) at org.eclipse.jetty.server.Server.doStart(Server.java:354) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at com.thoughtworks.go.server.Jetty9Server.start(Jetty9Server.java:89) at com.thoughtworks.go.server.GoServer.startServer(GoServer.java:71) at com.thoughtworks.go.server.GoServer.go(GoServer.java:63) at com.thoughtworks.go.server.util.GoLauncher.main(GoLauncher.java:31) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.simontuffs.onejar.Boot.run(Boot.java:306) at com.simontuffs.onejar.Boot.main(Boot.java:159) Caused by: java.lang.ClassCastException: org.h2.index.PageBtreeLeaf cannot be cast to org.h2.index.PageBtreeNode at org.h2.index.PageBtreeLeaf.nextPage(PageBtreeLeaf.java:322) at org.h2.index.PageBtreeCursor.next(PageBtreeCursor.java:59) at org.h2.index.MultiVersionCursor.step(MultiVersionCursor.java:73) at org.h2.index.MultiVersionCursor.loadNext(MultiVersionCursor.java:57) at org.h2.index.MultiVersionCursor.next(MultiVersionCursor.java:105) at org.h2.index.IndexCursor.next(IndexCursor.java:238) at org.h2.table.TableFilter.next(TableFilter.java:353) at org.h2.command.dml.Select.queryGroupSorted(Select.java:159) at org.h2.command.dml.Select.queryWithoutCache(Select.java:611) at org.h2.command.dml.Query.query(Query.java:307) at org.h2.command.dml.Query.query(Query.java:277) at org.h2.command.dml.SelectUnion.queryWithoutCache(SelectUnion.java:179) at org.h2.command.dml.SelectUnion.query(SelectUnion.java:391) at org.h2.command.dml.Query.query(Query.java:277) at org.h2.index.ViewIndex.find(ViewIndex.java:244) at org.h2.index.BaseIndex.find(BaseIndex.java:102) at org.h2.index.IndexCursor.find(IndexCursor.java:145) at org.h2.table.TableFilter.next(TableFilter.java:322) at org.h2.command.dml.Select.queryFlat(Select.java:513) at org.h2.command.dml.Select.queryWithoutCache(Select.java:618) at org.h2.command.dml.Query.query(Query.java:307) at org.h2.command.dml.Query.query(Query.java:277) at org.h2.command.dml.Query.query(Query.java:36) at org.h2.command.CommandContainer.query(CommandContainer.java:86) at org.h2.command.Command.executeQuery(Command.java:191) ... 62 more 2017-02-24 16:38:34,658 INFO [main] H2EventListener:30 - Initializing database: jdbc:h2:db/h2db/cruise 2017-02-24 16:38:34,662 FATAL [main] PipelineSqlMapDao:98 - SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [HY000]; error code [50000]; --- The error occurred in com/thoughtworks/go/server/dao/maps/Pipeline.xml. --- The error occurred while applying a parameter map. --- Check the allActivePipelines-InlineParameterMap. --- Check the statement (query failed). --- Cause: org.h2.jdbc.JdbcSQLException: General error: "java.lang.ClassCastException: org.h2.index.PageBtreeLeaf cannot be cast to org.h2.index.PageBtreeNode"; SQL statement: SELECT pipelines.id as pipelineId, pipelines.name as pipelineName, buildCauseType, label, buildCauseMessage, pipelines.counter as pipelineCounter, pipelines.label as pipelineLabel, pipelines.naturalOrder as naturalOrder, pipelines.comment as pipelineComment, stages.name as stageName,stages.counter as stageCounter, stages.id as stageId, stages.approvedBy as approvedBy, stages.approvalType as approvalType, stages.result as stageResult, stages.latestRun, stages.rerunOfCounter, builds.id as buildId, builds.name as buildName, builds.state as buildState, builds.result as buildResult, builds.scheduledDate as scheduledDate, stages.orderId as orderId FROM pipelines INNER JOIN stages ON stages.pipelineId = pipelines.id AND stages.latestRun = true INNER JOIN builds ON builds.stageId = stages.id AND builds.ignored != true INNER JOIN ( SELECT stages.pipelineId AS id FROM stages WHERE stages.state = 'Building' AND latestRun = true UNION SELECT max(pipelines.id) AS id FROM pipelines GROUP BY pipelines.name ) pipelines_to_show ON pipelines.id = pipelines_to_show.id ORDER BY pipelines.id DESC, stages.orderId ASC [50000-168]; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurred in com/thoughtworks/go/server/dao/maps/Pipeline.xml. --- The error occurred while applying a parameter map. --- Check the allActivePipelines-InlineParameterMap. --- Check the statement (query failed). --- Cause: org.h2.jdbc.JdbcSQLException: General error: "java.lang.ClassCastException: org.h2.index.PageBtreeLeaf cannot be cast to org.h2.index.PageBtreeNode"; SQL statement: SELECT pipelines.id as pipelineId, pipelines.name as pipelineName, buildCauseType, label, buildCauseMessage, pipelines.counter as pipelineCounter, pipelines.label as pipelineLabel, pipelines.naturalOrder as naturalOrder, pipelines.comment as pipelineComment, stages.name as stageName,stages.counter as stageCounter, stages.id as stageId, stages.approvedBy as approvedBy, stages.approvalType as approvalType, stages.result as stageResult, stages.latestRun, stages.rerunOfCounter, builds.id as buildId, builds.name as buildName, builds.state as buildState, builds.result as buildResult, builds.scheduledDate as scheduledDate, stages.orderId as orderId FROM pipelines INNER JOIN stages ON stages.pipelineId = pipelines.id AND stages.latestRun = true INNER JOIN builds ON builds.stageId = stages.id AND builds.ignored != true INNER JOIN ( SELECT stages.pipelineId AS id FROM stages WHERE stages.state = 'Building' AND latestRun = true UNION SELECT max(pipelines.id) AS id FROM pipelines GROUP BY pipelines.name ) pipelines_to_show ON pipelines.id = pipelines_to_show.id ORDER BY pipelines.id DESC, stages.orderId ASC [50000-168] org.springframework.jdbc.UncategorizedSQLException: SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [HY000]; error code [50000]; --- The error occurred in com/thoughtworks/go/server/dao/maps/Pipeline.xml. --- The error occurred while applying a parameter map. --- Check the allActivePipelines-InlineParameterMap. --- Check the statement (query failed). --- Cause: org.h2.jdbc.JdbcSQLException: General error: "java.lang.ClassCastException: org.h2.index.PageBtreeLeaf cannot be cast to org.h2.index.PageBtreeNode"; SQL statement: SELECT pipelines.id as pipelineId, pipelines.name as pipelineName, buildCauseType, label, buildCauseMessage, pipelines.counter as pipelineCounter, pipelines.label as pipelineLabel, pipelines.naturalOrder as naturalOrder, pipelines.comment as pipelineComment, stages.name as stageName,stages.counter as stageCounter, stages.id as stageId, stages.approvedBy as approvedBy, stages.approvalType as approvalType, stages.result as stageResult, stages.latestRun, stages.rerunOfCounter, builds.id as buildId, builds.name as buildName, builds.state as buildState, builds.result as buildResult, builds.scheduledDate as scheduledDate, stages.orderId as orderId FROM pipelines INNER JOIN stages ON stages.pipelineId = pipelines.id AND stages.latestRun = true INNER JOIN builds ON builds.stageId = stages.id AND builds.ignored != true INNER JOIN ( SELECT stages.pipelineId AS id FROM stages WHERE stages.state = 'Building' AND latestRun = true UNION SELECT max(pipelines.id) AS id FROM pipelines GROUP BY pipelines.name ) pipelines_to_show ON pipelines.id = pipelines_to_show.id ORDER BY pipelines.id DESC, stages.orderId ASC [50000-168]; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurred in com/thoughtworks/go/server/dao/maps/Pipeline.xml. --- The error occurred while applying a parameter map. --- Check the allActivePipelines-InlineParameterMap. --- Check the statement (query failed). --- Cause: org.h2.jdbc.JdbcSQLException: General error: "java.lang.ClassCastException: org.h2.index.PageBtreeLeaf cannot be cast to org.h2.index.PageBtreeNode"; SQL statement: SELECT pipelines.id as pipelineId, pipelines.name as pipelineName, buildCauseType, label, buildCauseMessage, pipelines.counter as pipelineCounter, pipelines.label as pipelineLabel, pipelines.naturalOrder as naturalOrder, pipelines.comment as pipelineComment, stages.name as stageName,stages.counter as stageCounter, stages.id as stageId, stages.approvedBy as approvedBy, stages.approvalType as approvalType, stages.result as stageResult, stages.latestRun, stages.rerunOfCounter, builds.id as buildId, builds.name as buildName, builds.state as buildState, builds.result as buildResult, builds.scheduledDate as scheduledDate, stages.orderId as orderId FROM pipelines INNER JOIN stages ON stages.pipelineId = pipelines.id AND stages.latestRun = true INNER JOIN builds ON builds.stageId = stages.id AND builds.ignored != true INNER JOIN ( SELECT stages.pipelineId AS id FROM stages WHERE stages.state = 'Building' AND latestRun = true UNION SELECT max(pipelines.id) AS id FROM pipelines GROUP BY pipelines.name ) pipelines_to_show ON pipelines.id = pipelines_to_show.id ORDER BY pipelines.id DESC, stages.orderId ASC [50000-168] at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:83) at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:80) at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:80) at org.springframework.orm.ibatis.SqlMapClientTemplate.execute(SqlMapClientTemplate.java:203) at com.thoughtworks.go.server.transaction.SqlMapClientDaoSupport$SqlMapClientTemplate.execute(SqlMapClientDaoSupport.java:112) at org.springframework.orm.ibatis.SqlMapClientTemplate.queryForList(SqlMapClientTemplate.java:293) at com.thoughtworks.go.server.transaction.SqlMapClientDaoSupport$SqlMapClientTemplate.access$601(SqlMapClientDaoSupport.java:39) at com.thoughtworks.go.server.transaction.SqlMapClientDaoSupport$SqlMapClientTemplate$5.execute(SqlMapClientDaoSupport.java:105) at com.thoughtworks.go.server.transaction.SqlMapClientDaoSupport$SqlMapClientTemplate$5.execute(SqlMapClientDaoSupport.java:103) at com.thoughtworks.go.server.transaction.SqlMapClientDaoSupport$SqlMapClientTemplate.executeInternal(SqlMapClientDaoSupport.java:120) at com.thoughtworks.go.server.transaction.SqlMapClientDaoSupport$SqlMapClientTemplate.queryForList(SqlMapClientDaoSupport.java:103) at org.springframework.orm.ibatis.SqlMapClientTemplate.queryForList(SqlMapClientTemplate.java:287) at com.thoughtworks.go.server.dao.PipelineSqlMapDao.getAllPIMs(PipelineSqlMapDao.java:401) at com.thoughtworks.go.server.dao.PipelineSqlMapDao.cacheActivePipelines(PipelineSqlMapDao.java:391) at com.thoughtworks.go.server.dao.PipelineSqlMapDao.initialize(PipelineSqlMapDao.java:95) at com.thoughtworks.go.server.initializers.ApplicationInitializer.onApplicationEvent(ApplicationInitializer.java:127) at com.thoughtworks.go.server.initializers.ApplicationInitializer.onApplicationEvent(ApplicationInitializer.java:48) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:327) at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:941) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:475) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111) at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:800) at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:444) at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:791) at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:294) at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1349) at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1342) at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741) at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:505) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114) at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132) at org.eclipse.jetty.server.Server.start(Server.java:387) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114) at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61) at org.eclipse.jetty.server.Server.doStart(Server.java:354) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at com.thoughtworks.go.server.Jetty9Server.start(Jetty9Server.java:89) at com.thoughtworks.go.server.GoServer.startServer(GoServer.java:71) at com.thoughtworks.go.server.GoServer.go(GoServer.java:63) at com.thoughtworks.go.server.util.GoLauncher.main(GoLauncher.java:31) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.simontuffs.onejar.Boot.run(Boot.java:306) at com.simontuffs.onejar.Boot.main(Boot.java:159) Caused by: com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurred in com/thoughtworks/go/server/dao/maps/Pipeline.xml. --- The error occurred while applying a parameter map. --- Check the allActivePipelines-InlineParameterMap. --- Check the statement (query failed). --- Cause: org.h2.jdbc.JdbcSQLException: General error: "java.lang.ClassCastException: org.h2.index.PageBtreeLeaf cannot be cast to org.h2.index.PageBtreeNode"; SQL statement: SELECT pipelines.id as pipelineId, pipelines.name as pipelineName, buildCauseType, label, buildCauseMessage, pipelines.counter as pipelineCounter, pipelines.label as pipelineLabel, pipelines.naturalOrder as naturalOrder, pipelines.comment as pipelineComment, stages.name as stageName,stages.counter as stageCounter, stages.id as stageId, stages.approvedBy as approvedBy, stages.approvalType as approvalType, stages.result as stageResult, stages.latestRun, stages.rerunOfCounter, builds.id as buildId, builds.name as buildName, builds.state as buildState, builds.result as buildResult, builds.scheduledDate as scheduledDate, stages.orderId as orderId FROM pipelines INNER JOIN stages ON stages.pipelineId = pipelines.id AND stages.latestRun = true INNER JOIN builds ON builds.stageId = stages.id AND builds.ignored != true INNER JOIN ( SELECT stages.pipelineId AS id FROM stages WHERE stages.state = 'Building' AND latestRun = true UNION SELECT max(pipelines.id) AS id FROM pipelines GROUP BY pipelines.name ) pipelines_to_show ON pipelines.id = pipelines_to_show.id ORDER BY pipelines.id DESC, stages.orderId ASC [50000-168] at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryWithCallback(MappedStatement.java:201) at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryForList(MappedStatement.java:139) at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:567) at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:541) at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.queryForList(SqlMapSessionImpl.java:118) at org.springframework.orm.ibatis.SqlMapClientTemplate$3.doInSqlMapClient(SqlMapClientTemplate.java:295) at org.springframework.orm.ibatis.SqlMapClientTemplate$3.doInSqlMapClient(SqlMapClientTemplate.java:1) at org.springframework.orm.ibatis.SqlMapClientTemplate.execute(SqlMapClientTemplate.java:200) ... 49 more Caused by: org.h2.jdbc.JdbcSQLException: General error: "java.lang.ClassCastException: org.h2.index.PageBtreeLeaf cannot be cast to org.h2.index.PageBtreeNode"; SQL statement: SELECT pipelines.id as pipelineId, pipelines.name as pipelineName, buildCauseType, label, buildCauseMessage, pipelines.counter as pipelineCounter, pipelines.label as pipelineLabel, pipelines.naturalOrder as naturalOrder, pipelines.comment as pipelineComment, stages.name as stageName,stages.counter as stageCounter, stages.id as stageId, stages.approvedBy as approvedBy, stages.approvalType as approvalType, stages.result as stageResult, stages.latestRun, stages.rerunOfCounter, builds.id as buildId, builds.name as buildName, builds.state as buildState, builds.result as buildResult, builds.scheduledDate as scheduledDate, stages.orderId as orderId FROM pipelines INNER JOIN stages ON stages.pipelineId = pipelines.id AND stages.latestRun = true INNER JOIN builds ON builds.stageId = stages.id AND builds.ignored != true INNER JOIN ( SELECT stages.pipelineId AS id FROM stages WHERE stages.state = 'Building' AND latestRun = true UNION SELECT max(pipelines.id) AS id FROM pipelines GROUP BY pipelines.name ) pipelines_to_show ON pipelines.id = pipelines_to_show.id ORDER BY pipelines.id DESC, stages.orderId ASC [50000-168] at org.h2.message.DbException.getJdbcSQLException(DbException.java:329) at org.h2.message.DbException.get(DbException.java:158) at org.h2.message.DbException.convert(DbException.java:281) at org.h2.command.Command.executeQuery(Command.java:195) at org.h2.jdbc.JdbcPreparedStatement.execute(JdbcPreparedStatement.java:190) at org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:172) at org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:172) at com.ibatis.sqlmap.engine.execution.SqlExecutor.executeQuery(SqlExecutor.java:185) at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.sqlExecuteQuery(MappedStatement.java:221) at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryWithCallback(MappedStatement.java:189) ... 56 more Caused by: java.lang.ClassCastException: org.h2.index.PageBtreeLeaf cannot be cast to org.h2.index.PageBtreeNode at org.h2.index.PageBtreeLeaf.nextPage(PageBtreeLeaf.java:322) at org.h2.index.PageBtreeCursor.next(PageBtreeCursor.java:59) at org.h2.index.MultiVersionCursor.step(MultiVersionCursor.java:73) at org.h2.index.MultiVersionCursor.loadNext(MultiVersionCursor.java:57) at org.h2.index.MultiVersionCursor.next(MultiVersionCursor.java:105) at org.h2.index.IndexCursor.next(IndexCursor.java:238) at org.h2.table.TableFilter.next(TableFilter.java:353) at org.h2.command.dml.Select.queryGroupSorted(Select.java:159) at org.h2.command.dml.Select.queryWithoutCache(Select.java:611) at org.h2.command.dml.Query.query(Query.java:307) at org.h2.command.dml.Query.query(Query.java:277) at org.h2.command.dml.SelectUnion.queryWithoutCache(SelectUnion.java:179) at org.h2.command.dml.SelectUnion.query(SelectUnion.java:391) at org.h2.command.dml.Query.query(Query.java:277) at org.h2.index.ViewIndex.find(ViewIndex.java:244) at org.h2.index.BaseIndex.find(BaseIndex.java:102) at org.h2.index.IndexCursor.find(IndexCursor.java:145) at org.h2.table.TableFilter.next(TableFilter.java:322) at org.h2.command.dml.Select.queryFlat(Select.java:513) at org.h2.command.dml.Select.queryWithoutCache(Select.java:618) at org.h2.command.dml.Query.query(Query.java:307) at org.h2.command.dml.Query.query(Query.java:277) at org.h2.command.dml.Query.query(Query.java:36) at org.h2.command.CommandContainer.query(CommandContainer.java:86) at org.h2.command.Command.executeQuery(Command.java:191) ... 62 more 2017-02-24 16:38:34,666 ERROR [main] ContextLoader:307 - Context initialization failed java.lang.RuntimeException: java.lang.RuntimeException: org.springframework.jdbc.UncategorizedSQLException: SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [HY000]; error code [50000]; --- The error occurred in com/thoughtworks/go/server/dao/maps/Pipeline.xml. --- The error occurred while applying a parameter map. --- Check the allActivePipelines-InlineParameterMap. --- Check the statement (query failed). --- Cause: org.h2.jdbc.JdbcSQLException: General error: "java.lang.ClassCastException: org.h2.index.PageBtreeLeaf cannot be cast to org.h2.index.PageBtreeNode"; SQL statement: SELECT pipelines.id as pipelineId, pipelines.name as pipelineName, buildCauseType, label, buildCauseMessage, pipelines.counter as pipelineCounter, pipelines.label as pipelineLabel, pipelines.naturalOrder as naturalOrder, pipelines.comment as pipelineComment, stages.name as stageName,stages.counter as stageCounter, stages.id as stageId, stages.approvedBy as approvedBy, stages.approvalType as approvalType, stages.result as stageResult, stages.latestRun, stages.rerunOfCounter, builds.id as buildId, builds.name as buildName, builds.state as buildState, builds.result as buildResult, builds.scheduledDate as scheduledDate, stages.orderId as orderId FROM pipelines INNER JOIN stages ON stages.pipelineId = pipelines.id AND stages.latestRun = true INNER JOIN builds ON builds.stageId = stages.id AND builds.ignored != true INNER JOIN ( SELECT stages.pipelineId AS id FROM stages WHERE stages.state = 'Building' AND latestRun = true UNION SELECT max(pipelines.id) AS id FROM pipelines GROUP BY pipelines.name ) pipelines_to_show ON pipelines.id = pipelines_to_show.id ORDER BY pipelines.id DESC, stages.orderId ASC [50000-168]; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurred in com/thoughtworks/go/server/dao/maps/Pipeline.xml. --- The error occurred while applying a parameter map. --- Check the allActivePipelines-InlineParameterMap. --- Check the statement (query failed). --- Cause: org.h2.jdbc.JdbcSQLException: General error: "java.lang.ClassCastException: org.h2.index.PageBtreeLeaf cannot be cast to org.h2.index.PageBtreeNode"; SQL statement: SELECT pipelines.id as pipelineId, pipelines.name as pipelineName, buildCauseType, label, buildCauseMessage, pipelines.counter as pipelineCounter, pipelines.label as pipelineLabel, pipelines.naturalOrder as naturalOrder, pipelines.comment as pipelineComment, stages.name as stageName,stages.counter as stageCounter, stages.id as stageId, stages.approvedBy as approvedBy, stages.approvalType as approvalType, stages.result as stageResult, stages.latestRun, stages.rerunOfCounter, builds.id as buildId, builds.name as buildName, builds.state as buildState, builds.result as buildResult, builds.scheduledDate as scheduledDate, stages.orderId as orderId FROM pipelines INNER JOIN stages ON stages.pipelineId = pipelines.id AND stages.latestRun = true INNER JOIN builds ON builds.stageId = stages.id AND builds.ignored != true INNER JOIN ( SELECT stages.pipelineId AS id FROM stages WHERE stages.state = 'Building' AND latestRun = true UNION SELECT max(pipelines.id) AS id FROM pipelines GROUP BY pipelines.name ) pipelines_to_show ON pipelines.id = pipelines_to_show.id ORDER BY pipelines.id DESC, stages.orderId ASC [50000-168] at com.thoughtworks.go.server.initializers.ApplicationInitializer.onApplicationEvent(ApplicationInitializer.java:142) at com.thoughtworks.go.server.initializers.ApplicationInitializer.onApplicationEvent(ApplicationInitializer.java:48) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:327) at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:941) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:475) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111) at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:800) at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:444) at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:791) at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:294) at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1349) at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1342) at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741) at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:505) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114) at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132) at org.eclipse.jetty.server.Server.start(Server.java:387) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114) at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61) at org.eclipse.jetty.server.Server.doStart(Server.java:354) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at com.thoughtworks.go.server.Jetty9Server.start(Jetty9Server.java:89) at com.thoughtworks.go.server.GoServer.startServer(GoServer.java:71) at com.thoughtworks.go.server.GoServer.go(GoServer.java:63) at com.thoughtworks.go.server.util.GoLauncher.main(GoLauncher.java:31) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.simontuffs.onejar.Boot.run(Boot.java:306) at com.simontuffs.onejar.Boot.main(Boot.java:159) Caused by: java.lang.RuntimeException: org.springframework.jdbc.UncategorizedSQLException: SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [HY000]; error code [50000]; --- The error occurred in com/thoughtworks/go/server/dao/maps/Pipeline.xml. --- The error occurred while applying a parameter map. --- Check the allActivePipelines-InlineParameterMap. --- Check the statement (query failed). --- Cause: org.h2.jdbc.JdbcSQLException: General error: "java.lang.ClassCastException: org.h2.index.PageBtreeLeaf cannot be cast to org.h2.index.PageBtreeNode"; SQL statement: SELECT pipelines.id as pipelineId, pipelines.name as pipelineName, buildCauseType, label, buildCauseMessage, pipelines.counter as pipelineCounter, pipelines.label as pipelineLabel, pipelines.naturalOrder as naturalOrder, pipelines.comment as pipelineComment, stages.name as stageName,stages.counter as stageCounter, stages.id as stageId, stages.approvedBy as approvedBy, stages.approvalType as approvalType, stages.result as stageResult, stages.latestRun, stages.rerunOfCounter, builds.id as buildId, builds.name as buildName, builds.state as buildState, builds.result as buildResult, builds.scheduledDate as scheduledDate, stages.orderId as orderId FROM pipelines INNER JOIN stages ON stages.pipelineId = pipelines.id AND stages.latestRun = true INNER JOIN builds ON builds.stageId = stages.id AND builds.ignored != true INNER JOIN ( SELECT stages.pipelineId AS id FROM stages WHERE stages.state = 'Building' AND latestRun = true UNION SELECT max(pipelines.id) AS id FROM pipelines GROUP BY pipelines.name ) pipelines_to_show ON pipelines.id = pipelines_to_show.id ORDER BY pipelines.id DESC, stages.orderId ASC [50000-168]; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurred in com/thoughtworks/go/server/dao/maps/Pipeline.xml. --- The error occurred while applying a parameter map. --- Check the allActivePipelines-InlineParameterMap. --- Check the statement (query failed). --- Cause: org.h2.jdbc.JdbcSQLException: General error: "java.lang.ClassCastException: org.h2.index.PageBtreeLeaf cannot be cast to org.h2.index.PageBtreeNode"; SQL statement: SELECT pipelines.id as pipelineId, pipelines.name as pipelineName, buildCauseType, label, buildCauseMessage, pipelines.counter as pipelineCounter, pipelines.label as pipelineLabel, pipelines.naturalOrder as naturalOrder, pipelines.comment as pipelineComment, stages.name as stageName,stages.counter as stageCounter, stages.id as stageId, stages.approvedBy as approvedBy, stages.approvalType as approvalType, stages.result as stageResult, stages.latestRun, stages.rerunOfCounter, builds.id as buildId, builds.name as buildName, builds.state as buildState, builds.result as buildResult, builds.scheduledDate as scheduledDate, stages.orderId as orderId FROM pipelines INNER JOIN stages ON stages.pipelineId = pipelines.id AND stages.latestRun = true INNER JOIN builds ON builds.stageId = stages.id AND builds.ignored != true INNER JOIN ( SELECT stages.pipelineId AS id FROM stages WHERE stages.state = 'Building' AND latestRun = true UNION SELECT max(pipelines.id) AS id FROM pipelines GROUP BY pipelines.name ) pipelines_to_show ON pipelines.id = pipelines_to_show.id ORDER BY pipelines.id DESC, stages.orderId ASC [50000-168] at com.thoughtworks.go.server.dao.PipelineSqlMapDao.initialize(PipelineSqlMapDao.java:99) at com.thoughtworks.go.server.initializers.ApplicationInitializer.onApplicationEvent(ApplicationInitializer.java:127) ... 37 more Caused by: org.springframework.jdbc.UncategorizedSQLException: SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [HY000]; error code [50000]; --- The error occurred in com/thoughtworks/go/server/dao/maps/Pipeline.xml. --- The error occurred while applying a parameter map. --- Check the allActivePipelines-InlineParameterMap. --- Check the statement (query failed). --- Cause: org.h2.jdbc.JdbcSQLException: General error: "java.lang.ClassCastException: org.h2.index.PageBtreeLeaf cannot be cast to org.h2.index.PageBtreeNode"; SQL statement: SELECT pipelines.id as pipelineId, pipelines.name as pipelineName, buildCauseType, label, buildCauseMessage, pipelines.counter as pipelineCounter, pipelines.label as pipelineLabel, pipelines.naturalOrder as naturalOrder, pipelines.comment as pipelineComment, stages.name as stageName,stages.counter as stageCounter, stages.id as stageId, stages.approvedBy as approvedBy, stages.approvalType as approvalType, stages.result as stageResult, stages.latestRun, stages.rerunOfCounter, builds.id as buildId, builds.name as buildName, builds.state as buildState, builds.result as buildResult, builds.scheduledDate as scheduledDate, stages.orderId as orderId FROM pipelines INNER JOIN stages ON stages.pipelineId = pipelines.id AND stages.latestRun = true INNER JOIN builds ON builds.stageId = stages.id AND builds.ignored != true INNER JOIN ( SELECT stages.pipelineId AS id FROM stages WHERE stages.state = 'Building' AND latestRun = true UNION SELECT max(pipelines.id) AS id FROM pipelines GROUP BY pipelines.name ) pipelines_to_show ON pipelines.id = pipelines_to_show.id ORDER BY pipelines.id DESC, stages.orderId ASC [50000-168]; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurred in com/thoughtworks/go/server/dao/maps/Pipeline.xml. --- The error occurred while applying a parameter map. --- Check the allActivePipelines-InlineParameterMap. --- Check the statement (query failed). --- Cause: org.h2.jdbc.JdbcSQLException: General error: "java.lang.ClassCastException: org.h2.index.PageBtreeLeaf cannot be cast to org.h2.index.PageBtreeNode"; SQL statement: SELECT pipelines.id as pipelineId, pipelines.name as pipelineName, buildCauseType, label, buildCauseMessage, pipelines.counter as pipelineCounter, pipelines.label as pipelineLabel, pipelines.naturalOrder as naturalOrder, pipelines.comment as pipelineComment, stages.name as stageName,stages.counter as stageCounter, stages.id as stageId, stages.approvedBy as approvedBy, stages.approvalType as approvalType, stages.result as stageResult, stages.latestRun, stages.rerunOfCounter, builds.id as buildId, builds.name as buildName, builds.state as buildState, builds.result as buildResult, builds.scheduledDate as scheduledDate, stages.orderId as orderId FROM pipelines INNER JOIN stages ON stages.pipelineId = pipelines.id AND stages.latestRun = true INNER JOIN builds ON builds.stageId = stages.id AND builds.ignored != true INNER JOIN ( SELECT stages.pipelineId AS id FROM stages WHERE stages.state = 'Building' AND latestRun = true UNION SELECT max(pipelines.id) AS id FROM pipelines GROUP BY pipelines.name ) pipelines_to_show ON pipelines.id = pipelines_to_show.id ORDER BY pipelines.id DESC, stages.orderId ASC [50000-168] at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:83) at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:80) at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:80) at org.springframework.orm.ibatis.SqlMapClientTemplate.execute(SqlMapClientTemplate.java:203) at com.thoughtworks.go.server.transaction.SqlMapClientDaoSupport$SqlMapClientTemplate.execute(SqlMapClientDaoSupport.java:112) at org.springframework.orm.ibatis.SqlMapClientTemplate.queryForList(SqlMapClientTemplate.java:293) at com.thoughtworks.go.server.transaction.SqlMapClientDaoSupport$SqlMapClientTemplate.access$601(SqlMapClientDaoSupport.java:39) at com.thoughtworks.go.server.transaction.SqlMapClientDaoSupport$SqlMapClientTemplate$5.execute(SqlMapClientDaoSupport.java:105) at com.thoughtworks.go.server.transaction.SqlMapClientDaoSupport$SqlMapClientTemplate$5.execute(SqlMapClientDaoSupport.java:103) at com.thoughtworks.go.server.transaction.SqlMapClientDaoSupport$SqlMapClientTemplate.executeInternal(SqlMapClientDaoSupport.java:120) at com.thoughtworks.go.server.transaction.SqlMapClientDaoSupport$SqlMapClientTemplate.queryForList(SqlMapClientDaoSupport.java:103) at org.springframework.orm.ibatis.SqlMapClientTemplate.queryForList(SqlMapClientTemplate.java:287) at com.thoughtworks.go.server.dao.PipelineSqlMapDao.getAllPIMs(PipelineSqlMapDao.java:401) at com.thoughtworks.go.server.dao.PipelineSqlMapDao.cacheActivePipelines(PipelineSqlMapDao.java:391) at com.thoughtworks.go.server.dao.PipelineSqlMapDao.initialize(PipelineSqlMapDao.java:95) ... 38 more Caused by: com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurred in com/thoughtworks/go/server/dao/maps/Pipeline.xml. --- The error occurred while applying a parameter map. --- Check the allActivePipelines-InlineParameterMap. --- Check the statement (query failed). --- Cause: org.h2.jdbc.JdbcSQLException: General error: "java.lang.ClassCastException: org.h2.index.PageBtreeLeaf cannot be cast to org.h2.index.PageBtreeNode"; SQL statement: SELECT pipelines.id as pipelineId, pipelines.name as pipelineName, buildCauseType, label, buildCauseMessage, pipelines.counter as pipelineCounter, pipelines.label as pipelineLabel, pipelines.naturalOrder as naturalOrder, pipelines.comment as pipelineComment, stages.name as stageName,stages.counter as stageCounter, stages.id as stageId, stages.approvedBy as approvedBy, stages.approvalType as approvalType, stages.result as stageResult, stages.latestRun, stages.rerunOfCounter, builds.id as buildId, builds.name as buildName, builds.state as buildState, builds.result as buildResult, builds.scheduledDate as scheduledDate, stages.orderId as orderId FROM pipelines INNER JOIN stages ON stages.pipelineId = pipelines.id AND stages.latestRun = true INNER JOIN builds ON builds.stageId = stages.id AND builds.ignored != true INNER JOIN ( SELECT stages.pipelineId AS id FROM stages WHERE stages.state = 'Building' AND latestRun = true UNION SELECT max(pipelines.id) AS id FROM pipelines GROUP BY pipelines.name ) pipelines_to_show ON pipelines.id = pipelines_to_show.id ORDER BY pipelines.id DESC, stages.orderId ASC [50000-168] at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryWithCallback(MappedStatement.java:201) at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryForList(MappedStatement.java:139) at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:567) at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:541) at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.queryForList(SqlMapSessionImpl.java:118) at org.springframework.orm.ibatis.SqlMapClientTemplate$3.doInSqlMapClient(SqlMapClientTemplate.java:295) at org.springframework.orm.ibatis.SqlMapClientTemplate$3.doInSqlMapClient(SqlMapClientTemplate.java:1) at org.springframework.orm.ibatis.SqlMapClientTemplate.execute(SqlMapClientTemplate.java:200) ... 49 more Caused by: org.h2.jdbc.JdbcSQLException: General error: "java.lang.ClassCastException: org.h2.index.PageBtreeLeaf cannot be cast to org.h2.index.PageBtreeNode"; SQL statement: SELECT pipelines.id as pipelineId, pipelines.name as pipelineName, buildCauseType, label, buildCauseMessage, pipelines.counter as pipelineCounter, pipelines.label as pipelineLabel, pipelines.naturalOrder as naturalOrder, pipelines.comment as pipelineComment, stages.name as stageName,stages.counter as stageCounter, stages.id as stageId, stages.approvedBy as approvedBy, stages.approvalType as approvalType, stages.result as stageResult, stages.latestRun, stages.rerunOfCounter, builds.id as buildId, builds.name as buildName, builds.state as buildState, builds.result as buildResult, builds.scheduledDate as scheduledDate, stages.orderId as orderId FROM pipelines INNER JOIN stages ON stages.pipelineId = pipelines.id AND stages.latestRun = true INNER JOIN builds ON builds.stageId = stages.id AND builds.ignored != true INNER JOIN ( SELECT stages.pipelineId AS id FROM stages WHERE stages.state = 'Building' AND latestRun = true UNION SELECT max(pipelines.id) AS id FROM pipelines GROUP BY pipelines.name ) pipelines_to_show ON pipelines.id = pipelines_to_show.id ORDER BY pipelines.id DESC, stages.orderId ASC [50000-168] at org.h2.message.DbException.getJdbcSQLException(DbException.java:329) at org.h2.message.DbException.get(DbException.java:158) at org.h2.message.DbException.convert(DbException.java:281) at org.h2.command.Command.executeQuery(Command.java:195) at org.h2.jdbc.JdbcPreparedStatement.execute(JdbcPreparedStatement.java:190) at org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:172) at org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:172) at com.ibatis.sqlmap.engine.execution.SqlExecutor.executeQuery(SqlExecutor.java:185) at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.sqlExecuteQuery(MappedStatement.java:221) at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryWithCallback(MappedStatement.java:189) ... 56 more Caused by: java.lang.ClassCastException: org.h2.index.PageBtreeLeaf cannot be cast to org.h2.index.PageBtreeNode at org.h2.index.PageBtreeLeaf.nextPage(PageBtreeLeaf.java:322) at org.h2.index.PageBtreeCursor.next(PageBtreeCursor.java:59) at org.h2.index.MultiVersionCursor.step(MultiVersionCursor.java:73) at org.h2.index.MultiVersionCursor.loadNext(MultiVersionCursor.java:57) at org.h2.index.MultiVersionCursor.next(MultiVersionCursor.java:105) at org.h2.index.IndexCursor.next(IndexCursor.java:238) at org.h2.table.TableFilter.next(TableFilter.java:353) at org.h2.command.dml.Select.queryGroupSorted(Select.java:159) at org.h2.command.dml.Select.queryWithoutCache(Select.java:611) at org.h2.command.dml.Query.query(Query.java:307) at org.h2.command.dml.Query.query(Query.java:277) at org.h2.command.dml.SelectUnion.queryWithoutCache(SelectUnion.java:179) at org.h2.command.dml.SelectUnion.query(SelectUnion.java:391) at org.h2.command.dml.Query.query(Query.java:277) at org.h2.index.ViewIndex.find(ViewIndex.java:244) at org.h2.index.BaseIndex.find(BaseIndex.java:102) at org.h2.index.IndexCursor.find(IndexCursor.java:145) at org.h2.table.TableFilter.next(TableFilter.java:322) at org.h2.command.dml.Select.queryFlat(Select.java:513) at org.h2.command.dml.Select.queryWithoutCache(Select.java:618) at org.h2.command.dml.Query.query(Query.java:307) at org.h2.command.dml.Query.query(Query.java:277) at org.h2.command.dml.Query.query(Query.java:36) at org.h2.command.CommandContainer.query(CommandContainer.java:86) at org.h2.command.Command.executeQuery(Command.java:191) ... 62 more 2017-02-24 16:38:34,672 WARN [main] WebAppContext:514 - Failed startup of context o.e.j.w.WebAppContext@743e4500{/go,file:/Users/mosquitodigital/Library/Application%20Support/Go%20Server/work/jetty-0.0.0.0-8153-cruise.war-_go-any-/webapp/,STARTING}{cruise.war} java.lang.RuntimeException: java.lang.RuntimeException: org.springframework.jdbc.UncategorizedSQLException: SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [HY000]; error code [50000]; --- The error occurred in com/thoughtworks/go/server/dao/maps/Pipeline.xml. --- The error occurred while applying a parameter map. --- Check the allActivePipelines-InlineParameterMap. --- Check the statement (query failed). --- Cause: org.h2.jdbc.JdbcSQLException: General error: "java.lang.ClassCastException: org.h2.index.PageBtreeLeaf cannot be cast to org.h2.index.PageBtreeNode"; SQL statement: SELECT pipelines.id as pipelineId, pipelines.name as pipelineName, buildCauseType, label, buildCauseMessage, pipelines.counter as pipelineCounter, pipelines.label as pipelineLabel, pipelines.naturalOrder as naturalOrder, pipelines.comment as pipelineComment, stages.name as stageName,stages.counter as stageCounter, stages.id as stageId, stages.approvedBy as approvedBy, stages.approvalType as approvalType, stages.result as stageResult, stages.latestRun, stages.rerunOfCounter, builds.id as buildId, builds.name as buildName, builds.state as buildState, builds.result as buildResult, builds.scheduledDate as scheduledDate, stages.orderId as orderId FROM pipelines INNER JOIN stages ON stages.pipelineId = pipelines.id AND stages.latestRun = true INNER JOIN builds ON builds.stageId = stages.id AND builds.ignored != true INNER JOIN ( SELECT stages.pipelineId AS id FROM stages WHERE stages.state = 'Building' AND latestRun = true UNION SELECT max(pipelines.id) AS id FROM pipelines GROUP BY pipelines.name ) pipelines_to_show ON pipelines.id = pipelines_to_show.id ORDER BY pipelines.id DESC, stages.orderId ASC [50000-168]; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurred in com/thoughtworks/go/server/dao/maps/Pipeline.xml. --- The error occurred while applying a parameter map. --- Check the allActivePipelines-InlineParameterMap. --- Check the statement (query failed). --- Cause: org.h2.jdbc.JdbcSQLException: General error: "java.lang.ClassCastException: org.h2.index.PageBtreeLeaf cannot be cast to org.h2.index.PageBtreeNode"; SQL statement: SELECT pipelines.id as pipelineId, pipelines.name as pipelineName, buildCauseType, label, buildCauseMessage, pipelines.counter as pipelineCounter, pipelines.label as pipelineLabel, pipelines.naturalOrder as naturalOrder, pipelines.comment as pipelineComment, stages.name as stageName,stages.counter as stageCounter, stages.id as stageId, stages.approvedBy as approvedBy, stages.approvalType as approvalType, stages.result as stageResult, stages.latestRun, stages.rerunOfCounter, builds.id as buildId, builds.name as buildName, builds.state as buildState, builds.result as buildResult, builds.scheduledDate as scheduledDate, stages.orderId as orderId FROM pipelines INNER JOIN stages ON stages.pipelineId = pipelines.id AND stages.latestRun = true INNER JOIN builds ON builds.stageId = stages.id AND builds.ignored != true INNER JOIN ( SELECT stages.pipelineId AS id FROM stages WHERE stages.state = 'Building' AND latestRun = true UNION SELECT max(pipelines.id) AS id FROM pipelines GROUP BY pipelines.name ) pipelines_to_show ON pipelines.id = pipelines_to_show.id ORDER BY pipelines.id DESC, stages.orderId ASC [50000-168] at com.thoughtworks.go.server.initializers.ApplicationInitializer.onApplicationEvent(ApplicationInitializer.java:142) at com.thoughtworks.go.server.initializers.ApplicationInitializer.onApplicationEvent(ApplicationInitializer.java:48) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:327) at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:941) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:475) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111) at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:800) at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:444) at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:791) at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:294) at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1349) at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1342) at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741) at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:505) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114) at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132) at org.eclipse.jetty.server.Server.start(Server.java:387) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114) at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61) at org.eclipse.jetty.server.Server.doStart(Server.java:354) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at com.thoughtworks.go.server.Jetty9Server.start(Jetty9Server.java:89) at com.thoughtworks.go.server.GoServer.startServer(GoServer.java:71) at com.thoughtworks.go.server.GoServer.go(GoServer.java:63) at com.thoughtworks.go.server.util.GoLauncher.main(GoLauncher.java:31) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.simontuffs.onejar.Boot.run(Boot.java:306) at com.simontuffs.onejar.Boot.main(Boot.java:159) Caused by: java.lang.RuntimeException: org.springframework.jdbc.UncategorizedSQLException: SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [HY000]; error code [50000]; --- The error occurred in com/thoughtworks/go/server/dao/maps/Pipeline.xml. --- The error occurred while applying a parameter map. --- Check the allActivePipelines-InlineParameterMap. --- Check the statement (query failed). --- Cause: org.h2.jdbc.JdbcSQLException: General error: "java.lang.ClassCastException: org.h2.index.PageBtreeLeaf cannot be cast to org.h2.index.PageBtreeNode"; SQL statement: SELECT pipelines.id as pipelineId, pipelines.name as pipelineName, buildCauseType, label, buildCauseMessage, pipelines.counter as pipelineCounter, pipelines.label as pipelineLabel, pipelines.naturalOrder as naturalOrder, pipelines.comment as pipelineComment, stages.name as stageName,stages.counter as stageCounter, stages.id as stageId, stages.approvedBy as approvedBy, stages.approvalType as approvalType, stages.result as stageResult, stages.latestRun, stages.rerunOfCounter, builds.id as buildId, builds.name as buildName, builds.state as buildState, builds.result as buildResult, builds.scheduledDate as scheduledDate, stages.orderId as orderId FROM pipelines INNER JOIN stages ON stages.pipelineId = pipelines.id AND stages.latestRun = true INNER JOIN builds ON builds.stageId = stages.id AND builds.ignored != true INNER JOIN ( SELECT stages.pipelineId AS id FROM stages WHERE stages.state = 'Building' AND latestRun = true UNION SELECT max(pipelines.id) AS id FROM pipelines GROUP BY pipelines.name ) pipelines_to_show ON pipelines.id = pipelines_to_show.id ORDER BY pipelines.id DESC, stages.orderId ASC [50000-168]; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurred in com/thoughtworks/go/server/dao/maps/Pipeline.xml. --- The error occurred while applying a parameter map. --- Check the allActivePipelines-InlineParameterMap. --- Check the statement (query failed). --- Cause: org.h2.jdbc.JdbcSQLException: General error: "java.lang.ClassCastException: org.h2.index.PageBtreeLeaf cannot be cast to org.h2.index.PageBtreeNode"; SQL statement: SELECT pipelines.id as pipelineId, pipelines.name as pipelineName, buildCauseType, label, buildCauseMessage, pipelines.counter as pipelineCounter, pipelines.label as pipelineLabel, pipelines.naturalOrder as naturalOrder, pipelines.comment as pipelineComment, stages.name as stageName,stages.counter as stageCounter, stages.id as stageId, stages.approvedBy as approvedBy, stages.approvalType as approvalType, stages.result as stageResult, stages.latestRun, stages.rerunOfCounter, builds.id as buildId, builds.name as buildName, builds.state as buildState, builds.result as buildResult, builds.scheduledDate as scheduledDate, stages.orderId as orderId FROM pipelines INNER JOIN stages ON stages.pipelineId = pipelines.id AND stages.latestRun = true INNER JOIN builds ON builds.stageId = stages.id AND builds.ignored != true INNER JOIN ( SELECT stages.pipelineId AS id FROM stages WHERE stages.state = 'Building' AND latestRun = true UNION SELECT max(pipelines.id) AS id FROM pipelines GROUP BY pipelines.name ) pipelines_to_show ON pipelines.id = pipelines_to_show.id ORDER BY pipelines.id DESC, stages.orderId ASC [50000-168] at com.thoughtworks.go.server.dao.PipelineSqlMapDao.initialize(PipelineSqlMapDao.java:99) at com.thoughtworks.go.server.initializers.ApplicationInitializer.onApplicationEvent(ApplicationInitializer.java:127) ... 37 more Caused by: org.springframework.jdbc.UncategorizedSQLException: SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [HY000]; error code [50000]; --- The error occurred in com/thoughtworks/go/server/dao/maps/Pipeline.xml. --- The error occurred while applying a parameter map. --- Check the allActivePipelines-InlineParameterMap. --- Check the statement (query failed). --- Cause: org.h2.jdbc.JdbcSQLException: General error: "java.lang.ClassCastException: org.h2.index.PageBtreeLeaf cannot be cast to org.h2.index.PageBtreeNode"; SQL statement: SELECT pipelines.id as pipelineId, pipelines.name as pipelineName, buildCauseType, label, buildCauseMessage, pipelines.counter as pipelineCounter, pipelines.label as pipelineLabel, pipelines.naturalOrder as naturalOrder, pipelines.comment as pipelineComment, stages.name as stageName,stages.counter as stageCounter, stages.id as stageId, stages.approvedBy as approvedBy, stages.approvalType as approvalType, stages.result as stageResult, stages.latestRun, stages.rerunOfCounter, builds.id as buildId, builds.name as buildName, builds.state as buildState, builds.result as buildResult, builds.scheduledDate as scheduledDate, stages.orderId as orderId FROM pipelines INNER JOIN stages ON stages.pipelineId = pipelines.id AND stages.latestRun = true INNER JOIN builds ON builds.stageId = stages.id AND builds.ignored != true INNER JOIN ( SELECT stages.pipelineId AS id FROM stages WHERE stages.state = 'Building' AND latestRun = true UNION SELECT max(pipelines.id) AS id FROM pipelines GROUP BY pipelines.name ) pipelines_to_show ON pipelines.id = pipelines_to_show.id ORDER BY pipelines.id DESC, stages.orderId ASC [50000-168]; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurred in com/thoughtworks/go/server/dao/maps/Pipeline.xml. --- The error occurred while applying a parameter map. --- Check the allActivePipelines-InlineParameterMap. --- Check the statement (query failed). --- Cause: org.h2.jdbc.JdbcSQLException: General error: "java.lang.ClassCastException: org.h2.index.PageBtreeLeaf cannot be cast to org.h2.index.PageBtreeNode"; SQL statement: SELECT pipelines.id as pipelineId, pipelines.name as pipelineName, buildCauseType, label, buildCauseMessage, pipelines.counter as pipelineCounter, pipelines.label as pipelineLabel, pipelines.naturalOrder as naturalOrder, pipelines.comment as pipelineComment, stages.name as stageName,stages.counter as stageCounter, stages.id as stageId, stages.approvedBy as approvedBy, stages.approvalType as approvalType, stages.result as stageResult, stages.latestRun, stages.rerunOfCounter, builds.id as buildId, builds.name as buildName, builds.state as buildState, builds.result as buildResult, builds.scheduledDate as scheduledDate, stages.orderId as orderId FROM pipelines INNER JOIN stages ON stages.pipelineId = pipelines.id AND stages.latestRun = true INNER JOIN builds ON builds.stageId = stages.id AND builds.ignored != true INNER JOIN ( SELECT stages.pipelineId AS id FROM stages WHERE stages.state = 'Building' AND latestRun = true UNION SELECT max(pipelines.id) AS id FROM pipelines GROUP BY pipelines.name ) pipelines_to_show ON pipelines.id = pipelines_to_show.id ORDER BY pipelines.id DESC, stages.orderId ASC [50000-168] at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:83) at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:80) at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:80) at org.springframework.orm.ibatis.SqlMapClientTemplate.execute(SqlMapClientTemplate.java:203) at com.thoughtworks.go.server.transaction.SqlMapClientDaoSupport$SqlMapClientTemplate.execute(SqlMapClientDaoSupport.java:112) at org.springframework.orm.ibatis.SqlMapClientTemplate.queryForList(SqlMapClientTemplate.java:293) at com.thoughtworks.go.server.transaction.SqlMapClientDaoSupport$SqlMapClientTemplate.access$601(SqlMapClientDaoSupport.java:39) at com.thoughtworks.go.server.transaction.SqlMapClientDaoSupport$SqlMapClientTemplate$5.execute(SqlMapClientDaoSupport.java:105) at com.thoughtworks.go.server.transaction.SqlMapClientDaoSupport$SqlMapClientTemplate$5.execute(SqlMapClientDaoSupport.java:103) at com.thoughtworks.go.server.transaction.SqlMapClientDaoSupport$SqlMapClientTemplate.executeInternal(SqlMapClientDaoSupport.java:120) at com.thoughtworks.go.server.transaction.SqlMapClientDaoSupport$SqlMapClientTemplate.queryForList(SqlMapClientDaoSupport.java:103) at org.springframework.orm.ibatis.SqlMapClientTemplate.queryForList(SqlMapClientTemplate.java:287) at com.thoughtworks.go.server.dao.PipelineSqlMapDao.getAllPIMs(PipelineSqlMapDao.java:401) at com.thoughtworks.go.server.dao.PipelineSqlMapDao.cacheActivePipelines(PipelineSqlMapDao.java:391) at com.thoughtworks.go.server.dao.PipelineSqlMapDao.initialize(PipelineSqlMapDao.java:95) ... 38 more Caused by: com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurred in com/thoughtworks/go/server/dao/maps/Pipeline.xml. --- The error occurred while applying a parameter map. --- Check the allActivePipelines-InlineParameterMap. --- Check the statement (query failed). --- Cause: org.h2.jdbc.JdbcSQLException: General error: "java.lang.ClassCastException: org.h2.index.PageBtreeLeaf cannot be cast to org.h2.index.PageBtreeNode"; SQL statement: SELECT pipelines.id as pipelineId, pipelines.name as pipelineName, buildCauseType, label, buildCauseMessage, pipelines.counter as pipelineCounter, pipelines.label as pipelineLabel, pipelines.naturalOrder as naturalOrder, pipelines.comment as pipelineComment, stages.name as stageName,stages.counter as stageCounter, stages.id as stageId, stages.approvedBy as approvedBy, stages.approvalType as approvalType, stages.result as stageResult, stages.latestRun, stages.rerunOfCounter, builds.id as buildId, builds.name as buildName, builds.state as buildState, builds.result as buildResult, builds.scheduledDate as scheduledDate, stages.orderId as orderId FROM pipelines INNER JOIN stages ON stages.pipelineId = pipelines.id AND stages.latestRun = true INNER JOIN builds ON builds.stageId = stages.id AND builds.ignored != true INNER JOIN ( SELECT stages.pipelineId AS id FROM stages WHERE stages.state = 'Building' AND latestRun = true UNION SELECT max(pipelines.id) AS id FROM pipelines GROUP BY pipelines.name ) pipelines_to_show ON pipelines.id = pipelines_to_show.id ORDER BY pipelines.id DESC, stages.orderId ASC [50000-168] at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryWithCallback(MappedStatement.java:201) at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryForList(MappedStatement.java:139) at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:567) at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:541) at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.queryForList(SqlMapSessionImpl.java:118) at org.springframework.orm.ibatis.SqlMapClientTemplate$3.doInSqlMapClient(SqlMapClientTemplate.java:295) at org.springframework.orm.ibatis.SqlMapClientTemplate$3.doInSqlMapClient(SqlMapClientTemplate.java:1) at org.springframework.orm.ibatis.SqlMapClientTemplate.execute(SqlMapClientTemplate.java:200) ... 49 more Caused by: org.h2.jdbc.JdbcSQLException: General error: "java.lang.ClassCastException: org.h2.index.PageBtreeLeaf cannot be cast to org.h2.index.PageBtreeNode"; SQL statement: SELECT pipelines.id as pipelineId, pipelines.name as pipelineName, buildCauseType, label, buildCauseMessage, pipelines.counter as pipelineCounter, pipelines.label as pipelineLabel, pipelines.naturalOrder as naturalOrder, pipelines.comment as pipelineComment, stages.name as stageName,stages.counter as stageCounter, stages.id as stageId, stages.approvedBy as approvedBy, stages.approvalType as approvalType, stages.result as stageResult, stages.latestRun, stages.rerunOfCounter, builds.id as buildId, builds.name as buildName, builds.state as buildState, builds.result as buildResult, builds.scheduledDate as scheduledDate, stages.orderId as orderId FROM pipelines INNER JOIN stages ON stages.pipelineId = pipelines.id AND stages.latestRun = true INNER JOIN builds ON builds.stageId = stages.id AND builds.ignored != true INNER JOIN ( SELECT stages.pipelineId AS id FROM stages WHERE stages.state = 'Building' AND latestRun = true UNION SELECT max(pipelines.id) AS id FROM pipelines GROUP BY pipelines.name ) pipelines_to_show ON pipelines.id = pipelines_to_show.id ORDER BY pipelines.id DESC, stages.orderId ASC [50000-168] at org.h2.message.DbException.getJdbcSQLException(DbException.java:329) at org.h2.message.DbException.get(DbException.java:158) at org.h2.message.DbException.convert(DbException.java:281) at org.h2.command.Command.executeQuery(Command.java:195) at org.h2.jdbc.JdbcPreparedStatement.execute(JdbcPreparedStatement.java:190) at org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:172) at org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:172) at com.ibatis.sqlmap.engine.execution.SqlExecutor.executeQuery(SqlExecutor.java:185) at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.sqlExecuteQuery(MappedStatement.java:221) at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryWithCallback(MappedStatement.java:189) ... 56 more Caused by: java.lang.ClassCastException: org.h2.index.PageBtreeLeaf cannot be cast to org.h2.index.PageBtreeNode at org.h2.index.PageBtreeLeaf.nextPage(PageBtreeLeaf.java:322) at org.h2.index.PageBtreeCursor.next(PageBtreeCursor.java:59) at org.h2.index.MultiVersionCursor.step(MultiVersionCursor.java:73) at org.h2.index.MultiVersionCursor.loadNext(MultiVersionCursor.java:57) at org.h2.index.MultiVersionCursor.next(MultiVersionCursor.java:105) at org.h2.index.IndexCursor.next(IndexCursor.java:238) at org.h2.table.TableFilter.next(TableFilter.java:353) at org.h2.command.dml.Select.queryGroupSorted(Select.java:159) at org.h2.command.dml.Select.queryWithoutCache(Select.java:611) at org.h2.command.dml.Query.query(Query.java:307) at org.h2.command.dml.Query.query(Query.java:277) at org.h2.command.dml.SelectUnion.queryWithoutCache(SelectUnion.java:179) at org.h2.command.dml.SelectUnion.query(SelectUnion.java:391) at org.h2.command.dml.Query.query(Query.java:277) at org.h2.index.ViewIndex.find(ViewIndex.java:244) at org.h2.index.BaseIndex.find(BaseIndex.java:102) at org.h2.index.IndexCursor.find(IndexCursor.java:145) at org.h2.table.TableFilter.next(TableFilter.java:322) at org.h2.command.dml.Select.queryFlat(Select.java:513) at org.h2.command.dml.Select.queryWithoutCache(Select.java:618) at org.h2.command.dml.Query.query(Query.java:307) at org.h2.command.dml.Query.query(Query.java:277) at org.h2.command.dml.Query.query(Query.java:36) at org.h2.command.CommandContainer.query(CommandContainer.java:86) at org.h2.command.Command.executeQuery(Command.java:191) ... 62 more log4j:WARN No appenders could be found for logger (com.thoughtworks.go.server.util.H2EventListener). log4j:WARN Please initialize the log4j system properly. 2017-02-24 16:38:35,056 ERROR [main] GoServer:76 - ERROR: Failed to start Go server. java.lang.RuntimeException: java.lang.RuntimeException: org.springframework.jdbc.UncategorizedSQLException: SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [HY000]; error code [50000]; --- The error occurred in com/thoughtworks/go/server/dao/maps/Pipeline.xml. --- The error occurred while applying a parameter map. --- Check the allActivePipelines-InlineParameterMap. --- Check the statement (query failed). --- Cause: org.h2.jdbc.JdbcSQLException: General error: "java.lang.ClassCastException: org.h2.index.PageBtreeLeaf cannot be cast to org.h2.index.PageBtreeNode"; SQL statement: SELECT pipelines.id as pipelineId, pipelines.name as pipelineName, buildCauseType, label, buildCauseMessage, pipelines.counter as pipelineCounter, pipelines.label as pipelineLabel, pipelines.naturalOrder as naturalOrder, pipelines.comment as pipelineComment, stages.name as stageName,stages.counter as stageCounter, stages.id as stageId, stages.approvedBy as approvedBy, stages.approvalType as approvalType, stages.result as stageResult, stages.latestRun, stages.rerunOfCounter, builds.id as buildId, builds.name as buildName, builds.state as buildState, builds.result as buildResult, builds.scheduledDate as scheduledDate, stages.orderId as orderId FROM pipelines INNER JOIN stages ON stages.pipelineId = pipelines.id AND stages.latestRun = true INNER JOIN builds ON builds.stageId = stages.id AND builds.ignored != true INNER JOIN ( SELECT stages.pipelineId AS id FROM stages WHERE stages.state = 'Building' AND latestRun = true UNION SELECT max(pipelines.id) AS id FROM pipelines GROUP BY pipelines.name ) pipelines_to_show ON pipelines.id = pipelines_to_show.id ORDER BY pipelines.id DESC, stages.orderId ASC [50000-168]; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurred in com/thoughtworks/go/server/dao/maps/Pipeline.xml. --- The error occurred while applying a parameter map. --- Check the allActivePipelines-InlineParameterMap. --- Check the statement (query failed). --- Cause: org.h2.jdbc.JdbcSQLException: General error: "java.lang.ClassCastException: org.h2.index.PageBtreeLeaf cannot be cast to org.h2.index.PageBtreeNode"; SQL statement: SELECT pipelines.id as pipelineId, pipelines.name as pipelineName, buildCauseType, label, buildCauseMessage, pipelines.counter as pipelineCounter, pipelines.label as pipelineLabel, pipelines.naturalOrder as naturalOrder, pipelines.comment as pipelineComment, stages.name as stageName,stages.counter as stageCounter, stages.id as stageId, stages.approvedBy as approvedBy, stages.approvalType as approvalType, stages.result as stageResult, stages.latestRun, stages.rerunOfCounter, builds.id as buildId, builds.name as buildName, builds.state as buildState, builds.result as buildResult, builds.scheduledDate as scheduledDate, stages.orderId as orderId FROM pipelines INNER JOIN stages ON stages.pipelineId = pipelines.id AND stages.latestRun = true INNER JOIN builds ON builds.stageId = stages.id AND builds.ignored != true INNER JOIN ( SELECT stages.pipelineId AS id FROM stages WHERE stages.state = 'Building' AND latestRun = true UNION SELECT max(pipelines.id) AS id FROM pipelines GROUP BY pipelines.name ) pipelines_to_show ON pipelines.id = pipelines_to_show.id ORDER BY pipelines.id DESC, stages.orderId ASC [50000-168] at com.thoughtworks.go.server.initializers.ApplicationInitializer.onApplicationEvent(ApplicationInitializer.java:142) at com.thoughtworks.go.server.initializers.ApplicationInitializer.onApplicationEvent(ApplicationInitializer.java:48) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:327) at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:941) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:475) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111) at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:800) at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:444) at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:791) at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:294) at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1349) at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1342) at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741) at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:505) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114) at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132) at org.eclipse.jetty.server.Server.start(Server.java:387) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114) at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61) at org.eclipse.jetty.server.Server.doStart(Server.java:354) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at com.thoughtworks.go.server.Jetty9Server.start(Jetty9Server.java:89) at com.thoughtworks.go.server.GoServer.startServer(GoServer.java:71) at com.thoughtworks.go.server.GoServer.go(GoServer.java:63) at com.thoughtworks.go.server.util.GoLauncher.main(GoLauncher.java:31) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.simontuffs.onejar.Boot.run(Boot.java:306) at com.simontuffs.onejar.Boot.main(Boot.java:159) Caused by: java.lang.RuntimeException: org.springframework.jdbc.UncategorizedSQLException: SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [HY000]; error code [50000]; --- The error occurred in com/thoughtworks/go/server/dao/maps/Pipeline.xml. --- The error occurred while applying a parameter map. --- Check the allActivePipelines-InlineParameterMap. --- Check the statement (query failed). --- Cause: org.h2.jdbc.JdbcSQLException: General error: "java.lang.ClassCastException: org.h2.index.PageBtreeLeaf cannot be cast to org.h2.index.PageBtreeNode"; SQL statement: SELECT pipelines.id as pipelineId, pipelines.name as pipelineName, buildCauseType, label, buildCauseMessage, pipelines.counter as pipelineCounter, pipelines.label as pipelineLabel, pipelines.naturalOrder as naturalOrder, pipelines.comment as pipelineComment, stages.name as stageName,stages.counter as stageCounter, stages.id as stageId, stages.approvedBy as approvedBy, stages.approvalType as approvalType, stages.result as stageResult, stages.latestRun, stages.rerunOfCounter, builds.id as buildId, builds.name as buildName, builds.state as buildState, builds.result as buildResult, builds.scheduledDate as scheduledDate, stages.orderId as orderId FROM pipelines INNER JOIN stages ON stages.pipelineId = pipelines.id AND stages.latestRun = true INNER JOIN builds ON builds.stageId = stages.id AND builds.ignored != true INNER JOIN ( SELECT stages.pipelineId AS id FROM stages WHERE stages.state = 'Building' AND latestRun = true UNION SELECT max(pipelines.id) AS id FROM pipelines GROUP BY pipelines.name ) pipelines_to_show ON pipelines.id = pipelines_to_show.id ORDER BY pipelines.id DESC, stages.orderId ASC [50000-168]; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurred in com/thoughtworks/go/server/dao/maps/Pipeline.xml. --- The error occurred while applying a parameter map. --- Check the allActivePipelines-InlineParameterMap. --- Check the statement (query failed). --- Cause: org.h2.jdbc.JdbcSQLException: General error: "java.lang.ClassCastException: org.h2.index.PageBtreeLeaf cannot be cast to org.h2.index.PageBtreeNode"; SQL statement: SELECT pipelines.id as pipelineId, pipelines.name as pipelineName, buildCauseType, label, buildCauseMessage, pipelines.counter as pipelineCounter, pipelines.label as pipelineLabel, pipelines.naturalOrder as naturalOrder, pipelines.comment as pipelineComment, stages.name as stageName,stages.counter as stageCounter, stages.id as stageId, stages.approvedBy as approvedBy, stages.approvalType as approvalType, stages.result as stageResult, stages.latestRun, stages.rerunOfCounter, builds.id as buildId, builds.name as buildName, builds.state as buildState, builds.result as buildResult, builds.scheduledDate as scheduledDate, stages.orderId as orderId FROM pipelines INNER JOIN stages ON stages.pipelineId = pipelines.id AND stages.latestRun = true INNER JOIN builds ON builds.stageId = stages.id AND builds.ignored != true INNER JOIN ( SELECT stages.pipelineId AS id FROM stages WHERE stages.state = 'Building' AND latestRun = true UNION SELECT max(pipelines.id) AS id FROM pipelines GROUP BY pipelines.name ) pipelines_to_show ON pipelines.id = pipelines_to_show.id ORDER BY pipelines.id DESC, stages.orderId ASC [50000-168] at com.thoughtworks.go.server.dao.PipelineSqlMapDao.initialize(PipelineSqlMapDao.java:99) at com.thoughtworks.go.server.initializers.ApplicationInitializer.onApplicationEvent(ApplicationInitializer.java:127) ... 37 more Caused by: org.springframework.jdbc.UncategorizedSQLException: SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [HY000]; error code [50000]; --- The error occurred in com/thoughtworks/go/server/dao/maps/Pipeline.xml. --- The error occurred while applying a parameter map. --- Check the allActivePipelines-InlineParameterMap. --- Check the statement (query failed). --- Cause: org.h2.jdbc.JdbcSQLException: General error: "java.lang.ClassCastException: org.h2.index.PageBtreeLeaf cannot be cast to org.h2.index.PageBtreeNode"; SQL statement: SELECT pipelines.id as pipelineId, pipelines.name as pipelineName, buildCauseType, label, buildCauseMessage, pipelines.counter as pipelineCounter, pipelines.label as pipelineLabel, pipelines.naturalOrder as naturalOrder, pipelines.comment as pipelineComment, stages.name as stageName,stages.counter as stageCounter, stages.id as stageId, stages.approvedBy as approvedBy, stages.approvalType as approvalType, stages.result as stageResult, stages.latestRun, stages.rerunOfCounter, builds.id as buildId, builds.name as buildName, builds.state as buildState, builds.result as buildResult, builds.scheduledDate as scheduledDate, stages.orderId as orderId FROM pipelines INNER JOIN stages ON stages.pipelineId = pipelines.id AND stages.latestRun = true INNER JOIN builds ON builds.stageId = stages.id AND builds.ignored != true INNER JOIN ( SELECT stages.pipelineId AS id FROM stages WHERE stages.state = 'Building' AND latestRun = true UNION SELECT max(pipelines.id) AS id FROM pipelines GROUP BY pipelines.name ) pipelines_to_show ON pipelines.id = pipelines_to_show.id ORDER BY pipelines.id DESC, stages.orderId ASC [50000-168]; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurred in com/thoughtworks/go/server/dao/maps/Pipeline.xml. --- The error occurred while applying a parameter map. --- Check the allActivePipelines-InlineParameterMap. --- Check the statement (query failed). --- Cause: org.h2.jdbc.JdbcSQLException: General error: "java.lang.ClassCastException: org.h2.index.PageBtreeLeaf cannot be cast to org.h2.index.PageBtreeNode"; SQL statement: SELECT pipelines.id as pipelineId, pipelines.name as pipelineName, buildCauseType, label, buildCauseMessage, pipelines.counter as pipelineCounter, pipelines.label as pipelineLabel, pipelines.naturalOrder as naturalOrder, pipelines.comment as pipelineComment, stages.name as stageName,stages.counter as stageCounter, stages.id as stageId, stages.approvedBy as approvedBy, stages.approvalType as approvalType, stages.result as stageResult, stages.latestRun, stages.rerunOfCounter, builds.id as buildId, builds.name as buildName, builds.state as buildState, builds.result as buildResult, builds.scheduledDate as scheduledDate, stages.orderId as orderId FROM pipelines INNER JOIN stages ON stages.pipelineId = pipelines.id AND stages.latestRun = true INNER JOIN builds ON builds.stageId = stages.id AND builds.ignored != true INNER JOIN ( SELECT stages.pipelineId AS id FROM stages WHERE stages.state = 'Building' AND latestRun = true UNION SELECT max(pipelines.id) AS id FROM pipelines GROUP BY pipelines.name ) pipelines_to_show ON pipelines.id = pipelines_to_show.id ORDER BY pipelines.id DESC, stages.orderId ASC [50000-168] at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:83) at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:80) at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:80) at org.springframework.orm.ibatis.SqlMapClientTemplate.execute(SqlMapClientTemplate.java:203) at com.thoughtworks.go.server.transaction.SqlMapClientDaoSupport$SqlMapClientTemplate.execute(SqlMapClientDaoSupport.java:112) at org.springframework.orm.ibatis.SqlMapClientTemplate.queryForList(SqlMapClientTemplate.java:293) at com.thoughtworks.go.server.transaction.SqlMapClientDaoSupport$SqlMapClientTemplate.access$601(SqlMapClientDaoSupport.java:39) at com.thoughtworks.go.server.transaction.SqlMapClientDaoSupport$SqlMapClientTemplate$5.execute(SqlMapClientDaoSupport.java:105) at com.thoughtworks.go.server.transaction.SqlMapClientDaoSupport$SqlMapClientTemplate$5.execute(SqlMapClientDaoSupport.java:103) at com.thoughtworks.go.server.transaction.SqlMapClientDaoSupport$SqlMapClientTemplate.executeInternal(SqlMapClientDaoSupport.java:120) at com.thoughtworks.go.server.transaction.SqlMapClientDaoSupport$SqlMapClientTemplate.queryForList(SqlMapClientDaoSupport.java:103) at org.springframework.orm.ibatis.SqlMapClientTemplate.queryForList(SqlMapClientTemplate.java:287) at com.thoughtworks.go.server.dao.PipelineSqlMapDao.getAllPIMs(PipelineSqlMapDao.java:401) at com.thoughtworks.go.server.dao.PipelineSqlMapDao.cacheActivePipelines(PipelineSqlMapDao.java:391) at com.thoughtworks.go.server.dao.PipelineSqlMapDao.initialize(PipelineSqlMapDao.java:95) ... 38 more Caused by: com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurred in com/thoughtworks/go/server/dao/maps/Pipeline.xml. --- The error occurred while applying a parameter map. --- Check the allActivePipelines-InlineParameterMap. --- Check the statement (query failed). --- Cause: org.h2.jdbc.JdbcSQLException: General error: "java.lang.ClassCastException: org.h2.index.PageBtreeLeaf cannot be cast to org.h2.index.PageBtreeNode"; SQL statement: SELECT pipelines.id as pipelineId, pipelines.name as pipelineName, buildCauseType, label, buildCauseMessage, pipelines.counter as pipelineCounter, pipelines.label as pipelineLabel, pipelines.naturalOrder as naturalOrder, pipelines.comment as pipelineComment, stages.name as stageName,stages.counter as stageCounter, stages.id as stageId, stages.approvedBy as approvedBy, stages.approvalType as approvalType, stages.result as stageResult, stages.latestRun, stages.rerunOfCounter, builds.id as buildId, builds.name as buildName, builds.state as buildState, builds.result as buildResult, builds.scheduledDate as scheduledDate, stages.orderId as orderId FROM pipelines INNER JOIN stages ON stages.pipelineId = pipelines.id AND stages.latestRun = true INNER JOIN builds ON builds.stageId = stages.id AND builds.ignored != true INNER JOIN ( SELECT stages.pipelineId AS id FROM stages WHERE stages.state = 'Building' AND latestRun = true UNION SELECT max(pipelines.id) AS id FROM pipelines GROUP BY pipelines.name ) pipelines_to_show ON pipelines.id = pipelines_to_show.id ORDER BY pipelines.id DESC, stages.orderId ASC [50000-168] at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryWithCallback(MappedStatement.java:201) at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryForList(MappedStatement.java:139) at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:567) at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:541) at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.queryForList(SqlMapSessionImpl.java:118) at org.springframework.orm.ibatis.SqlMapClientTemplate$3.doInSqlMapClient(SqlMapClientTemplate.java:295) at org.springframework.orm.ibatis.SqlMapClientTemplate$3.doInSqlMapClient(SqlMapClientTemplate.java:1) at org.springframework.orm.ibatis.SqlMapClientTemplate.execute(SqlMapClientTemplate.java:200) ... 49 more Caused by: org.h2.jdbc.JdbcSQLException: General error: "java.lang.ClassCastException: org.h2.index.PageBtreeLeaf cannot be cast to org.h2.index.PageBtreeNode"; SQL statement: SELECT pipelines.id as pipelineId, pipelines.name as pipelineName, buildCauseType, label, buildCauseMessage, pipelines.counter as pipelineCounter, pipelines.label as pipelineLabel, pipelines.naturalOrder as naturalOrder, pipelines.comment as pipelineComment, stages.name as stageName,stages.counter as stageCounter, stages.id as stageId, stages.approvedBy as approvedBy, stages.approvalType as approvalType, stages.result as stageResult, stages.latestRun, stages.rerunOfCounter, builds.id as buildId, builds.name as buildName, builds.state as buildState, builds.result as buildResult, builds.scheduledDate as scheduledDate, stages.orderId as orderId FROM pipelines INNER JOIN stages ON stages.pipelineId = pipelines.id AND stages.latestRun = true INNER JOIN builds ON builds.stageId = stages.id AND builds.ignored != true INNER JOIN ( SELECT stages.pipelineId AS id FROM stages WHERE stages.state = 'Building' AND latestRun = true UNION SELECT max(pipelines.id) AS id FROM pipelines GROUP BY pipelines.name ) pipelines_to_show ON pipelines.id = pipelines_to_show.id ORDER BY pipelines.id DESC, stages.orderId ASC [50000-168] at org.h2.message.DbException.getJdbcSQLException(DbException.java:329) at org.h2.message.DbException.get(DbException.java:158) at org.h2.message.DbException.convert(DbException.java:281) at org.h2.command.Command.executeQuery(Command.java:195) at org.h2.jdbc.JdbcPreparedStatement.execute(JdbcPreparedStatement.java:190) at org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:172) at org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:172) at com.ibatis.sqlmap.engine.execution.SqlExecutor.executeQuery(SqlExecutor.java:185) at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.sqlExecuteQuery(MappedStatement.java:221) at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryWithCallback(MappedStatement.java:189) ... 56 more Caused by: java.lang.ClassCastException: org.h2.index.PageBtreeLeaf cannot be cast to org.h2.index.PageBtreeNode at org.h2.index.PageBtreeLeaf.nextPage(PageBtreeLeaf.java:322) at org.h2.index.PageBtreeCursor.next(PageBtreeCursor.java:59) at org.h2.index.MultiVersionCursor.step(MultiVersionCursor.java:73) at org.h2.index.MultiVersionCursor.loadNext(MultiVersionCursor.java:57) at org.h2.index.MultiVersionCursor.next(MultiVersionCursor.java:105) at org.h2.index.IndexCursor.next(IndexCursor.java:238) at org.h2.table.TableFilter.next(TableFilter.java:353) at org.h2.command.dml.Select.queryGroupSorted(Select.java:159) at org.h2.command.dml.Select.queryWithoutCache(Select.java:611) at org.h2.command.dml.Query.query(Query.java:307) at org.h2.command.dml.Query.query(Query.java:277) at org.h2.command.dml.SelectUnion.queryWithoutCache(SelectUnion.java:179) at org.h2.command.dml.SelectUnion.query(SelectUnion.java:391) at org.h2.command.dml.Query.query(Query.java:277) at org.h2.index.ViewIndex.find(ViewIndex.java:244) at org.h2.index.BaseIndex.find(BaseIndex.java:102) at org.h2.index.IndexCursor.find(IndexCursor.java:145) at org.h2.table.TableFilter.next(TableFilter.java:322) at org.h2.command.dml.Select.queryFlat(Select.java:513) at org.h2.command.dml.Select.queryWithoutCache(Select.java:618) at org.h2.command.dml.Query.query(Query.java:307) at org.h2.command.dml.Query.query(Query.java:277) at org.h2.command.dml.Query.query(Query.java:36) at org.h2.command.CommandContainer.query(CommandContainer.java:86) at org.h2.command.Command.executeQuery(Command.java:191) ... 62 more ERROR: Failed to start Go server. Please check the logs. java.lang.RuntimeException: Failed to start Go server. at com.thoughtworks.go.server.GoServer.startServer(GoServer.java:77) at com.thoughtworks.go.server.GoServer.go(GoServer.java:63) at com.thoughtworks.go.server.util.GoLauncher.main(GoLauncher.java:31) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.simontuffs.onejar.Boot.run(Boot.java:306) at com.simontuffs.onejar.Boot.main(Boot.java:159) Caused by: java.lang.RuntimeException: java.lang.RuntimeException: org.springframework.jdbc.UncategorizedSQLException: SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [HY000]; error code [50000]; --- The error occurred in com/thoughtworks/go/server/dao/maps/Pipeline.xml. --- The error occurred while applying a parameter map. --- Check the allActivePipelines-InlineParameterMap. --- Check the statement (query failed). --- Cause: org.h2.jdbc.JdbcSQLException: General error: "java.lang.ClassCastException: org.h2.index.PageBtreeLeaf cannot be cast to org.h2.index.PageBtreeNode"; SQL statement: SELECT pipelines.id as pipelineId, pipelines.name as pipelineName, buildCauseType, label, buildCauseMessage, pipelines.counter as pipelineCounter, pipelines.label as pipelineLabel, pipelines.naturalOrder as naturalOrder, pipelines.comment as pipelineComment, stages.name as stageName,stages.counter as stageCounter, stages.id as stageId, stages.approvedBy as approvedBy, stages.approvalType as approvalType, stages.result as stageResult, stages.latestRun, stages.rerunOfCounter, builds.id as buildId, builds.name as buildName, builds.state as buildState, builds.result as buildResult, builds.scheduledDate as scheduledDate, stages.orderId as orderId FROM pipelines INNER JOIN stages ON stages.pipelineId = pipelines.id AND stages.latestRun = true INNER JOIN builds ON builds.stageId = stages.id AND builds.ignored != true INNER JOIN ( SELECT stages.pipelineId AS id FROM stages WHERE stages.state = 'Building' AND latestRun = true UNION SELECT max(pipelines.id) AS id FROM pipelines GROUP BY pipelines.name ) pipelines_to_show ON pipelines.id = pipelines_to_show.id ORDER BY pipelines.id DESC, stages.orderId ASC [50000-168]; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurred in com/thoughtworks/go/server/dao/maps/Pipeline.xml. --- The error occurred while applying a parameter map. --- Check the allActivePipelines-InlineParameterMap. --- Check the statement (query failed). --- Cause: org.h2.jdbc.JdbcSQLException: General error: "java.lang.ClassCastException: org.h2.index.PageBtreeLeaf cannot be cast to org.h2.index.PageBtreeNode"; SQL statement: SELECT pipelines.id as pipelineId, pipelines.name as pipelineName, buildCauseType, label, buildCauseMessage, pipelines.counter as pipelineCounter, pipelines.label as pipelineLabel, pipelines.naturalOrder as naturalOrder, pipelines.comment as pipelineComment, stages.name as stageName,stages.counter as stageCounter, stages.id as stageId, stages.approvedBy as approvedBy, stages.approvalType as approvalType, stages.result as stageResult, stages.latestRun, stages.rerunOfCounter, builds.id as buildId, builds.name as buildName, builds.state as buildState, builds.result as buildResult, builds.scheduledDate as scheduledDate, stages.orderId as orderId FROM pipelines INNER JOIN stages ON stages.pipelineId = pipelines.id AND stages.latestRun = true INNER JOIN builds ON builds.stageId = stages.id AND builds.ignored != true INNER JOIN ( SELECT stages.pipelineId AS id FROM stages WHERE stages.state = 'Building' AND latestRun = true UNION SELECT max(pipelines.id) AS id FROM pipelines GROUP BY pipelines.name ) pipelines_to_show ON pipelines.id = pipelines_to_show.id ORDER BY pipelines.id DESC, stages.orderId ASC [50000-168] at com.thoughtworks.go.server.initializers.ApplicationInitializer.onApplicationEvent(ApplicationInitializer.java:142) at com.thoughtworks.go.server.initializers.ApplicationInitializer.onApplicationEvent(ApplicationInitializer.java:48) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:327) at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:941) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:475) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111) at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:800) at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:444) at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:791) at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:294) at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1349) at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1342) at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741) at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:505) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114) at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132) at org.eclipse.jetty.server.Server.start(Server.java:387) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114) at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61) at org.eclipse.jetty.server.Server.doStart(Server.java:354) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at com.thoughtworks.go.server.Jetty9Server.start(Jetty9Server.java:89) at com.thoughtworks.go.server.GoServer.startServer(GoServer.java:71) ... 8 more Caused by: java.lang.RuntimeException: org.springframework.jdbc.UncategorizedSQLException: SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [HY000]; error code [50000]; --- The error occurred in com/thoughtworks/go/server/dao/maps/Pipeline.xml. --- The error occurred while applying a parameter map. --- Check the allActivePipelines-InlineParameterMap. --- Check the statement (query failed). --- Cause: org.h2.jdbc.JdbcSQLException: General error: "java.lang.ClassCastException: org.h2.index.PageBtreeLeaf cannot be cast to org.h2.index.PageBtreeNode"; SQL statement: SELECT pipelines.id as pipelineId, pipelines.name as pipelineName, buildCauseType, label, buildCauseMessage, pipelines.counter as pipelineCounter, pipelines.label as pipelineLabel, pipelines.naturalOrder as naturalOrder, pipelines.comment as pipelineComment, stages.name as stageName,stages.counter as stageCounter, stages.id as stageId, stages.approvedBy as approvedBy, stages.approvalType as approvalType, stages.result as stageResult, stages.latestRun, stages.rerunOfCounter, builds.id as buildId, builds.name as buildName, builds.state as buildState, builds.result as buildResult, builds.scheduledDate as scheduledDate, stages.orderId as orderId FROM pipelines INNER JOIN stages ON stages.pipelineId = pipelines.id AND stages.latestRun = true INNER JOIN builds ON builds.stageId = stages.id AND builds.ignored != true INNER JOIN ( SELECT stages.pipelineId AS id FROM stages WHERE stages.state = 'Building' AND latestRun = true UNION SELECT max(pipelines.id) AS id FROM pipelines GROUP BY pipelines.name ) pipelines_to_show ON pipelines.id = pipelines_to_show.id ORDER BY pipelines.id DESC, stages.orderId ASC [50000-168]; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurred in com/thoughtworks/go/server/dao/maps/Pipeline.xml. --- The error occurred while applying a parameter map. --- Check the allActivePipelines-InlineParameterMap. --- Check the statement (query failed). --- Cause: org.h2.jdbc.JdbcSQLException: General error: "java.lang.ClassCastException: org.h2.index.PageBtreeLeaf cannot be cast to org.h2.index.PageBtreeNode"; SQL statement: SELECT pipelines.id as pipelineId, pipelines.name as pipelineName, buildCauseType, label, buildCauseMessage, pipelines.counter as pipelineCounter, pipelines.label as pipelineLabel, pipelines.naturalOrder as naturalOrder, pipelines.comment as pipelineComment, stages.name as stageName,stages.counter as stageCounter, stages.id as stageId, stages.approvedBy as approvedBy, stages.approvalType as approvalType, stages.result as stageResult, stages.latestRun, stages.rerunOfCounter, builds.id as buildId, builds.name as buildName, builds.state as buildState, builds.result as buildResult, builds.scheduledDate as scheduledDate, stages.orderId as orderId FROM pipelines INNER JOIN stages ON stages.pipelineId = pipelines.id AND stages.latestRun = true INNER JOIN builds ON builds.stageId = stages.id AND builds.ignored != true INNER JOIN ( SELECT stages.pipelineId AS id FROM stages WHERE stages.state = 'Building' AND latestRun = true UNION SELECT max(pipelines.id) AS id FROM pipelines GROUP BY pipelines.name ) pipelines_to_show ON pipelines.id = pipelines_to_show.id ORDER BY pipelines.id DESC, stages.orderId ASC [50000-168] at com.thoughtworks.go.server.dao.PipelineSqlMapDao.initialize(PipelineSqlMapDao.java:99) at com.thoughtworks.go.server.initializers.ApplicationInitializer.onApplicationEvent(ApplicationInitializer.java:127) ... 37 more Caused by: org.springframework.jdbc.UncategorizedSQLException: SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [HY000]; error code [50000]; --- The error occurred in com/thoughtworks/go/server/dao/maps/Pipeline.xml. --- The error occurred while applying a parameter map. --- Check the allActivePipelines-InlineParameterMap. --- Check the statement (query failed). --- Cause: org.h2.jdbc.JdbcSQLException: General error: "java.lang.ClassCastException: org.h2.index.PageBtreeLeaf cannot be cast to org.h2.index.PageBtreeNode"; SQL statement: SELECT pipelines.id as pipelineId, pipelines.name as pipelineName, buildCauseType, label, buildCauseMessage, pipelines.counter as pipelineCounter, pipelines.label as pipelineLabel, pipelines.naturalOrder as naturalOrder, pipelines.comment as pipelineComment, stages.name as stageName,stages.counter as stageCounter, stages.id as stageId, stages.approvedBy as approvedBy, stages.approvalType as approvalType, stages.result as stageResult, stages.latestRun, stages.rerunOfCounter, builds.id as buildId, builds.name as buildName, builds.state as buildState, builds.result as buildResult, builds.scheduledDate as scheduledDate, stages.orderId as orderId FROM pipelines INNER JOIN stages ON stages.pipelineId = pipelines.id AND stages.latestRun = true INNER JOIN builds ON builds.stageId = stages.id AND builds.ignored != true INNER JOIN ( SELECT stages.pipelineId AS id FROM stages WHERE stages.state = 'Building' AND latestRun = true UNION SELECT max(pipelines.id) AS id FROM pipelines GROUP BY pipelines.name ) pipelines_to_show ON pipelines.id = pipelines_to_show.id ORDER BY pipelines.id DESC, stages.orderId ASC [50000-168]; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurred in com/thoughtworks/go/server/dao/maps/Pipeline.xml. --- The error occurred while applying a parameter map. --- Check the allActivePipelines-InlineParameterMap. --- Check the statement (query failed). --- Cause: org.h2.jdbc.JdbcSQLException: General error: "java.lang.ClassCastException: org.h2.index.PageBtreeLeaf cannot be cast to org.h2.index.PageBtreeNode"; SQL statement: SELECT pipelines.id as pipelineId, pipelines.name as pipelineName, buildCauseType, label, buildCauseMessage, pipelines.counter as pipelineCounter, pipelines.label as pipelineLabel, pipelines.naturalOrder as naturalOrder, pipelines.comment as pipelineComment, stages.name as stageName,stages.counter as stageCounter, stages.id as stageId, stages.approvedBy as approvedBy, stages.approvalType as approvalType, stages.result as stageResult, stages.latestRun, stages.rerunOfCounter, builds.id as buildId, builds.name as buildName, builds.state as buildState, builds.result as buildResult, builds.scheduledDate as scheduledDate, stages.orderId as orderId FROM pipelines INNER JOIN stages ON stages.pipelineId = pipelines.id AND stages.latestRun = true INNER JOIN builds ON builds.stageId = stages.id AND builds.ignored != true INNER JOIN ( SELECT stages.pipelineId AS id FROM stages WHERE stages.state = 'Building' AND latestRun = true UNION SELECT max(pipelines.id) AS id FROM pipelines GROUP BY pipelines.name ) pipelines_to_show ON pipelines.id = pipelines_to_show.id ORDER BY pipelines.id DESC, stages.orderId ASC [50000-168] at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:83) at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:80) at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:80) at org.springframework.orm.ibatis.SqlMapClientTemplate.execute(SqlMapClientTemplate.java:203) at com.thoughtworks.go.server.transaction.SqlMapClientDaoSupport$SqlMapClientTemplate.execute(SqlMapClientDaoSupport.java:112) at org.springframework.orm.ibatis.SqlMapClientTemplate.queryForList(SqlMapClientTemplate.java:293) at com.thoughtworks.go.server.transaction.SqlMapClientDaoSupport$SqlMapClientTemplate.access$601(SqlMapClientDaoSupport.java:39) at com.thoughtworks.go.server.transaction.SqlMapClientDaoSupport$SqlMapClientTemplate$5.execute(SqlMapClientDaoSupport.java:105) at com.thoughtworks.go.server.transaction.SqlMapClientDaoSupport$SqlMapClientTemplate$5.execute(SqlMapClientDaoSupport.java:103) at com.thoughtworks.go.server.transaction.SqlMapClientDaoSupport$SqlMapClientTemplate.executeInternal(SqlMapClientDaoSupport.java:120) at com.thoughtworks.go.server.transaction.SqlMapClientDaoSupport$SqlMapClientTemplate.queryForList(SqlMapClientDaoSupport.java:103) at org.springframework.orm.ibatis.SqlMapClientTemplate.queryForList(SqlMapClientTemplate.java:287) at com.thoughtworks.go.server.dao.PipelineSqlMapDao.getAllPIMs(PipelineSqlMapDao.java:401) at com.thoughtworks.go.server.dao.PipelineSqlMapDao.cacheActivePipelines(PipelineSqlMapDao.java:391) at com.thoughtworks.go.server.dao.PipelineSqlMapDao.initialize(PipelineSqlMapDao.java:95) ... 38 more Caused by: com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurred in com/thoughtworks/go/server/dao/maps/Pipeline.xml. --- The error occurred while applying a parameter map. --- Check the allActivePipelines-InlineParameterMap. --- Check the statement (query failed). --- Cause: org.h2.jdbc.JdbcSQLException: General error: "java.lang.ClassCastException: org.h2.index.PageBtreeLeaf cannot be cast to org.h2.index.PageBtreeNode"; SQL statement: SELECT pipelines.id as pipelineId, pipelines.name as pipelineName, buildCauseType, label, buildCauseMessage, pipelines.counter as pipelineCounter, pipelines.label as pipelineLabel, pipelines.naturalOrder as naturalOrder, pipelines.comment as pipelineComment, stages.name as stageName,stages.counter as stageCounter, stages.id as stageId, stages.approvedBy as approvedBy, stages.approvalType as approvalType, stages.result as stageResult, stages.latestRun, stages.rerunOfCounter, builds.id as buildId, builds.name as buildName, builds.state as buildState, builds.result as buildResult, builds.scheduledDate as scheduledDate, stages.orderId as orderId FROM pipelines INNER JOIN stages ON stages.pipelineId = pipelines.id AND stages.latestRun = true INNER JOIN builds ON builds.stageId = stages.id AND builds.ignored != true INNER JOIN ( SELECT stages.pipelineId AS id FROM stages WHERE stages.state = 'Building' AND latestRun = true UNION SELECT max(pipelines.id) AS id FROM pipelines GROUP BY pipelines.name ) pipelines_to_show ON pipelines.id = pipelines_to_show.id ORDER BY pipelines.id DESC, stages.orderId ASC [50000-168] at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryWithCallback(MappedStatement.java:201) at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryForList(MappedStatement.java:139) at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:567) at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:541) at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.queryForList(SqlMapSessionImpl.java:118) at org.springframework.orm.ibatis.SqlMapClientTemplate$3.doInSqlMapClient(SqlMapClientTemplate.java:295) at org.springframework.orm.ibatis.SqlMapClientTemplate$3.doInSqlMapClient(SqlMapClientTemplate.java:1) at org.springframework.orm.ibatis.SqlMapClientTemplate.execute(SqlMapClientTemplate.java:200) ... 49 more Caused by: org.h2.jdbc.JdbcSQLException: General error: "java.lang.ClassCastException: org.h2.index.PageBtreeLeaf cannot be cast to org.h2.index.PageBtreeNode"; SQL statement: SELECT pipelines.id as pipelineId, pipelines.name as pipelineName, buildCauseType, label, buildCauseMessage, pipelines.counter as pipelineCounter, pipelines.label as pipelineLabel, pipelines.naturalOrder as naturalOrder, pipelines.comment as pipelineComment, stages.name as stageName,stages.counter as stageCounter, stages.id as stageId, stages.approvedBy as approvedBy, stages.approvalType as approvalType, stages.result as stageResult, stages.latestRun, stages.rerunOfCounter, builds.id as buildId, builds.name as buildName, builds.state as buildState, builds.result as buildResult, builds.scheduledDate as scheduledDate, stages.orderId as orderId FROM pipelines INNER JOIN stages ON stages.pipelineId = pipelines.id AND stages.latestRun = true INNER JOIN builds ON builds.stageId = stages.id AND builds.ignored != true INNER JOIN ( SELECT stages.pipelineId AS id FROM stages WHERE stages.state = 'Building' AND latestRun = true UNION SELECT max(pipelines.id) AS id FROM pipelines GROUP BY pipelines.name ) pipelines_to_show ON pipelines.id = pipelines_to_show.id ORDER BY pipelines.id DESC, stages.orderId ASC [50000-168] at org.h2.message.DbException.getJdbcSQLException(DbException.java:329) at org.h2.message.DbException.get(DbException.java:158) at org.h2.message.DbException.convert(DbException.java:281) at org.h2.command.Command.executeQuery(Command.java:195) at org.h2.jdbc.JdbcPreparedStatement.execute(JdbcPreparedStatement.java:190) at org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:172) at org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:172) at com.ibatis.sqlmap.engine.execution.SqlExecutor.executeQuery(SqlExecutor.java:185) at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.sqlExecuteQuery(MappedStatement.java:221) at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryWithCallback(MappedStatement.java:189) ... 56 more Caused by: java.lang.ClassCastException: org.h2.index.PageBtreeLeaf cannot be cast to org.h2.index.PageBtreeNode at org.h2.index.PageBtreeLeaf.nextPage(PageBtreeLeaf.java:322) at org.h2.index.PageBtreeCursor.next(PageBtreeCursor.java:59) at org.h2.index.MultiVersionCursor.step(MultiVersionCursor.java:73) at org.h2.index.MultiVersionCursor.loadNext(MultiVersionCursor.java:57) at org.h2.index.MultiVersionCursor.next(MultiVersionCursor.java:105) at org.h2.index.IndexCursor.next(IndexCursor.java:238) at org.h2.table.TableFilter.next(TableFilter.java:353) at org.h2.command.dml.Select.queryGroupSorted(Select.java:159) at org.h2.command.dml.Select.queryWithoutCache(Select.java:611) at org.h2.command.dml.Query.query(Query.java:307) at org.h2.command.dml.Query.query(Query.java:277) at org.h2.command.dml.SelectUnion.queryWithoutCache(SelectUnion.java:179) at org.h2.command.dml.SelectUnion.query(SelectUnion.java:391) at org.h2.command.dml.Query.query(Query.java:277) at org.h2.index.ViewIndex.find(ViewIndex.java:244) at org.h2.index.BaseIndex.find(BaseIndex.java:102) at org.h2.index.IndexCursor.find(IndexCursor.java:145) at org.h2.table.TableFilter.next(TableFilter.java:322) at org.h2.command.dml.Select.queryFlat(Select.java:513) at org.h2.command.dml.Select.queryWithoutCache(Select.java:618) at org.h2.command.dml.Query.query(Query.java:307) at org.h2.command.dml.Query.query(Query.java:277) at org.h2.command.dml.Query.query(Query.java:36) at org.h2.command.CommandContainer.query(CommandContainer.java:86) at org.h2.command.Command.executeQuery(Command.java:191) ... 62 more