We have an enterprise application running on Java 8. The deployment environment is built & updated through Bitbucket pipelines. I have a graphic showing the high-level architecture of the environment. We have two app servers running identical configurations apart from some application specific environment…
Tag: java
Exception while trying to invoke method, which invokes method from other class through object of said class
In a program I made, I have a class canteen and a meal of the day class. In my meal of the day class there are several methods which I wanna use in my other class, implementing them in that classes’ methods without any kind of inheritence. Therefore, I create objects of the meal of the day class so I
How can i change the Gradle Version in InteliJ?
I have the Error: “Found invalid Gradle JVM configuration” “JDK 17.0.1 isn´t compatible with gradle 7.1. Please fix JAVA_HOME enviroment variable” Im not sure why it says gradle 7.1. The gradle Version i have is 7.4.2. This version should work with JDK 17 Answer Take a look at the grad…
Cursor should only select cells with a different value
I want, that my cursor is moving to the next cell with different content and I want the cursor to skip over all cells that have a value that already existed. For example we have the column: Beer, Car, Car, House, Beer, Tree (in KEY_AREA) The cursor should select: Beer, Car, House, Tree and skip 1 Car and 1 Be…
Java streams average
I need to create two methods using streams. A method that returns an average score of each task. and a method that returns a task with the highest average score. I can only modify those 2 methods. Here is CourseResult class And methods that create CourseResult objects. Based on these methods I can calculate a…
How to update Sorting Algorithm Visualization?
I have been making a sorting algorithm visualizer in Java using Java Swing and AWT and coded insertion sort to see if it would be able to work. The algorithm works in the sense that when this program is run you can shuffle and sort the algorithm using insertion short but you don’t actually see the algor…
Android intent returning null when moving back and forth of activities
I have an app where a user can create/login an account, when the user logs in, I pass their valid email as an intent to the main/landing activity . I also have another activity for the user profile, from which I pass the intent from the landing activity (the user email). With the user email I created queries …
Unable to receive data out of api call with webclient
So I’m trying to get my head around the webclient, but I keep getting a nullpointerexception, though my test work fine and say that object is not null. I also see my console making connection to the api. But when I ask the value, I get null. Here are the two objects I use for it: and then here I
DuplicateMappingException contains physical column name referred to by multiple logical column names on adding passportId to the Student entity
This code is causing the following exception on the startup I’m using H2 in-memory database. Student entity: Passport entity: Question 1: What is the reason for org.hibernate.DuplicateMappingException? Question 2: Why does adding the following annotation to passportId in the Student entity resolve the i…
Resubmit Callable to executorService on exception
My situation I’m trying to craft a functionality which would execute n (where n >=0) requests to a given endpoint, but I do understand that sometimes that endpoint might not respond due to 500 error or other issue, so I want to repeat my requests to an endpoint (with a small interval in between [not …