Category "java"

Spring-Boot GraphQL QueryResolver is not called

When I call a query in graphiQL i get the following response { "errors": [ { "message": "The field at path '/customers' was declared as a non null t

Allowing microphone access(permission) in WebView Android Studio

send audio is not working can you please help I would appreciate if you show me where to write the codes. send audio is not working can you please help I would

How to use spark with large decimal numbers?

My database has numeric value, which is up to 256-bit unsigned integer. However, spark's decimalType has a limit of Decimal(38,18). When I try to do calculatio

Intellij "cannot resolve symbol" after installing spring boot

I've recently installed the plugin "spring boot assistant" into my Intellij. When I was trying to run an old java file that I've completed before, a lot of the

Connecting to as400 JDBC on Play Framework

I'm having issues making a connection to an AS400 database inside of Play!. My application.conf looks like: db.default.driver="com.ibm.as400.access.AS400JDBCD

How to compare two instants in Java?

I want comparison two Instants to see if equals both or greater than, but i can’t. i dont know. how i can compare instants? private Instant expiration;

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 {