It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

java.lang.IllegalArgumentException: The character [_] is never valid in a domain name.

After installing a confluence in a new Ubuntu server using a binary option I start to receive the following error


What should be done, once I followed all tutorial's steps.


Type Exception Report

Message The character [_] is never valid in a domain name.

Description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).


java.lang.IllegalArgumentException: The character [_] is never valid in a domain name.

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



06-Sep-2018 04:52:34.313 INFO [localhost-startStop-2] Starting beans in phase 2147483647
06-Sep-2018 04:52:34.395 INFO [localhost-startStop-2] org.springframework.web.servlet.DispatcherServlet.initServletBean FrameworkServlet 'dispatcher': initialization completed in 3395 ms
06-Sep-2018 04:52:48.468 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8090"]
06-Sep-2018 04:52:48.503 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 21870 ms
06-Sep-2018 04:52:51.413 INFO [http-nio-8090-exec-1] org.apache.coyote.AbstractProcessor.parseHost The host [confluence_server] is not valid
Note: further occurrences of request parsing errors will be logged at DEBUG level.
java.lang.IllegalArgumentException: The character [_] is never valid in a domain name.
at org.apache.tomcat.util.http.parser.HttpParser$
at org.apache.tomcat.util.http.parser.HttpParser.readHostDomainName(
at org.apache.tomcat.util.http.parser.Host.parse(
at org.apache.tomcat.util.http.parser.Host.parse(
at org.apache.coyote.AbstractProcessor.parseHost(
at org.apache.coyote.http11.Http11Processor.prepareRequest(
at org.apache.coyote.http11.Http11Processor.service(
at org.apache.coyote.AbstractProcessorLight.process(
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(
at java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.util.concurrent.ThreadPoolExecutor$
at org.apache.tomcat.util.threads.TaskThread$


1 answer

0 votes

Check server.xml file on your Confluence installation and that you can correctly resolve localhost from etc/hosts file.

How are you starting Confluence, which script you are using?

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published Apr 18, 2019 in Confluence

Confluence CVEs and common questions

Two vulnerabilities have been published for Confluence Server and Data Center recently: March 20, 2019 CVE-2019-3395 / CVE-2019-3396 April 17, 2019 CVE-2019-3398 The goal of this article is...

392 views 0 12
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you