java.sql.SQLException

Can't load driver java.lang.reflect.InvocationTargetException

Samebug tips4

Check if your MongoDB is available.

Check if your server (or a proxy server) is not going up and down. There might be something between a proxy and a client sending intermittent requests to non-functioning hosts as well. There might as well be too many requests in a short amount of time.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web4309

  • Can't load driver java.lang.reflect.InvocationTargetException
  • Can't load driver java.lang.reflect.InvocationTargetException
  • Can't load driver java.lang.reflect.InvocationTargetException
  • Stack trace

    • java.sql.SQLException: Can't load driver java.lang.reflect.InvocationTargetException at com.informix.util.IfxErrMsg.getLocSQLException(IfxErrMsg.java:497) at com.informix.jdbc.IfxDriver.connect(IfxDriver.java:279) at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at com.sample.DriverManagerDemo.main(DriverManagerDemo.java:26) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at com.informix.jdbc.IfxDriver.connect(IfxDriver.java:254) ... 3 more Caused by: java.sql.SQLException: com.informix.asf.IfxASFException: Attempt to connect to database server (ol_svr_custom) failed. at com.informix.jdbc.IfxSqliConnect.<init>(IfxSqliConnect.java:1058) ... 8 more Caused by: com.informix.asf.IfxASFException: Attempt to connect to database server (ol_svr_custom) failed. at com.informix.util.IfxErrMsg.getLocIfxASFException(IfxErrMsg.java:800) at com.informix.asf.Connection.openSocket(Connection.java:1679) at com.informix.asf.Connection.<init>(Connection.java:260) at com.informix.jdbc.IfxSqliConnect.<init>(IfxSqliConnect.java:922) ... 8 more Caused by: java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(Unknown Source) at java.net.PlainSocketImpl.connectToAddress(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.<init>(Unknown Source) at java.net.Socket.<init>(Unknown Source) at com.informix.asf.Connection.openSocket(Connection.java:1630) ... 10 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 2 weeks ago
    Unknown user
    Once, 1 month ago
    826 more bugmates