ninjaframework / ninja

Ninja is a full stack web framework for Java. Rock solid, fast and super productive.
http://www.ninjaframework.org
Apache License 2.0
1.91k stars 518 forks source link

changed java versions and got #605

Closed eagwasim closed 6 years ago

eagwasim commented 6 years ago

java.lang.RuntimeException: javax.crypto.BadPaddingException: Given final block not properly padded ninja.utils.CookieEncryption.decrypt(CookieEncryption.java:139) ninja.session.SessionImpl.init(SessionImpl.java:117) ninja.utils.AbstractContext.init(AbstractContext.java:95) ninja.servlet.NinjaServletContext.init(NinjaServletContext.java:128) ninja.servlet.NinjaServletDispatcher.service(NinjaServletDispatcher.java:82) com.google.inject.servlet.ServletDefinition.doServiceImpl(ServletDefinition.java:287) com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:277) com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:182) com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91) com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:119) com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:133) com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:130) com.google.inject.servlet.GuiceFilter$Context.call(GuiceFilter.java:203) com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:130)

jjlauer commented 6 years ago

This seems to be a duplicate of https://github.com/ninjaframework/ninja/issues/532

There a fix included in Ninja awhile ago for this -- what version of Ninja are you running?

eagwasim commented 6 years ago

5.8.0

jjlauer commented 6 years ago

That issue is fixed per #532 . You'll either want to install the JCE extension to your new Java install or bump the Ninja version up to take care of it. Or both.