GithubHelp home page GithubHelp logo

Comments (2)

macourtney avatar macourtney commented on August 11, 2024

Notes from Steve:

I have not seen this error message before. However, a web search indicates that its likely that bouncy castle class files are being loaded from different jars - that are not compatible with each other. I inspected a couple of jars in the lib directory and found that ...
i2p-0.8.5-0.jar contains org.bouncycastle.crypto.Digest.class
bcprov-jdk16-136.jar contains org.bouncycastle.crypto.Digest.class

I attempted to confirm the cause by executing Java with the -verbose option to record the jars from which the org.bouncycastle.crypto classes are loaded. I found that they are all loaded from bcprov-jdk16-136.jar. I tried removing bcprov-jdk16-136.jar from the lib directory, and the application fails to launch because it cannot find org.bouncycastle.jce.provider.BouncyCastleProvider.

I tried upgrading bcprov-jdk16-136.jar to bcprov-jdk16-140.jar and same problem.

I explicitly set the class path jar file order to ...cp=lib/clj-record-1.0.1.jar
cp=$cp:lib/clojure-1.2.1.jar
cp=$cp:lib/clojure-contrib-1.2.0.jar
cp=$cp:lib/clojure-tools-1.0.0.jar
cp=$cp:lib/commons-codec-1.5.jar
cp=$cp:lib/commons-lang-2.5.jar
cp=$cp:lib/darkexchange-1.0.0-BETA.jar
cp=$cp:lib/drift-1.2.1.jar
cp=$cp:lib/h2-1.2.137.jar
cp=$cp:lib/i2p-0.8.5-0.jar
cp=$cp:lib/log4j-1.2.16.jar
cp=$cp:lib/miglayout-3.7.4.jar
cp=$cp:lib/mstreaming-0.8.5-0.jar
cp=$cp:lib/seesaw-1.0.6.jar
cp=$cp:lib/streaming-0.8.5-0.jar
cp=$cp:lib/bcprov-jdk16-140.jar
cp=$cp:resources

But the same problem occurred.

Then I removed the org.bouncycastle package from i2p-0.8.5-0.jar with the Ubuntu File Roller graphical utility, and the problem went away. The search feature returns no results for the couple of choices that I tried, but there was no security exception.

Here is the relevant part of the log ...
INFO [config.db-config]: Environment: :production
DEBUG [darkexchange.database.h2]: Executing query: ["SELECT * FROM schema_info LIMIT 1"]
INFO [darkexchange.database.migrate]: schema_info exists
DEBUG [darkexchange.database.h2]: Executing query: ["SELECT * FROM schema_info LIMIT 1"]
INFO [drift.runner]: Current database version: 7
INFO [drift.runner]: Updating to version: 7
INFO [drift.runner]: No changes were made to the database.
INFO [darkexchange.model.server]: Initializing server.
INFO [darkexchange.model.listeners.listener-init]: Adding listeners.
INFO [darkexchange.model.actions.action-init]: Adding actions.

Hope this is helpful.
-Steve

from dark-exchange.

macourtney avatar macourtney commented on August 11, 2024

I've created a new I2P jar without the reference to bouncy castle and uploaded it to my clojars account. I haven't heard of any issues since.

from dark-exchange.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.