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.

500 error at startup

See original GitHub issue

Downloaded latest release, double-clicked, and opened localhost:8080 in Chrome.

Status Code: 500

Exception: The error below occurred during context initialisation, so no further requests can be processed:
org.springframework.context.ApplicationContextException: Failed to start bean 'fixCoreferenceMigration'; nested exception is java.lang.NullPointerException
	at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:176)
	at org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:51)
	at org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:346)
	at org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:149)
	at org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:112)
	at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:879)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:545)
	at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:444)
	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:326)
	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
	at winstone.WebAppConfiguration.(WebAppConfiguration.java:889)
	at winstone.HostConfiguration.initWebApp(HostConfiguration.java:131)
	at winstone.HostConfiguration.(HostConfiguration.java:73)
	at winstone.HostGroup.initHost(HostGroup.java:85)
	at winstone.HostGroup.(HostGroup.java:45)
	at winstone.Launcher.(Launcher.java:196)
	at winstone.Launcher.main(Launcher.java:391)
Caused by: java.lang.NullPointerException
	at de.tudarmstadt.ukp.clarin.webanno.api.dao.migration.FixCoreferenceFeatures.doMigration(FixCoreferenceFeatures.java:103)
	at de.tudarmstadt.ukp.clarin.webanno.api.dao.migration.FixCoreferenceFeatures.start(FixCoreferenceFeatures.java:67)
	at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:173)
	... 16 more

Stacktrace:
org.springframework.context.ApplicationContextException: Failed to start bean 'fixCoreferenceMigration'; nested exception is java.lang.NullPointerException
	at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:176)
	at org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:51)
	at org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:346)
	at org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:149)
	at org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:112)
	at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:879)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:545)
	at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:444)
	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:326)
	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
	at winstone.WebAppConfiguration.(WebAppConfiguration.java:889)
	at winstone.HostConfiguration.initWebApp(HostConfiguration.java:131)
	at winstone.HostConfiguration.(HostConfiguration.java:73)
	at winstone.HostGroup.initHost(HostGroup.java:85)
	at winstone.HostGroup.(HostGroup.java:45)
	at winstone.Launcher.(Launcher.java:196)
	at winstone.Launcher.main(Launcher.java:391)
Caused by: java.lang.NullPointerException
	at de.tudarmstadt.ukp.clarin.webanno.api.dao.migration.FixCoreferenceFeatures.doMigration(FixCoreferenceFeatures.java:103)
	at de.tudarmstadt.ukp.clarin.webanno.api.dao.migration.FixCoreferenceFeatures.start(FixCoreferenceFeatures.java:67)
	at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:173)
	... 16 more

Generated by Winstone Servlet Engine v0.9.10 at Tue Nov 21 10:02:07 CST 2017

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
hannahlindsleycommented, Nov 21, 2017

Oh and FWIW, if you want it for your doc - users can do /usr/libexec/java_home -v 1.8.0 --exec java -jar <yourJarHere>.jar from the command line to run an app using a specific version of java.

It’s working now for me, thanks again 😃

1reaction
reckartcommented, Nov 21, 2017

We’re looking for feedback on the latest beta. Feel invited to check out 3.3.0-beta-6 from here: https://webanno.github.io/webanno/downloads-beta/

Read more comments on GitHub >

github_iconTop Results From Across the Web

asp.net core app deployed on iis meets 500 internal server error
I experienced this issue. The problem was due to my local Sql Server instance. Remote connection were not allowed.
Read more >
How to fix HTTP 500 internal server error? - IONOS
The “Internal Server Error” can occur when the request is processed by the web server. The collective status code includes everything unplanned ...
Read more >
Asp.Net Core API published. Default page getting 500 error ...
Default page getting 500 error but Weatherforcast api working in Postman. Asp.Net Core Api published in IIS. default page swagger/index.
Read more >
The Ultimate Guide to Fixing the 500 internal server error
The dreaded 500 errors. ☠️ They always seem to come at the most inopportune time. Tune in to learn the different types of...
Read more >
Error 500 While Trying to Login Into Maximo - IBM
This means the Maximo application has started successfully and you should be able to connect and login. If that text is not in...
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