java.lang.IllegalArgumentException: hostname can't be null

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via GitHub by lvhongye
, 1 year ago
hostname can't be null
via GitHub by vishakha94
, 1 year ago
hostname can't be null
via GitHub by vishakha94
, 1 year ago
hostname can't be null
via GitHub by boaks
, 11 months ago
hostname can't be null
via spigotmc.org by Unknown author, 1 year ago
via mulesoft.org by Unknown author, 2 years ago
java.lang.IllegalArgumentException: hostname can't be null
at java.net.InetSocketAddress.checkHost(InetSocketAddress.java:149)
at java.net.InetSocketAddress.(InetSocketAddress.java:216)
at redis.clients.jedis.Connection.connect(Connection.java:129)
at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:69)
at redis.clients.jedis.Connection.sendCommand(Connection.java:79)
at redis.clients.jedis.Connection.sendCommand(Connection.java:75)
at com.baidu.disconf.demo.service.SimpleRedisService.getKey(SimpleRedisService.java:63)
at com.baidu.disconf.demo.task.DisconfDemoTask.run(DisconfDemoTask.java:51)
at com.baidu.disconf.demo.DisconfDemoMain.main(DisconfDemoMain.java:38)

Users with the same issue

Once, 3 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
2 times, 1 year ago
16 times, 2 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.