Guice injecting empty string instead of value from @Provides method
Stack Overflow » Java
by akerra
51m ago
I have the following class which is using Lombok-generated constructor injection: @RequiredArgsConstructor(onConstructor = @__(@Inject)) public class S3ModelAuditor implements ModelAuditor { private final S3Client s3Client; @Named(MODEL_AUDIT_BUCKET_NAME) private final String bucketName; ... class methods... } Then in my module, I bind the implementation to the interface, and also have the necessary provider methods for the constructor args: public class PluginModule extends AbstractModule { public static final String MODEL_AUDIT_BUCKET_NAME = "MODEL_AUDIT_BUCKET_NAME ..read more
Visit website
Unable to install Enrichmentmap pipeline in cytoscape
Stack Overflow » Java
by Banshi Nath
51m ago
Hellp, I have a windows 64 bit system with Java 17.5 by eclips adoptium. My cytoscape version in 3.10.3. I am trying to install the Enrichmentmap pipeline collection however, its not working. The error message says "Could not install enrichmentmap pipeline collection app: undefined". I have tried reinstalling a fresh cytoscape and did the indiviaual enrichment map installation but that did not work either. Can someone please help me out on this? I will really appreciate it. many thanks in advance. Banshi installation of enrichmentmap pipleline collection and individual app with a fresh cytosca ..read more
Visit website
How to avoid acquiring db lock when deleting a quartz job
Stack Overflow » Java
by Jan Bols
51m ago
We use quartz (2.3.2) in a java application with a postgres jdbc job store. When a job is deleted by calling org.quartz.core.QuartzScheduler#deleteJob, it will remove its triggers by calling resources.getJobStore().removeTrigger(triggerKey). This in turn will first try to acquire a lock named TRIGGER_ACCESS before progressing. See the implementation here. I want to avoid this because I have a high contention adding and removing jobs. I understand the need to lock before executing the job. However, I fail to understand the need to acquire the lock to remove the job. Note: I already remove the n ..read more
Visit website
Exporting a jar which uses JNA, to another project, Missing Constraint error
Stack Overflow » Java
by Stapimaz
51m ago
Shared library dependencies Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: library Plug-in Bundle-Version: 2.0.7 Bundle-Activator: library.util.Activator Import-Package: com.sun.jna;version="5.10.0", com.sun.jna.platform;version="5.10.0", org.osgi.framework;version="1.4.0" Export-Package: library.printing, library.security.auth, library.util, library.util.coordinate, library.util.debug, library.xml Bundle-SymbolicName: library Bundle-RequiredExecutionEnvironment: JavaSE-1.8 and this is where i use JNA: package library.printing; import com.sun.jna.Library; import c ..read more
Visit website
Problems with Java in VScode [closed]
Stack Overflow » Java
by Gabriel Dazilio
51m ago
When I run my Java code, this error appears in the terminal: My java version is java version "21.0.4" 2024-07-16 LTS Java(TM) SE Runtime Environment (build 21.0.4+8-LTS-274) Java HotSpot(TM) 64-Bit Server VM (build 21.0.4+8-LTS-274, mixed mode, sharing) Error: Error: A JNI error occurred, check your installation and try again Exception in thread "main" java.lang.SecurityException: Forbidden package name: java in java.base/java.lang.ClassLoader.preDefineClass(ClassLoader.java:910 ) in java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1025) in java.base/java.security.SecureClassLoader ..read more
Visit website
Cucumber maven 1 does not rerun failed tests and does not create report file
Stack Overflow » Java
by Word Place
51m ago
could you tell me what are required dependencies to make cucumber reporting plugin working when I want to rerun failed tests ? I am using in my project the following dependencies. Could you tell me what is wrong ? When I set the value to 0 <rerunFailingTestsCount>0</rerunFailingTestsCount> then everything works fine and pretty cucumber reports are generated successfully. But when I set the value to more than 0 <rerunFailingTestsCount>1</rerunFailingTestsCount> After the test I get error net.masterthought.cucumber.ValidationException: File and pretty cucumber report ..read more
Visit website
IReport designer problem with Netbeans IDE 20
Stack Overflow » Java
by amn
2h ago
Problem: I'm facing an issue with iReport designer in NetBeans IDE 20. I'm using JDK 21 and have installed iReport plugins 5.6.0. When attempting to compile a new, empty .jrxml report file using Java in iReport, I encounter the error: "The type java.lang.String cannot be resolved. It is indirectly referenced from required .class files". its compile and work for me with groovy language but I want it with java language. Environment: NetBeans IDE 20 JDK 21 iReport plugins 5.6.0 What could be causing this error, even with an empty report file? Are there any known compatibility issues or configurat ..read more
Visit website
Transforming java slider switch code to Scene Builder control
Stack Overflow » Java
by StealthRT
2h ago
Hey all I am trying to figure out how to transform my JavaFX slider switch to a Scene Builder 2.0 control so that I can use it within scene Builder. I currently have been watching these 2 YouTube videos: To make the slider switch: Youtube Vid #1 To create a scene builder control: Youtube Vid #2 The issue with the 2 YouTube videos above is that it shows how to do this with first starting out designing it within Scene Builder 2.0 which is not the way I did it when following the first YouTube video. So is there a way to transfer what I have in java to the Scene Builder to create the control? My c ..read more
Visit website
Room database dependencies in Android Studio Koala
Stack Overflow » Java
by ciro
2h ago
I want to add libraries to be able to work on room databases, but I don't know which one to insert. I am working on Android Studio Koala SDK 34 and Gradle KTS, I use Java as language. Can someone help me? I tried adding dependencies from the FILE->PROJECT STRUCTURE menu.But there are many items and I don't know which one to choose ..read more
Visit website
Error on the web page when launching the application on Spring MVC in Eclipse
Stack Overflow » Java
by Pavel
2h ago
Error on the web page when launching the application on Spring MVC in Eclipse: The origin server did not find a current representation for the target resource or is not willing to disclose that one exists. I recently started studying Spring MVC and still can't launch the web application, it gives an error in the browser. I'm launching it via Tomcat. Here are my files: package ru.alliance.springMVC.config; import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer; public class MySpringMVCServlet extends AbstractAnnotationConfigDispatcherServletInitia ..read more
Visit website

Follow Stack Overflow » Java on FeedSpot

Continue with Google
Continue with Apple
OR