Category "java"

Error on start of Spring Boot Application (Vaadin)

I tried to change port of Spring Boot application, activated Vaadin PRO, run in Eclipse/PowerShell, run in debug and without debug... I have node.js 12.16.1 (in

Hibernate NamedQuery UPDATE statement throws QuerySyntaxException

I encountered a very interesting issue. I want to create an UPDATE statement NamedQuery for my class (I know this is a bit hacky). The weird thing is if I use p

Antrl4 Listener callbacks populating Java list of classes

I am using Antlr4 v4.9.2 in Java mode. I am converting adaptation ascii text files to XML format. The parser is working great and do its job. Each element of th

Generate json request body using Lombok annotation

I tried multiple pattern , but still no success how can I create JSON Array object with nested JSON object similar like below { "deduction": [ { "id

error "class file has wrong version 55.0, should be 52.0" when building Alfresco

I Generated a project from the Maven Alfresco archetypes: mvn archetype:generate -Dfilter=org.alfresco: when I try to build it fails: [INFO] ---------------

Cytoscape: Error 83, no JRE found Windows 10

We are a biotech company from which some users use Cytoscape. We normally "rollout" or "deploy" software silently with PDQ Deploy. Cytoscape has been working fo

Keep getting "Java error: cannot find symbol" when using input.getInt

I am trying to make a basic calculator but I keep getting this error message. I have looked on the internet but nothing seem to help me. I am not sure whether t

Reading from catalog in a batch application fails, jar:authorization not found

Background I am currently researching the HERE platform possibilities for my employer. I am under the "Premium Evaluation, Workspace plan". I am familiar with t

Unable to import JDA into Maven - IntelliJ IDEA

I need to import JDA dependency into my Maven (Java) project, yet IDEA doesn't seem to be able to import it for some reason. I did as following: inside the pom.

Right outer join with multiple where conditions

I'm having some issues returning any results from my SQL query. I'm pretty sure it's got something to do with the WHERE condition. I want only certain RULE_ID

GraphStream & Swing - Can't display my graph correctly

I'm a beginner with GraphStream and Swing, I would like to insert a Graph in a JPanel, but while trying I get the following display: Main Frame I added a graph.

Restarting Java procedure in Eclipse after editing

Somehow I broke Eclipse's Hotswap Bug Fixing feature where editing the Java code, Eclipse resets the currently executing line and allows you to continue debuggi

Schedule periodic local notification based on specific dates

I want to make a periodic worker to schedule notifications based on the total number of customer collection dates. I already did apart, but I'm facing a problem

Hystrix Dashboard keeps loading in Spring boot Microservices

Hystrix dashboard keeps loading as in below image,I have no idea why this is happening. Hystrix stream works fine as in below image, Cloud API Gateway Code Th

String anagram in Java

i am trying to create a program for string anagram that follows these conditions: method should allow only letters, white space, commas and dots in an anagram.

How to use Autowired in BeforeStep cucumber step definition

I'm getting NullPointerException when I use @Autowired in the @BeforeStep cucumber method in my step definition. What I'm doing wrong here? Please find my code

Excel Value to BigDecimal

Here's the problem: I am reading an Excel file that has both strings and numeric values. In my method I parse the respective fields into either BigDecimal or St

hasAnyRole() not working with Spring Security 5.4.6

I have changed my spring framework version from 4.1.4.RELEASE to 5.3.6 and spring security version from 3.2.5.RELEASE to 5.4.6. I'm facing problem when using &l

Is Javax.ImageIO supported by graalVM native-image?

I am testing graalVM native image limitations with multiple different java features. I wrote a little program that performs canny edge detection and it loads in

Why we use setAnchorView() with VideoView

I'm trying to understand working with Videos in android studio there's one problem, I didn't get why we use anchor method