🎄 Happy Holidays! 🥳
Most of Solace is closed December 24–January 1 so our employees can spend time with their families. We will re-open Thursday, January 2, 2024. Please expect slower response times during this period and open a support ticket for anything needing immediate assistance.
Happy Holidays!
Please note: most of Solace is closed December 25–January 2, and will re-open Tuesday, January 3, 2023.
Error when setting up Java Code
Hi, When I am setting up the BasicReplier and BasicRequestor code in STS, I am getting below error No "exception of type JCSMPException can be thrown; an exception type must be a subclass of Throwable" in design time. Am I missing anything or any jar file? I just coped the BasicReplier and BAsicRequestor code and I cannot run ./gradlew assemble as I dont have access tot in my network.
Comments
-
Hi @vshivk99,
Hoping to help, but can you share what BasicReplier and BasicRequestor you are trying to use?
In general you'll need all the dependencies specified in the build.gradle file to be local if your machine can't reach out to the online repos to access them.0 -
Hi @vshivk99 ... I'm assuming (??) that you are looking at the JCSMP samples? Or are you looking at specific Spring samples??
If you don't have access to a network to allow Gradle to download the required JARs, then you'll need to manually copy in the required JARs and place them in a
lib
folder or something similar to use. Main ones you'll need can be downloaded from https://solace.com/downloads, the Java/JCSMP API, and then modify the build.gradle file by changing the repositories section:repositories { mavenCentral() jcenter() flatDir { // temporary until new API is moved to central repo dirs 'lib' // create a 'lib' folder and copy all required JARs in } }
Or have Eclipse or whatever build the samples once you get the required JARs downloaded.
Good luck!
1