Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problem with bouncycastle library when running on Weblogic, not when I run AppModule

KdeGraafJul 4 2017 — edited Jul 6 2017

Hi all,

I'm using Jdev 12.1.3 and I have some strange behaviour that is keeping me busy for a few days now and I can't find the cause of the problem.

I build in PGP decryption functionality in my AppModule Class using the bouncycastle libraries.

When I run the AppModule in JDev and run the method to download an decrypt a file it all works fine.

But when I create a library of this project and call the method in an other project that has a front end page, I get the following error:

<oracle.adf.controller> <Utils> <buildFacesMessage> <ADF: Adding the following JSF error message: org.bouncycastle.util.Strings.newList()Lorg/bouncycastle/util/StringList;>

java.lang.NoSuchMethodError: org.bouncycastle.util.Strings.newList()Lorg/bouncycastle/util/StringList;

at org.bouncycastle.bcpg.ArmoredInputStream.<init>(Unknown Source)

at org.bouncycastle.bcpg.ArmoredInputStream.<init>(Unknown Source)

at org.bouncycastle.openpgp.PGPUtil.getDecoderStream(Unknown Source)

at com.myproject.filetransfer.model.service.KeyBasedFileProcessor.decryptFile(KeyBasedFileProcessor.java:92)

At line 92 I have the following code:

in = PGPUtil.getDecoderStream(in);

This method creates a new InputStream that at some point needs Strings.newList() and that method is not found for some reason.

I checked the weblogic file system and the bouncy castle libraries are deployed there. I think the libraries are found, else I would expect a class not found exception.

What is going wrong?

Any suggestions what I can try\check?

This post has been answered by Timo Hahn on Jul 6 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 3 2017
Added on Jul 4 2017
5 comments
1,453 views