HTTP Status 500 ? Internal Server Error
Asked by Bellina Bui:

Overview {#toc-hId--495499443}
------------------------------

I'm currently trying to set up a Confluence blueprint plugin as directed here -- <https://developer.atlassian.com/server/confluence/write-a-simple-confluence-blueprint-plugin/>

Step 2 asks me to run my plugin using

```
atlas-run
```

This builds my plugin code and starts a local Confluence instance, however when I navigate to the generated URL I get a HTTP STATUS 500 - Internal Server Error detailed below. Please help!

HTTP Status 500 - Internal Server Error {#toc-hId-1992013390}
-------------------------------------------------------------

*** ** * ** ***

**Type** Exception Report

**Message** Servlet.init() for servlet \[action\] threw exception

**Description** The server encountered an unexpected condition that prevented it from fulfilling the request.

**Exception**

```
javax.servlet.ServletException: Servlet.init() for servlet [action] threw exception	org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)	org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:668)	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)	org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)	org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)	org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:770)	org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1415)	org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)	java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)	java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)	org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)	java.base/java.lang.Thread.run(Thread.java:1589)
```

**Root Cause**

```
java.lang.NullPointerException: Cannot invoke "com.atlassian.config.bootstrap.AtlassianBootstrapManager.getString(String)" because the return value of "com.atlassian.config.util.BootstrapUtils.getBootstrapManager()" is null	com.atlassian.confluence.setup.webwork.ConfluenceWebWorkConfiguration.getImpl(ConfluenceWebWorkConfiguration.java:68)	com.opensymphony.webwork.config.DelegatingConfiguration.getImpl(DelegatingConfiguration.java:81)	com.atlassian.confluence.setup.webwork.ConfluenceWebWorkConfigLoader.lambda$new$0(ConfluenceWebWorkConfigLoader.java:24)	com.atlassian.confluence.setup.webwork.ConfluenceWebWorkConfigLoader.getImpl(ConfluenceWebWorkConfigLoader.java:41)	com.opensymphony.webwork.config.Configuration.get(Configuration.java:139)	com.opensymphony.webwork.config.Configuration.getString(Configuration.java:125)	com.opensymphony.webwork.dispatcher.ServletDispatcher.init(ServletDispatcher.java:166)	org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)	org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:668)	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)	org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)	org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)	org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:770)	org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1415)	org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)	java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)	java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)	org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)	java.base/java.lang.Thread.run(Thread.java:1589)
```

**Note** The full stack trace of the root cause is available in the server logs.


Answers:
author: Penn
body: Going through the tutorial for server/datacenter plugin development, I ran into this issue too. This was because I was using the Java 17 SDK, I also tried the Java 8 SDK. Both would fail when I would run and try to connect. Using the Java 11 SDK I was able to execute atlas-run and connect to the local dev environment


author: Bellina Bui
body: [@Shannon S](/t5/user/viewprofilepage/user-id/510046) I saw that you helped Kannan resolve his issue here: <https://community.atlassian.com/t5/Confluence-questions/HTTP-Status-500-Internal-Server-Error/qaq-p/947020>

Would you be able to provide any insight as to why I received the 500 error? Thank you in advanced!


Tags: app

blueprint

confluence-server

server