Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
3 views

Why is DatagramSocket receive() discard packets while MulticastSocket is not? On remote server

I try to understand how i should work with server sockets for receiving data from remote client. why when client on vpn data not losing. I have client and server application with UDP sockets. When i ...
NSkul's user avatar
  • 1
0 votes
0 answers
8 views

How to read data installed in User1 from User 2 in multi user android

Using multi user, I created two user profile: I have two apps. One is admin app and another is guest app. User1 profile [Admin app installed] User 2 profile[Guest app installed] In admin app, I have ...
Star's user avatar
  • 705
0 votes
0 answers
6 views

SSL HANDSHAKE FAILURE: Host name verification error while connecting to host

I'm writing a integration junit test case for my java application, which will calls the api and the api connects to the db and returns the data but i'm getting this "** SSL HANDSHAKE FAILURE: ...
Richu Andrews's user avatar
0 votes
0 answers
11 views

How to define a UUID identity column that satisfies both MySQL 8.4 and H2

I am trying to implement a table that uses UUID instead of long as its identity column. The long id implementation works perfectly, including end-to-end Spring MVC tests: @Getter @Setter @Entity @...
sfinja's user avatar
  • 584
0 votes
0 answers
9 views

How to set content-disposition at Dataflow Apache Beam when writing csv to google cloud storage

I have a dataflow pipeline in java that reads from bigquery and then saves to a google cloud storage a .csv.gz file (in different shards), everything is working, the fileNamePolicy and the process in ...
BugsForBreakfast's user avatar
0 votes
1 answer
7 views

App update issue and getting error message "There was a problem while parsing the package"

I want to implement app update features in my android application so I put APK file on my ftp server which is downloading successfully in my device at Documents/Apk/ now after downloading the apk app ...
Moin Khan's user avatar
  • 680
0 votes
0 answers
6 views

How to pass a list of parameters with $regex conditions in a Spring Data MongoDB query?

I'm having an issue with a MongoDB query through a repository, as shown below. I want to modify the query so that instead of passing parameters one by one, I can pass a list of parameters. Everything ...
Dmitrii Nuvakhov's user avatar
0 votes
0 answers
14 views

spring security context is thread session?

When I was reviewing the debugging project, the previous HTTP request set Spring Security context and redirect, while the next redirected request can directly obtain authentication. In other modules, ...
He Zhixian's user avatar
0 votes
0 answers
8 views

How to Capturing Logs During Xtend Compilation

I’m trying to debug an issue in the Xtend compilation process and want to capture detailed logs to see: Which classes are being compiled after the xtend:compile step. How long each class takes to ...
RCS's user avatar
  • 1
0 votes
0 answers
17 views

why Spring Security always throw an 403 forbidden?

I try to build a project using spring security and saw tutorial online and documentation but it always throw 403 forbidden when i tested it using postman, any idea how to fix it? here is my security ...
raihanbulldog's user avatar
0 votes
2 answers
23 views

System nanoTime() has two trailing zeros

I have written some code using System.nanoTime() and the output did always have two trailing zeros. Now I wondered if that behavior is normal. I tried it on two laptops and it always stayed that ...
Yhirton Iowert's user avatar
0 votes
1 answer
13 views

Spring boot Bcrypt Password in application.properties

I want to store a BCrypt-hashed password in application.properties for datasource.password and establish a MySQL database connection. Is this feasible? Is there any way to configure Spring so that I ...
Omkar Likhe's user avatar
0 votes
1 answer
17 views

Android MainActivity's onCreate() Called Two time (Twice) on Initial Launch After Installing

**dependencies** { implementation("androidx.core:core-ktx:1.13.1") implementation("androidx.appcompat:appcompat:1.7.1") implementation("com.google.android.material:...
Sajawal Hussain's user avatar
0 votes
0 answers
10 views

Getting error after changing spring-boot version to 3.4.0 from 3.1.4

There was an error in the forked process Cannot instantiate class xxxxx.api.controller.AdminControllerTest Standard Commons Logging discovery in action with spring-jcl: please remove commons-logging....
yashwant kumar's user avatar
-1 votes
0 answers
13 views

Element not found in Selenium using Java

In the below code ion-modal is not displaying in the screen when ion-fab-button in the ion-fab-list is clicked. Even ion-fab-list is not displayed when fab button is clicked. Thread.sleep(3000); ...
Krishna Arun's user avatar
-2 votes
2 answers
42 views

How PriorityQueue store and retrive elements or data?

import java.util.Queue; import java.util.PriorityQueue; class Main{ public static void main(String[] args) { Queue<Integer> q=new PriorityQueue<>(); q.add(34); ...
thevamshikrishna's user avatar
1 vote
1 answer
22 views

Is there a way of ignoring @Data annotations in a Java Spring Boot application that uses SonarQube for code coverage?

I am facing an issue right now where model classes in my Java Spring Boot application that use the @Data annotation really bring down my code coverage percentage. And as far as I'm aware, Sonarqube ...
mwiginton's user avatar
0 votes
0 answers
24 views

Migrating apache http client 5 from 5.3 to 5.4 trust all hosts and certificates deprecation replacement

I have upgraded from apache http client 5.3.x to 5.4.x. The below code works fine var sslContext = SSLContexts.custom() .loadTrustMaterial(null, TrustAllStrategy.INSTANCE) .build(); ...
Beno's user avatar
  • 965
0 votes
0 answers
19 views

How do I add MySQL Connector/J to a Gradle IntelliJ project?

I'm trying to create a Gradle project using IntelliJ 2024.3 and MySQL Connector/J 8.4.0, but every attempt (save one) fails at runtime with a ClassNotFound exception. I attempted to follow the ...
rcobbe's user avatar
  • 1
0 votes
1 answer
12 views

Code not executed from worker thread but rather from origin thread in MicroProfile EE 8 Applicaton

I have a Java EE 8 MicroProfile application I'm working on that is being deployed in Payara Server. I want to do some parallel processing on a XLSX file I'm receiving in a REST API. In order to ...
George Karanikas's user avatar
0 votes
0 answers
18 views

Login and Create Account Buttons Don’t Work?

I created a login screen in Java that has two buttons: Login and CreateAccount. These buttons were working initially, but after I started working on a different screen, they suddenly won’t work ...
The Real Kenny G's user avatar
0 votes
0 answers
8 views

Apollo GraphQL: Convert Json String into Response Object

I am using the Java 17 library to make queries to a GraphQL endpoint. Everything works OK However, I want to convert a JSON string into a Response Object. How can this be done? I am trying to access ...
mattsmith5's user avatar
0 votes
0 answers
14 views

Quarkus tests using test containers and Liquibase

I'm trying to write integration tests for our application and I've hit a roadblock I can't seem to overcome. I've set my test resource @Slf4j public class PostgreSQLTestResource implements ...
Stieg's user avatar
  • 178
0 votes
0 answers
13 views

Multiple SpringBoot @RequestHeader annotation for only one Map<String,String> headers

SringBoot has this famous construct to extract all request headers: @RestController public class AllHeaderController { @GetMapping("/print-all-headers") public void getAllheaders(@...
PatPanda's user avatar
  • 4,812
1 vote
1 answer
22 views

Android Studio: "Unexpected Token" error with spinners/adapters

I am new to Android Studio. I am trying to create a very simple app to convert units. I want to add a spinner (dropdown menu) for the user to select what kind of units they want to convert (eg: length,...
user28649578's user avatar
0 votes
0 answers
14 views

Using Criteria Builder to compare Year with full date

I'm using criteria builder and predicate to filter a search with the specified parameters recieved from front end and I've been strugling to make the year part work. I have a full date stored in the ...
Helio Brito's user avatar
0 votes
0 answers
4 views

In the project I developed in Android Studio, the wifi direct system detects the device but cannot send data

I am working on a project in Android studio where I use wifi direct but even if it finds the devices connected to the wifi network, it cannot send data. I haven't been able to solve the problem for ...
Can Berk �akıroğlu's user avatar
0 votes
0 answers
6 views

Getting Servlet.init() Exception with Jersey on Tomcat due to NoSuchMethodError

I'm developing a RESTful web application using Jersey and deploying it on Tomcat 10. My application is hosted at http://localhost:8080/jrapi/. However, when I click on a link that should call the ...
Ujjwal Mishra's user avatar
0 votes
0 answers
16 views

Make command does not work - Exception in thread "main" java.lang.NoSuchMethodError when re-making GnuCash documentation

I am trying to re-make the GnuCash documentation (processed via DocBook) on my machine and tried to tweak a few settings. Based on https://docbook.sourceforge.net/release/xsl/current/doc/html/labels....
henry's user avatar
  • 177
0 votes
0 answers
18 views

Error in connection between SQLite class and SQL Server class in Android Java

I have managed to create a local SQLite database to insert data, read it and update it. The problem is in a class where I do the communication test with SQL Server, there I can't pull the data from ...
NoobGeorge's user avatar
0 votes
0 answers
10 views

Generate AuthnRequestsSigned and WantAssertionsSigned in metadata spring security saml2 v6.4.1

I have to create the integration of the application I'm developping to an existent SSO which I don't controll it. In the last project, i was using <parent> <groupId>org.springframework....
Francisco M's user avatar
0 votes
0 answers
6 views

Arquillian: add datasource to deployment

From Arquillian docs, I read that you can return a Descriptor to add a datasource to a deployment. I could not find the DataSourceDescriptor class though. @Deployment(order = 1) public static ...
Lucas Pottersky's user avatar
0 votes
0 answers
17 views

SpringBoot 3.4: Enabled Virtual Thread but getting Sequential execution

In my Springboot 3.4 and Java 21 based application, I have enabled Virtual Threads via: spring.threads.virtual.enabled=true And Am using SpringBoot 3.4: <groupId>org.springframework.boot&...
Somjit's user avatar
  • 2,752
0 votes
2 answers
28 views

How to filter a list of DTOs based on a list of search criteria?

I am trying to implement filtering on a list of EmployeeDTOs. I have a list of SearchCritera which I want to be imposed on the list for the filtering. Here are the class structures. public class ...
Shubham Gupta's user avatar
0 votes
1 answer
43 views

What is the difference between using (double) versus multiplying by 1.0 when type casting an integer to a double?

I was wondering what the difference is between converting an integer to a double using double versus multiplying the integer by 1.0 int a = 4 int b = 3 double c = 1.0 * a / b double d = (double) a / ...
NoxAtra's user avatar
3 votes
1 answer
37 views

Why a type mismatch compiles and works with Java generics and iterators? [duplicate]

I am studying generics in Java and I have stumbeled into an astonishing situation. I created the code below explicitly to generate an error, but instead I only get warnings, and what's even more ...
Denis's user avatar
  • 193
-1 votes
0 answers
15 views

In Spring Security, exceptions are passed forwards along the filter chain in a forward direction or backwards?

@Component public class AuthenticationEntryPointImpl implements AuthenticationEntryPoint { @Override public void commence(HttpServletRequest request, HttpServletResponse response, ...
kangle song's user avatar
0 votes
0 answers
20 views

How would I add a pciture as a background directly to a JPanel

Is there any way to add a background without using a new JPanel? I am making a dungeon themed minesweeper game in Java using Swing and need to have a different image as a background. My game consists ...
Rithvik Kandula's user avatar
0 votes
0 answers
28 views

Playwright java is unable to open browser in incognito window

Am sharing the snippet which i used, able to open chrome browser but not opening in incognito window. My requirement is application under testing url must open in incognito window, complete the ...
sampath's user avatar
  • 43
-1 votes
0 answers
29 views

JSON file tree recursion for extracting the table and column name in pyhton

I have written the below code something I am missing I don't know what, the current_table and column_name value is coming before elif condition but after inside the elif why it is not coming I am not ...
Rajdeep's user avatar
  • 19
0 votes
1 answer
40 views

Android CardView white color below card

I have designed a custom component that inherits from cardview. For some reason, it shows a kind of white layout under the card that looks wrong. I have marked it with a red rectangle in the image. &...
Heinkel's user avatar
0 votes
0 answers
12 views

Using JAXB2 Basics Plugins for XJC in gradle tasks

Trying to create beans from XSD files with toString methid using JAXB2 basics plugin but receiving error "unknown parameter -XtoString" Hello, I would like to generate java classes with ...
Joe's user avatar
  • 1
0 votes
0 answers
13 views

WSDLToJava Error: Could not find jaxws frontend within classpath

I am trying to upgrade to java 17 and spring 6.1.8 and use exec-maven-plugin to call cxf WSDLToJava tool from maven pom.xml with my wsdl file, but I got the following error from mvn command: mvn -f ...
idoor's user avatar
  • 101
0 votes
0 answers
45 views

Unable to Retrieve Phone Number Hint in Android Java

I am attempting to implement the Phone Number Hint feature in my Android application using Java. However, every time I execute the code, the process falls into the addOnFailureListener callback. Below ...
N K Chauhan's user avatar
-2 votes
0 answers
42 views

Difference in perfomance Java vs Scala calling Java libraries? [closed]

Basically I wonder what is the difference in performance between Java code vs Scala calling Java libraries (under the hood Java and Scala are using different collections implementations so conversions ...
quester's user avatar
  • 560
0 votes
0 answers
33 views

Java ProccessBuilder execute PowerShell Script as Admin

I have a Java application which is started with non admin rights. From my Java application I want to start different PowerShell scripts. The PowerShell scrips have input and output parameter. Inside ...
cProgrammer1992's user avatar
-1 votes
0 answers
16 views

ElementNotInteractableException: element not interactable In selenium - Java

I have a translation modal page, where i am trying to translate a particular text, The english translation of the text is displayed in the first row, and the pointer events are not allowed (ie pointer-...
Athira's user avatar
  • 1
0 votes
0 answers
9 views

How to change the pageLoadStrategy for a specific test/test suite?

I have a page for which I write autotests to fill out the form. The form elements are loaded immediately, but background requests do not allow the browser to return the page loading event. Therefore, ...
Timur's user avatar
  • 81
0 votes
0 answers
12 views

Maven Compiler Plugin Issue for Activiti Project in IntelliJ IDEA

I’m working on setting up a Maven project in IntelliJ IDEA for Activiti to connect it with Jira. The idea is to move stories along automatically (like from “In Progress” to “Complete”). But before I ...
chrish208's user avatar
0 votes
0 answers
13 views

TMC Beans shows no project found

I am currently learning java through the MOOC course and i started to face an issue where TMC beans displays even though I already have the projects downloaded. To provide more context, I had ...
Despair's user avatar

1
2 3 4 5
38393