question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

webanno master crashes on start

See original GitHub issue

When checking out the master of webanno, importing it into Eclipse and starting WebAnno.java, the following error occurs:

  _      __    __   ___                
 | | /| / /__ / /  / _ | ___  ___  ___ 
 | |/ |/ / -_) _ \/ __ |/ _ \/ _ \/ _ \
 |__/|__/\__/_.__/_/ |_/_//_/_//_/\___/
3.4.0-SNAPSHOT (2018-01-05 09:35:09, build faa1fadbdad3391ac6d0d20e9f43bf7faf6de84e)

2018-01-05 09:45:43 INFO [SYSTEM] WebAnnoApplicationContextInitializer - Authentication: database
2018-01-05 09:45:43 INFO [SYSTEM] WebAnno - Starting WebAnno on desktop-184 with PID 8829 (/home/klie/git/webanno/webanno-webapp/target/classes started by klie in /home/klie/git/webanno/webanno-webapp)
2018-01-05 09:45:43 INFO [SYSTEM] WebAnno - The following profiles are active: auto-mode-builtin
2018-01-05 09:45:48 ERROR [SYSTEM] PropertiesConfigurationFactory - Properties configuration failed validation
2018-01-05 09:45:48 ERROR [SYSTEM] PropertiesConfigurationFactory - Field error in object 'spring.datasource.dbcp' on field 'defaultTransactionIsolation': rejected value [TRANSACTION_READ_COMMITTED]; codes [typeMismatch.spring.datasource.dbcp.defaultTransactionIsolation,typeMismatch.defaultTransactionIsolation,typeMismatch.int,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [spring.datasource.dbcp.defaultTransactionIsolation,defaultTransactionIsolation]; arguments []; default message [defaultTransactionIsolation]]; default message [Failed to convert property value of type 'java.lang.String' to required type 'int' for property 'defaultTransactionIsolation'; nested exception is org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type [java.lang.String] to type [int]]
2018-01-05 09:45:48 ERROR [SYSTEM] TomcatStarter - Error starting Tomcat context. Exception: org.springframework.beans.factory.BeanCreationException. Message: Error creating bean with name 'org.springframework.security.filterChainProxy': Cannot resolve reference to bean 'org.springframework.security.filterChains' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.filterChains': Cannot resolve reference to bean 'org.springframework.security.web.DefaultSecurityFilterChain#0' while setting bean property 'sourceList' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.web.DefaultSecurityFilterChain#0': Cannot create inner bean '(inner bean)#41bdceee' of type [org.springframework.security.web.authentication.logout.LogoutFilter] while setting constructor argument with key [3]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#41bdceee': Cannot resolve reference to bean 'org.springframework.security.web.authentication.rememberme.TokenBasedRememberMeServices#0' while setting constructor argument with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.web.authentication.rememberme.TokenBasedRememberMeServices#0': Cannot create inner bean '(inner bean)#6addaff7' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#6addaff7': Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.security.core.userdetails.UserDetailsService]: Factory method 'cachingUserDetailsService' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDetailsService' defined in class path resource [META-INF/security-context.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource': Could not bind properties to BasicDataSource (prefix=spring.datasource.dbcp, ignoreInvalidFields=false, ignoreUnknownFields=true, ignoreNestedProperties=false); nested exception is org.springframework.validation.BindException: org.springframework.boot.bind.RelaxedDataBinder$RelaxedBeanPropertyBindingResult: 1 errors
Field error in object 'spring.datasource.dbcp' on field 'defaultTransactionIsolation': rejected value [TRANSACTION_READ_COMMITTED]; codes [typeMismatch.spring.datasource.dbcp.defaultTransactionIsolation,typeMismatch.defaultTransactionIsolation,typeMismatch.int,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [spring.datasource.dbcp.defaultTransactionIsolation,defaultTransactionIsolation]; arguments []; default message [defaultTransactionIsolation]]; default message [Failed to convert property value of type 'java.lang.String' to required type 'int' for property 'defaultTransactionIsolation'; nested exception is org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type [java.lang.String] to type [int]]
2018-01-05 09:45:48 WARN [SYSTEM] AnnotationConfigEmbeddedWebApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat
2018-01-05 09:45:48 ERROR [SYSTEM] LoggingFailureAnalysisReporter - 

***************************
APPLICATION FAILED TO START
***************************

Description:

Binding to target org.apache.commons.dbcp.BasicDataSource@6750e381 failed:

    Property: spring.datasource.dbcp.defaultTransactionIsolation
    Value: TRANSACTION_READ_COMMITTED
    Reason: Failed to convert property value of type 'java.lang.String' to required type 'int' for property 'defaultTransactionIsolation'; nested exception is org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type [java.lang.String] to type [int]


Action:

Update your application's configuration

According to Spring, the property is deprecated. It looks like it wants to use the string value of TRANSACTION_READ_COMMITTED and does not lookup the property. When I delete this very line, then Hibernate crashes:

  _      __    __   ___                
 | | /| / /__ / /  / _ | ___  ___  ___ 
 | |/ |/ / -_) _ \/ __ |/ _ \/ _ \/ _ \
 |__/|__/\__/_.__/_/ |_/_//_/_//_/\___/
3.4.0-SNAPSHOT (2018-01-05 09:56:19, build faa1fadbdad3391ac6d0d20e9f43bf7faf6de84e)

2018-01-05 10:14:25 INFO [SYSTEM] WebAnnoApplicationContextInitializer - Authentication: database
2018-01-05 10:14:25 INFO [SYSTEM] WebAnno - Starting WebAnno on desktop-184 with PID 12333 (/home/klie/git/webanno/webanno-webapp/target/classes started by klie in /home/klie/git/webanno/webanno-webapp)
2018-01-05 10:14:25 INFO [SYSTEM] WebAnno - The following profiles are active: auto-mode-builtin
2018-01-05 10:14:34 WARN [SYSTEM] AnnotationConfigEmbeddedWebApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory
2018-01-05 10:14:34 ERROR [SYSTEM] SpringApplication - Application startup failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1710) ~[spring-beans-5.0.2.RELEASE.jar:5.0.2.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:583) ~[spring-beans-5.0.2.RELEASE.jar:5.0.2.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:502) ~[spring-beans-5.0.2.RELEASE.jar:5.0.2.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:312) ~[spring-beans-5.0.2.RELEASE.jar:5.0.2.RELEASE]
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) ~[spring-beans-5.0.2.RELEASE.jar:5.0.2.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:310) ~[spring-beans-5.0.2.RELEASE.jar:5.0.2.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200) ~[spring-beans-5.0.2.RELEASE.jar:5.0.2.RELEASE]
	at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1085) ~[spring-context-5.0.2.RELEASE.jar:5.0.2.RELEASE]
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:858) ~[spring-context-5.0.2.RELEASE.jar:5.0.2.RELEASE]
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549) ~[spring-context-5.0.2.RELEASE.jar:5.0.2.RELEASE]
	at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) ~[spring-boot-1.5.9.RELEASE.jar:1.5.9.RELEASE]
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693) [spring-boot-1.5.9.RELEASE.jar:1.5.9.RELEASE]
	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360) [spring-boot-1.5.9.RELEASE.jar:1.5.9.RELEASE]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) [spring-boot-1.5.9.RELEASE.jar:1.5.9.RELEASE]
	at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:134) [spring-boot-1.5.9.RELEASE.jar:1.5.9.RELEASE]
	at de.tudarmstadt.ukp.clarin.webanno.webapp.WebAnno.main(WebAnno.java:118) [classes/:?]
Caused by: javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory
	at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.persistenceException(EntityManagerFactoryBuilderImpl.java:967) ~[hibernate-core-5.2.12.Final.jar:5.2.12.Final]
	at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:892) ~[hibernate-core-5.2.12.Final.jar:5.2.12.Final]
	at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:57) ~[spring-orm-5.0.2.RELEASE.jar:5.0.2.RELEASE]
	at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:365) ~[spring-orm-5.0.2.RELEASE.jar:5.0.2.RELEASE]
	at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:387) ~[spring-orm-5.0.2.RELEASE.jar:5.0.2.RELEASE]
	at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:376) ~[spring-orm-5.0.2.RELEASE.jar:5.0.2.RELEASE]
	at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:341) ~[spring-orm-5.0.2.RELEASE.jar:5.0.2.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1769) ~[spring-beans-5.0.2.RELEASE.jar:5.0.2.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1706) ~[spring-beans-5.0.2.RELEASE.jar:5.0.2.RELEASE]
	... 15 more
Caused by: org.hibernate.tool.schema.spi.SchemaManagementException: Schema-validation: missing table [annotation_document]
	at org.hibernate.tool.schema.internal.AbstractSchemaValidator.validateTable(AbstractSchemaValidator.java:121) ~[hibernate-core-5.2.12.Final.jar:5.2.12.Final]
	at org.hibernate.tool.schema.internal.GroupedSchemaValidatorImpl.validateTables(GroupedSchemaValidatorImpl.java:42) ~[hibernate-core-5.2.12.Final.jar:5.2.12.Final]
	at org.hibernate.tool.schema.internal.AbstractSchemaValidator.performValidation(AbstractSchemaValidator.java:89) ~[hibernate-core-5.2.12.Final.jar:5.2.12.Final]
	at org.hibernate.tool.schema.internal.AbstractSchemaValidator.doValidation(AbstractSchemaValidator.java:68) ~[hibernate-core-5.2.12.Final.jar:5.2.12.Final]
	at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.performDatabaseAction(SchemaManagementToolCoordinator.java:191) ~[hibernate-core-5.2.12.Final.jar:5.2.12.Final]
	at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.process(SchemaManagementToolCoordinator.java:72) ~[hibernate-core-5.2.12.Final.jar:5.2.12.Final]
	at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:313) ~[hibernate-core-5.2.12.Final.jar:5.2.12.Final]
	at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:452) ~[hibernate-core-5.2.12.Final.jar:5.2.12.Final]
	at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:889) ~[hibernate-core-5.2.12.Final.jar:5.2.12.Final]
	at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:57) ~[spring-orm-5.0.2.RELEASE.jar:5.0.2.RELEASE]
	at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:365) ~[spring-orm-5.0.2.RELEASE.jar:5.0.2.RELEASE]
	at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:387) ~[spring-orm-5.0.2.RELEASE.jar:5.0.2.RELEASE]
	at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:376) ~[spring-orm-5.0.2.RELEASE.jar:5.0.2.RELEASE]
	at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:341) ~[spring-orm-5.0.2.RELEASE.jar:5.0.2.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1769) ~[spring-beans-5.0.2.RELEASE.jar:5.0.2.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1706) ~[spring-beans-5.0.2.RELEASE.jar:5.0.2.RELEASE]
	... 15 more

The CI was able to build it with the same Spring Boot version.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
thak123commented, Nov 4, 2019

Hi I fixed it. Its a server machine on which I am trying to make it work There was no need to open any ports.

Thanks to this thread I came to know the code differs for Ubuntu https://groups.google.com/forum/#!topic/webanno-user/Oli8i6z4qLM

In case anyone is stuck please refer this thread.

Thanks for all the help

On Mon, Nov 4, 2019 at 8:56 PM Richard Eckart de Castilho < notifications@github.com> wrote:

I am assuming you are running WebAnno on the same machine where you are running your browser - hence you try to connect via http://localhost… If WebAnno is running on a different machine you may have to open ports on that machine (if it is firewalled), but more importantly, you need to use the name or IP address of that machine instead of localhost.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/webanno/webanno/issues/804?email_source=notifications&email_token=AA5WFE3PDE3VHWPO266YRKLQSB5ATA5CNFSM4EKQ3QU2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDAQNCA#issuecomment-549521032, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA5WFEYVYOOHPQEZTQTFJILQSB5ATANCNFSM4EKQ3QUQ .

  • Regards:* Gaurish P Thakkar
0reactions
reckartcommented, Nov 4, 2019

I am assuming you are running WebAnno on the same machine where you are running your browser - hence you try to connect via http://localhost.... If WebAnno is running on a different machine you may have to open ports on that machine (if it is firewalled), but more importantly, you need to use the name or IP address of that machine instead of localhost.

Read more comments on GitHub >

github_iconTop Results From Across the Web

WebAnno Administrator Guide
If you start WebAnno and instead of using the MySQL database, it is using an embedded database, then you should double-check that /srv/webanno/ ......
Read more >
How to Fix AMD Ryzen Master Crash at Startup - YouTube
Description:Thanks For Visit My Channel. I Hope You Like My Videos This channel is all about to Run time Error Solving Windows...
Read more >
Keep crashing after using amd ryzen master : r/buildapc - Reddit
Open Task Manager & open the performance tab. Look at cpu base speed & then memory speed. If everything looks good, run cinebench....
Read more >
WebAnno Administrator Guide
You can run WebAnno on any major platform supporting Java, i.e. Linux, ... crashes (note that this could probably also happen with MySQL, ......
Read more >
Ryzen Master Crashes on Startup - AMD Community
Ryzen Master Crashes on Startup. I did a fresh reinstall of Windows 10 and installed Ryzen Master. When I try to run it,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found