java.lang.RuntimeException: javax.crypto.BadPaddingException: Given final block not properly padded

Oracle Community | Yaminip-Oracle | 6 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    User not found in OAAM

    Oracle Community | 6 years ago | Yaminip-Oracle
    java.lang.RuntimeException: javax.crypto.BadPaddingException: Given final block not properly padded

    Root Cause Analysis

    1. javax.crypto.BadPaddingException

      Given final block not properly padded at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..) at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..) at com.sun.crypto.provider.DESedeCipher.engineDoFinal(DashoA13*..) at javax.crypto.Cipher.doFinal(DashoA13*..)

      at com.bharosa.common.util.cipher.DESedeCipher.decrypt()
    2. com.bharosa.common
      BharosaCipher.decrypt
      1. com.bharosa.common.util.cipher.DESedeCipher.decrypt(DESedeCipher.java:128)
      2. com.bharosa.common.util.BharosaCipher.decrypt(BharosaCipher.java:482)
      2 frames
    3. com.bharosa.vcrypt
      VCryptPassword.decrypt
      1. com.bharosa.vcrypt.auth.util.VCryptPassword.decrypt(VCryptPassword.java:46)
      1 frame
    4. com.bharosa.common
      TOPLinkAttributeTransformer.convertDataValueToObjectValue
      1. com.bharosa.common.toplink.TOPLinkPasswordAttributeTransformer.buildObjectValue(TOPLinkPasswordAttributeTransformer.java:16)
      2. com.bharosa.common.toplink.TOPLinkAttributeTransformer.convertDataValueToObjectValue(TOPLinkAttributeTransformer.java:71)
      2 frames
    5. EclipseLink (non-OSGi)
      UnitOfWorkImpl.internalExecuteQuery
      1. org.eclipse.persistence.mappings.foundation.AbstractDirectMapping.getAttributeValue(AbstractDirectMapping.java:675)
      2. org.eclipse.persistence.mappings.foundation.AbstractDirectMapping.valueFromRow(AbstractDirectMapping.java:1263)
      3. org.eclipse.persistence.mappings.DatabaseMapping.readFromRowIntoObject(DatabaseMapping.java:1283)
      4. org.eclipse.persistence.internal.descriptors.ObjectBuilder.buildAttributesIntoObject(ObjectBuilder.java:342)
      5. org.eclipse.persistence.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:717)
      6. org.eclipse.persistence.internal.descriptors.ObjectBuilder.buildWorkingCopyCloneNormally(ObjectBuilder.java:616)
      7. org.eclipse.persistence.internal.descriptors.ObjectBuilder.buildObjectInUnitOfWork(ObjectBuilder.java:569)
      8. org.eclipse.persistence.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:502)
      9. org.eclipse.persistence.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:454)
      10. org.eclipse.persistence.queries.ObjectLevelReadQuery.buildObject(ObjectLevelReadQuery.java:723)
      11. org.eclipse.persistence.queries.ReadAllQuery.registerResultInUnitOfWork(ReadAllQuery.java:738)
      12. org.eclipse.persistence.queries.ReadAllQuery.executeObjectLevelReadQuery(ReadAllQuery.java:420)
      13. org.eclipse.persistence.queries.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:1076)
      14. org.eclipse.persistence.queries.DatabaseQuery.execute(DatabaseQuery.java:740)
      15. org.eclipse.persistence.queries.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:1036)
      16. org.eclipse.persistence.queries.ReadAllQuery.execute(ReadAllQuery.java:380)
      17. org.eclipse.persistence.queries.ObjectLevelReadQuery.executeInUnitOfWork(ObjectLevelReadQuery.java:1122)
      18. org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2910)
      18 frames
    6. com.bharosa.common
      OAAMPerformanceProfiler.profileExecutionOfQuery
      1. com.bharosa.common.toplink.OAAMPerformanceProfiler.profileExecutionOfQuery(OAAMPerformanceProfiler.java:96)
      1 frame
    7. EclipseLink (non-OSGi)
      EJBQueryImpl.getResultList
      1. org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1289)
      2. org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1273)
      3. org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1247)
      4. org.eclipse.persistence.internal.jpa.EJBQueryImpl.executeReadQuery(EJBQueryImpl.java:479)
      5. org.eclipse.persistence.internal.jpa.EJBQueryImpl.getResultList(EJBQueryImpl.java:714)
      5 frames
    8. com.bharosa.common
      TopLink11gDBMgr.executeDBQuery
      1. com.bharosa.common.toplink.TopLink11gBaseDAO$ExecuteDBQueryAction.internalPerformAction(TopLink11gBaseDAO.java:197)
      2. com.bharosa.common.toplink.TopLink11gBaseDAO$DBAction.performAction(TopLink11gBaseDAO.java:100)
      3. com.bharosa.common.toplink.TopLink11gDBMgr.executeDBQuery(TopLink11gDBMgr.java:238)
      3 frames
    9. com.bharosa.vcrypt
      VCryptAuthMonitorImpl$27.perform
      1. com.bharosa.vcrypt.dataaccess.impl.VCryptUserDataAccessImpl.getVCryptUserByExtUserId(VCryptUserDataAccessImpl.java:568)
      2. com.bharosa.vcrypt.auth.impl.VCryptAuthImpl.getUser(VCryptAuthImpl.java:187)
      3. com.bharosa.vcrypt.auth.impl.VCryptAuthMonitorImpl$27.perform(VCryptAuthMonitorImpl.java:260)
      3 frames
    10. com.bharosa.common
      MonitorInterceptor.performActionNoFingerprint
      1. com.bharosa.common.monitoring.MonitorInterceptor.performAction(MonitorInterceptor.java:331)
      2. com.bharosa.common.monitoring.MonitorInterceptor.performActionNoFingerprint(MonitorInterceptor.java:371)
      2 frames
    11. com.bharosa.vcrypt
      VCryptXMLFilterImpl.execute
      1. com.bharosa.vcrypt.auth.impl.VCryptAuthMonitorImpl.getUser(VCryptAuthMonitorImpl.java:263)
      2. com.bharosa.vcrypt.auth.impl.VCryptAuthFilterImpl.getUser(VCryptAuthFilterImpl.java:100)
      3. com.bharosa.vcrypt.auth.impl.VCryptAuthXMLImpl.getUser(VCryptAuthXMLImpl.java:302)
      4. com.bharosa.vcrypt.auth.impl.VCryptAuthXMLImpl.execute(VCryptAuthXMLImpl.java:83)
      5. com.bharosa.vcrypt.common.impl.VCryptXMLFilterImpl.execute(VCryptXMLFilterImpl.java:35)
      5 frames
    12. oracle.oaam.webservices
      VCryptWebServiceImpl.execute
      1. oracle.oaam.webservices.impl.VCryptWebServiceImpl.execute(VCryptWebServiceImpl.java:22)
      1 frame
    13. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    14. oracle.j2ee.ws
      WebServiceServlet.doPost
      1. oracle.j2ee.ws.server.jaxws.ServiceEndpointRuntime.processMessage(ServiceEndpointRuntime.java:369)
      2. oracle.j2ee.ws.server.jaxws.ServiceEndpointRuntime.processMessage(ServiceEndpointRuntime.java:201)
      3. oracle.j2ee.ws.server.jaxws.JAXWSRuntimeDelegate.processMessage(JAXWSRuntimeDelegate.java:479)
      4. oracle.j2ee.ws.server.provider.ProviderProcessor.doEndpointProcessing(ProviderProcessor.java:1187)
      5. oracle.j2ee.ws.server.WebServiceProcessor.invokeEndpointImplementation(WebServiceProcessor.java:1081)
      6. oracle.j2ee.ws.server.provider.ProviderProcessor.doRequestProcessing(ProviderProcessor.java:581)
      7. oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServiceProcessor.java:232)
      8. oracle.j2ee.ws.server.WebServiceProcessor.doService(WebServiceProcessor.java:192)
      9. oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:484)
      9 frames
    15. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      2 frames
    16. Atmosphere weblogic
      FilterChainImpl.doFilter
      1. weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
      2. weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
      3. weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
      4. weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
      5. weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      5 frames
    17. oracle.security.jps
      JpsAbsFilter$1.run
      1. oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
      1 frame
    18. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      1 frame
    19. oracle.security.jps
      JpsFilter.doFilter
      1. oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
      2. oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
      3. oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
      4. oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
      5. oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
      5 frames
    20. Atmosphere weblogic
      FilterChainImpl.doFilter
      1. weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      1 frame
    21. oracle.dms.servlet
      DMSServletFilter.doFilter
      1. oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
      1 frame
    22. Atmosphere weblogic
      WebAppServletContext$ServletInvocationAction.run
      1. weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      2. weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
      3. weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
      3 frames
    23. weblogic.security.acl
      AuthenticatedSubject.doAs
      1. weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      1 frame
    24. weblogic.security.service
      SecurityManager.runAs
      1. weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      1 frame
    25. Atmosphere weblogic
      ServletRequestImpl.run
      1. weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
      2. weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
      3. weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
      3 frames
    26. weblogic.work
      ExecuteThread.run
      1. weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
      2. weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
      2 frames