Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
66 views

I’m working on a DSL parser using Java CUP, and I’m getting this error when trying to compile my .cup grammar: Error: Syntax error @ Symbol: PARSER (unknown:19/-5(-1) - unknown:19/1(-1)) Error : ...
Sergio Andrés Valderrama Vélez's user avatar
Advice
0 votes
0 replies
29 views

root pom.xml file <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <version>0.8.11</version> <...
Nidhi257's user avatar
  • 997
Best practices
0 votes
5 replies
84 views

I have been working as a Data Engineer and got this issue. I came across a use case where I have a view(lets name it as inputView) which is created by reading data from some source. Now somewhere ...
Parth Sarthi Roy's user avatar
0 votes
0 answers
80 views

I recently upgraded the Maven Dependency Plugin from 3.3.0 to 3.4.0, and now my build fails during the unpack phase with the following error: Failed to execute goal org.apache.maven.plugins:maven-...
stupidheadlol's user avatar
1 vote
2 answers
144 views

I'm developing a tool that stores a signer's biometric data inside a PDF together with the digital signature, but I'm unsure where this information should be embedded. The biometric data is captured ...
nex0's user avatar
  • 13
4 votes
0 answers
81 views

I am trying to create a JavaFX project featuring multiple instances of the SearchableComboBox control from the ControlsFX library, each having the same list of options. When an option is selected in a ...
fawfulsPikminArmy's user avatar
Advice
0 votes
9 replies
127 views

Explain please why the output is "Base" ? Isn't getClassName method inherited? class Base {     public String className = "Base";     public String getClassName() {         ...
J.J. Beam's user avatar
  • 3,171
0 votes
0 answers
27 views

After creating a Profile with run command java -jar target/fractals-1.0-SNAPSHOT.jar -Dserver.port=9090 -Xmx512m system gives: Error: Could not find or load main class com.fractals.sierpinski....
Cristian's user avatar
0 votes
0 answers
43 views

I have an (android studio) garden app that uses multiple image/video views that sometimes change depending on the data. For example if the pressure is low the sky changes to a rainy day(if high it is ...
Isa's user avatar
  • 23
Advice
0 votes
0 replies
52 views

Im posting here because cant get a working example of oauth2 client implementation in spring boot 3.5.7 This is my first time ever implementing this type of authentication and cant manage to make it ...
FakiB's user avatar
  • 23
0 votes
0 answers
51 views

I am trying to build an app using Spring plugin without Dockerfile using docker compose running in Ubuntu. Here is my docker-compose.yml: services: app: image: 'docker.io/my_appName/api:latest' ...
vinx's user avatar
  • 89
0 votes
3 answers
102 views

I would like to create a WAR package with maven, that can be deployed under Tomcat (9 or above) and also can be executed on the command line (= CLI). I already realised to make a package, that could ...
deemon's user avatar
  • 133
0 votes
0 answers
54 views

I am using Mockito 5.20.0 to mock a static method, but the mock is not correctly closing / the mocked behavior is leaking outside of the tests it is intended to apply to. This is only a problem if ...
PunDefeated's user avatar
Best practices
0 votes
3 replies
54 views

In a rather big application there is the need to connect to various https://... hosts (web services, rest services, html scraping etc). Quite a few of the hosts suffers from various ssl problems (self ...
riskop's user avatar
  • 1,839
-2 votes
1 answer
82 views

I have implemented a class User that represents a User (so far either a Student or a Teacher). What they have in common is that they both have IDs, and some information about the user (this is stored ...
Alex's user avatar
  • 9
0 votes
0 answers
50 views

I've been trying to connect my spring boot service to Google cloud Postgres instance but facing an issue. I'm migrating a service from golang, that's using a connector to communicate with the database,...
Oussama Ben Ghorbel's user avatar
Advice
0 votes
2 replies
59 views

I want to map a DB-table into a Java collection object. Important for me is a numerical index IDX and some other data, e.g. a STR. IDX STR 1 Max 2 Sam 4 Tom 7 ...
chris01's user avatar
  • 12.7k
0 votes
0 answers
65 views

I have a Spring Boot application running in a container. I configured AWS Parameter Store integration using: /application/env/version/1.0/SPRING_CONFIG_IMPORT = aws:parameterstore:/application/env/...
Aquaman's user avatar
  • 43
0 votes
1 answer
42 views

I have a JPro-Maven application that i run with "clean install jpro:run". I want to run-deploy same app on Heroku without too many configs or to do things perfect. I use now heroku-maven-...
Cristian's user avatar
4 votes
1 answer
102 views

I have to run x asynchronous threads , which can last several minutes each. They ALL have to terminate properly without exceptions. If one fails I have to stop them all immediately and not wait ...
MaxSan's user avatar
  • 51
-4 votes
0 answers
47 views

I'm having two loans table. one is for internal other one is for external. Both having similar columns. I don't want to disturb one for other so i have created 2. Problem is both has to be sync. ...
Hari  Prakash's user avatar
1 vote
1 answer
78 views

I'm using Apache PDFBox to create a PDF with form fields and embed a custom TrueType font (FreeSans.ttf) with subsetting enabled. However, when I set a value in the text field, it displays gibberish ...
Kiran Kandel's user avatar
0 votes
0 answers
76 views

Input {     "email" : "[email protected]" },{     "email" : "[email protected]" },{     "email" : "[email protected]" },{     "email" : "kot@ma....
Raju Kumar Shah's user avatar
0 votes
0 answers
38 views

I'm new into JADE and I got a question about the usage of block and restart My testing code looks something like this try { destination = new ContainerID("Main-Container", null); ...
Damián Bicocchi's user avatar
0 votes
0 answers
77 views

I have a setup where there is a linear layout that acts like a header and below the linear layout there is a recycle view. And what happens is that when the you scroll up and down the linear layout ...
redoc01's user avatar
  • 2,527
0 votes
1 answer
104 views

I'm migrating from Spring Boot 2.7 to Spring Boot 3.3.13. This means that I'm migrating even from Hibernate 5 to Hibernate 6. I'm having an annoying problem when I start my Spring Application about ...
Removed's user avatar
1 vote
1 answer
104 views

I think I understand the difference between AverageTime and Throughput. Let's say we have a method with the following annotations: @Benchmark @Fork(value = 1, warmups = 0) @Measurement(iterations = 1, ...
Stanley Wintergreen's user avatar
0 votes
1 answer
46 views

when capturing the layout to a Bitmap, the non-RecyclerView parts of my layout appear correctly, but the RecyclerView content is missing, How can I correctly convert a layout containing a RecyclerView ...
Sathishkumar G's user avatar
1 vote
1 answer
75 views

I have a service method that performs the following operations in sequence: Calls a read method annotated with a custom read-only transaction annotation (equivalent to @Transactional(readOnly = true))...
Rorschach's user avatar
-3 votes
1 answer
145 views

Issue: Flink application throws Thread 'jobmanager-io-thread-25' produced an uncaught exception. java.lang.OutOfMemoryError: Direct buffer memory and terminates after running for 2-3 days. No matter ...
Strange's user avatar
  • 1,514
0 votes
1 answer
77 views

I simulated a scenario in Java that leads to severe glibc memory fragmentation. Step one: simulate a multithreaded environment with 600 threads. Step two: every second, start two new threads that ...
Forever's user avatar
  • 41
1 vote
1 answer
74 views

During performance test we got some error from Azure Storage saying that com.azure.storage.blob.models.BlobStorageException: Status code 409, "BlobAlreadyExistsThe specified blob already exists. ...
Viktor's user avatar
  • 1,519
1 vote
1 answer
80 views

In AWS SDK v1, we could use the getBucketName() method from S3ObjectSummary to retrieve the bucket name. However, in AWS SDK v2, the S3Object class doesn’t seem to provide a similar method. How can I ...
Karthika 's user avatar
3 votes
0 answers
55 views

Title: Hibernate OptimisticLockException in Java 21 – works fine in Java 17 Body: I recently upgraded my project from Java 17 → Java 21, and one of my Hibernate test cases started failing with this ...
Jashwanth Sai's user avatar
0 votes
1 answer
43 views

I have a simple report that displays fields from database. I can preview the report successfully from Jasper, but when it is called from Java , i'm getting exception. I'm using jasper 7.0.3. Failed ...
Sindhu Malaiyandi's user avatar
-1 votes
0 answers
107 views

Created a JavaFX app using Java 21 and copied this tutorial to build my project https://www.youtube.com/watch?v=udigo_qSp_k I then created my project, and everything ran fine in an IDE. When trying to ...
Aadi's user avatar
  • 5
0 votes
0 answers
63 views

I have a problem with sending multipart/form-data requests from my Java service (using WebClient but same history with RestTemplate) to Flask service. It seems like a sent body is just empty as I get ...
Ania Fijałkowska's user avatar
Best practices
0 votes
4 replies
77 views

i'm in need of a data container for several data types and fail to write some omnipotent :-) converter func. Maybe my idea is crab, in this case please give me a hint what concept to use. My current ...
Synopsis's user avatar
  • 364
5 votes
0 answers
76 views

The contract for Types#directSupertypes(TypeMirror) says that it will return "the direct supertypes of a type". It also references section 4.10 of the Java Language Specification. The set of ...
Laird Nelson's user avatar
  • 16.5k
Advice
0 votes
2 replies
46 views

We have some expensive REST services implemented in Helidon MP 4 that often take one minute until they are finished and the response is returned. It happens quite often that the client disconnects ...
Dr. Hans-Peter Störr's user avatar
Advice
0 votes
3 replies
100 views

I have an List of Objects that implements the Comparable Interface that I want to sort. I do not want the original List returned sorted, nor do I want an new List returned in sorted order. What I ...
bauerjlb's user avatar
Best practices
1 vote
2 replies
80 views

What's the best practice, preferably backed by a publicly available guideline issued by a tech company or a standards organization, when it comes to the order of method declarations in a Java source ...
Sergey Zolotarev's user avatar
Advice
5 votes
2 replies
164 views

VMware’s pyVmomi is the velvet-rope VIP pass to vSphere: whisper pip install pyvmomi, and the data center parts like the Red Sea. It’s a universal remote with actual buttons, not stickers. Java, ...
MD TAHMID HOSSAIN's user avatar
Best practices
1 vote
5 replies
119 views

Given an input string, I want to generate a "random" number between 0 and 1. However given the same input string, the returned value should stay the same. I tried something like: Random ...
Nathan H's user avatar
  • 49.7k
0 votes
2 answers
109 views

How can I write my log messages to database in my quarkus application? I tried to create a ExtHandler like this: package org.myorg; import io.agroal.api.AgroalDataSource; import jakarta.enterprise....
user31855812's user avatar
Advice
0 votes
5 replies
103 views

I'm new to injection frameworks. And my question is a contradiction in itself, but - hypothetically - is it possible to have CDI inject exactly 2 different instances of the same class throughout my ...
numberfourteen's user avatar
2 votes
0 answers
55 views

I'm trying to log Spring AI conversations in JSON format, similar to how SimpleLoggerAdvisor does it. However, when I set a breakpoint in this method using IntelliJ IDEA, I noticed that the frontend ...
Mo Ye's user avatar
  • 21
Best practices
0 votes
4 replies
94 views

I have to implement an Iterator<E> that needs to internally iterate through multiple private iterators at different levels. For example, an Iterator<A>, an Iterator<B>, and an ...
Matthew McPeak's user avatar
0 votes
0 answers
41 views

Java 21 and Wildfly 37.0.0: Seeing this weird thing where I'm creating a new composite component, but the field passed into it is null when residing inside a <ui:include> within another ...
Greg Noe's user avatar
  • 1,166
5 votes
1 answer
85 views

My directory looks like this. I am just outside of the blah folder. $ tree.com //F Folder PATH listing for volume Acer Volume serial number is 127C-AD6A C:. └───blah └───src └───main ...
davidalayachew's user avatar

1
3 4
5
6 7
38366