Category "java"

Image doesn't send for other side Android Studio java

I have problem, because I can't send images for other side, it duplicates or sends empty message, but normal messages work fine. I've tried many tutorials and c

Flux delayElements without initial delay

I would like to emit elements where elements are delayed each other by some time without initial delay. I can not use Flux.delayElements(Duration) because it d

How to read a single char from the console in Java (as the user types it)?

Is there an easy way to read a single char from the console as the user is typing it in Java? Is it possible? I've tried with these methods but they all wait fo

Post request with content type application/x-www-form-urlencoded not working in Spring

I'm using OpenAPI generator to generate Spring REST APIs. Here is a fragment: openapi: 3.0.2 info: version: 1.0.0 title: Auth paths: '/auth/v1/token':

How get specific file from directory using apache camel in java?

I have an scenario, a directory contains various file named pattern filehhmm like: hh=hours mm=minutes dir: file1200.txt file1210.txt file1220.txt otherfile1.tx

android camera2 Api autoflash not working properly, the first picture is taken before the flash fires

I'm using camera 2 API, my project is heavily based on the archived project from google: https://github.com/googlearchive/android-Camera2Basic/ I'm starting the

java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/core/view/MenuHost;

I'm making a google sign in process in my app. Whenever I open my app it crashes and gives NoClassDefFoundError I checked the logcat and found this:- ------

voice recognition constantly in background android [closed]

FfhggtffgtfgtgftI want develop application that whenever it recognizes a keyword it does something. it needs to be in listening mode all the t

AEM 6.5 publisher not starting

I have followed the steps listed out here for setting up my local AEM instances. The author is running just fine. the publisher instance is not, going to http:/

Spring JPA not returning Foreign keys in response

I have a database with some entities, ( in parent child relationship )I can say and when When I try to make a query to child table to get all the rows, I only g

Maven use dependency from dependency

I have 3 proyects on maven, A, B and C B has a dependency to C. And A has a dependency to C. This is my pom From C <?xml version="1.0" encoding="UTF-8"?>

Intermitent "Received RST_STREAM: Not an error" observed when calling send on java.net.http.HttpClient

I've noticed recently a weird, intermittent error: "Received RST_STREAM: Not an error" which seems to come from java when calling send on java.net.http.HttpClie

Java post increment vs opcode iinc

Most of us are familiar with post increment, but when I look to the bytecode instructions, it shows the increment happened before the invocation to the method.

How can I send an e-mail from Microsoft Outlook using MSAL in Java?

I'm trying to develop an application in Java / Spring that connects to an Microsoft Outlook / Exchange SMTP Relay to send e-mails using MSAL4J, but I keep getti

Blank console upon trying to run cucumber feature file

I am trying to run a Cucumber feature file by Right Click > Run As > Feature File. But no action is triggered. Blank console output. What may be the case?

How to set the part of the text view between @ and alphanumeric (same as telegram user) is clickable in android java?

I want to convert the part of a string (textview) that contains the username to clickable and after the user clicks, move it to the same user's profile page (li

Avro Definition for Custom Aggregator

I have a code where I am aggregating the data from Kafka stream via: StreamsBuilder streamsBuilder = new StreamsBuilder(); streamsBuilder.table(AppConfigs.t

Why Log4j2 Doesn't Log Before System.exit(1)

When I use System.exit(1) after logging an error via Log4j2, the system close but the log doesn't be written at log files. In normal situations without using Sy

How to change log level in quarkus application deployed on kubernetes

I have a quarkus application with a standard configuration. The application works as expected, in my local develop environment i'm able to set the log level by

ConcurrentModificationException with map of lists

public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); Scanne