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

Solutions on the web

via GitHub by ziodave
, 1 year ago
connection could not be initialized.
java.lang.RuntimeException: connection could not be initialized.	at java.net.PlainSocketImpl.socketConnect(Native Method)	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)	at java.net.Socket.connect(Socket.java:579)	at java.net.Socket.connect(Socket.java:528)	at java.net.Socket.(Socket.java:425)	at java.net.Socket.(Socket.java:241)	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)	at com.mysql.jdbc.MysqlIO.(MysqlIO.java:306)	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)	at com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:832)	at com.mysql.jdbc.JDBC4Connection.(JDBC4Connection.java:46)	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)	at java.lang.reflect.Constructor.newInstance(Constructor.java:526)	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)	at java.sql.DriverManager.getConnection(DriverManager.java:571)	at java.sql.DriverManager.getConnection(DriverManager.java:215)	at org.aksw.autosparql.commons.metric.SPARQLEndpointMetrics.getDefaultReadOnlyConnection(SPARQLEndpointMetrics.java:94)	at org.aksw.autosparql.commons.metric.SPARQLEndpointMetrics.getDbpediaMetrics(SPARQLEndpointMetrics.java:68)	at org.aksw.autosparql.tbsl.algorithm.learning.ranking.SimpleRankingComputation.createFeatureExtractors(SimpleRankingComputation.java:131)	at org.aksw.autosparql.tbsl.algorithm.learning.ranking.SimpleRankingComputation.computeRanking(SimpleRankingComputation.java:78)	at org.aksw.autosparql.tbsl.algorithm.learning.TBSL.answerQuestion(TBSL.java:198)	at org.aksw.autosparql.tbsl.algorithm.learning.TBSL.answerQuestion(TBSL.java:156)	at org.aksw.autosparql.tbsl.algorithm.TBSLTest.testOxfordMoreThanTwoBedrooms(TBSLTest.java:75)