Category "java"

SQL executeUpdate() seems to commit data, but that is not the case. How can I find my error?

I curently work on few SQL queries (MSSQL 2O14), but only "SELECT" query works with executeQuery(). I had use execute() and executeUpdate() on "INSERT INTO" and

Can these regexes cause catastrophic backtracking? [duplicate]

I'm new to regexes. I am using these regexes throughout my android project. Can any of these cause the catastrophic backtracking? To check for

How can we write method to read integers from a Scanner stream?

My goal is to implement a method named add that receives a reference to a Scanner object associated with a stream of input consisting of integers only. The meth

Change a agSelectCellEditor drop down value using selenium

I am trying to access values in a drop down which when I inspect, nothing is been in element inspector. I confirmed with developer what type of drop down is tha

How to auto-close app open ads after splash

I placed an ad of the type: "app-open" admob. This advertisement is not accepted by the App Store except in one case: That there is a splash for the application

How can I set up my keybinds in such a way that the character does not pause between inputs?

I'm attempting to make a simple bullet hell game and am struggling to make smooth movement mechanics for the character. Here is my current code: package bulleth

I am trying to make a smart contract transaction. My transactions never gets mined

I have a smart contract deployed. Whenever I try to perform a transaction, the transaction starts, but that's it. The transaction never actually takes place (or

How can I do in java spring boot not try a database connection on start up?

I need to know if there is a way in Java Spring boot not to try a connection at startup. What I am trying to do is an integrated SQL server connection. I am try

How do I configure JSF Project in vscode?

I am trying to setup things for JSF Project in VSCode but I dont know how to do it, 'coz wherever I check there are Maven(something) specific configurations and

Ways to update many nested Documents with MongoTemplate without creating additional Update object

I use MongoTemplate to update a document using findAndModify() method. There are nested documents inside one document. Example as following: @Document public cl

Don't wait for CompletableFuture

Let's say I have some logic that I want to execute in a separate thread, and then continue with the remaining logic in my method. If I don't care about the resu

Why does my JavaCard Applet work on my JAVACOS card but not my NXP J3H145 or ACOSJ card?

I have written and successfully installed an apple tonto a JAVACOS smart card. I can install this applet onto my NXP J3H145 and ACOSJ card, but when I try to in

check if text is bold

I am testing the output of a search and I want to be sure that I will get the text and that it would be bold. For example I want the name to include "ar". As an

java.lang.IllegalAccessError: issue coming while running maven build

I am getting the below issue while trying to run the maven build . Project runs fine in java application but while running maven build getting the below issue .

Error: A JNI error has occurred, please check your installation and try again in IntelliJ IDEA for Scala-Spark Program using SBT

import org.apache.spark.sql.SparkSession object RDDBroadcast extends App { val spark = SparkSession.builder() .appName("SparkByExamples.com") .maste

Java ORM vs multiple entities

I have a class Health Check - as part of the class I record how many parasites are seen (enum NONE, SOME, MANY) and also the location of the parasites (enum HEA

Apache poi PowerPoint slide masters - not generating footer with page number

I have problem with slide master layout which contains page number and static text. I have them on my layouts but they are not appearing once I'm generating pre

Aerospike filter expression on boolean fields not working

I've written the following Aerospike filter in Java. Both Field1 and Field2 are booleans. For some reason, the "filterByField.ValidBoth" condition does not yiel

Android ViewModel's LiveData not updating the UI

I have the following fragment: todays_training_fragment.xml <?xml version="1.0" encoding="utf-8"?> <layout xmlns:android="http://schemas.android.com/ap

Parsing command line args[], with flags and without using a third party lib

I have a requirement to parse some command line arguments in a Java application without using any third party libraries (like Apache CLI or JCommander). I can o