Category "java"

How do I fix "Could not connect to remote process" while trying to debug the application?

I am making a android studio project and I try to debug my application. Running the application works fine, but when I try to debug it I get this error: Coul

Spring Batch how to process list of data before write in a Step

I am trying to read client data from database and write processed data to a flat file. But I need to process whole result of the ItemReader before write data.

How to tell if Java SSLSocket has data available?

When I was using regular Sockets, I could call getInputStream() and use available() to see how many bytes were available. I switched to SSLSocket, but now avail

Returning responses randomly from wiremock

I need to return a random response out of a predefined set each time the same wiremock endpoint is called. How can I do it?

SQLite 64bit integers recognized as ints in jooq

I have an SQLite database that I am using with jOOQ. When I use jOOQ's code generation tool, it builds all of the table and record classes as expected. However,

Recompile the java files which is decompiled by JD-GUI from a jar

I have a MyFile.jar file. I use JD-GUI to decompile it and used its "Save All Sources" options to save the files to a .zip file. Now extracted the .zip file and

How to get text from TextArea in JavaFX saving line breaks?

I have a TextArea and a few lines of text in it. When I extract String by getText() method what I`m getting is a line of text instead of really written few line

How can I access Schema from the QueryResponse while calling getQueryResults method from my Java application?

I am using google.cloud.bigquery library to execute and create query using bigquery.query() method. I want to fetch the Schema details from the response but whe

How to get text from TextArea in JavaFX saving line breaks?

I have a TextArea and a few lines of text in it. When I extract String by getText() method what I`m getting is a line of text instead of really written few line

Spark job loses executors: ERROR TaskSchedulerImpl: Lost executor 1... -> ./app.jar: No space left on device

I'm running both the master and 1 worker on a GPU server in standalone mode. After submitting the job, it retrieves and loses executors for X amount of times be

how to log only one level with log4j2?

I'm using log4j2 in my application. What I want is everything up to 'debug' to go to console, everything up to 'info' to go to myapp.log, and ONLY 'info' to go

UnsupportedClassVersionError from maven-pmd-plugin for java 11 project

We are migrating our java 8 projects to java 11. JAVA_HOME still points to java 8 but the first project to be migrated compiles in java 11 and the unit tests ru

onNewIntent in Fragments in android

I am trying to develop a NFC application. I need to recognize the NFC TAG from the OnNewIntent that in the Activity class. Now I need to move and use fragments

How to exclude packages from CheckStyle analysis in a mavenized multi-module project?

I have a Maven project with several modules, including org.eclipse.cdt.core. For some reason, the customer wants to build org.eclipse.cdt.core as well. I want

Servlet ignores Content-Length and uses Transfer-Encoding: chunked based on User-Agent

I want to compress response body in javax.servlet.Filter. Here is my code byte[] bytes = // compressing response body response.addHeader("Content-Encoding", "

Java Apache POI Excel save as PDF

How can I convert/save excel file to pdf? I'm using java play framework to generate some excel files and now the requirement changes to pdf. I don't want to rec

Deserializing YAML with root name prefix using Jackson

I would like to deserialize a YAML file into a Java object using Jackson and jackson-dataformat-yaml. The YAML is company: product: settings: proper

Eclipse not compatible with version 1.8.0_333 of the JVM

I downloaded Eclipse IDE to learn how to code, but it only says that it isn't compatible with such version, I tried other methods mentioned in previous question

External CSS in Flying Saucer

I would like to know how to include the External CSS in Flying-Saucer.Before that THB I checked with all the available links in StackOverflow but they are not h

UnsatisfiedDependencyException: Error creating bean with name

For several days I'm trying to create Spring CRUD application. I'm confused. I can't solve this errors. org.springframework.beans.factory.UnsatisfiedDepende