Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,
    Expert tip

    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

  2. ,

    Make sure you are using InnoDB storage engine and READ-COMMITTED transaction isolation level and increase the database server innodb_lock_wait_timeout variable to about 500.

Solutions on the web

via Apereo Issues by Drew Wills, 2 years 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
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
java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1094)	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4208)	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4140)	at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2597)	at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2758)	at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2826)	at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2082)	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2334)	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2262)	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2246)	at sun.reflect.GeneratedMethodAccessor238.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:606)	at org.apache.tomcat.jdbc.pool.interceptor.AbstractQueryReport$StatementProxy.invoke(AbstractQueryReport.java:235)	at com.sun.proxy.$Proxy588.executeUpdate(Unknown Source)	at org.springframework.jdbc.core.JdbcTemplate$2.doInPreparedStatement(JdbcTemplate.java:824)	at org.springframework.jdbc.core.JdbcTemplate$2.doInPreparedStatement(JdbcTemplate.java:818)	at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:589)	at org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:874)	at org.jasig.portal.utils.HibernateStyleCounterStore$2$1.doInTransaction(HibernateStyleCounterStore.java:214)	at org.jasig.portal.utils.HibernateStyleCounterStore$2$1.doInTransaction(HibernateStyleCounterStore.java:173)	at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:131)	at org.jasig.portal.utils.HibernateStyleCounterStore$2.getNextValue(HibernateStyleCounterStore.java:173)	at org.hibernate.id.enhanced.OptimizerFactory$PooledOptimizer.generate(OptimizerFactory.java:459)	at org.jasig.portal.utils.HibernateStyleCounterStore.getNextIdInternal(HibernateStyleCounterStore.java:170)	at org.jasig.portal.utils.HibernateStyleCounterStore.getNextId(HibernateStyleCounterStore.java:163)	at org.jasig.portal.utils.HibernateStyleCounterStore.getNextId(HibernateStyleCounterStore.java:163)	at sun.reflect.GeneratedMethodAccessor329.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:606)	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)	at org.springframework.aop.aspectj.AspectJAfterThrowingAdvice.invoke(AspectJAfterThrowingAdvice.java:55)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)	at com.sun.proxy.$Proxy689.getNextId(Unknown Source)	at org.jasig.portal.RDBMUserIdentityStore.getNextKey(RDBMUserIdentityStore.java:830)	at org.jasig.portal.RDBMUserIdentityStore.access$600(RDBMUserIdentityStore.java:77)	at org.jasig.portal.RDBMUserIdentityStore$8$1.doInConnection(RDBMUserIdentityStore.java:777)	at org.jasig.portal.RDBMUserIdentityStore$8$1.doInConnection(RDBMUserIdentityStore.java:728)	at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:342)	at org.jasig.portal.RDBMUserIdentityStore$8.doInTransaction(RDBMUserIdentityStore.java:728)	at org.jasig.portal.RDBMUserIdentityStore$8.doInTransaction(RDBMUserIdentityStore.java:725)	at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:131)	at org.jasig.portal.RDBMUserIdentityStore.addNewUser(RDBMUserIdentityStore.java:725)	at org.jasig.portal.RDBMUserIdentityStore.__getPortalUID(RDBMUserIdentityStore.java:343)	at org.jasig.portal.RDBMUserIdentityStore.getPortalUID(RDBMUserIdentityStore.java:266)	at sun.reflect.GeneratedMethodAccessor324.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:606)	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)	at com.sun.proxy.$Proxy682.getPortalUID(Unknown Source)	at org.jasig.portal.services.Authentication.authenticate(Authentication.java:244)	at org.jasig.portal.spring.security.preauth.PortalPreAuthenticatedProcessingFilter.doPortalAuthentication(PortalPreAuthenticatedProcessingFilter.java:354)	at org.jasig.portal.spring.security.preauth.PortalPreAuthenticatedProcessingFilter.doFilter(PortalPreAuthenticatedProcessingFilter.java:177)	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)	at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)	at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)	at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)	at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343)	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)	at org.jasig.cas.client.util.AssertionThreadLocalFilter.doFilter(AssertionThreadLocalFilter.java:54)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)	at org.jasig.cas.client.validation.AbstractTicketValidationFilter.doFilter(AbstractTicketValidationFilter.java:201)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)	at org.jasig.portal.security.firewall.RequestParameterPolicyEnforcementFilter.doFilter(RequestParameterPolicyEnforcementFilter.java:215)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)	at org.jasig.services.persondir.support.web.RequestAttributeSourceFilter.doFilter(RequestAttributeSourceFilter.java:328)	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343)	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)	at org.jasig.portal.security.ThreadNamingRequestFilter.doFilterInternal(ThreadNamingRequestFilter.java:76)	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:106)	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343)	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)	at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:180)	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:106)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)	at org.jasig.portal.web.ExceptionLoggingFilter.doFilter(ExceptionLoggingFilter.java:56)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)	at com.thetransactioncompany.cors.CORSFilter.doFilter(CORSFilter.java:208)	at com.thetransactioncompany.cors.CORSFilter.doFilter(CORSFilter.java:274)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)	at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:200)	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)	at java.lang.Thread.run(Thread.java:745)