javax.crypto.IllegalBlockSizeException during Red Hat JBoss Portal 6 startup
Issue
During the startup of the portal server an error occurs. Where is this coming from, how to resolve it?
16:52:31,246 ERROR [org.exoplatform.services.organization.idm.PicketLinkIDMOrganizationServiceImpl] (MSC service thread 1-5) Failed start Organization Service org.exoplatform.services.organization.idm.PicketLinkIDMOrganizationServiceImpl, probably because of configuration error. Error occurs when initialize org.gatein.portal.installer.SetupOrganizationDatabaseInitializer: java.lang.RuntimeException: Failed start Organization Service org.exoplatform.services.organization.idm.PicketLinkIDMOrganizationServiceImpl, probably because of configuration error. Error occurs when initialize org.gatein.portal.installer.SetupOrganizationDatabaseInitializer
at org.exoplatform.services.organization.BaseOrganizationService.start(BaseOrganizationService.java:91) [exo.core.component.organization.api-2.5.4-GA-redhat-2.jar:2.5.4-GA-redhat-2]
at org.exoplatform.services.organization.idm.PicketLinkIDMOrganizationServiceImpl.start(PicketLinkIDMOrganizationServiceImpl.java:103) [exo.portal.component.identity-3.6.3.Final-redhat-4.jar:3.6.3.Final-redhat-4]
at sun.reflect.GeneratedMethodAccessor32.invoke(Unknown Source) [:1.7.0_05-icedtea]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_05-icedtea]
at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_05-icedtea]
at org.exoplatform.container.LifecycleVisitor.traverse(LifecycleVisitor.java:100) [exo.kernel.container-2.4.4-GA-redhat-2.jar:2.4.4-GA-redhat-2]
at org.exoplatform.container.LifecycleVisitor.start(LifecycleVisitor.java:170) [exo.kernel.container-2.4.4-GA-redhat-2.jar:2.4.4-GA-redhat-2]
at org.exoplatform.container.ConcurrentPicoContainer.start(ConcurrentPicoContainer.java:554) [exo.kernel.container-2.4.4-GA-redhat-2.jar:2.4.4-GA-redhat-2]
at org.exoplatform.container.ExoContainer.start(ExoContainer.java:275) [exo.kernel.container-2.4.4-GA-redhat-2.jar:2.4.4-GA-redhat-2]
at org.exoplatform.container.PortalContainer.start(PortalContainer.java:683) [exo.kernel.container-2.4.4-GA-redhat-2.jar:2.4.4-GA-redhat-2]
at org.exoplatform.container.ExoContainer.start(ExoContainer.java:263) [exo.kernel.container-2.4.4-GA-redhat-2.jar:2.4.4-GA-redhat-2]
at org.exoplatform.container.RootContainer.createPortalContainer(RootContainer.java:681) [exo.kernel.container-2.4.4-GA-redhat-2.jar:2.4.4-GA-redhat-2]
at org.exoplatform.container.RootContainer.createPortalContainers(RootContainer.java:346) [exo.kernel.container-2.4.4-GA-redhat-2.jar:2.4.4-GA-redhat-2]
at org.gatein.integration.jboss.as7.web.StartupService.start(StartupService.java:45)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_05-icedtea]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_05-icedtea]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_05-icedtea]
Caused by: java.lang.RuntimeException: javax.crypto.IllegalBlockSizeException: Input length must be multiple of 8 when decrypting with padded cipher
at org.gatein.portal.installer.PortalSetupService.rootPassword(PortalSetupService.java:104) [exo.portal.component.portal-3.6.3.Final-redhat-4.jar:3.6.3.Final-redhat-4]
at org.gatein.portal.installer.SetupOrganizationDatabaseInitializer.createUsers(SetupOrganizationDatabaseInitializer.java:160) [exo.portal.component.portal-3.6.3.Final-redhat-4.jar:3.6.3.Final-redhat-4]
at org.gatein.portal.installer.SetupOrganizationDatabaseInitializer.init(SetupOrganizationDatabaseInitializer.java:87) [exo.portal.component.portal-3.6.3.Final-redhat-4.jar:3.6.3.Final-redhat-4]
at org.exoplatform.services.organization.BaseOrganizationService.start(BaseOrganizationService.java:83) [exo.core.component.organization.api-2.5.4-GA-redhat-2.jar:2.5.4-GA-redhat-2]
... 18 more
Caused by: javax.crypto.IllegalBlockSizeException: Input length must be multiple of 8 when decrypting with padded cipher
at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:750) [sunjce_provider.jar:1.7.0_05-icedtea]
at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:676) [sunjce_provider.jar:1.7.0_05-icedtea]
at com.sun.crypto.provider.PBECipherCore.doFinal(PBECipherCore.java:422) [sunjce_provider.jar:1.7.0_05-icedtea]
at com.sun.crypto.provider.PBEWithMD5AndDESCipher.engineDoFinal(PBEWithMD5AndDESCipher.java:316) [sunjce_provider.jar:1.7.0_05-icedtea]
at javax.crypto.Cipher.doFinal(Cipher.java:1922) [jce.jar:1.7.0_05-icedtea]
at org.gatein.portal.installer.PBEUtils.decode(PBEUtils.java:67) [exo.portal.component.portal-3.6.3.Final-redhat-4.jar:3.6.3.Final-redhat-4]
at org.gatein.portal.installer.PBEUtils.decode64(PBEUtils.java:74) [exo.portal.component.portal-3.6.3.Final-redhat-4.jar:3.6.3.Final-redhat-4]
at org.gatein.portal.installer.PortalSetupService.decodePassword(PortalSetupService.java:121) [exo.portal.component.portal-3.6.3.Final-redhat-4.jar:3.6.3.Final-redhat-4]
at org.gatein.portal.installer.PortalSetupService.rootPassword(PortalSetupService.java:94) [exo.portal.component.portal-3.6.3.Final-redhat-4.jar:3.6.3.Final-redhat-4]
... 21 more
Environment
- Red Hat JBoss Portal
- 6.1.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
