Category "java"

Use DBUnit in Spring without defined entities via "nativequery"

I am trying to use DBunit while testing a Spring controller. The tests fail to initialize because my dataset contains tables/columns which are not defined by an

System of linear equations Thomas algorithm Java

I have adapted the Thomas Algorithm for solving the tridiagonal matrix problem i.e. finding the value of the vector T in the equation AT = b where A and b are k

Mimicking compile time interfaces in python

Summary This question first uses Java examples to demonstrate what I am trying to achieve, then shows Python equivalents where I attempt to replicate the compil

UnmarshallerImpl finalize() method leads to memory leak

I'm using webServiceTemplate in my multithread Spring app. There are my jaxb dependencies: compile('javax.xml.bind:jaxb-api:2.3.0') compile('org.glassfish.jaxb:

Adding Javalin dependencies

I'm trying to use Javalin in my project and I can't seem to understand how to add the needed dependencies in order to work with Javalin without compliation erro

How Do You Make an Object From an Inheritance Class in Java?

EDITED: Looks a little cleaner now, reflects where I currently am and what I'm trying to accomplish, and shows the new issue I'm working on (which has a comment

how can I push notifications using data already built in SQLite?

I'm currently developing a notification type Android app, how can I push notifications using data already built in SQLite? Data table fields: [notification titl

Java multiplication (in the type PrintStream is not applicable for the arguments (String, int)) [closed]

Table of a any number getting this error - on System.out.println(number+" x "+i+" = ",+number*i); (in the type PrintStream is not applicable f

Unique comparable points at Java TreeSet

Having a very simple example of Java code: import java.util.*; class Point implements Comparable<Point>{ float x, y; Point(float x_, float y

How to add classpath in new version of Android Studio

I updated my android studio version to bumblebee version. Now I want add navigation component to my project. I want add classpath to gradle, but this file gradl

Stream, return value of characters that didn't pass the filter

I would like to count the characters that didn't pass the filter, and return this value too. How can i do that? My exc: Within class LambdasStreamExercise, impl

Flink Avro Error Expecting type to be a PojoTypeInfo

I'm trying to convert a HashMap<String, Object> to an Avro record. I get this runtime exception when I do a DataStream<AvroRecord> dsRpvSchema = fil

Android studio SQLite update ID's after deleting first row from table

i'm using SQLite to store data and if i delete the last row, ID is 4 and after that add a new row and the ID is 5 and it should be 4. And when trying to view th

java.lang.IllegalArgumentException: Multi-value reactive types not supported in view resolution: reactor.core.publisher.Flux<MyPojo>

Small question regarding Java + SpringBoot Webflux please. I have a small handler returning a Flux<MyPojo> If I build a controller as such (please note th

EDI to XML Huge file conversions

I am converting an EDI file to XML. However my input file which happens to also be in BIF is approximately 100Mb is giving me a JAVA out of memory error. I trie

Is there a way to return collection instead of entity in @Repository's @Query

I have a query: @Query( value = "select name, age, now() from received.scheme ;", nativeQuery = true ) public {???} selectData() I cannot create or r

file from one node to another node?

I would like to add a database to it so that the information is stored.

Java Swing - How can I make a frame "mandatory to interact with"?

I'm making a game in Java Swing. Every time the player levels up I display a new frame on top of the one containing the gameplay which has some options on what

Remove item from Nested list Java Stream

I'll appreciate some help with this please. Assuming I have "bookingId": 4, "flights": [ { ... "fl

How to get group and group attributes in Keycloak

I am using Spring Boot, Bitnami/Keycloak:latest, java 11. I want to get the group and group attributes before the request reaches the controller because I need