Java Community | Help. Code. Learn.

JCH

Java Community | Help. Code. Learn.

With more than 20,000 members, join one of the biggest and most active Java Communities on Discord! ☕

Join

java-help

❓︱qotw-answers

Thymeleaf / Loading image from DTO

Hello guys, I'm trying to make a profile manager for any user that is successfully identified, I can render every user datas in my template except for my image, in my inspector it says the image can't load The image comes from my DTO and it's persisted in my database and I have implemented my getters and setters properly but I still don't know why it doesn't work. In my browser it obviously shows Image de profil ...

how to fix my WSDL file for SOAP service?

hey guys. can smb help me out with WSDL file? im working on a SOAP webservice, and as i understand, there are some issues with my WSDL file. this is my file: https://pastecode.io/s/c78xizki and i have these questions 1. why theres wsdl: before message, part or any other tag? 2. why there are so many xmlnss? i.e. xmlns:soap, xmlns:s, xmlns:wsdl, etc? i feel that theres too much duplication 3. what does documentation tag even mean? how does it even work? google says The documentation element is used to enter text comments in a schema. but i dont have any schema tags??? 4. what to us for soapAction attribute? what value should it have? ...

i keep getting error "Attribute value must be constant". can smb help me out?

hey guys. i have this: ```java @Endpoint public class MyEndpoint { ...

JWT Authentication with SpringBoot

So it gives me a successful token, but when I use it for authorized pages, I get a 403, Access denied on the backend

Weird class cast behavior

So I have this code: ```java class SearcherAllocator extends SearcherBase.Pointer_Alloc{ @Override public Pointer call(){...

Funny thing happening in JavaFX

i have this code... its ok, but for some reason, everytime i loop through the copy of array, one element from par is removed, any idea why?...
No description

Publishing to Maven Central Repository

Anybody here already released an open source project in Maven Central repository? I've trying to release my open source project (https://github.com/psycotrompus/sql-stringbuilder-dsl) to help generate SQL statements using a custom DSL. I think I've already configured the project's pom.xml file according to their recommendations, but I'm still getting 401 response when uploading the artifacts....

Repositioning objects to stay in the same position relative to each other when rotated.

I have a grid of cubes, and currently when the rotation of a cube is requested it adds it with the rotation of it's grid. While this does keep the rotation of all objects in the grid synced, it does not reposition them to upkeep the illusion of them being one solid object. I'd imagine the solution would be as simple as also modifying the position of each cube based on the grid rotation, but I need some help figuring out what mathematical calculation would be needed....
No description

how do I read source code, and is it possible to learn java from reading source code?

I have some ideas for porting mods, and I don't exactly have a firm grasp on java (yet) and wanted to ask for some basic guidelines on how to read source code

how to create SOAP webservice?

hey guys. i need to code soap webservice. i was wondering if you could help me out with a couple of questions? 1. i have these dependencies in my gradle file. do ineed smth more? ``` dependencies { xsd2java "com.sun.xml.bind:jaxb-xjc:2.2.6"...

java 17 obfuscator

please advise java 17 obfuscator

how to call my application that is running on a server?

hey guys. i have a server dev.burokelis.lt, and i have java spring app deployed on it. its running fine, but i dont understand how to call its endpoints. when i was developing on my computer, in postman i used localhost:8080/createPaymentInformation, now whem im trying to call my app thats on a server, i do dev.burokelis.lt:22/createPaymentInformation, but nothing happens in postman. can smb help me out?

chrome driver

im trying to set up a chrome driver all i have to do is put ( chrome-headless-shell-win64 ) into my systems path which i did but when i checked in my cmd prompt to see if it works this came up ( chrome-headless-shell' is not recognized as an internal or external command, operable program or batch file. )

How to make spring boot @Value fields inject the values from properties?

```java @ExtendWith(MockitoExtension.class) @TestPropertySource("classpath:application-test.properties") class AuthServiceTests { ...
No description

Drawing SVG paths in javafx css

any idea why is it still filled? it shouldnt be according to the rendered svg
No description

Exception Handling in Spring

Hey i am getting 500 response code instead of 404 even after handling the exception ```package com.ShelfSpace.ShelfSpace.exception; public class ResourceNotFoundException extends RuntimeException {...

RequestParam / User Not Found

Hello again guys, I'd like to render my data user on a template with the GET method. I made sure my page was created and my datas are persisted in my db. I tried to render my data through the email user as it's shown below and I want my URL to be like this : http://localhost:8080/[email protected] ( which works perfectly if I write this in my browser bar ) but when I want to access to my profile it return me a USer nto found, because Spring boot sees it as null...

Suggest kotlin/java backend framework

I tried ktor, but its documentation is... too difficult I didnt found how to set up cookies, auto documentation and stuff Or im just too dumb for it 😦...

Why/how is displayMap null

I have a class here and it seems like nothing in the constructor is running except the super() call. None of the prints run and when repaint is called it throws an error for displayMap being null. What is wrong?