Failed

org.msh.etbm.test.desktop.AppInitTest.testWorkspaceList (from TestSuite)

Failing for the past 2 builds (Since Failed#15 )
Took 7.2 sec.

Error Message

Connection error

Stacktrace

java.lang.RuntimeException: Connection error
	at org.msh.etbm.sync.ServerServices.getWorkspaces(ServerServices.java:107)
	at org.msh.etbm.test.desktop.AppInitTest.testWorkspaceList(AppInitTest.java:44)

Standard Output

Configuring TestNG with: org.apache.maven.surefire.testng.conf.TestNGMapConfigurator@3b764bce
1. Create database
18:30:59,779  INFO ClassPathXmlApplicationContext:495 - Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@2bbf4b8b: startup date [Wed Apr 26 18:30:59 EDT 2017]; root of context hierarchy
18:30:59,842  INFO XmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [applicationContext.xml]
18:31:02,420  INFO DefaultListableBeanFactory:623 - Overriding bean definition for bean 'caseFilters': replacing [Generic bean: class [org.msh.etbm.services.cases.CaseFilters]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in file [C:\apps\jenkins\workspace\eTBM_Desktop\target\classes\org\msh\etbm\services\cases\CaseFilters.class]] with [Generic bean: class [org.msh.etbm.services.cases.CaseFilters]; scope=singleton; abstract=false; lazyInit=false; autowireMode=2; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [applicationContext.xml]]
18:31:02,654  INFO DefaultListableBeanFactory:557 - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@e056f20: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,changeTreatPeriodController,startTreatmentController,examBiopsyServices,examSkinServices,globalLists_bd,newNotificationFlow,packageList,formManagerFactory,adminUnits,caseCloseService,caseFilters,casePermissionServices,caseServices,casesQuery,caseStateReport,comorbiditiesServices,contactServices,examCultureServices,examDSTServices,examHivServices,examMicroscopyServices,examXpertServices,examXRayServices,medicalExaminationServices,patientServices,prevTBTreatController,sideEffectServices,startTreatmentServices,treatmentFollowupServices,treatmentPeriodUtilities,treatmentServices,serverSignatureServices,medicineServices,fieldsOptions,globalLists,regimenServices,sourceServices,tagServices,serverServices,transactionManager,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,entityManagerFactory,entityManager,expressions,formManager,defaultWorkspace,userWorkspace,authenticator,userSession,org.springframework.context.annotation.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0]; root of factory hierarchy
18:31:02,779  INFO Version:15 - Hibernate Annotations 3.4.0.GA
18:31:02,795  INFO Environment:543 - Hibernate 3.3.0.SP1
18:31:02,795  INFO Environment:576 - hibernate.properties not found
18:31:02,795  INFO Environment:709 - Bytecode provider name : javassist
18:31:02,795  INFO Environment:627 - using JDK 1.4 java.sql.Timestamp handling
18:31:02,842  INFO Version:14 - Hibernate Commons Annotations 3.1.0.GA
18:31:02,842  INFO Version:16 - Hibernate EntityManager 3.4.0.GA
18:31:03,123  INFO AnnotationBinder:419 - Binding entity from annotated class: org.msh.etbm.entities.AdministrativeUnit
18:31:03,154  INFO EntityBinder:422 - Bind entity org.msh.etbm.entities.AdministrativeUnit on table administrativeunit
18:31:03,248  INFO AnnotationBinder:419 - Binding entity from annotated class: org.msh.etbm.entities.CaseComorbidity
18:31:03,248  INFO EntityBinder:422 - Bind entity org.msh.etbm.entities.CaseComorbidity on table casecomorbidity
18:31:03,264  INFO AnnotationBinder:419 - Binding entity from annotated class: org.msh.etbm.entities.CaseSideEffect
18:31:03,264  INFO EntityBinder:422 - Bind entity org.msh.etbm.entities.CaseSideEffect on table casesideeffect
18:31:03,279  INFO AnnotationBinder:419 - Binding entity from annotated class: org.msh.etbm.entities.CountryStructure
18:31:03,279  INFO EntityBinder:422 - Bind entity org.msh.etbm.entities.CountryStructure on table countrystructure
18:31:03,279  INFO AnnotationBinder:419 - Binding entity from annotated class: org.msh.etbm.entities.ExamCulture
18:31:03,279  INFO EntityBinder:422 - Bind entity org.msh.etbm.entities.ExamCulture on table examculture
18:31:03,279  INFO AnnotationBinder:419 - Binding entity from annotated class: org.msh.etbm.entities.ExamDST
18:31:03,279  INFO EntityBinder:422 - Bind entity org.msh.etbm.entities.ExamDST on table examdst
18:31:03,279  INFO AnnotationBinder:419 - Binding entity from annotated class: org.msh.etbm.entities.ExamDSTResult
18:31:03,279  INFO EntityBinder:422 - Bind entity org.msh.etbm.entities.ExamDSTResult on table examdstresult
18:31:03,279  INFO AnnotationBinder:419 - Binding entity from annotated class: org.msh.etbm.entities.ExamHIV
18:31:03,279  INFO EntityBinder:422 - Bind entity org.msh.etbm.entities.ExamHIV on table examhiv
18:31:03,295  INFO AnnotationBinder:419 - Binding entity from annotated class: org.msh.etbm.entities.ExamMicroscopy
18:31:03,295  INFO EntityBinder:422 - Bind entity org.msh.etbm.entities.ExamMicroscopy on table exammicroscopy
18:31:03,295  INFO AnnotationBinder:419 - Binding entity from annotated class: org.msh.etbm.entities.ExamXRay
18:31:03,295  INFO EntityBinder:422 - Bind entity org.msh.etbm.entities.ExamXRay on table examxray
18:31:03,295  INFO AnnotationBinder:419 - Binding entity from annotated class: org.msh.etbm.entities.FieldValue
18:31:03,295  INFO EntityBinder:422 - Bind entity org.msh.etbm.entities.FieldValue on table fieldvalue
18:31:03,295  INFO AnnotationBinder:419 - Binding entity from annotated class: org.msh.etbm.entities.HealthSystem
18:31:03,295  INFO EntityBinder:422 - Bind entity org.msh.etbm.entities.HealthSystem on table healthsystem
18:31:03,310  INFO AnnotationBinder:419 - Binding entity from annotated class: org.msh.etbm.entities.Laboratory
18:31:03,310  INFO EntityBinder:422 - Bind entity org.msh.etbm.entities.Laboratory on table laboratory
18:31:03,310  INFO AnnotationBinder:419 - Binding entity from annotated class: org.msh.etbm.entities.MedicalExamination
18:31:03,310  INFO EntityBinder:422 - Bind entity org.msh.etbm.entities.MedicalExamination on table medicalexamination
18:31:03,310  INFO AnnotationBinder:419 - Binding entity from annotated class: org.msh.etbm.entities.Medicine
18:31:03,310  INFO EntityBinder:422 - Bind entity org.msh.etbm.entities.Medicine on table medicine
18:31:03,310  INFO AnnotationBinder:419 - Binding entity from annotated class: org.msh.etbm.entities.MedicineComponent
18:31:03,310  INFO EntityBinder:422 - Bind entity org.msh.etbm.entities.MedicineComponent on table medicinecomponent
18:31:03,310  INFO AnnotationBinder:419 - Binding entity from annotated class: org.msh.etbm.entities.MedicineRegimen
18:31:03,310  INFO EntityBinder:422 - Bind entity org.msh.etbm.entities.MedicineRegimen on table medicineregimen
18:31:03,326  INFO AnnotationBinder:419 - Binding entity from annotated class: org.msh.etbm.entities.Patient
18:31:03,326  INFO EntityBinder:422 - Bind entity org.msh.etbm.entities.Patient on table patient
18:31:03,326  INFO AnnotationBinder:419 - Binding entity from annotated class: org.msh.etbm.entities.PrescribedMedicine
18:31:03,326  INFO EntityBinder:422 - Bind entity org.msh.etbm.entities.PrescribedMedicine on table prescribedmedicine
18:31:03,326  INFO AnnotationBinder:419 - Binding entity from annotated class: org.msh.etbm.entities.PrevTBTreatment
18:31:03,326  INFO EntityBinder:422 - Bind entity org.msh.etbm.entities.PrevTBTreatment on table prevtbtreatment
18:31:03,326  INFO AnnotationBinder:419 - Binding entity from annotated class: org.msh.etbm.entities.Regimen
18:31:03,326  INFO EntityBinder:422 - Bind entity org.msh.etbm.entities.Regimen on table regimen
18:31:03,326  INFO AnnotationBinder:419 - Binding entity from annotated class: org.msh.etbm.entities.SequenceInfo
18:31:03,326  INFO EntityBinder:422 - Bind entity org.msh.etbm.entities.SequenceInfo on table sequenceinfo
18:31:03,326  INFO AnnotationBinder:419 - Binding entity from annotated class: org.msh.etbm.entities.Source
18:31:03,326  INFO EntityBinder:422 - Bind entity org.msh.etbm.entities.Source on table source
18:31:03,342  INFO AnnotationBinder:419 - Binding entity from annotated class: org.msh.etbm.entities.Substance
18:31:03,342  INFO EntityBinder:422 - Bind entity org.msh.etbm.entities.Substance on table substance
18:31:03,342  INFO AnnotationBinder:419 - Binding entity from annotated class: org.msh.etbm.entities.Tag
18:31:03,342  INFO EntityBinder:422 - Bind entity org.msh.etbm.entities.Tag on table tag
18:31:03,342  INFO AnnotationBinder:419 - Binding entity from annotated class: org.msh.etbm.entities.TbCase
18:31:03,342  INFO EntityBinder:422 - Bind entity org.msh.etbm.entities.TbCase on table tbcase
18:31:03,357  INFO AnnotationBinder:419 - Binding entity from annotated class: org.msh.etbm.entities.TbContact
18:31:03,357  INFO EntityBinder:422 - Bind entity org.msh.etbm.entities.TbContact on table tbcontact
18:31:03,357  INFO AnnotationBinder:419 - Binding entity from annotated class: org.msh.etbm.entities.Tbunit
18:31:03,357  INFO EntityBinder:422 - Bind entity org.msh.etbm.entities.Tbunit on table tbunit
18:31:03,373  INFO AnnotationBinder:419 - Binding entity from annotated class: org.msh.etbm.entities.TreatmentHealthUnit
18:31:03,373  INFO EntityBinder:422 - Bind entity org.msh.etbm.entities.TreatmentHealthUnit on table treatmenthealthunit
18:31:03,373  INFO AnnotationBinder:419 - Binding entity from annotated class: org.msh.etbm.entities.User
18:31:03,373  INFO EntityBinder:422 - Bind entity org.msh.etbm.entities.User on table sys_user
18:31:03,373  INFO AnnotationBinder:419 - Binding entity from annotated class: org.msh.etbm.entities.UserPermission
18:31:03,373  INFO EntityBinder:422 - Bind entity org.msh.etbm.entities.UserPermission on table userpermission
18:31:03,373  INFO AnnotationBinder:419 - Binding entity from annotated class: org.msh.etbm.entities.UserProfile
18:31:03,373  INFO EntityBinder:422 - Bind entity org.msh.etbm.entities.UserProfile on table userprofile
18:31:03,373  INFO AnnotationBinder:419 - Binding entity from annotated class: org.msh.etbm.entities.UserRole
18:31:03,373  INFO EntityBinder:422 - Bind entity org.msh.etbm.entities.UserRole on table userrole
18:31:03,373  INFO AnnotationBinder:419 - Binding entity from annotated class: org.msh.etbm.entities.UserWorkspace
18:31:03,373  INFO EntityBinder:422 - Bind entity org.msh.etbm.entities.UserWorkspace on table userworkspace
18:31:03,373  INFO AnnotationBinder:419 - Binding entity from annotated class: org.msh.etbm.entities.Workspace
18:31:03,373  INFO AnnotationBinder:969 - Binding type definition: weeklyFrequency
18:31:03,373  INFO EntityBinder:422 - Bind entity org.msh.etbm.entities.Workspace on table workspace
18:31:03,389  INFO AnnotationBinder:419 - Binding entity from annotated class: org.msh.etbm.entities.WorkspaceView
18:31:03,389  INFO EntityBinder:422 - Bind entity org.msh.etbm.entities.WorkspaceView on table workspaceview
18:31:03,389  INFO AnnotationBinder:419 - Binding entity from annotated class: org.msh.etbm.entities.ServerSignature
18:31:03,389  INFO EntityBinder:422 - Bind entity org.msh.etbm.entities.ServerSignature on table serversignature
18:31:03,389  INFO AnnotationBinder:419 - Binding entity from annotated class: org.msh.etbm.entities.TreatmentMonitoring
18:31:03,389  INFO EntityBinder:422 - Bind entity org.msh.etbm.entities.TreatmentMonitoring on table treatmentmonitoring
18:31:03,404  INFO AnnotationBinder:419 - Binding entity from annotated class: org.msh.etbm.entities.ExamXpert
18:31:03,404  INFO EntityBinder:422 - Bind entity org.msh.etbm.entities.ExamXpert on table examxpert
18:31:03,404  INFO AnnotationBinder:419 - Binding entity from annotated class: org.msh.etbm.entities.EntityLastVersion
18:31:03,404  INFO EntityBinder:422 - Bind entity org.msh.etbm.entities.EntityLastVersion on table entitylastversion
18:31:03,451  INFO CollectionBinder:650 - Mapping collection: org.msh.etbm.entities.AdministrativeUnit.units -> administrativeunit
18:31:03,451  INFO CollectionBinder:650 - Mapping collection: org.msh.etbm.entities.ExamDST.results -> examdstresult
18:31:03,451  INFO CollectionBinder:650 - Mapping collection: org.msh.etbm.entities.Medicine.components -> medicinecomponent
18:31:03,451  INFO CollectionBinder:650 - Mapping collection: org.msh.etbm.entities.Patient.cases -> tbcase
18:31:03,451  INFO CollectionBinder:650 - Mapping collection: org.msh.etbm.entities.Regimen.medicines -> medicineregimen
18:31:03,451  INFO CollectionBinder:650 - Mapping collection: org.msh.etbm.entities.TbCase.comorbidities -> casecomorbidity
18:31:03,451  INFO CollectionBinder:650 - Mapping collection: org.msh.etbm.entities.TbCase.contacts -> tbcontact
18:31:03,451  INFO CollectionBinder:650 - Mapping collection: org.msh.etbm.entities.TbCase.examinations -> medicalexamination
18:31:03,451  INFO CollectionBinder:650 - Mapping collection: org.msh.etbm.entities.TbCase.examsCulture -> examculture
18:31:03,451  INFO CollectionBinder:650 - Mapping collection: org.msh.etbm.entities.TbCase.examsDST -> examdst
18:31:03,451  INFO CollectionBinder:650 - Mapping collection: org.msh.etbm.entities.TbCase.examsMicroscopy -> exammicroscopy
18:31:03,467  INFO CollectionBinder:650 - Mapping collection: org.msh.etbm.entities.TbCase.healthUnits -> treatmenthealthunit
18:31:03,467  INFO CollectionBinder:650 - Mapping collection: org.msh.etbm.entities.TbCase.prescribedMedicines -> prescribedmedicine
18:31:03,467  INFO CollectionBinder:650 - Mapping collection: org.msh.etbm.entities.TbCase.prevTbTreats -> prevtbtreatment
18:31:03,467  INFO CollectionBinder:650 - Mapping collection: org.msh.etbm.entities.TbCase.resHIV -> examhiv
18:31:03,467  INFO CollectionBinder:650 - Mapping collection: org.msh.etbm.entities.TbCase.resXRay -> examxray
18:31:03,467  INFO CollectionBinder:650 - Mapping collection: org.msh.etbm.entities.TbCase.sideEffects -> casesideeffect
18:31:03,467  INFO CollectionBinder:650 - Mapping collection: org.msh.etbm.entities.TbCase.treatmentMonitoring -> treatmentmonitoring
18:31:03,467  INFO CollectionBinder:650 - Mapping collection: org.msh.etbm.entities.User.workspaces -> userworkspace
18:31:03,467  INFO CollectionBinder:650 - Mapping collection: org.msh.etbm.entities.UserProfile.permissions -> userpermission
18:31:03,467  INFO CollectionBinder:650 - Mapping collection: org.msh.etbm.entities.Workspace.users -> userworkspace
18:31:03,467  INFO Version:17 - Hibernate Validator 3.1.0.GA
18:31:03,545  INFO HibernateSearchEventListenerRegister:53 - Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.
18:31:03,623  INFO DriverManagerConnectionProvider:64 - Using Hibernate built-in connection pool (not for production use!)
18:31:03,623  INFO DriverManagerConnectionProvider:65 - Hibernate connection pool size: 20
18:31:03,623  INFO DriverManagerConnectionProvider:68 - autocommit mode: true
18:31:03,623  INFO DriverManagerConnectionProvider:103 - using driver: org.hsqldb.jdbcDriver at URL: jdbc:hsqldb:file:C:\apps\jenkins\workspace\eTBM_Desktop\target\database\etbmanager
18:31:03,623  INFO DriverManagerConnectionProvider:109 - connection properties: {user=SA, password=****, autocommit=true, release_mode=auto}
18:31:04,076  INFO ENGINE:? - checkpointClose start
18:31:04,107  INFO ENGINE:? - checkpointClose end
18:31:04,139  INFO SettingsFactory:116 - RDBMS: HSQL Database Engine, version: 2.2.8
18:31:04,139  INFO SettingsFactory:117 - JDBC driver: HSQL Database Engine Driver, version: 2.2.8
18:31:04,154  INFO Dialect:175 - Using dialect: org.msh.utils.CustomHSQLDialect
18:31:04,154  INFO TransactionFactoryFactory:62 - Transaction strategy: org.hibernate.transaction.JDBCTransactionFactory
18:31:04,154  INFO TransactionManagerLookupFactory:80 - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
18:31:04,154  INFO SettingsFactory:170 - Automatic flush during beforeCompletion(): disabled
18:31:04,154  INFO SettingsFactory:174 - Automatic session close at end of transaction: disabled
18:31:04,154  INFO SettingsFactory:181 - JDBC batch size: 15
18:31:04,154  INFO SettingsFactory:184 - JDBC batch updates for versioned data: disabled
18:31:04,154  INFO SettingsFactory:189 - Scrollable result sets: enabled
18:31:04,154  INFO SettingsFactory:197 - JDBC3 getGeneratedKeys(): enabled
18:31:04,154  INFO SettingsFactory:205 - Connection release mode: auto
18:31:04,154  INFO SettingsFactory:232 - Default batch fetch size: 1
18:31:04,154  INFO SettingsFactory:236 - Generate SQL with comments: disabled
18:31:04,154  INFO SettingsFactory:240 - Order SQL updates by primary key: disabled
18:31:04,154  INFO SettingsFactory:244 - Order SQL inserts for batching: disabled
18:31:04,170  INFO SettingsFactory:420 - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
18:31:04,170  INFO ASTQueryTranslatorFactory:47 - Using ASTQueryTranslatorFactory
18:31:04,170  INFO SettingsFactory:252 - Query language substitutions: {}
18:31:04,170  INFO SettingsFactory:257 - JPA-QL strict compliance: enabled
18:31:04,170  INFO SettingsFactory:262 - Second-level cache: enabled
18:31:04,170  INFO SettingsFactory:266 - Query cache: disabled
18:31:04,170  INFO SettingsFactory:405 - Cache region factory : org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge
18:31:04,170  INFO RegionFactoryCacheProviderBridge:61 - Cache provider: org.hibernate.cache.NoCacheProvider
18:31:04,170  INFO SettingsFactory:276 - Optimize cache for minimal puts: disabled
18:31:04,170  INFO SettingsFactory:285 - Structured second-level cache entries: disabled
18:31:04,170  INFO SettingsFactory:314 - Statistics: disabled
18:31:04,185  INFO SettingsFactory:318 - Deleted entity synthetic identifier rollback: disabled
18:31:04,185  INFO SettingsFactory:333 - Default entity-mode: pojo
18:31:04,185  INFO SettingsFactory:337 - Named query checking : enabled
18:31:04,248  INFO SessionFactoryImpl:187 - building session factory
18:31:04,529  INFO SessionFactoryObjectFactory:105 - Not binding factory to JNDI, no JNDI name configured
2. Workspace list