• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Java AES encryption/Websphere

 
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ,
I am using AES 256 encryption is a Java Webapp deployed in websphere8.1.
All the unrestricted judicary jar files are copied to jre/security folder.

The code works fine in server1 in a given node.

I created another server in the same node.

And this server does not do data encrypt/decrypt properly.

It says IllegalKeysize exception.This works fins in server1.

What can be the cause?

Thanks,
isuru

 
Isuru Samaraweera
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
THis is the exception I am getting in server2 of nodeA in machine M1.Same app works fine in server1 in NodeA in machine M1.
Also I tried creating new node in same machine M1.Same error happens .Please try to resolve this issue

[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R java.security.InvalidKeyException: Illegal key size or default parameters
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at javax.crypto.Cipher.a(Unknown Source)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at javax.crypto.Cipher.a(Unknown Source)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at javax.crypto.Cipher.a(Unknown Source)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at javax.crypto.Cipher.init(Unknown Source)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at javax.crypto.Cipher.init(Unknown Source)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at com.pb.common.DataEncryptDecrypt.decryptData(Unknown Source)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at com.pb.ldap.LDAPUtils.LDAPUserGroup(LDAPUtils.java:380)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at com.pb.login.Login.execute(Unknown Source)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at java.lang.reflect.Method.invoke(Method.java:611)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:452)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:291)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:254)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:263)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:133)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:207)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:207)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:190)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:94)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:243)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:270)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
[2/14/14 16:35:03:167 SGT] 00000031 SystemErr R at com.opensymphony.xwork2.DefaultAction
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic