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

GitHub | ziodave | 2 years 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

    GitHub comment 24#55521358

    GitHub | 2 years ago | ziodave
    java.lang.RuntimeException: connection could not be initialized.
  2. 0

    JDBC connection error

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

    Root Cause Analysis

    1. java.lang.RuntimeException

      connection could not be initialized.

      at java.net.PlainSocketImpl.socketConnect()
    2. Java RT
      Socket.<init>
      1. java.net.PlainSocketImpl.socketConnect(Native Method)
      2. java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
      3. java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
      4. java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
      5. java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
      6. java.net.Socket.connect(Socket.java:579)
      7. java.net.Socket.connect(Socket.java:528)
      8. java.net.Socket.<init>(Socket.java:425)
      9. java.net.Socket.<init>(Socket.java:241)
      9 frames
    3. MySQL jdbc
      JDBC4Connection.<init>
      1. com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
      2. com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
      3. com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
      4. com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
      5. com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
      6. com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
      7. com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
      7 frames
    4. Java RT
      Constructor.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:526)
      4 frames
    5. 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
    6. Java RT
      DriverManager.getConnection
      1. java.sql.DriverManager.getConnection(DriverManager.java:571)
      2. java.sql.DriverManager.getConnection(DriverManager.java:215)
      2 frames
    7. org.aksw.autosparql
      TBSLTest.testDBpediaDanBrown
      1. org.aksw.autosparql.commons.metric.SPARQLEndpointMetrics.getDefaultReadOnlyConnection(SPARQLEndpointMetrics.java:94)
      2. org.aksw.autosparql.commons.metric.SPARQLEndpointMetrics.getDbpediaMetrics(SPARQLEndpointMetrics.java:68)
      3. org.aksw.autosparql.tbsl.algorithm.learning.ranking.SimpleRankingComputation.createFeatureExtractors(SimpleRankingComputation.java:131)
      4. org.aksw.autosparql.tbsl.algorithm.learning.ranking.SimpleRankingComputation.computeRanking(SimpleRankingComputation.java:78)
      5. org.aksw.autosparql.tbsl.algorithm.learning.TBSL.answerQuestion(TBSL.java:198)
      6. org.aksw.autosparql.tbsl.algorithm.learning.TBSL.answerQuestion(TBSL.java:156)
      7. org.aksw.autosparql.tbsl.algorithm.TBSLTest.testDBpediaDanBrown(TBSLTest.java:41)
      7 frames