Category "java"

When trying to overwrite a equals method in Java, it won't compare the values only the object itself?

In this exercise, I need to create a equals() method for a Drink class. Two drinks are the same if they have the same name and same size. I am receiving false f

Column not found when running unit tests in Spring Boot

I have this problem when testing a JPA repository: Caused by: org.h2.jdbc.JdbcSQLSyntaxErrorException: Column "CREATED_AT" not found; SQL statement: ins

Implementing Priority queue using hashmap

This may be a very naive question or does not make sense. But i am really confused about implementation of priority queue. Why we cannot use a hashmap with key

Custom HTTP Header blocks Jersey CORS Filter

I am using a Jersey2 response filter to deal with CORS requests from the browser. At this point it pretty much looks like the one from Paul Samsotha in this que

Wildcard matching in Java

I'm writing a simple debugging program that takes as input simple strings that can contain stars to indicate a wildcard match-any *.wav // matches <anythin

add namespace to the SignedInfo node when signing an XML document

I am signing an XML document and everything works correctly, but they are rejecting the document because they tell me that the SignedInfo node does not contain

Why is my code for Codingbat String-2 EndOther not working?

I won't lie, this is sort of homework for my AP Computer Science class. But I talked to my teacher, and he couldn't figure it out either. So I'm doing the Java

Provider com.sun.xml.internal.messaging.saaj.soap.SAAJMetaFactoryImpl not found after upgrading to java 11.How to fix?

I'm using bw application.JDK 8 is upgraded to JDK 11.At line SOAPMessage soapMessage = MessageFactory.newInstance().createMessage(), getting exception as java.l

Can't run a simple demo of a Media class

I found a video on YouTube about using Media class, but when I try to do it - it gives me an error. Could somebody tell me whats wrong? Here's the code, exactly

"error: cannot find symbol" when building for Android in flutter

I keep getting this error when trying to build for android in my flutter app. This all happened when i added firebase messaging version 7.0.3. Even after removi

Prevent Android function call from running before its predecessor completes?

I am running a main function that calls three others in succession like this: public void test() { countdown(); secondMethod(); lastMethod(); }

session not created exception while running Selenium webdriver

Till yesterday: The below code was working fine. System.setProperty("webdriver.chrome.driver", "/Users../Applications/chromedriver"); WebDriver driver = new C

BufferedWriter without try method IOException

I know this topic has been discussed a lot and I have already read a lot of posts here about that, but I still seem to have trouble. My problem is that I am al

Recursive iteration of a Map Java

I am writing a recursive function whose purpose is to iterate over the pList File. My code is public static void HashMapper(Map lhm1) throws ParseException {

Spring Oauth2 JDBC Client configuration add same client multiple times

I am configuring an OAuth2 authorization server in a Spring project. Here is configuration. @Override public void configure(ClientDetailsServiceConfigurer cl

Can not verify rule set jar

Another try to open a message here My company wants to use the deployment rule set for multiple java versions usage. Currenly we have 1.6.0_13, 1.7.0_51 and 1

Mustache: How to downcase first letter

I'm using a mustache template in order to generate some code using Java. I'd like to downcase the first letter of a field. Is there some way to get it? I nee

How can I order columns in a box chart in JFreeChart?

I have a box chart with multiple boxes in rows and columns. The ordering of the boxes is wrong. Each row (color) is labeled by an enum constant of type Multiple

Appium IOS tests running when server started manually but not when server is started via AppiumDriverLocalService

Attempting to run Appium automation scripts on iOS (simulator) on a Mac Mini (M1 chip, if that's relevant). When I run the tests, they work just fine when the A

Websocket and cross-domain

Currently, I am developing two webapps : the core, developed in Java with Vert.x, receives data from a lot of other apps and sends it to client) the client,