在与 oracle 数据库连接的 java 应用程序中发现问题,SQLException:Io 异常:从读取调用中减一,我该如何解决?

Found issue in java application connecting with oracle database,SQLException: Io exception: Got minus one from a read call ,how I can solve it?

我在我的eclipse中写了一个servlet应用IDE, 我正在使用,

我的 Oracle 用户名和密码是 scottscott

Class.forName("oracle.jdbc.driver.OracleDriver");
con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:orcl","scott","scott");

虽然 运行 我发现此应用程序的输出如下,

java.sql.SQLException: Io exception: Got minus one from a read call
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:111)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:145)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:254)
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:386)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:413)
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:164)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:34)
...

我该如何解决这个问题? 请帮帮我..

问题已解决,Oracle监听器有问题。 我的听众不活跃。