java.lang.Error: java.lang.reflect.InvocationTargetException

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

,
via Stack Overflow by Daniil Shevelev

The solution is to run as root using sudo or to set different port in application.properties file, e.g.

server.port=${port:8181}

Solutions on the web

via Google Groups by wracz, 3 months ago
via Google Groups by Fabio, 2 years ago
java.lang.reflect.InvocationTargetException
via Google Groups by Guillaume Bilodeau, 2 years ago
java.lang.reflect.InvocationTargetException
via Google Groups by dfl, 2 years ago
java.lang.reflect.InvocationTargetException
via Jenkins JIRA by Guillaume Bilodeau, 1 year ago
java.lang.reflect.InvocationTargetException
via Jenkins JIRA by Oleg Nenashev, 1 year ago
java.lang.reflect.InvocationTargetException
java.lang.Error: java.lang.reflect.InvocationTargetException
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
at org.apache.mina.transport.socket.nio.NioSocketAcceptor.open(NioSocketAcceptor.java:248)
at org.apache.mina.transport.socket.nio.NioSocketAcceptor.open(NioSocketAcceptor.java:48)
at org.apache.mina.core.polling.AbstractPollingIoAcceptor.registerHandles(AbstractPollingIoAcceptor.java:525)
at org.apache.mina.core.polling.AbstractPollingIoAcceptor.access$200(AbstractPollingIoAcceptor.java:66)
at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)

Users with the same issue

2 times, 2 months ago
Samebug visitor profile picture
Unknown user
Once, 2 months ago
2 times, 7 months ago
10 times, 11 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
5 more bugmates

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