First of all, this is my very first post here. Hello everyone! I am a beginner in Java/JavaFX. Currently I wrote some simple “game” to learn some basic stuff in game development, doing that just for fun right now. So far I get a player which moves to the left/right (movement is unrestricted, but n…
Spring boot HATEOAS integration issue
I have included hateoas dependency in my spring boot project but I am unable to run the project because of few exceptions that are being shown. I have tried cleaning the workspace, mvn clean install and also restarting the application but it’s not working. Is there something I am missing here? pom.xml E…
How to convert a PDF to a JSON/EXCEL/WORD file?
I need to get data from the pdf file with its header for further comparing with DB data I tried to use the pdfbox , google vision ocr , itext, but all libraries gave me a row without structure and headers. Example: DatenNumbernStatusn12122020n442334delivered I will trying convert pdf to excel/word and get dat…
Java 14 records and arrays
Given the following code: It seems, obviously, that array’s toString, equals methods are used (instead of static methods, Arrays::equals,Arrays::deepEquals or Array::toString). So I guess Java 14 Records (JEP 359) don’t work too well with arrays, the respective methods have to be generated with an…
Script for IBM Rhapsody made with Java and Spring autowiring not working
I developed a script for IBM Rhapsody using it’s API for java. The script is working fine when is run from my IDE. When I run the script from Rhapsody using the JAR and HEP file I get …
Migrate an existing app in playstore from java to kotlin
this is more a theoretical question. I have an app that is already in the playstore. This app has been working since the year 2017, so it has a lot of old libraries. The goal is to migrate it to kotlin. So, what’s more effective to achive this goal: Migrate file by file to kotlin Create a new project wi…
Discord JDA – Invalid Member List
I am creating a Discord bot and have encountered a strange problem. I need to go through each user on the server and perform a conditional action. But when receiving a list of all Members, it contains only me and the bot itself. If another person writes, then only me and the bot are still displayed. Answer I …
OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release
I’m starting a new Spring 5 project with Java 14. It compiled, but gave me a warning: Any ideas how to solve it? Answer It’s just a warning because JVM’s verifies are much faster then before. If you are really not willing to see that, you could just remove -Xverify:none and -noverify from yo…
Use multiple HttpSessionIdResolver with Spring
I want to use the HTTPSessionIdResolver for everything located under “/api**” and for everything else the standard CookieResolver. How is this possible, so that the two configurations use different resolvers? With my current approach everything uses X-AUTH. I tried to understand the implementation…
JSON parse error: Cannot deserialize value of type `java.time.LocalDateTime` from String
I am sending request to external service which has updatedDate property When I receive the response in my DTO I am trying to format the LocalDateTime property like this But I get error in Postman Answer There are milliseconds in the input string, so your format should be “yyyy-MM-dd’T’HH:mm:…