使用MySQL DB,我在Jdev 12c - 12.2.1.0.0中制作了一些EO和VO。
当我右键单击AM并运行时,它会显示以下错误
oracle.jbo.jbotester.app.ErrorHandler$ExceptionWrapper: JBO-29000: Unexpected exception caught: oracle.jbo.DMLException, msg=JBO-26061: Error while opening JDBC connection.
at oracle.jbo.jbotester.app.ErrorHandler.displayError(ErrorHandler.java:108)
at oracle.jbo.jbotester.app.ErrorHandler.displayError(ErrorHandler.java:94)
at oracle.jbo.jbotester.app.IErrorHandlerImpl.displayError(IErrorHandlerImpl.java:43)
at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:513)
Caused by: oracle.jbo.DMLException: JBO-26061: Error while opening JDBC connection.
at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:218)
at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:45)
at oracle.jbo.server.ConnectionPoolDataSource.getConnection(ConnectionPoolDataSource.java:75)
at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:999)
at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1184)
at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:7115)
at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:297)
at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:328)
at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:203)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:643)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:439)
at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:9909)
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4538)
at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2453)
at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2263)
at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3162)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:604)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:537)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:532)
at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:644)
at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:1017)
at oracle.jbo.jbotester.binding.TesterBinding.getConnectionInfo(TesterBinding.java:100)
at oracle.jbo.jbotester.MainFrame.initializeDataControl(MainFrame.java:1054)
at oracle.jbo.jbotester.MainFrame.loadConfiguration(MainFrame.java:697)
at oracle.jbo.jbotester.MainFrame.processArgs(MainFrame.java:674)
at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:501)
## Detail 0 ##
oracle.jbo.DMLException: JBO-26061: Error while opening JDBC connection.
at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:218)
at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:45)
at oracle.jbo.server.ConnectionPoolDataSource.getConnection(ConnectionPoolDataSource.java:75)
at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:999)
at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1184)
at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:7115)
at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:297)
at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:328)
at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:203)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:643)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:439)
at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:9909)
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4538)
at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2453)
at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2263)
at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3162)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:604)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:537)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:532)
at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:644)
at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:1017)
at oracle.jbo.jbotester.binding.TesterBinding.getConnectionInfo(TesterBinding.java:100)
at oracle.jbo.jbotester.MainFrame.initializeDataControl(MainFrame.java:1054)
at oracle.jbo.jbotester.MainFrame.loadConfiguration(MainFrame.java:697)
at oracle.jbo.jbotester.MainFrame.processArgs(MainFrame.java:674)
at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:501)
在Jdev 11g中运行良好。 Oracle ADF社区中存在类似的问题,但没有得到解答
答案 0 :(得分:0)
在运行AppModule之前,您是否测试了数据库连接?