Win a copy of High Performance Python for Data Analytics this week in the Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
  • salvin francis
  • Frits Walraven
  • Piet Souris

Apache Shiro realm, authentication failed for token submission error

Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My webapp run into org.apache.shiro.authc.UsernamePasswordToken error. My webapp is using shiro realm and hibernate as the API. I dont really know why it suddenly stop authenticating and unable to decrypt.

1.  Main Authentication Method

2. Retry Limit .JAVA

3. catalina logs

INFO: Initializing Spring root WebApplicationContext
INFO  XmlWebApplicationContext - Refreshing Root WebApplicationContext: startup date [Fri Jan 08 09:12:16 CST 2021]; root of context hierarchy
INFO  XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [applicationContext.xml]
INFO  XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [applicationContext_shiro.xml]
INFO  XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [applicationContext_quartz.xml]
INFO  AutowiredAnnotationBeanPostProcessor - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
[localhost-startStop-1] WARN net.sf.ehcache.config.CacheConfiguration - Statistics can no longer be enabled via configuration.
INFO  PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'cacheManager' of type [org.apache.shiro.cache.ehcache.EhCacheManager] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
[localhost-startStop-1] INFO org.apache.shiro.cache.ehcache.EhCacheManager - Cache with name '5' does not yet exist.  Creating now.
[localhost-startStop-1] INFO org.apache.shiro.cache.ehcache.EhCacheManager - Added EhCache named [authorizationCache]
INFO  StrutsSpringObjectFactory - ... initialized Struts-Spring integration successfully
Jan 08, 2021 9:12:24 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio-8080"]
Jan 08, 2021 9:12:24 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 20363 ms
[http-nio-8080-exec-8] INFO org.apache.shiro.session.mgt.AbstractValidatingSessionManager - Enabling session validation scheduler...
WARN  cache - HHH90001006: Missing cache[com.ntnchina.hkg.sapporo.sys.domain.STFTYPMAS] was created on-the-fly. The created cache will use a provider-specific default configuration: make sure you defined one. You can disable this warning by setting 'hibernate.javax.cache.missing_cache_strategy' to 'create'.

WARN  cache - HHH90001003: Read-only caching was requested for mutable entity >>>>>[NavigableRole[com.ntnchina.hkg.sapporo.sys.domain.STFTYPMAS]]
[http-nio-8080-exec-2] INFO org.ehcache.core.EhcacheManager - Cache 'com.ntnchina.hkg.sapporo.sys.domain.STFTYPMAS' created in Eh107InternalCacheManager.
[http-nio-8080-exec-2] WARN org.apache.shiro.authc.AbstractAuthenticator - Authentication failed for token submission [org.apache.shiro.authc.UsernamePasswordToken - Calvin LAW, rememberMe=true].  Possible unexpected error? (Typical or expected login exceptions should extend from AuthenticationException).
javax.persistence.PersistenceException: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.hql.spi.QueryTranslatorFactory]

I just wished someone could advise and address the issue, i have really run out of clues.
Greatly Appreciated.
Happy 2021 Guys !!!
    Bookmark Topic Watch Topic
  • New Topic