Changes to Dynamic JDBC Credentials for JDev10g

Does anyone have an update to the site at http://otn.oracle.com/products/jdev/howtos/bc4j/howto_dynamic_jdbc.html . The site has not been updated since April 2002. The sample code works great in 9.0.3... but bombs in 10g.
I used the code at the link above for my 9.0.3 application and it works great. However, when running the same code (with and without making the deprecation changes) in JDev10g results in the following exceptions.
JBO-30003: The application pool (dyn.model.entities.AppModuleLocal) failed to checkout an application module due to the following exception:
oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.DMLException, msg=JBO-26061: Error while opening JDBC connection.
at oracle.jbo.JboException.<init>(JboException.java:343)
at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1743)
at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2576)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:441)
at oracle.jbo.http.HttpSessionCookieImpl.useApplicationModule(HttpSessionCookieImpl.java:230)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:411)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:406)
at oracle.adf.model.bc4j.DCJboDataControl.rebuildApplicationModule(DCJboDataControl.java:1255)
at oracle.adf.model.bc4j.DCJboDataControl.beginRequest(DCJboDataControl.java:1172)
at oracle.adf.model.servlet.ADFBindingFilter.invokeBeginRequest(ADFBindingFilter.java:265)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:223)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:600)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:534)
## Detail 0 ##
oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.DMLException, msg=JBO-26061: Error while opening JDBC connection.
at oracle.jbo.JboException.<init>(JboException.java:343)
at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:328)
at oracle.jbo.server.ConnectionPool.getConnectionInternal(ConnectionPool.java:87)
at oracle.jbo.server.ConnectionPool.getConnection(ConnectionPool.java:66)
at oracle.jbo.server.ConnectionPoolManagerImpl.getConnection(ConnectionPoolManagerImpl.java:56)
at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:856)
at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1095)
at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:5724)
at oracle.jbo.server.DBTransactionImpl2.connect(DBTransactionImpl2.java:116)
at oracle.jbo.server.ApplicationModuleImpl.doPoolConnect(ApplicationModuleImpl.java:7073)
at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:6843)
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:3886)
at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:1886)
at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1711)
at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2576)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:441)
at oracle.jbo.http.HttpSessionCookieImpl.useApplicationModule(HttpSessionCookieImpl.java:230)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:411)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:406)
at oracle.adf.model.bc4j.DCJboDataControl.rebuildApplicationModule(DCJboDataControl.java:1255)
at oracle.adf.model.bc4j.DCJboDataControl.beginRequest(DCJboDataControl.java:1172)
at oracle.adf.model.servlet.ADFBindingFilter.invokeBeginRequest(ADFBindingFilter.java:265)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:223)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:600)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:534)
## Detail 0 ##
oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.DMLException, msg=JBO-26061: Error while opening JDBC connection.
at oracle.jbo.JboException.<init>(JboException.java:343)
at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:532)
at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:318)
at oracle.jbo.server.ConnectionPool.getConnectionInternal(ConnectionPool.java:87)
at oracle.jbo.server.ConnectionPool.getConnection(ConnectionPool.java:66)
at oracle.jbo.server.ConnectionPoolManagerImpl.getConnection(ConnectionPoolManagerImpl.java:56)
at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:856)
at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1095)
at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:5724)
at oracle.jbo.server.DBTransactionImpl2.connect(DBTransactionImpl2.java:116)
at oracle.jbo.server.ApplicationModuleImpl.doPoolConnect(ApplicationModuleImpl.java:7073)
at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:6843)
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:3886)
at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:1886)
at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1711)
at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2576)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:441)
at oracle.jbo.http.HttpSessionCookieImpl.useApplicationModule(HttpSessionCookieImpl.java:230)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:411)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:406)
at oracle.adf.model.bc4j.DCJboDataControl.rebuildApplicationModule(DCJboDataControl.java:1255)
at oracle.adf.model.bc4j.DCJboDataControl.beginRequest(DCJboDataControl.java:1172)
at oracle.adf.model.servlet.ADFBindingFilter.invokeBeginRequest(ADFBindingFilter.java:265)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:223)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:600)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:534)
## Detail 0 ##
oracle.jbo.DMLException: JBO-26061: Error while opening JDBC connection.
at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:220)
at oracle.jbo.server.ConnectionPool.instantiateResource(ConnectionPool.java:135)
at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:523)
at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:318)
at oracle.jbo.server.ConnectionPool.getConnectionInternal(ConnectionPool.java:87)
at oracle.jbo.server.ConnectionPool.getConnection(ConnectionPool.java:66)
at oracle.jbo.server.ConnectionPoolManagerImpl.getConnection(ConnectionPoolManagerImpl.java:56)
at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:856)
at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1095)
at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:5724)
at oracle.jbo.server.DBTransactionImpl2.connect(DBTransactionImpl2.java:116)
at oracle.jbo.server.ApplicationModuleImpl.doPoolConnect(ApplicationModuleImpl.java:7073)
at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:6843)
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:3886)
at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:1886)
at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1711)
at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2576)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:441)
at oracle.jbo.http.HttpSessionCookieImpl.useApplicationModule(HttpSessionCookieImpl.java:230)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:411)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:406)
at oracle.adf.model.bc4j.DCJboDataControl.rebuildApplicationModule(DCJboDataControl.java:1255)
at oracle.adf.model.bc4j.DCJboDataControl.beginRequest(DCJboDataControl.java:1172)
at oracle.adf.model.servlet.ADFBindingFilter.invokeBeginRequest(ADFBindingFilter.java:265)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:223)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:600)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:534)
## Detail 0 ##
java.sql.SQLException: invalid arguments in call
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:189)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:231)
at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:985)
at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:198)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:377)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:515)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:345)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:193)
at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:174)
at oracle.jbo.server.ConnectionPool.instantiateResource(ConnectionPool.java:135)
at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:523)
at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:318)
at oracle.jbo.server.ConnectionPool.getConnectionInternal(ConnectionPool.java:87)
at oracle.jbo.server.ConnectionPool.getConnection(ConnectionPool.java:66)
at oracle.jbo.server.ConnectionPoolManagerImpl.getConnection(ConnectionPoolManagerImpl.java:56)
at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:856)
at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1095)
at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:5724)
at oracle.jbo.server.DBTransactionImpl2.connect(DBTransactionImpl2.java:116)
at oracle.jbo.server.ApplicationModuleImpl.doPoolConnect(ApplicationModuleImpl.java:7073)
at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:6843)
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:3886)
at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:1886)
at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1711)
at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2576)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:441)
at oracle.jbo.http.HttpSessionCookieImpl.useApplicationModule(HttpSessionCookieImpl.java:230)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:411)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:406)
at oracle.adf.model.bc4j.DCJboDataControl.rebuildApplicationModule(DCJboDataControl.java:1255)
at oracle.adf.model.bc4j.DCJboDataControl.beginRequest(DCJboDataControl.java:1172)
at oracle.adf.model.servlet.ADFBindingFilter.invokeBeginRequest(ADFBindingFilter.java:265)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:223)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:600)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:534)
I've tried the modification suggested by Jasmina Ajanovic and it doesn't work either.
Does someone have any ideas?
--Connie                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  

I have used the updated document on my project, and am getting some errors. When I step through the code, I see that the DynamicJDBCBindingFilter is called multiple (more than 10) times. Eventually I get a message that there was an invalid login and it fails, however I know I'm using a valid username/password.
If I use the Module tester, selecting the local module, everything works fine, until I try to save the transaction state, at which time I get:
[300] Creating a new pool resource
[301] Trying connection/1: url='jdbc:oracle:thin:@localhost:1521:dev'...
[302] DBTransactionImpl.initTransaction: Login failed
[303] java.sql.SQLException: invalid arguments in call
     at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:189)
     at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:231)
     at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:985)
     at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:198)
     at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:377)
     at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:515)
     at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:345)
     at java.sql.DriverManager.getConnection(DriverManager.java:512)
     at java.sql.DriverManager.getConnection(DriverManager.java:193)
     at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:174)
     at oracle.jbo.server.ConnectionPool.instantiateResource(ConnectionPool.java:135)
     at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:523)
     at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:318)
     at oracle.jbo.server.ConnectionPool.getConnectionInternal(ConnectionPool.java:87)
     at oracle.jbo.server.ConnectionPool.getConnection(ConnectionPool.java:66)
     at oracle.jbo.server.ConnectionPoolManagerImpl.getConnection(ConnectionPoolManagerImpl.java:56)
     at oracle.jbo.server.ConnectionPoolManagerImpl.getConnectionForInternalUse(ConnectionPoolManagerImpl.java:70)
     at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:805)
     at oracle.jbo.server.DBTransactionImpl.getInternalConnection(DBTransactionImpl.java:1348)
     at oracle.jbo.server.DBSerializer.setup(DBSerializer.java:140)
     at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:286)
     at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:267)
     at oracle.jbo.server.ApplicationModuleImpl.passivateStateInternal(ApplicationModuleImpl.java:4591)
     at oracle.jbo.server.ApplicationModuleImpl.passivateState(ApplicationModuleImpl.java:4469)
     at oracle.jbo.server.ApplicationModuleImpl.passivateState(ApplicationModuleImpl.java:4464)
     at oracle.jbo.jbotester.MainFrame$FileSaveAction.doAction(MainFrame.java:859)
     at oracle.jbo.jbotester.AbstractJboAction.actionPerformed(AbstractJboAction.java:60)
     at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
     at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
     at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
     at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
     at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
     at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113)
     at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)
     at java.awt.Component.processMouseEvent(Component.java:5100)
     at java.awt.Component.processEvent(Component.java:4897)
     at java.awt.Container.processEvent(Container.java:1569)
     at java.awt.Component.dispatchEventImpl(Component.java:3615)
     at java.awt.Container.dispatchEventImpl(Container.java:1627)
     at java.awt.Component.dispatchEvent(Component.java:3477)
     at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
     at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
     at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
     at java.awt.Container.dispatchEventImpl(Container.java:1613)
     at java.awt.Window.dispatchEventImpl(Window.java:1606)
     at java.awt.Component.dispatchEvent(Component.java:3477)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
     at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
     at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
[304] oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.DMLException, msg=JBO-26061: Error while opening JDBC connection.
     at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:328)
     at oracle.jbo.server.ConnectionPool.getConnectionInternal(ConnectionPool.java:87)
     at oracle.jbo.server.ConnectionPool.getConnection(ConnectionPool.java:66)
     at oracle.jbo.server.ConnectionPoolManagerImpl.getConnection(ConnectionPoolManagerImpl.java:56)
     at oracle.jbo.server.ConnectionPoolManagerImpl.getConnectionForInternalUse(ConnectionPoolManagerImpl.java:70)
     at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:805)
     at oracle.jbo.server.DBTransactionImpl.getInternalConnection(DBTransactionImpl.java:1348)
     at oracle.jbo.server.DBSerializer.setup(DBSerializer.java:140)
     at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:286)
     at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:267)
     at oracle.jbo.server.ApplicationModuleImpl.passivateStateInternal(ApplicationModuleImpl.java:4591)
     at oracle.jbo.server.ApplicationModuleImpl.passivateState(ApplicationModuleImpl.java:4469)
     at oracle.jbo.server.ApplicationModuleImpl.passivateState(ApplicationModuleImpl.java:4464)
     at oracle.jbo.jbotester.MainFrame$FileSaveAction.doAction(MainFrame.java:859)
     at oracle.jbo.jbotester.AbstractJboAction.actionPerformed(AbstractJboAction.java:60)
     at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
     at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
     at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
     at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
     at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
     at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113)
     at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)
     at java.awt.Component.processMouseEvent(Component.java:5100)
     at java.awt.Component.processEvent(Component.java:4897)
     at java.awt.Container.processEvent(Container.java:1569)
     at java.awt.Component.dispatchEventImpl(Component.java:3615)
     at java.awt.Container.dispatchEventImpl(Container.java:1627)
     at java.awt.Component.dispatchEvent(Component.java:3477)
     at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
     at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
     at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
     at java.awt.Container.dispatchEventImpl(Container.java:1613)
     at java.awt.Window.dispatchEventImpl(Window.java:1606)
     at java.awt.Component.dispatchEvent(Component.java:3477)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
     at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
     at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
## Detail 0 ##
oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.DMLException, msg=JBO-26061: Error while opening JDBC connection.
     at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:532)
     at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:318)
     at oracle.jbo.server.ConnectionPool.getConnectionInternal(ConnectionPool.java:87)
     at oracle.jbo.server.ConnectionPool.getConnection(ConnectionPool.java:66)
     at oracle.jbo.server.ConnectionPoolManagerImpl.getConnection(ConnectionPoolManagerImpl.java:56)
     at oracle.jbo.server.ConnectionPoolManagerImpl.getConnectionForInternalUse(ConnectionPoolManagerImpl.java:70)
     at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:805)
     at oracle.jbo.server.DBTransactionImpl.getInternalConnection(DBTransactionImpl.java:1348)
     at oracle.jbo.server.DBSerializer.setup(DBSerializer.java:140)
     at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:286)
     at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:267)
     at oracle.jbo.server.ApplicationModuleImpl.passivateStateInternal(ApplicationModuleImpl.java:4591)
     at oracle.jbo.server.ApplicationModuleImpl.passivateState(ApplicationModuleImpl.java:4469)
     at oracle.jbo.server.ApplicationModuleImpl.passivateState(ApplicationModuleImpl.java:4464)
     at oracle.jbo.jbotester.MainFrame$FileSaveAction.doAction(MainFrame.java:859)
     at oracle.jbo.jbotester.AbstractJboAction.actionPerformed(AbstractJboAction.java:60)
     at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
     at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
     at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
     at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
     at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
     at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113)
     at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)
     at java.awt.Component.processMouseEvent(Component.java:5100)
     at java.awt.Component.processEvent(Component.java:4897)
     at java.awt.Container.processEvent(Container.java:1569)
     at java.awt.Component.dispatchEventImpl(Component.java:3615)
     at java.awt.Container.dispatchEventImpl(Container.java:1627)
     at java.awt.Component.dispatchEvent(Component.java:3477)
     at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
     at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
     at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
     at java.awt.Container.dispatchEventImpl(Container.java:1613)
     at java.awt.Window.dispatchEventImpl(Window.java:1606)
     at java.awt.Component.dispatchEvent(Component.java:3477)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
     at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
     at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
## Detail 0 ##
oracle.jbo.DMLException: JBO-26061: Error while opening JDBC connection.
     at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:220)
     at oracle.jbo.server.ConnectionPool.instantiateResource(ConnectionPool.java:135)
     at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:523)
     at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:318)
     at oracle.jbo.server.ConnectionPool.getConnectionInternal(ConnectionPool.java:87)
     at oracle.jbo.server.ConnectionPool.getConnection(ConnectionPool.java:66)
     at oracle.jbo.server.ConnectionPoolManagerImpl.getConnection(ConnectionPoolManagerImpl.java:56)
     at oracle.jbo.server.ConnectionPoolManagerImpl.getConnectionForInternalUse(ConnectionPoolManagerImpl.java:70)
     at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:805)
     at oracle.jbo.server.DBTransactionImpl.getInternalConnection(DBTransactionImpl.java:1348)
     at oracle.jbo.server.DBSerializer.setup(DBSerializer.java:140)
     at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:286)
     at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:267)
     at oracle.jbo.server.ApplicationModuleImpl.passivateStateInternal(ApplicationModuleImpl.java:4591)
     at oracle.jbo.server.ApplicationModuleImpl.passivateState(ApplicationModuleImpl.java:4469)
     at oracle.jbo.server.ApplicationModuleImpl.passivateState(ApplicationModuleImpl.java:4464)
     at oracle.jbo.jbotester.MainFrame$FileSaveAction.doAction(MainFrame.java:859)
     at oracle.jbo.jbotester.AbstractJboAction.actionPerformed(AbstractJboAction.java:60)
     at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
     at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
     at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
     at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
     at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
     at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113)
     at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)
     at java.awt.Component.processMouseEvent(Component.java:5100)
     at java.awt.Component.processEvent(Component.java:4897)
     at java.awt.Container.processEvent(Container.java:1569)
     at java.awt.Component.dispatchEventImpl(Component.java:3615)
     at java.awt.Container.dispatchEventImpl(Container.java:1627)
     at java.awt.Component.dispatchEvent(Component.java:3477)
     at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
     at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
     at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
     at java.awt.Container.dispatchEventImpl(Container.java:1613)
     at java.awt.Window.dispatchEventImpl(Window.java:1606)
     at java.awt.Component.dispatchEvent(Component.java:3477)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
     at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
     at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
## Detail 0 ##
java.sql.SQLException: invalid arguments in call
     at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:189)
     at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:231)
     at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:985)
     at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:198)
     at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:377)
     at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:515)
     at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:345)
     at java.sql.DriverManager.getConnection(DriverManager.java:512)
     at java.sql.DriverManager.getConnection(DriverManager.java:193)
     at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:174)
     at oracle.jbo.server.ConnectionPool.instantiateResource(ConnectionPool.java:135)
     at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:523)
     at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:318)
     at oracle.jbo.server.ConnectionPool.getConnectionInternal(ConnectionPool.java:87)
     at oracle.jbo.server.ConnectionPool.getConnection(ConnectionPool.java:66)
     at oracle.jbo.server.ConnectionPoolManagerImpl.getConnection(ConnectionPoolManagerImpl.java:56)
     at oracle.jbo.server.ConnectionPoolManagerImpl.getConnectionForInternalUse(ConnectionPoolManagerImpl.java:70)
     at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:805)
     at oracle.jbo.server.DBTransactionImpl.getInternalConnection(DBTransactionImpl.java:1348)
     at oracle.jbo.server.DBSerializer.setup(DBSerializer.java:140)
     at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:286)
     at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:267)
     at oracle.jbo.server.ApplicationModuleImpl.passivateStateInternal(ApplicationModuleImpl.java:4591)
     at oracle.jbo.server.ApplicationModuleImpl.passivateState(ApplicationModuleImpl.java:4469)
     at oracle.jbo.server.ApplicationModuleImpl.passivateState(ApplicationModuleImpl.java:4464)
     at oracle.jbo.jbotester.MainFrame$FileSaveAction.doAction(MainFrame.java:859)
     at oracle.jbo.jbotester.AbstractJboAction.actionPerformed(AbstractJboAction.java:60)
     at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
     at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
     at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
     at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
     at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
     at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113)
     at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)
     at java.awt.Component.processMouseEvent(Component.java:5100)
     at java.awt.Component.processEvent(Component.java:4897)
     at java.awt.Container.processEvent(Container.java:1569)
     at java.awt.Component.dispatchEventImpl(Component.java:3615)
     at java.awt.Container.dispatchEventImpl(Container.java:1627)
     at java.awt.Component.dispatchEvent(Component.java:3477)
     at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
     at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
     at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
     at java.awt.Container.dispatchEventImpl(Container.java:1613)
     at java.awt.Window.dispatchEventImpl(Window.java:1606)
     at java.awt.Component.dispatchEvent(Component.java:3477)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
     at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
     at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
I went back to the document, and did a straight copy/paste of the code (changing the do actions appropriately) and the behavior remains the same.
What could be going on here?

Similar Messages

  • Questions about example "Dynamic JDBC Credentials for Model 1 and Model 2"

    Hello,
    i am trying to set up dynamic JDBC authentication in my ADF BC application - i want that it'll work like in Forms - a dababase user with the proper priveleges can log into my ADF BC application using his database login and password, and work with application.
    I've read the paper "How To Support Dynamic JDBC Credentials" at
    http://www.oracle.com/technology/products/jdev/howtos/10g/dynamicjdbchowto.html
    and test the very useful example, created by Steve Muench, which i've got from
    http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html#14
    The example works, but when i'm transfer its realisation in my application - it doesnt work the right way. The problems is the following:
    1. I can connect and work successfully only under the owner of the schema - the username and password of which i've wrote in the "jbo.server.internal_connection" string of the AM configuration.
    2. When i'm connecting under other users, which have all the rights to work with the db objects, used by application, i got the main page with the "Access Denied" message - as i have no priveleges to the tables.
    3. The big surprise is that if i am entering the fake username and password - the random letter combination - then i am getting the same behavior as in p.2 - the main page with the "Access Denied" message!
    And the last question is:
    4. Is it possible to set up the dynamic jdbc authentication using the build-in JDeveloper functions - i mean not to use that additional code, not override the ADF Binding Filter, and so on, but set up the similar behaviour (users log in using their db names and passwords) in several minutes following the standart documentation?
    Thanks in advance!

    One more question:
    I have 2 independent Application Modules in my application - to make the 2 transactions independent one form another, when working with different parts of project - and while using dinamic JDBC authentification, the user connects only in the first AM under the username he's entered, but the 2nd AM works under the predefined earlier (during development) connection for that AM.
    How can i make the 2nd AM to be connected under the logging in user (same as the 1rst AM)?

  • Dynamic JDBC Credentials and using ADF Region ERROR

    Hi,
    I used solution by Steve Muench, Dynamic JDBC Credentials (for ADF Faces Rich Client)
    (129.     11g Dynamic JDBC Credentials for Model 1, Struts, Trinidad, and ADF Faces Rich Client 11.1.1.0.0 06-AUG-2008), but it works not correct in case of using ADF Dynamic Region (or simply ADF Region).
    I have added in ViewControllerJSFRichFaces a page (main.jspx) including ADF Dynamic Region consisting of 2 simple tasks flows. Action of the Login button, if login and password are correct, redirect to main.jspx
    There are to cases.
    1) Login and password are correct:
    In this case all work fine.
    2) Login and password are not correct:
    It does not work. redirect to login.jspx does not occur as it is expected, but the following page (main.jspx) is loaded, herewith thrown exception: oracle.jbo.DMLException: JBO-26061: Error while opening JDBC connection.
    I would be very grateful you for help.

    Hi,
    hard to say from your description if this is a bug or an implementation problem. Note that errors that occur in regions are not handled by the exception handler of the the parent page and require special handling within the region. In other words, if the problem is in the region then it needs to be handled in here. I think the right strategy here is to not show the region until a valid connection exist. Is the login performed from the parent page ?
    Frank

  • For those who used the solution by Steve Muench,Dynamic JDBC Credentials

    hi every body
    is there any body used the solution by Steve Muench, Dynamic JDBC Credentials .
    thanks
    Yaser
    Edited by: 842127 on Mar 13, 2011 9:24 AM

    Hi,
    in the login page i have a button to make login which work perfect
    How can you say ?
    Whenever i click any control in the login page i see this message invalid username/passowrd . i do not why i face this problem ?I have tried changing the username,password and database using http://www.oracle.com/technetwork/developer-tools/jdev/dynamicjdbchowto-101755.html which works perfect.
    refer my thread
    Changing the database for a particular user session
    Regards,
    Santosh
    Edited by: Santosh Vaza on Mar 17, 2011 11:29 AM

  • REDIRECT JDBC URL WHEN USING DYNAMIC JDBC CREDENTIALS SO NOT HARDCODED

    I have taken over an application that uses row-level security and ADF (using
    dynamic JDBC Credentials). I have been able to set the internal_connection to
    a JDBCDatasource, but cannot set the Connection Type in the Oracle Business
    Component Configuration to a JDBCDatasource. When I do, I receive errors that
    tables are not found. When I set the value back to a JDBC URL, everything
    works fine again.
    I am looking for a solution where the userid and password are not hardcoded in
    the BC4J.xcfg or a way to redirect this information, as we change our system
    passwords every nighty days. Otherwise, I will have to redeploy the
    application every nighty days.
    I did not create this application, but I am sure that you could simply follow
    the "How to Support Dynamic JDBC Credentials" article. From that point, you
    will probably be where I am, where I have the internal_connection set to a
    JDBCDataSource and working properly, but cannot set the Connection Type to
    anything where the userid and password will not be hardcoded or cause failure.
    I wanted to let you know that I have
    found the updated How to Support Dynamic JDBC Credentials
    (http://www.oracle.com/technology/products/jdev/howtos/bc4j/howto_dynamic_jdbc.h
    tml) and was going to run through the "Advanced: Supporting Dynamic JDBC URLs",
    but once I was done keying in
    env.remove(ConnectionStrategy.DB_CONNECT_STRING_PROPERTY); I received a
    depreciation message on the DB_CONNECT_STRING_PROPERTY. (Note: I am coding in
    JDeveloper 10.1.3, so this may be depreciated as of then, but the ADF Libraries
    for JDeveloper 10.1.3 are on our Oracle 10gAS 10.1.2 server.)
    I thought maybe this would resolve my issue, but I can't be sure as the
    deprecation message leads me to believe that this solution may not be viable in
    the future.
    UPDATE
    =======
    The article you are referencing is definitely an older version.
    There is a newer article for 10g at:
    http://www.oracle.com/technology/products/jdev/howtos/10g/dynamicjdbchowto.html
    Please see if that helps.
    I have already reviewed this article.
    In fact, I have reviewed many versions of this document. I have not seen one
    created yet for 10.1.3 though (especially without JSF as our 10.1.2 AS server
    will not support it). I need to find an example or documentation that shows
    how we can keep from having the JDBC URL stored in the BC4J.xcfg or a way to
    use dynamic JDBC credentials with a JDBCDataSource. We do not want to store
    the userid and password in the application, rather, we would like to setup
    something that can be configurable from the application server.
    I think we need to use the dynamic JDBC credentials because we are using the
    row-level security, where we setup a database context for the user and only
    allow certain records of a database table to be returned to the browser based
    on that context.
    Might there be a way to still use the JDBCDataSource?

    I understand that the user provides the userid and password and that these values are setup using the Configuration class.
    However, when I am to deploy the ADF Business Module with my application, I have to specify either a JDBC URL or a JDBC DataSource in the Oracle Business Component Configuration.
    When I use JDBC DataSource, the code does not work properly, almost like the user's credentials are not used for the connection (I get errors like table or view does not exist).
    When I use the JDBC URL, the bc4j.xcfg stores a reference in the JDBCName attribute to a ConnectionDefinition in the same file. It is in this tag of the bc4j.xcfg where the userid, sid, and password (encrypted) is stored and used when retrieving the initial context of the ADF business components.
    It is these values that I want to have stored else where so that the application does not have to be redeployed in order for the password (or sid, or other connection information) to be change.

  • Using Dynamic JDBC Credentials with jazn security (web.xml) in BC

    I have followed the document “How To Support Dynamic JDBC Credentials” http://www.oracle.com/technology/products/jdev/howtos/10g/dynamicjdbchowto.html to connect to the database using Business Components, as the user who logs in the application. (Proxy)
    The only matter is that as I could see, I cannot use the application server integrated security (with roles) to protect the web resources.
    The main objective is to protect the web resources using Declarative J2EE authentication and authorization using the Data Base users (and roles). I have implemented the solution for the first part (authentication) using DBLoginModule (DBSystemLoginModule) from Frank Nimphius and Duncan Mills, it’s working OK, but I need the second part; how to use the user that is logged in as the PROXY user of the BC connection.
    Using the DBLoginModule, and the “How To Support Dynamic JDBC Credentials” separates works fine, but I can’t make them work together.

    Frank, Thanks a lot for your quick answer.
    "Maybe you should look at using database proxy users with ADF BC so you can use the J2EE authenticated user principal as the database schema to connect through. I am working on documenting this approach, which however needs some more time of writing and testing."
    Yes, that's exactly what I need!!!
    Can you give me some tips about how to do that.. Do you have any idea of when you will finish that document?.
    By the way, I'm using FORM authentication, but I don't know how to modify what’s in the “How To Support Dynamic JDBC Credentials” document, to use the J2EE authenticated user principal as the database schema to connect through.
    One of the problems is that when using this approach, I cannot get the J2EE security to redirect to the login page...
    Any help would be really appreciated

  • Dynamic JDBC credentials example application from Steve Muench

    Apologies for this newbie question...but I'm trying to understand the Dynamic JDBC credentials example application from Steve Muench:
    http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html#14
    I think I understand most of it but the one bit I dont understand is why it customizes the ADF Page Lifecycle (DynamicJDBCADFPhaseListener, DynamicJDBCPageLifecycle, DynamicJDBCPageLifecycleContext).
    Can anyone explain to an ex-forms developer why this code is there?
    I'm also trying to work out a way for the session to be invalidated when the user logins again
    e.g. a user logins, he doesnt use the logout function but uses the back button to go back to the login page. when he logs in with another set of credentials, would a new session start or as i supsect, it would use the original login credentials?
    Thanks

    You can ignore those three classes in the example. They are not related to the dynamic credential solution, and must have been left over from some other example I evolved into what you see. Sorry to have cluttered up the implementation with stuff that isn't really contributing to the actual solution. DOH!

  • Dynamic JDBC Credentials error

    I create my login page as article
    "How To Support Dynamic JDBC Credentials" (http://www.oracle.com/technology/products/jdev/howtos/10g/dynamicjdbchowto.html)
    but if i run application i get this error
    500 Internal Server Error
    java.lang.RuntimeException: Model binding context not initialized     at oracle.adf.controller.lifecycle.LifecycleContext.initialize(LifecycleContext.java:113)     at oracle.adf.controller.lifecycle.LifecycleContext.initialize(LifecycleContext.java:77)     at oracle.adf.controller.struts.actions.DataActionContext.initialize(DataActionContext.java:48)     at oracle.adf.controller.struts.actions.DataAction.execute(DataAction.java:150)     at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)     at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)     at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1485)     at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:509)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)     at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:222)     at loginapp.view.DynamicJDBCBindingFilter.doFilter(DynamicJDBCBindingFilter.java:32)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:659)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)     at java.lang.Thread.run(Thread.java:534)
    whats wrong?
    JDeveloper version 10.1.2.1.0 (build 1913)

    Have you performed Step 6 from topic "Create the application":
    "Add databound controls to at least one page, other than the login page (of course, you should not attempt to add databound controls to the login page). This can be done using the Data Control Palette; for more information, see the JDeveloper online help."
    If you missed it, this could lead to the errors you have.
    Regards,
    Didier.

  • Dynamic JDBC credentials don't work

    Hello,
    I'm using OC4J 9.0.3 (build 020927.1699) for deploying BC4J components as EJB session beans.
    All my efforts to activate dynamic JDBC credentials are still without success.
    Client (JDev9032) implements EnvInfoProvider and returns new properties as described in the JBO-javadoc. Tracing oc4j shows that required properties are passed from the client but ignored as unknown:
    [332] (0) Copying unknown Client property (password='tiger') to session
    [334] (0) Copying unknown Client property (user='scott') to session
    - and connection is made on behalf of default user from data-source config.
    Is it a bug or I misunderstood something ?
    Thanks
    Arkady

    Please discard.
    The reason is in JDev9032, see BUG: JDBC dynamic credentials do not work

  • Support Dynamic JDBC Credentials

    Can I use something similar in JDeveloper 11g like in this example http://www.oracle.com/technology/products/jdev/howtos/10g/dynamicjdbchowto.html

    Here is the class
    package userinterface;
    import java.io.IOException;
    import java.lang.reflect.InvocationTargetException;
    import java.lang.reflect.Method;
    import java.util.Iterator;
    import java.util.Map;
    import javax.servlet.FilterChain;
    import javax.servlet.FilterConfig;
    import javax.servlet.ServletException;
    import javax.servlet.ServletRequest;
    import javax.servlet.ServletResponse;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.http.HttpSession;
    import javax.servlet.jsp.JspTagException;
    import oracle.adf.model.servlet.ADFBindingFilter;
    import oracle.adf.share.ADFContext;
    import oracle.jbo.client.Configuration;
    import oracle.jbo.common.JBOClass;
    import oracle.jbo.common.ampool.ApplicationPoolException;
    public class DynamicJDBCBindingFilter extends ADFBindingFilter {
    public DynamicJDBCBindingFilter() {
    public void doFilter(ServletRequest request, ServletResponse response,
    FilterChain chain) throws IOException,
    ServletException {
    HttpServletRequest svrRequest = (HttpServletRequest)request;
    HttpSession session = svrRequest.getSession(true);
    if (!isLoggedIn(session)) {
    if (!isLoginRequest(svrRequest)) {
    String method = svrRequest.getMethod();
    String requestUri = svrRequest.getRequestURI();
    if (method.equalsIgnoreCase("GET") &&
    requestUri.endsWith(loginPageRedirectName())) {
    super.doFilter(request, response, chain);
    } else {
    forwardToLoginPage(request, response);
    } else {
    try {
    String usrName = request.getParameter(USERNAME_PARAM);
    String pswd = request.getParameter(PASSWORD_PARAM);
    * If you need to support dynamically changing the JDBC URL
    * (for example to support changing which database instance
    * you are pointing at on the fly, then you need to change
    * the line of code below to assign a non-null value to the
    * jdbcURL variable. You would need to take the user-supplied
    * information and formulate a valid JDBC connection URL connection
    * string (without username and password) that looks like this:
    * jdbc:oracle:thin:@localhost:1521:ORCL
    * machine port SID
    * and then set this the jdbcURL variable to this value.
    String jdbcURL = "jdbc:oracle:thin:@10.3.3.68:1521:des10g";
    if (usrName == null || usrName.length() == 0 ||
    pswd == null || pswd.length() == 0) {
    throw new BlankUserNameOrPassword();
    session.setAttribute(Configuration.DB_USERNAME_PROPERTY,
    usrName);
    session.setAttribute(Configuration.DB_PASSWORD_PROPERTY,
    pswd);
    if (jdbcURL != null) {
    session.setAttribute(Configuration.DB_CONNECT_STRING_PROPERTY,
    jdbcURL);
    super.doFilter(request, response, chain);
    if (request.getAttribute(FAILED_ATTR) == null) {
    session.setAttribute(LOGGEDIN_ATTR, NON_NULL_VALUE);
    } catch (Exception e) {
    if (isFailedLoginException(e)) {
    signalFailedLoginAttempt(svrRequest);
    redirectToLoginPageOnLogonError(request, response);
    } else if (e instanceof ServletException) {
    throw (ServletException)e;
    } else {
    e.printStackTrace();
    throw new ServletException(e);
    } else {
    super.doFilter(request, response, chain);
    * Encapsulate detecting if the exception thrown
    * represents a failed login attempt.
    private boolean isFailedLoginException(Exception e) {
    * In 9.0.5.2, our eager AM acquisition will
    * cause the application pool exception to appear
    * without being wrapped.
    if (e instanceof ApplicationPoolException ||
    e instanceof BlankUserNameOrPassword) {
    return true;
    } else if (e instanceof ServletException) {
    Throwable rootCause = ((ServletException)e).getRootCause();
    * In 10.1.2 Struts, our lazy AM acquisition causes
    * the failed database login to be wrapped in a
    * ServletException that contains the ApplicationPoolException
    if (rootCause instanceof ApplicationPoolException) {
    return true;
    * In 10.1.2 JSP Model 1, our lazy AM acquisition causes
    * the failed database login to be wrapped in a
    * ServletException that contains a JspTagException.
    * The JspTagException does not wrap the original error,
    * but only encapsulate the original errors getMessage() value.
    if (rootCause instanceof JspTagException) {
    String errMsg = ((JspTagException)rootCause).getMessage();
    if (errMsg != null && errMsg.startsWith(APP_POOL_ERR_MSG)) {
    return true;
    return false;
    * Forwards control to the login page.
    private void forwardToLoginPage(ServletRequest request,
    ServletResponse response) throws ServletException,
    IOException {
    HttpServletResponse responseHttp = (HttpServletResponse)response;
    responseHttp.sendRedirect(loginPageRedirectName());
    markResponseCompleteIfUsingJSF();
    private void redirectToLoginPage(ServletRequest request,
    ServletResponse response) throws ServletException,
    IOException {
    HttpServletResponse responseHttp = (HttpServletResponse)response;
    responseHttp.sendRedirect(loginPageRedirectName());
    markResponseCompleteIfUsingJSF();
    private void redirectToLoginPageOnLogonError(ServletRequest request,
    ServletResponse response) throws ServletException,
    IOException {
    HttpServletResponse responseHttp = (HttpServletResponse)response;
    responseHttp.sendRedirect(loginPageRedirectName((HttpServletRequest)request) + "?failed=true");
    markResponseCompleteIfUsingJSF();
    * Signal a failed login attempt
    private void signalFailedLoginAttempt(HttpServletRequest request) {
    HttpSession session = request.getSession(true);
    session.setAttribute(LOGGEDIN_ATTR, null);
    request.setAttribute(FAILED_ATTR, NON_NULL_VALUE);
    session.invalidate();
    * If we are running in a Faces environment, invoke
    * the FacesContext.responseComplete() method after
    * the session invalidate. We use Java reflection
    * so that our code can still work in a Non-Faces
    * environment, too.
    private void markResponseCompleteIfUsingJSF() {
    try {
    Class c = JBOClass.forName("javax.faces.context.FacesContext");
    Method m = c.getMethod("getCurrentInstance", null);
    Object obj = m.invoke(null, null);
    m = c.getMethod("responseComplete",null);
    m.invoke(obj,null);
    } catch (InvocationTargetException ex) {
    throw new RuntimeException(ex);
    } catch (IllegalAccessException ex) {
    throw new RuntimeException(ex);
    } catch (NoSuchMethodException ex) {
    throw new RuntimeException(ex);
    } catch (ClassNotFoundException ex) {
    // Ignore, we're not running in a faces context.
    * Returns true if user is currently logged in
    private boolean isLoggedIn(HttpSession session) {
    return session.getAttribute(LOGGEDIN_ATTR) != null;
    * Returns true if the current request is a login request.
    private boolean isLoginRequest(HttpServletRequest request) {
    return request.getParameter(IS_LOGIN_PAGE_PARAM) != null &&
    request.getMethod().equalsIgnoreCase("POST");
    private static final String LOGIN_PAGE_REDIRECT_PARAM = "RedirectToLogin";
    private static final String FACES_URL_PATTERN_PARAM = "FacesURLPattern";
    private static final String LOGGEDIN_ATTR = "loggedin";
    private static final String FAILED_ATTR = "failed";
    private static final String USERNAME_PARAM = "form:username";
    private static final String PASSWORD_PARAM = "form:password";
    private static final String IS_LOGIN_PAGE_PARAM = "form:_loginpage";
    private static final String NON_NULL_VALUE = "x";
    private static final String APP_POOL_ERR_MSG = "JBO-30003";
    private static String loginPageRedirectName = null;
    private String facesURLPattern = null;
    private String loginPageRedirectName() {
    return loginPageRedirectName;
    private String loginPageRedirectName(HttpServletRequest request) {
    if (facesURLPattern != null) {
    if (request.getRequestURI().indexOf(facesURLPattern) == -1) {
    return facesURLPattern+loginPageRedirectName;
    return loginPageRedirectName;
    public void init(FilterConfig filterConfig) throws ServletException {
    super.init(filterConfig);
    loginPageRedirectName =
    filterConfig.getServletContext().getInitParameter(LOGIN_PAGE_REDIRECT_PARAM);
    facesURLPattern =
    filterConfig.getServletContext().getInitParameter(FACES_URL_PATTERN_PARAM);
    }

  • ADF 11g: Dynamic JDBC Credentials, how to postback paramters

    I am currently trying out dynamic jdbc example from Steve. An additional implementation I am trying to accomplish is to retain the username in the input field upon a failed login without having it displayed on the url (the example passes parameters back by putting it on the url followed by redirect). Typically this can be done by setting a new request attribute and using a forward instead of redirect, but the example has some interesting code which explicitly avoids a request forward (See below).
        private void forwardToLoginPage(ServletRequest request, ServletResponse response) throws ServletException,
                                                                                                 IOException {
            HttpServletResponse responseHttp = (HttpServletResponse)response;
            responseHttp.sendRedirect(loginPageRedirectName());
    ...Can anyone shed some light on why this is?
    -Wes

    I am currently trying out dynamic jdbc example from Steve. An additional implementation I am trying to accomplish is to retain the username in the input field upon a failed login without having it displayed on the url (the example passes parameters back by putting it on the url followed by redirect). Typically this can be done by setting a new request attribute and using a forward instead of redirect, but the example has some interesting code which explicitly avoids a request forward (See below).
        private void forwardToLoginPage(ServletRequest request, ServletResponse response) throws ServletException,
                                                                                                 IOException {
            HttpServletResponse responseHttp = (HttpServletResponse)response;
            responseHttp.sendRedirect(loginPageRedirectName());
    ...Can anyone shed some light on why this is?
    -Wes

  • Dynamic user credentials for XI receiver communication channel

    Hi Experts,
    I am working on File(XML ) to ABAP  proxy scenario. I want to know if I get the user-id and password information to login to R/3 system as part of the XML  payload, can I use this information to connect to R/3 system in my XI Receiver communication channel?
    Using a generic user credentials either in RFC destination or specifying it in communication channel configuration will not work. This is because the requirement is that the objects that will be created in inbound ABAP  proxy (for ex Material Master) should be created with the user information that is coming from payload rather than a generic user.
    Any pointers how to acheive this?
    Thanks and regards,
    Prasad
    Edited by: Prasad MLN on Nov 16, 2009 4:00 PM

    Hi,
        You might want to learn more about Principal Propagation in sap XI:
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417300)ID2039785750DB21057082877817322485End?blog=/pub/wlg/7068%3Fpage%3Dlast%26x-order%3Ddate
    http://help.sap.com/saphelp_nwpi71/helpdata/en/45/0f16bef65c7249e10000000a155369/content.htm
    Regards,
    Ravi Kanth Talagana

  • Dynamic JDBC Credentials: Example 14 from  Steve Muench

    Hi,
    Im trying example from Steve Muench, it's working fine.
    But I have some questions about it.
    If I want to connect to the db with a wrong username/password I see that it tries 5 times to connect to the database, Where Can I change this number of retries?
    Before the password should be used, it must be encrypted. I have two encryption methods, wich one should be used varies.
    If the first encryption gives a wrong result(no login) the second encryption should be used.
    What is a good place to encrypt the password?
    I was thinking of DynamicJDBCSessionCookieFactory because that is called more than 1 time if login fails.

    I placed my code to encrypt now in the DynamicJDBCBindingFilter.
    This how I try to connect twice
    catch (Exception e) {
                        if (isFailedLoginException(e)) {
                            System.out.println("Poging="+poging);
                            attemt+=1;
                            if (attemt<3){
                                FacesContext    fctx = FacesContext.getCurrentInstance();
                                ExternalContext ectx = fctx.getExternalContext();
                                HttpSession session2 = (HttpSession)ectx.getSession(false);
                                if (session2 != null) {
                                  session2.invalidate();
                                this.doFilter(request,response,chain);
                            }else{
                                signalFailedLoginAttempt(svrRequest);
                                redirectToLoginPageOnLogonError(request, response);
                        }As you can see I invalidate the session and then I call doFilter again.
    This is almost working, but when I'm forwarded to main.jsp with the table I see access denied istead of the table, I also get this error on the Jdev console:
    08/03/25 15:09:14 java.lang.IllegalStateException: Session was invalidated
    08/03/25 15:09:14      at com.evermind.server.http.EvermindHttpSession.setAttribute(EvermindHttpSession.java:151)
    08/03/25 15:09:14      at test.DynamicJDBCBindingFilter.doFilter(DynamicJDBCBindingFilter.java:84)
    08/03/25 15:09:14      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    08/03/25 15:09:14      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    08/03/25 15:09:14      at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    08/03/25 15:09:14      at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    08/03/25 15:09:14      at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
    08/03/25 15:09:14      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
    08/03/25 15:09:14      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
    08/03/25 15:09:14      at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    08/03/25 15:09:14      at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
    08/03/25 15:09:14      at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
    08/03/25 15:09:14      at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
    08/03/25 15:09:14      at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    08/03/25 15:09:14      at java.lang.Thread.run(Thread.java:595)
    The session is invalidated, but If I don't to that it looks like that the new login credentials are not used. Because then I go back to the login page and see the message that the login\password was not correct.
    Someone who knows what I do wrong? I realy need to know this!!
    Message was edited by:
    KdeGraaf

  • Dynamic JDBC Credentials

    Hi, I read this document http://otn.oracle.com/products/jdev/howtos/bc4j/howto_dynamic_jdbc.html and find that this decsribes solution of my needs. If I do everything exactly as it is described in this paper and as a forward page (from LoginForm.jsp) call some static page (without connection do BC4J) it works. But if I call page with uix jbo tags (<jbo:ApplicationModule id="Mypackage1Module" configname="mypackage1.Mypackage1Module.Mypackage1ModuleLocal" releasemode="Stateful" /> ), then I got error JBO-26061: Error while opening JDBC connection. Can anyone help me? Thanks Zdenek

    A couple of diagnostic tests that you can try:
    1. Enable BC4J diagnostic output (-Djbo.debugoutput=console) this will cause BC4J to log the connection parameters that it is using to connect to the server.
    2. Debug the project. Ensure that you custom SessionCookieFactory is defining the username/password property by setting a breakpoint in your custom class.
    Hope this helps,
    JR

  • Deploying Dynamic JDBC Credentials

    I download example 14 on blog Steve Muench here:
    http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html
    I run application and it work perfect. (Oracle Jdeveloper 10.1.2)
    Then I deploy this example to The Oracle Application Server 10g(J2EE and Web Cache) as J2EE application. http://www.oracle.com/technology/obe/obe_as_1012/j2ee/deploy/deploytoappserver/lesson_deployment.htm#t3I
    I connect to example by address:
    http://192.168.0.2/DynCred/login.do
    On the login page I enter Username -1 and Password - 1 for checking nonexistent Oracle user. And I see Main page with data from DEPT table. But such must not be!
    And if I try execute Logout from link on Main page I have this error
    Validation Error
    You must correct the following error(s) before proceeding:
    JBO-29000: Unexpected exception caught:
    java.lang.IllegalStateException, msg=Session was invalidated
    Session was invalidated
    What I have did wrong?
    Message was edited by:
    orspartner

    I start up the standalone OC4J server and deploy this sample.
    I access the sample by using the following URL: http://localhost:8888/DynCred/login.do
    And sample works fine!
    I tried to deploy to Oracle AS 10.1.2 (J2EE and Web Cache)
    Before deploy sample I run "ADF Rintime Installer"->Oracle Application Server
    But sample work with nonexistent oracle user - 1
    p.s.
    sorry for my bad english.
    I try say that sample not work normal from Oracle Aplication Server

Maybe you are looking for

  • Sequences crash fcp

    so we're transitioning from fcp 5.0.4. on a g5, 10.3.9 to fcp 6.0.4 on an intel, 10.4.11. i've got all my old fcp sequences transfered over along with all the necessary files. however, there are some projects that have troublesome sequences that cras

  • Please help me ( advanced graphical user interface)

    I have to finish this problem until 5 pm. Java How to program (Deitel & Deitel) - Third edition page 696 please help me 13-7 : write a program that displays a circle of random size and calculates and displays the area, radius, diameter and circumfere

  • Failure Upgrading Monitoring in GMS 2.0.1

    We just completed (incompletely) upgrading our Data Synchronizer from 1.2.5.299 to GMS 2.0.1. Everything appeared to go fine for the most part, except the monitoring. The server has been tested, and data is flowing properly, but we cannot get any sta

  • FM SO_NEW_DOCUMENT_ATT_SEND_API1 not working

    Hi Expert, I am working on ECC 6.0 I have requirement to send e-mail with PDF attachement to user.For sending e-mail I am using FM SO_NEW_DOCUMENT_ATT_SEND_API1 in my Z-program .It return Exception DOCUMENT_NOT_SENT. But same code is working in our o

  • Export/Import: Discoverer Error

    Has anybody ever come across this error: Duplicate element definition: Function Argument with identifier 'P_FOREIGN_KEY_ID'. Do you know what it means or why it is caused or how to fix it? Thanks