开发者社区> 问答> 正文

在AOS 使用 DaoBuilderConsole时,启动报错 。数据选择的是?报错

在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)

展开
收起
爱吃鱼的程序员 2020-06-14 14:40:22 497 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    吧你DaobuilderConsole.java的配置帖上看看呢我添加了一个数据源,然后就报这个错误了

    2020-06-14 14:40:38
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载