anygeorge / java-google-safe-browsing

Automatically exported from code.google.com/p/java-google-safe-browsing
0 stars 0 forks source link

CommunicationsException: Communications link failure #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Calling constructor GSBCrawler/GSBAnalyzer
2. GSBCrawler gsbCrawler = new GSBCrawler("KEY", "gsb", "c:\\Backup\\", 
"jdbc:mysql://localhost/gsb", "root", "");
3. Exceptioon is throwing at 2

What is the expected output? What do you see instead?
Updated table and List infected urls

What version of the product are you using? On what operating system?
jgooglesafebrowser-0.1a.jar in windows server 2008

Please provide any additional information below.
It was working fine before, suddenly started throwing error. 

com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link 
failure

The last packet sent successfully to the server was 0 milliseconds ago. The 
driver has not received any packets from the server.
    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.mysql.jdbc.Util.handleNewInstance(Util.java:411)
    at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1116)
    at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:344)
    at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2332)
    at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2369)
    at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2153)
    at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:792)
    at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
    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.mysql.jdbc.Util.handleNewInstance(Util.java:411)
    at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:381)
    at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:305)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at com.gsbcrawler.GSBCrawler.<init>(GSBCrawler.java:102)
    at comValidation.GBSCrawler.tableUpdate(GBSCrawler.java:10)
    at comValidation.GBSCrawler.main(GBSCrawler.java:39)
Caused by: java.net.ConnectException: Connection refused: connect
    at java.net.DualStackPlainSocketImpl.connect0(Native Method)
    at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
    at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
    at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
    at java.net.AbstractPlainSocketImpl.connect(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.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:257)
    at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:294)
    ... 17 more
Exception in thread "main" java.lang.NullPointerException
    at com.gsbcrawler.GSBCrawler.generateDatabase(GSBCrawler.java:801)
    at com.gsbcrawler.GSBCrawler.<init>(GSBCrawler.java:109)
    at comValidation.GBSCrawler.tableUpdate(GBSCrawler.java:10)
    at comValidation.GBSCrawler.main(GBSCrawler.java:39)

Original issue reported on code.google.com by santhosh...@vizury.com on 18 Apr 2013 at 6:42

GoogleCodeExporter commented 9 years ago
Am using javaGSB.jar 

Original comment by santhosh...@vizury.com on 18 Apr 2013 at 6:48