jira connector HTTPS not working

Malik Chettih March 8, 2024

in my server.xml, I have these two connectors :

<Connector port="8080" relaxedPathChars="[]|" relaxedQueryChars="[]|{}^&#x5c;&#x60;&quot;&lt;&gt;"
maxThreads="150" minSpareThreads="25" connectionTimeout="20000" enableLookups="false"
maxHttpHeaderSize="8192" protocol="HTTP/1.1" useBodyEncodingForURI="true" redirectPort="8453"
acceptCount="100" disableUploadTimeout="true" bindOnInit="false" scheme="http"
/>


<!-- proxyName="fr1cswpsktp0001.misys.global.ad" proxyPort="80" -->
<!--keyAlias="jira2" keystoreFile="/pathTo/jira-keystore.jks" keystorePass="xxxxx" keystoreType="JKS" -->
<Connector SSLEnabled="true" acceptCount="100" clientAuth="false" connectionTimeout="20000" disableUploadTimeout="true" enableLookups="false"
keyAlias="jira2" keystoreFile="jira2-keystore.jks" keystorePass="cashflow" keystoreType="JKS"
maxHttpHeaderSize="12288" maxSpareThreads="75" maxThreads="150" minSpareThreads="25" port="8453"
protocol="org.apache.coyote.http11.Http11NioProtocol" relaxedPathChars="[]|" relaxedQueryChars="[]|{}^\`&quot;&lt;&gt;"
scheme="https" secure="true" sslProtocol="TLS" useBodyEncodingForURI="true"/>

 

The Jira server run properly but for each call from the browser (using http and https url), I get http code 500 and I have this in server log :

08-Mar-2024 17:21:59.879 SEVERE [http-nio-8080-exec-1] org.apache.coyote.http11.Http11Processor.service Error processing request
java.lang.NullPointerException
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:341)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:389)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:926)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1791)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.base/java.lang.Thread.run(Unknown Source)
08-Mar-2024 17:21:59.880 FINE [http-nio-8080-exec-1] org.apache.coyote.AbstractProcessor.setErrorState Error state [CLOSE_CLEAN] reported while processing request
java.lang.NullPointerException
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:341)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:389)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:926)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1791)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.base/java.lang.Thread.run(Unknown Source)
08-Mar-2024 17:21:59.880 WARNING [http-nio-8080-exec-1] org.apache.catalina.connector.CoyoteAdapter.log Exception while attempting to add an entry to the access log
java.lang.NullPointerException
at org.apache.catalina.connector.CoyoteAdapter.log(CoyoteAdapter.java:487)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:419)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:926)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1791)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.base/java.lang.Thread.run(Unknown Source)
08-Mar-2024 17:21:59.892 FINE [http-nio-8080-exec-1] org.apache.coyote.AbstractProcessorLight.process Socket: [org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper@3050be2f:org.apache.tomcat.util.net.NioChannel@6bdb1028:java.nio.channels.SocketChannel[connected local=/10.21.225.251:8080 remote=/10.21.225.251:63408]], Status in: [OPEN_READ], State out: [CLOSED]
08-Mar-2024 17:21:59.893 FINE [http-nio-8080-exec-1] org.apache.coyote.AbstractProtocol$ConnectionHandler.release Pushed Processor [org.apache.coyote.http11.Http11Processor@42128066] 

1 answer

0 votes
Fadoua
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 8, 2024

Hi @Malik Chettih 

Based on what I am seeing on the log file, the following is what was suggested to people experiencing the same issue 

https://stackoverflow.com/questions/41690854/server-http-nio-8080-exec-7-org-apache-coyote-http11-http11processor-service

Let me know if the suggested solution worked if not let's check further.

Best,

Fadoua

Malik Chettih May 17, 2024

Hi Fadoua,

Thank you for your reply, the issue was a simple error in xml file with a double closing tag  </Service>.
Strangely, tomcat server starts properly even with such issue in its configuration file but fails to deploy Jira.

Like Fadoua likes this
Fadoua
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 17, 2024

@Malik Chettih  Glad to learn you were able to fix it.

Best,

Fadoua

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
9.9.0
TAGS
AUG Leaders

Atlassian Community Events