This week's book giveaway is in the Spring forum.
We're giving away four copies of Pro Spring MVC with WebFlux: Web Development in Spring Framework 5 and Spring Boot 2 and have Marten Deinum & Iuliana Cosmina on-line!
See this thread for details.
Win a copy of Pro Spring MVC with WebFlux: Web Development in Spring Framework 5 and Spring Boot 2 this week in the Spring forum!

Garishma Nagpal

Greenhorn
+ Follow
since Jun 07, 2021
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Garishma Nagpal

While using IBM I am getting following error. It is working fine with Oracle. I have my class compiled with Oracle and not IBM.

I an getting this error while calling a class through reflection. Running it through main method works fine.

Class aClass = ObfuscationUtility.class;
Method[] methods = aClass.getDeclaredMethods();
for (Method method : methods) {
if (method.getName().equals(deobfuscated_method)) {
method.setAccessible(true);
try {
decryptedText = (String) method.invoke(aClass, encryptedText);
....

Any suggestions what mistake I may be doing.


Exception in thread "main" java.lang.VerifyError: JVMVRFY010 multiple jsrs use single return; class=com/ObfuscationUtility, method=<clinit>()V, pc=65
Exception Details:
Location:
com/ObfuscationUtility.<clinit>()V @65: JBjsr
Reason:
Error exists in the bytecode.
Exception Handler Table:
bci [322, 333] => handler: 1146
bci [1147, 1157] => handler: 692
at java.lang.ClassLoader.defineClassImpl(Native Method)
at java.lang.ClassLoader.defineClassInternal(ClassLoader.java:396)
at java.lang.ClassLoader.defineClass(ClassLoader.java:357)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:154)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:730)
at java.net.URLClassLoader.access$400(URLClassLoader.java:96)
at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:1187)
at java.security.AccessController.doPrivileged(AccessController.java:774)
at java.net.URLClassLoader.findClass(URLClassLoader.java:605)
at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:942)
at java.lang.ClassLoader.loadClass(ClassLoader.java:887)
at java.lang.ClassLoader.loadClass(ClassLoader.java:870)
1 week ago
OS - Windows 10

I got new certificate issued from Oracle to sign a jar for JCE provider. I wrote a program and tried with ibm java 8.0.6.25 and ibm was able to authenticate(verify) the provider jar. But the same jar when signed with oracle old certificate was not working with ibm java 8.0.6.25 and was working with ibm earlier versions.

I searched online and found this - https://www.ibm.com/support/pages/apar/IJ26310

From it I came to know that ibm has added new oracle signer certificate. But why jar with older certificate stop working giving me error - JCE cannot authenticate the provider

Do ibm replace old signer certificate or add it? Where cryptographic provider verification list is maintained in ibm or oracle?

I tried with Oracle and both jars (one signed with old certificate and one signed with new certificate) was working fine.

Also when I tried signed jar with old certificate with jarsigner command -verify option, I got result as - jar verified for ibm. So why it is not working when I am writing a program and make it work.
1 week ago