• Post Reply Bookmark Topic Watch Topic
  • New Topic

Decryption issue in jdk1.4  RSS feed

 
Krish Dev
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

While are trying to decrypt the message using the jdk1.4 (encrypted using jdk 1.3) getting the following error. Pls, advice what CLASSPATH required at our side to resolve the below issue. Kindly note that we can not ask the other party to upgrade their jdk.

java.lang.NoClassDefFoundError
at javax.crypto.KeyGenerator.getInstance(DashoA12275)
at payment.Security.encrypt(Security.java:144)
at payment.CitiSendServlet.doPost(CitiSendServlet.java:114)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1077)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:348)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:7047)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3902)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2773)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)

Thanks in Advance.
Krish...
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Show us the lines of your source code where this exception happens class payment.Security, method encrypt, around line 144 of Security.java).

Which encryption algorithm are you using? How have you configured the encryption stuff? Do you have an implementation of the encryption algorithm somewhere? Make sure to include that in the classpath.
 
Krish Dev
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Thanks for the reply. I am using the iaik_jce_full.jar. It works for jdk1.3 but not for jdk1.4.2

Error occured while calling the KeyGenerator.class (getInstance method) in the iaik_jce_full.jar

Can I replace the iaik_jce_full.jar with the jce1_2_1.jar or do I need to change/add in the provider list in java.security file in jdk1.4.2

Pls, advice.

Thanks,
Krish.
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Aha. I searched a bit on Google, you seem to be using a library that came from here: http://jce.iaik.tugraz.at/

Read the documentation on that website and search for "NoClassDefFoundError" there.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!