java.lang.RuntimeException: connection could not be initialized.

GitHub | abmjunaed | 1 year ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    How to build when I am behind proxy?

    GitHub | 1 year ago | abmjunaed
    java.lang.RuntimeException: connection could not be initialized.

    1 unregistered visitors

    Root Cause Analysis

    1. java.lang.RuntimeException

      connection could not be initialized.

      at com.mysql.jdbc.NonRegisteringDriver.parseHostPortPair()
    2. MySQL jdbc
      JDBC4Connection.<init>
      1. com.mysql.jdbc.NonRegisteringDriver.parseHostPortPair(NonRegisteringDriver.java:216)
      2. com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2487)
      3. com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
      4. com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
      5. com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
      6. com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
      6 frames
    3. Java RT
      Constructor.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:408)
      4 frames
    4. MySQL jdbc
      NonRegisteringDriver.connect
      1. com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
      2. com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
      3. com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
      3 frames
    5. Java RT
      DriverManager.getConnection
      1. java.sql.DriverManager.getConnection(DriverManager.java:664)
      2. java.sql.DriverManager.getConnection(DriverManager.java:208)
      2 frames
    6. org.aksw.autosparql
      DatabaseBackedSPARQLEndpointMetricsTest.testPmiMetric
      1. org.aksw.autosparql.commons.metric.SPARQLEndpointMetrics.getDefaultReadOnlyConnection(SPARQLEndpointMetrics.java:119)
      2. org.aksw.autosparql.commons.metric.SPARQLEndpointMetrics.getDbpediaMetrics(SPARQLEndpointMetrics.java:69)
      3. org.aksw.autosparql.commons.metric.DatabaseBackedSPARQLEndpointMetricsTest.testPmiMetric(DatabaseBackedSPARQLEndpointMetricsTest.java:32)
      3 frames