My Oracle Support Banner

Problems After Upgrade to 6.3.1.643 or 6.3.1.705.2 - "javax.crypto.BadPaddingException" During AppServer Startup and "java.lang.Exception: Cannot establish connection to database." During Logon With GUI (Doc ID 2979698.1)

Last updated on OCTOBER 16, 2023

Applies to:

Oracle Communications MetaSolv Solution - Version 6.3.1 and later
Information in this document applies to any platform.

Symptoms

After upgrading from 6.3.1.587 to 6.3.1.705.2, the application server throws a decryption exception (javax.crypto.BadPaddingException) for "Given final block not properly padded" during startup as well as several other database connection type errors. Users are also unable to logon with the GUI (message below). The problem also occurs upgrading from 6.3.1.587 to 6.3.1.643. The problem goes away after reinstalling/deploying 6.3.1.587 on the same server.

- "Could not connect to database While trying to look up comp/env/jdbc/mslvNoneTxDataSource"

- "Could not connect to database - Problem using Session information in gateway.ini to access database."

- "Could not connect to database java.sql.SQLException: ORA-01017: invalid username/password; logon denied"

- "Error in startSystemManager: java.lang.Exception: SystemManager returned error code -1"

 

Error at logon using GUI (tbs.exe)

A data-related error occurred. Please use the detail button for more information.

java.lang.Exception: Cannot establish connection to database. Please contact your System
Administrator.

 

Related errors in server_name.mss.log

Caught Exception while decryption: javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.
*************************************
ASRStartup.init() failed.
PLEASE CONSULT appserver.log file in the D:\mss\\mslv01\appserver\logs directory for detailed message!
*************************************

 

Related errors in appserver.log

10-03-2023 17:19:24,804|ERROR|[appServerName :: DEF_APPSERVER][userName :: Event Server-srsi][machineName :: {HOSTNAME}][productName :: nur][debugCode :: 0][moduleName :: cmm.EventServer][messageID :: 10071][className :: DEF_CLASS]::Could not connect to database While trying to look up comp/env/jdbc/mslvNoneTxDataSource in /app/webapp/main/769191291..::
10-03-2023 17:19:24,836|ERROR|[appServerName :: DEF_APPSERVER][userName :: Event Server-serv][machineName :: {HOSTNAME}][productName :: nur][debugCode :: 0][moduleName :: cmm.EventServer][messageID :: 10071][className :: DEF_CLASS]::Could not connect to database While trying to look up comp/env/jdbc/mslvNoneTxDataSource in /app/webapp/main/769191291..::
10-03-2023 17:19:24,883|ERROR|[appServerName :: DEF_APPSERVER][userName :: Event Server-ge][machineName :: {HOSTNAME}][productName :: nur][debugCode :: 0][moduleName :: cmm.EventServer][messageID :: 10071][className :: DEF_CLASS]::Could not connect to database While trying to look up comp/env/jdbc/mslvNoneTxDataSource in /app/webapp/main/769191291..::
10-03-2023 17:19:24,929|ERROR|[appServerName :: DEF_APPSERVER][userName :: Event Server-genet][machineName :: {HOSTNAME}][productName :: nur][debugCode :: 0][moduleName :: cmm.EventServer][messageID :: 10071][className :: DEF_CLASS]::Could not connect to database While trying to look up comp/env/jdbc/mslvNoneTxDataSource in /app/webapp/main/769191291..::

10-03-2023 17:49:31,507|ALERT|[appServerName :: DEF_APPSERVER][userName :: {OS_USER}][machineName :: {HOSTNAME}][productName :: nur][debugCode :: 0][moduleName :: cmm.Framework][messageID :: 10071][className :: DEF_CLASS]::Could not connect to database - Problem using Session information in gateway.ini to access database.::Could not connect to database .::Could not connect to database .::
10-03-2023 17:49:31,523|ERROR|[appServerName :: DEF_APPSERVER][userName :: SystemManager][machineName :: {HOSTNAME}][productName :: nur][debugCode :: 0][moduleName :: cmm.System][messageID :: 10119][className :: DEF_CLASS]::The server encountered the following Exception: Could not connect to database java.sql.SQLException: ORA-01017: invalid username/password; logon denied

      at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:509)
      at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:456)
      at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:451)
      at oracle.jdbc.driver.T4CTTIfun.processError(T4CTTIfun.java:1040)
      at oracle.jdbc.driver.T4CTTIoauthenticate.processError(T4CTTIoauthenticate.java:553)
      at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:550)
      at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:268)
      at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:502)
      at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:1309)
      at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:1026)
      at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:743)
      at oracle.jdbc.driver.PhysicalConnection.connect(PhysicalConnection.java:793)
      at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:57)
      at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:747)
      at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:562)
      at java.sql.DriverManager.getConnection(Unknown Source)
      at java.sql.DriverManager.getConnection(Unknown Source)
      at com.metasolv.jdbc.MSVConnectionFactory.getConnection(MSVConnectionFactory.java:239)
      at com.metasolv.jdbc.MSVConnectionFactory.getConnection(MSVConnectionFactory.java:219)
      at com.metasolv.system.SystemManager.beginSession(SystemManager.java:346)
      at com.metasolv.system.SystemManager.beginHeadless(SystemManager.java:531)
      at com.metasolv.system.SystemManager.startup(SystemManager.java:258)
      at com.metasolv.system.SystemManager.startup(SystemManager.java:275)
      at com.metasolv.system.TBSCORBAAPIServer.startSystemManager(TBSCORBAAPIServer.java:273)
      at com.metasolv.system.TBSCORBAAPIServer.init(TBSCORBAAPIServer.java:112)
      at com.metasolv.system.GenericStartup.init(GenericStartup.java:73)
      at com.mslv.webapp.context.listener.MSLVContextListener.contextInitialized(MSLVContextListener.java:57)
      at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:719)
      {REMOVED IRRELEVANT STACK TRACE INFORMATION}
      at com.mslv.core.global.MSLVException.createMSLVException(MSLVException.java:169)
      at com.mslv.core.global.MSLVException.throwException(MSLVException.java:91)
      {REMOVED IRRELEVANT STACK TRACE INFORMATION}

 

10-03-2023 17:49:31,523|ERROR|[appServerName :: DEF_APPSERVER][userName :: {OS_USER}][machineName :: {HOSTNAME}][productName :: nur][debugCode :: 0][moduleName :: cmm.System][messageID :: 10122][className :: DEF_CLASS]::The server encountered the following Error: Error in startSystemManager: java.lang.Exception: SystemManager returned error code -1::The server encountered the following Error:::The server encountered the following Error:::
java.lang.Exception: SystemManager returned error code -1
      at com.metasolv.system.TBSCORBAAPIServer.startSystemManager(TBSCORBAAPIServer.java:275) [appserver.jar:?]
      at com.metasolv.system.TBSCORBAAPIServer.init(TBSCORBAAPIServer.java:112) [appserver.jar:?]
      at com.metasolv.system.GenericStartup.init(GenericStartup.java:73) [appserver.jar:?]
      at com.mslv.webapp.context.listener.MSLVContextListener.contextInitialized(MSLVContextListener.java:57) [_wl_cls_gen.jar:?]
      {REMOVED IRRELEVANT STACK TRACE INFORMATION}

 

10-03-2023 17:49:31,538|ERROR|[appServerName :: DEF_APPSERVER][userName :: {OS_USER}][machineName :: {HOSTNAME}][productName :: nur][debugCode :: 0][moduleName :: cmm.System][messageID :: 10122][className :: DEF_CLASS]::The server encountered the following Error: Error in TBSAPICORBAServer.init(): java.lang.Exception: SystemManager returned error code -1::The server encountered the following Error:::The server encountered the following Error:::
java.lang.Exception: SystemManager returned error code -1
      at com.metasolv.system.TBSCORBAAPIServer.startSystemManager(TBSCORBAAPIServer.java:275) ~[appserver.jar:?]
      at com.metasolv.system.TBSCORBAAPIServer.init(TBSCORBAAPIServer.java:112) [appserver.jar:?]
      at com.metasolv.system.GenericStartup.init(GenericStartup.java:73) [appserver.jar:?]
      at com.mslv.webapp.context.listener.MSLVContextListener.contextInitialized(MSLVContextListener.java:57) [_wl_cls_gen.jar:?]
      {REMOVED IRRELEVANT STACK TRACE INFORMATION}

 

10-03-2023 17:49:35,281|ALERT|[appServerName :: DEF_APPSERVER][userName :: {OS_USER}][machineName :: {HOSTNAME}][productName :: DEF_PRODUCT][debugCode :: 0][moduleName :: cmm.Framework][messageID :: 10071][className :: DEF_CLASS]::Could not connect to database - Problem using Session information in gateway.ini to access database.::Could not connect to database .::Could not connect to database .::
10-03-2023 17:49:35,296|ERROR|[appServerName :: DEF_APPSERVER][userName :: SystemManager][machineName :: {HOSTNAME}][productName :: DEF_PRODUCT][debugCode :: 0][moduleName :: cmm.System][messageID :: 10119][className :: DEF_CLASS]::The server encountered the following Exception: Could not connect to database java.sql.SQLException: ORA-01017: invalid username/password; logon denied

 

      at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:509)
      at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:456)
      at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:451)
      at oracle.jdbc.driver.T4CTTIfun.processError(T4CTTIfun.java:1040)
      at oracle.jdbc.driver.T4CTTIoauthenticate.processError(T4CTTIoauthenticate.java:553)
      at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:550)
      at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:268)
      at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:502)
      at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:1309)
      at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:1026)
      at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:743)
      at oracle.jdbc.driver.PhysicalConnection.connect(PhysicalConnection.java:793)
      at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:57)
      at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:747)
      at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:562)
      at java.sql.DriverManager.getConnection(Unknown Source)
      at java.sql.DriverManager.getConnection(Unknown Source)
      at com.metasolv.jdbc.MSVConnectionFactory.getConnection(MSVConnectionFactory.java:239)
      at com.metasolv.jdbc.MSVConnectionFactory.getConnection(MSVConnectionFactory.java:219)
      at com.metasolv.system.SystemManager.beginSession(SystemManager.java:346)
      at com.metasolv.system.SystemManager.beginHeadless(SystemManager.java:531)
      at com.metasolv.system.SystemManager.startup(SystemManager.java:258)
      at com.metasolv.system.SystemManager.startup(SystemManager.java:275)
      at com.metasolv.system.TBSCORBAAPIServer.startSystemManager(TBSCORBAAPIServer.java:273)
      at com.mslv.webapp.asr.context.listener.ASRCORBAAPIServer.init(Unknown Source)
      at com.mslv.webapp.asr.context.listener.ASRStartup.init(Unknown Source)
      at com.mslv.webapp.asr.context.listener.MSLVASRContextListener.contextInitialized(Unknown Source)
      {REMOVED IRRELEVANT STACK TRACE INFORMATION}
      at com.mslv.core.global.MSLVException.createMSLVException(MSLVException.java:169)
      at com.mslv.core.global.MSLVException.throwException(MSLVException.java:91)
      at com.metasolv.system.SystemManager.beginSession(SystemManager.java:468)
      at com.metasolv.system.SystemManager.beginHeadless(SystemManager.java:531)
      {REMOVED IRRELEVANT STACK TRACE INFORMATION}

 

10-03-2023 17:49:35,296|ERROR|[appServerName :: DEF_APPSERVER][userName :: {OS_USER}][machineName :: {HOSTNAME}][productName :: DEF_PRODUCT][debugCode :: 0][moduleName :: cmm.System][messageID :: 10122][className :: DEF_CLASS]::The server encountered the following Error: Error in startSystemManager: java.lang.Exception: SystemManager returned error code -1::The server encountered the following Error:::The server encountered the following Error:::
java.lang.Exception: SystemManager returned error code -1
      at com.metasolv.system.TBSCORBAAPIServer.startSystemManager(TBSCORBAAPIServer.java:275) ~[appserver.jar:?]
      at com.mslv.webapp.asr.context.listener.ASRCORBAAPIServer.init(Unknown Source) ~[_wl_cls_gen.jar:?]
      at com.mslv.webapp.asr.context.listener.ASRStartup.init(Unknown Source) ~[_wl_cls_gen.jar:?]
      at com.mslv.webapp.asr.context.listener.MSLVASRContextListener.contextInitialized(Unknown Source) ~[_wl_cls_gen.jar:?]
      {REMOVED IRRELEVANT STACK TRACE INFORMATION}

 

10-03-2023 17:51:02,268|ERROR|[appServerName :: DEF_APPSERVER][userName :: {OS_USER}][machineName :: {HOSTNAME}][productName :: nur][debugCode :: 0][moduleName :: cmm.System][messageID :: 10122][className :: DEF_CLASS]::The server encountered the following Error: java.lang.NullPointerException::The server encountered the following Error:::The server encountered the following Error:::
java.lang.NullPointerException: null
      at java.lang.StringBuffer.<init>(Unknown Source) ~[?:1.8.0_381]
      at com.mslv.webapp.context.action.RuntimeInfoAction.getServerInformation(RuntimeInfoAction.java:165) [_wl_cls_gen.jar:?]
      at com.mslv.webapp.context.action.RuntimeInfoAction.execute(RuntimeInfoAction.java:136) [_wl_cls_gen.jar:?]
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_381]
      {REMOVED IRRELEVANT STACK TRACE INFORMATION}
      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) [struts2-core-2.5.30.jar:2.5.30]
      at com.mslv.webapp.context.action.MSLVInterceptor.intercept(MSLVInterceptor.java:117) [_wl_cls_gen.jar:?]
      {REMOVED IRRELEVANT STACK TRACE INFORMATION}

 



Changes

Upgraded to or installed MetaSolv Solution versions 6.3.1.643 or 6.3.1.705.2 (patches listed below).

* Patch 34782307: MSS_6_3_1_B643 (6.3.1.10.0)

* Patch 35652822: MSS_6_3_1_B705_b2(6.3.1.11.1)

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.