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
Mark 38 Atlassian Team Sep 07, 2018

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
Community showcase
Published in Confluence

Introducing Confluence Cloud and Jira Software Cloud Premium

Wherever you are in your team’s journey , our goal is to support your big ambitions. We’re a cloud-first company with the mission of unleashing the potential of every team, and to address the range ...

582 views 4 17
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you