Java Expception after building project
Hello guys
I am fairly new in Java programming so please excuse me if this is some beginner mistake. I have a console based game that I want to build into a executable jar. The project consists of an App (Main) class and many further (abstract) classes and interfaces. Im using IntelliJ Idea Ultimate as a coding enviorment because I get that provided for free from my school and have to use it when doing school tasks.
I've gone through the building process and have a .jar file. When I try to execute the .jar, I get an error window. The title is: Java Virtual Machine Launcher and the message is: A Java Exception has occured.
Can someone help me?
Thanks in advance and i'm sorry for any spelling mistakes, english isn't my first language...
java variables need to have the same name like in SOAP request?
hi guys. i have soap service in java spring. i have this dto class:
```java
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"userid",...
Spring(Boot) Security preauthorize auth return 200 on "false" instead of 403
Hello! Hope this is the right section .I've a "problem" with spring boot and spring security.
In controllers i've the classic
@PreAuthorize("hasAnyAuthority(....)")
.
I would like to receive the error 403 (in order to redirect to the 403.ftlh in case of no authentication).
Just now instead if i open the page that does not pass the @PreAuthorize, returns the page with status 200, but blank, for because any api in the controlled is executed (correctly).
I tried to put in the security config an http.executionHandling() but it won't execute anyway....soap request give me 400 bad request
hi guys. i have soap service in java spring. i have this dto class:
```java
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"userid",...
Creating an object of an entire class?
I'm trying to write a program that can save an inpatient or an outpatient, I have my service classes and im trying to write my application class, and I'm trying to create an object of one of the service classes, but it requires i put in the arguments of the sections inside the service class of the same name. any advice on what do to? im trying to make an object of the whole class, so i can then save user inputs to the variables inside the class?
sorry if my question doesnt make sense, im learning java and clearly its not going too well😅...
ERROR 404 TOMCAT AND JAVA EE
Hello,
I am currently working on a Java EE project using Tomcat. Today, when I executed my project and started the Tomcat server, I encountered an error. I would greatly appreciate any assistance or guidance on resolving this issue.
Thank you for your help!...
500 Internal Error
The Students are updating but i am getting this error after clicking to update button . This are the both controller ``` @GetMapping("/edit")
public String getUpdateStudent(@RequestParam Long roll_no, @RequestParam Long bookId, Model model) {
log.info("Received roll_no: {}, bookId: {}", roll_no, bookId);
StudentDetailUpdate studentDetailUpdate = new StudentDetailUpdate();
model.addAttribute("roll_no", roll_no);...

Simple user input capitalisation issue
How can I get a user's input, compare it to a string, and ignore any capitalisation differences between the two strings? I know the input bit, just the capitalisation bit im not sure about.
What do you recommend for learning Spring / Spring Boot?
I am interested in learning backend development with Spring + Spring Boot, Java and PostgreSQL. What courses do you recommend? I have experince with Python and Django.
Convert boolean inside if statement
Hello, I am working on a program where I am using a particular logic for a flag, I am declaring a boolean variable, and then making an if statement that executes if the statement and then add value to an array, but I want to alternatively add values to my array. EG I have 1001 I want to add 1 in array1, 0 in both arrays, 0 in both arrays, 1 in array1. This is how I have written this in code. But the problem is that the boolean is always true, it doesn't get flase even after the if statement has executed. This is my code:
```
for(int i = 0; i < reversedBinaryValue.size(); i++)
{...
.length issue
Im not sure why .length cant convert this String array into an int in this void method.

Urgent help in a simple cybersecurity project
I am trying my level best to code this columnar cipher but the example my teacher gave is not matching or vise versa when decrypting can anyone help?
I'm rather worried of losing motivation...is there anything I can do for this?
I am finally trying to get to modding...I'm worried that in learning, I will lose motivation. I do want to do this, but I'm worried about just quitting
Help for revisiting Java
Hi everyone!👋
I hope you're all doing well. I’m Portuguese and I'm a student, and I'm currently revisiting Java. I studied it 2 years ago, but I feel like I've forgotten a lot since then, especially regarding Object-Oriented Programming concepts like classes, objects, inheritance, and polymorphism.
If anyone has any suggestions for resources or tutorials, I would really appreciate it! I’m eager to learn and improve, but I feel a bit lost right now. As you know, most articles are in English, so I don’t mind reading in English....
Java Devlopment Suggestion
Should i have to learn about testing as a java dev or should i have to cover my core knowledge like Orm , Spring boot , React etc and then start to learn about testing !