Category "java"

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

How to remove Duplicated elements from a List based on Two properties using Java 8 streams?

I'm trying to figure out how to write a stream in Java 8 that removes duplicate records based on a property and a condition, for example: +----+----------------

PE Section Flags

For example Characteristics of section .text is 60000020, seems that is IMAGE_SCN_CNT_CODE 0x00000020 IMAGE_SCN_MEM_EXECUTE 0x20000000 IMAGE_SCN_MEM_READ 0

how to convert a CSV into JSON using Python Or Java. The csv is representation of a nested JSON (Containing array of json objects and nested objects)

I get a csv file like : attrib1_x , attrib1_y , attrib1_z_0_p , attrib1_z_0_c , attrib1_z_1_p , attrib1_z_1_c , attrib2_R , attrib2_K , attrib3 1 , 2 , 100 , 20

SEVERE [localhost-startStop-1] org.apache.catalina.core.ContainerBase.addChildInternal

I've just opened the project in netbeans, cleaned and build it then run the project but its showing the following error message. Note:Same project is working fi

How to tackle the Codingbat String-2 oneTwo challenge?

Here is the problem statement: Given a string, compute a new string by moving the first char to come after the next two chars, so "abc" yields "bca". Repeat

android remove data from getintent

I have an activity for handling deeplink which is a browsable activity suppose user clicks a link on another app and my browsable activity handles that intent