java.lang.RuntimeException: Failed to obtain a portal user Id for the specified person: org.jasig.portal.security.provider.PersonImpl@2d94a1ad[id=11,fullName=XXX,attributes={givenName=[XXX] , cn=[XXXX], ou=[School of Materials, Faculty of Engineering & Physical Sciences]]},securityContext=org.jasig.portal.security.provider.UnionSecurityContext principal:org.jasig.portal.security.provider.ChainingSecurityContext$ChainingPrincipal@122a438e additionalDescriptor:null isAuth:true[org.jasig.portal.security.provider.ChainingSecurityContext$Entry@14b928f3, org .jasig.portal.security.provider.ChainingSecurityContext$Entry@82f7426],isGuest=false]


Samebug tips1

MySQL doesn't support some types of characters (such as emojis) with the utf8 encoding. You need to be on MySQL 5.5+ and force utf8mb4 (everywhere, client and server). You can do this sending the query "SET NAMES utf8mb4". Check this https://goo.gl/3E2qzg


7 months ago
Expert tip

Solutions on the web2

Solution icon of jasig
via Apereo Issues by Drew Wills, 1 year ago
Failed to obtain a portal user Id for the specified person: org.jasig.portal.security.provider.PersonImpl@2d94a1ad[id=11,fullName=XXX,attributes={givenName=[XXX] , cn=[XXXX], ou=[School of Materials, Faculty of Engineering & Physical Sciences

Solution icon of jasig
via Apereo Issues by Drew Wills, 1 year ago
Failed to obtain a portal user Id for the specified person: org.jasig.portal.security.provider.PersonImpl@2d94a1ad[id=11,fullName=XXX,attributes={givenName=[XXX] , cn=[XXXX], ou=[School of Materials, Faculty of Engineering & Physical Sciences

Stack trace

java.lang.RuntimeException: Failed to obtain a portal user Id for the specified person:  org.jasig.portal.security.provider.PersonImpl@2d94a1ad[id=11,fullName=XXX,attributes={givenName=[XXX]
, cn=[XXXX], ou=[School of Materials, Faculty of Engineering & Physical Sciences]]},securityContext=org.jasig.portal.security.provider.UnionSecurityContext principal:org.jasig.portal.security.provider.ChainingSecurityContext$ChainingPrincipal@122a438e additionalDescriptor:null isAuth:true[org.jasig.portal.security.provider.ChainingSecurityContext$Entry@14b928f3, org
.jasig.portal.security.provider.ChainingSecurityContext$Entry@82f7426],isGuest=false]
	at org.jasig.portal.RDBMUserIdentityStore.__getPortalUID(RDBMUserIdentityStore.java:354)[RDBMUserIdentityStore.class:na]
	at org.jasig.portal.RDBMUserIdentityStore.getPortalUID(RDBMUserIdentityStore.java:266)[RDBMUserIdentityStore.class:na]
	at sun.reflect.GeneratedMethodAccessor324.invoke(Unknown Source)[na:na]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.7.0_95]
	at java.lang.reflect.Method.invoke(Method.java:606)[na:1.7.0_95]
	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)[spring-aop-3.2.9.RELEASE.jar:3.2.9.RELEASE]
	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)[spring-aop-3.2.9.RELEASE.jar:3.2.9.RELEASE]
	at com.sun.proxy.$Proxy682.getPortalUID(Unknown Source)[na:na]
	at org.jasig.portal.services.Authentication.authenticate(Authentication.java:244)[Authentication.class:na]
	at org.jasig.portal.spring.security.preauth.PortalPreAuthenticatedProcessingFilter.doPortalAuthentication(PortalPreAuthenticatedProcessingFilter.java:354)[PortalPreAuthenticatedProcessingFilter.class:na]
	at org.jasig.portal.spring.security.preauth.PortalPreAuthenticatedProcessingFilter.doFilter(PortalPreAuthenticatedProcessingFilter.java:177)[PortalPreAuthenticatedProcessingFilter.class:na]
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)[spring-security-web-3.1.3.RELEASE.jar:3.1.3.RELEASE]
	at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)[spring-security-web-3.1.3.RELEASE.jar:3.1.3.RELEASE]
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)[spring-security-web-3.1.3.RELEASE.jar:3.1.3.RELEASE]
	at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)[spring-security-web-3.1.3.RELEASE.jar:3.1.3.RELEASE]
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)[spring-security-web-3.1.3.RELEASE.jar:3.1.3.RELEASE]
	at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)[spring-security-web-3.1.3.RELEASE.jar:3.1.3.RELEASE]
	at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)[spring-security-web-3.1.3.RELEASE.jar:3.1.3.RELEASE]
	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343)[spring-web-3.2.9.RELEASE.jar:3.2.9.RELEASE]
	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260)[spring-web-3.2.9.RELEASE.jar:3.2.9.RELEASE]
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)[tomcat-catalina-7.0.28.jar:7.0.28]
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)[tomcat-catalina-7.0.28.jar:7.0.28]
	at org.jasig.cas.client.util.AssertionThreadLocalFilter.doFilter(AssertionThreadLocalFilter.java:54)[cas-client-core-3.2.2.jar:3.2.2]
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)[tomcat-catalina-7.0.28.jar:7.0.28]
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)[tomcat-catalina-7.0.28.jar:7.0.28]
	at org.jasig.cas.client.validation.AbstractTicketValidationFilter.doFilter(AbstractTicketValidationFilter.java:201)[cas-client-core-3.2.2.jar:3.2.2]
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)[tomcat-catalina-7.0.28.jar:7.0.28]
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)[tomcat-catalina-7.0.28.jar:7.0.28]
	at org.jasig.portal.security.firewall.RequestParameterPolicyEnforcementFilter.doFilter(RequestParameterPolicyEnforcementFilter.java:215)[RequestParameterPolicyEnforcementFilter.class:na]
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)[tomcat-catalina-7.0.28.jar:7.0.28]
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)[tomcat-catalina-7.0.28.jar:7.0.28]
	at org.jasig.services.persondir.support.web.RequestAttributeSourceFilter.doFilter(RequestAttributeSourceFilter.java:328)[person-directory-impl-1.7.1-M1.jar:1.7.1-M1]
	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343)[spring-web-3.2.9.RELEASE.jar:3.2.9.RELEASE]
	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260)[spring-web-3.2.9.RELEASE.jar:3.2.9.RELEASE]
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)[tomcat-catalina-7.0.28.jar:7.0.28]
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)[tomcat-catalina-7.0.28.jar:7.0.28]
	at org.jasig.portal.security.ThreadNamingRequestFilter.doFilterInternal(ThreadNamingRequestFilter.java:76)[ThreadNamingRequestFilter.class:na]
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:106)[spring-web-3.2.9.RELEASE.jar:3.2.9.RELEASE]
	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343)[spring-web-3.2.9.RELEASE.jar:3.2.9.RELEASE]
	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260)[spring-web-3.2.9.RELEASE.jar:3.2.9.RELEASE]
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)[tomcat-catalina-7.0.28.jar:7.0.28]
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)[tomcat-catalina-7.0.28.jar:7.0.28]
	at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:180)[spring-orm-3.2.9.RELEASE.jar:3.2.9.RELEASE]
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:106)[spring-web-3.2.9.RELEASE.jar:3.2.9.RELEASE]
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)[tomcat-catalina-7.0.28.jar:7.0.28]
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)[tomcat-catalina-7.0.28.jar:7.0.28]
	at org.jasig.portal.web.ExceptionLoggingFilter.doFilter(ExceptionLoggingFilter.java:56)[ExceptionLoggingFilter.class:na]
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)[tomcat-catalina-7.0.28.jar:7.0.28]
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)[tomcat-catalina-7.0.28.jar:7.0.28]
	at com.thetransactioncompany.cors.CORSFilter.doFilter(CORSFilter.java:208)[cors-filter-2.4.jar:2.4]
	at com.thetransactioncompany.cors.CORSFilter.doFilter(CORSFilter.java:274)[cors-filter-2.4.jar:2.4]
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)[tomcat-catalina-7.0.28.jar:7.0.28]
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)[tomcat-catalina-7.0.28.jar:7.0.28]
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)[tomcat-catalina-7.0.28.jar:7.0.28]
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)[tomcat-catalina-7.0.28.jar:7.0.28]
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)[tomcat-catalina-7.0.28.jar:7.0.28]
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)[tomcat-catalina-7.0.28.jar:7.0.28]
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)[tomcat-catalina-7.0.28.jar:7.0.28]
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)[tomcat-catalina-7.0.28.jar:7.0.28]
	at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:200)[tomcat-coyote-7.0.28.jar:7.0.28]
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)[tomcat-coyote-7.0.28.jar:7.0.28]
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)[tomcat-coyote-7.0.28.jar:7.0.28]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[na:1.7.0_95]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[na:1.7.0_95]
	at java.lang.Thread.run(Thread.java:745)[na:1.7.0_95]
Caused by: org.springframework.dao.CannotAcquireLockException: PreparedStatementCallback; SQL [UPDATE UP_SEQUENCE SET SEQUENCE_VALUE=? WHERE SEQUENCE_NAME=? AND SEQUENCE_VALUE=?]; Lock wait timeout exceeded; try restarting transaction; nested exception is java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction
	at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.doTranslate(SQLErrorCodeSQLExceptionTranslator.java:265)[spring-jdbc-3.2.9.RELEASE.jar:3.2.9.RELEASE]
	at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:72)[spring-jdbc-3.2.9.RELEASE.jar:3.2.9.RELEASE]
	at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:605)[spring-jdbc-3.2.9.RELEASE.jar:3.2.9.RELEASE]
	at org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:818)[spring-jdbc-3.2.9.RELEASE.jar:3.2.9.RELEASE]
	at org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:874)[spring-jdbc-3.2.9.RELEASE.jar:3.2.9.RELEASE]
	at org.jasig.portal.utils.HibernateStyleCounterStore$2$1.doInTransaction(HibernateStyleCounterStore.java:214)[HibernateStyleCounterStore$2$1.class:na]
	at org.jasig.portal.utils.HibernateStyleCounterStore$2$1.doInTransaction(HibernateStyleCounterStore.java:173)[HibernateStyleCounterStore$2$1.class:na]
	at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:131)[spring-tx-3.2.9.RELEASE.jar:3.2.9.RELEASE]
	at org.jasig.portal.utils.HibernateStyleCounterStore$2.getNextValue(HibernateStyleCounterStore.java:173)[HibernateStyleCounterStore$2.class:na]
	at org.hibernate.id.enhanced.OptimizerFactory$PooledOptimizer.generate(OptimizerFactory.java:459)[hibernate-core-4.2.19.Final.jar:4.2.19.Final]
	at org.jasig.portal.utils.HibernateStyleCounterStore.getNextIdInternal(HibernateStyleCounterStore.java:170)[HibernateStyleCounterStore.class:na]
	at org.jasig.portal.utils.HibernateStyleCounterStore.getNextId(HibernateStyleCounterStore.java:163)[HibernateStyleCounterStore.class:na]
	at org.jasig.portal.utils.HibernateStyleCounterStore.getNextId(HibernateStyleCounterStore.java:163)[HibernateStyleCounterStore.class:na]
	at sun.reflect.GeneratedMethodAccessor329.invoke(Unknown Source)[na:na]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.7.0_95]
	at java.lang.reflect.Method.invoke(Method.java:606)[na:1.7.0_95]
	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)[spring-aop-3.2.9.RELEASE.jar:3.2.9.RELEASE]
	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)[spring-aop-3.2.9.RELEASE.jar:3.2.9.RELEASE]
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)[spring-aop-3.2.9.RELEASE.jar:3.2.9.RELEASE]
	at org.springframework.aop.aspectj.AspectJAfterThrowingAdvice.invoke(AspectJAfterThrowingAdvice.java:55)[spring-aop-3.2.9.RELEASE.jar:3.2.9.RELEASE]
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)[spring-aop-3.2.9.RELEASE.jar:3.2.9.RELEASE]
	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)[spring-aop-3.2.9.RELEASE.jar:3.2.9.RELEASE]
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)[spring-aop-3.2.9.RELEASE.jar:3.2.9.RELEASE]
	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)[spring-aop-3.2.9.RELEASE.jar:3.2.9.RELEASE]
	at com.sun.proxy.$Proxy689.getNextId(Unknown Source)[na:na]
	at org.jasig.portal.RDBMUserIdentityStore.getNextKey(RDBMUserIdentityStore.java:830)[RDBMUserIdentityStore.class:na]
	at org.jasig.portal.RDBMUserIdentityStore.access$600(RDBMUserIdentityStore.java:77)[RDBMUserIdentityStore.class:na]
	at org.jasig.portal.RDBMUserIdentityStore$8$1.doInConnection(RDBMUserIdentityStore.java:777)[RDBMUserIdentityStore$8$1.class:na]
	at org.jasig.portal.RDBMUserIdentityStore$8$1.doInConnection(RDBMUserIdentityStore.java:728)[RDBMUserIdentityStore$8$1.class:na]
	at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:342)[spring-jdbc-3.2.9.RELEASE.jar:3.2.9.RELEASE]
	at org.jasig.portal.RDBMUserIdentityStore$8.doInTransaction(RDBMUserIdentityStore.java:728)[RDBMUserIdentityStore$8.class:na]
	at org.jasig.portal.RDBMUserIdentityStore$8.doInTransaction(RDBMUserIdentityStore.java:725)[RDBMUserIdentityStore$8.class:na]
	at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:131)[spring-tx-3.2.9.RELEASE.jar:3.2.9.RELEASE]
	at org.jasig.portal.RDBMUserIdentityStore.addNewUser(RDBMUserIdentityStore.java:725)[RDBMUserIdentityStore.class:na]
	at org.jasig.portal.RDBMUserIdentityStore.__getPortalUID(RDBMUserIdentityStore.java:343)[RDBMUserIdentityStore.class:na]
	... 64 more
Caused by: java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction
	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1094)[mysql-connector-java-5.1.32.jar:na]
	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4208)[mysql-connector-java-5.1.32.jar:na]
	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4140)[mysql-connector-java-5.1.32.jar:na]
	at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2597)[mysql-connector-java-5.1.32.jar:na]
	at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2758)[mysql-connector-java-5.1.32.jar:na]
	at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2826)[mysql-connector-java-5.1.32.jar:na]
	at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2082)[mysql-connector-java-5.1.32.jar:na]
	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2334)[mysql-connector-java-5.1.32.jar:na]
	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2262)[mysql-connector-java-5.1.32.jar:na]
	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2246)[mysql-connector-java-5.1.32.jar:na]
	at sun.reflect.GeneratedMethodAccessor238.invoke(Unknown Source)[na:na]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.7.0_95]
	at java.lang.reflect.Method.invoke(Method.java:606)[na:1.7.0_95]
	at org.apache.tomcat.jdbc.pool.interceptor.AbstractQueryReport$StatementProxy.invoke(AbstractQueryReport.java:235)[tomcat-jdbc-7.0.37.jar:na]
	at com.sun.proxy.$Proxy588.executeUpdate(Unknown Source)[na:na]
	at org.springframework.jdbc.core.JdbcTemplate$2.doInPreparedStatement(JdbcTemplate.java:824)[spring-jdbc-3.2.9.RELEASE.jar:3.2.9.RELEASE]
	at org.springframework.jdbc.core.JdbcTemplate$2.doInPreparedStatement(JdbcTemplate.java:818)[spring-jdbc-3.2.9.RELEASE.jar:3.2.9.RELEASE]
	at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:589)[spring-jdbc-3.2.9.RELEASE.jar:3.2.9.RELEASE]
	... 95 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago
4 times, 1 year ago
Once, 4 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
164 more bugmates