在AOS 使用 DaoBuilderConsole时,启动报错 。数据选择的是ORACLE ,但是报错内容是mysql​

callzjk 发布于 2015/07/13 15:21
阅读 458
收藏 0

【Gopher China万字分享】华为云的Go语言云原生实战经验!>>>

在AOS 使用 DaoBuilderConsole时,启动报错  。数据选择的是ORACLE  ,但是报错内容是mysql

报错内容:

com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception: 



** BEGIN NESTED EXCEPTION ** 


java.net.ConnectException
MESSAGE: Connection refused: connect


STACKTRACE:


java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
at java.net.Socket.connect(Socket.java:469)
at java.net.Socket.<init>(Socket.java:366)
at java.net.Socket.<init>(Socket.java:209)
at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:173)
at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:267)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2739)
at com.mysql.jdbc.Connection.<init>(Connection.java:1553)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:154)
at cn.osworks.aos.builder.metainfo.DBMetaInfoUtils.newConnection(SourceFile:79)
at cn.osworks.aos.builder.DaoBuilderConsole.main(DaoBuilderConsole.java:46)




** END NESTED EXCEPTION **






Last packet sent to the server was 16 ms ago.
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2814)
at com.mysql.jdbc.Connection.<init>(Connection.java:1553)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:154)
at cn.osworks.aos.builder.metainfo.DBMetaInfoUtils.newConnection(SourceFile:79)
at cn.osworks.aos.builder.DaoBuilderConsole.main(DaoBuilderConsole.java:46)
Exception in thread "main" java.lang.NullPointerException
at cn.osworks.aos.builder.DaoBuilder.build(SourceFile:147)
at cn.osworks.aos.builder.DaoBuilderConsole.main(DaoBuilderConsole.java:47)
加载中
0
xiongchun
xiongchun
吧你DaobuilderConsole.java的配置帖上看看呢
0
码农东哥
码农东哥
我添加了一个数据源,然后就报这个错误了
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部