oracle数据库连接不上

[ERROR] 2019-05-26 13:16:31,119 [com.alibaba.druid.pool.DruidDataSource.init(DruidDataSource.java:745)] init datasource error, url: jdbc:oracle:thin:@192.168.40.181:1521:qemispdb

java.sql.SQLException: Io 异常: Got minus one from a read call

at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)

at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)

at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:255)

at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387)

at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:441)

at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)

at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)

at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)

at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1461)

at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1525)

at com.alibaba.druid.pool.DruidDataSource.init(DruidDataSource.java:734)

at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:1060)

at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:1056)

at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:104)

at com.jfinal.plugin.activerecord.generator.MetaBuilder.build(MetaBuilder.java:98)

at com.jfinal.plugin.activerecord.generator.Generator.generate(Generator.java:272)

at cn.mapedu.dbtool.AbsDatabaseTool.build(AbsDatabaseTool.java:77)

at cn.mapedu.data.center.base.DbTool.main(DbTool.java:20)

上面是报错信息,可以用navicat连接,但是jfinal启动的时候报这个错,是什么原因啊,搞了一个上午了,急急急!!!

评论区

JFinal

2019-05-26 15:48

异常的 cause 部分没有提示,缺失关键信息

当前的信息中: Got minus one from a read call

read call 中得到了一个减号, 检查代码哪里多出来一个 “减号”

热门反馈

扫码入社