Category "java"

How do I configure beans for a static wsdl, which is importing a root xsd of a hierarchical structure?

I am implementing soap web services in a Spring environment. The xsd and wsdl definitions come from an external company, and I've implemented the endpoints alre

Java How to Normalise a URL and Remove Fragment

How to normalise a URL in Java to remove the fragment. I.e. from https://www.website.com#something to https://www.website.com This is possible with the URL.Nor

How to store List of Elements which are present in multiple Page?

There is a button called "Responses" total number of button is 100 which are store in 2 different webpages, from 1st page to 2nd page navigation button called "

How to reduce my java/gradle docker image size?

I have a Docker file like the following: FROM openjdk:8 ADD . /usr/share/app-name-tmp WORKDIR /usr/share/app-name-tmp RUN ./gradlew build \ mv ./build/l

reversing an integer in java without a loop

This is an homework problem Is there a way tor reverse a number in Java without using any loops? The only solution I can think of is reversing it using String

How to Find Prime Number in Java?

Hello I have java project that user need to enter int = number and find prime number. Problem: When I Enter 10 Does't Print Any Thing. public class Prime_Numbe

safardriver closes automatically before driver.close() is called in @Aftermethod

I'm running below test scripts in safari browser version 5.1.7 on windows 7. After running @test method I'm calling driver.quit() in @aftermethod. But safari b

Logback cannot find a custom configuration file (FileNotFoundException)

I can't force logback to use my custom configuration file because it doesn't see it. Here is my project structure: src --main ----java ----resources ------log

Java: Print a unique character in a string

I'm writing a program that will print the unique character in a string (entered through a scanner). I've created a method that tries to accomplish this but I ke

Inject application properties without Spring

I would like a simple, preferably annotation-based way to inject external properties into a java program, without using the spring framework (org.springframewor

How i can receive variable from another thread in Jmeter

in the first thread, I received JSON (format - {"id":6054,"name":"Jmeter created chat","description":"jmeter created test"}) I want to use it in the second thre

Creating Pagination in Spring Data JPA

I am trying to implement pagination feature in Spring Data JPA. I am referring this Blog My Controller contains following code : @RequestMapping(value="/orga

Read a set of lines from a file using BufferedReader

I have one large CSV file of around 1.6 GB and I am trying to read that file and create JSON array of these lines and send it to other consumables processes. I

Java Spring-boot caused by: org.springframework.data.mapping.PropertyReferenceException: No property id found for type

I can't understand where is the problem Repository class: @Repository public interface PhotoRepository extends JpaRepository<Photo, UUID> { Page<Phot

Spring-Boot GraphQL QueryResolver is not called

When I call a query in graphiQL i get the following response { "errors": [ { "message": "The field at path '/customers' was declared as a non null t

Allowing microphone access(permission) in WebView Android Studio

send audio is not working can you please help I would appreciate if you show me where to write the codes. send audio is not working can you please help I would

How to use spark with large decimal numbers?

My database has numeric value, which is up to 256-bit unsigned integer. However, spark's decimalType has a limit of Decimal(38,18). When I try to do calculatio

Intellij "cannot resolve symbol" after installing spring boot

I've recently installed the plugin "spring boot assistant" into my Intellij. When I was trying to run an old java file that I've completed before, a lot of the

Connecting to as400 JDBC on Play Framework

I'm having issues making a connection to an AS400 database inside of Play!. My application.conf looks like: db.default.driver="com.ibm.as400.access.AS400JDBCD

How to compare two instants in Java?

I want comparison two Instants to see if equals both or greater than, but i can’t. i dont know. how i can compare instants? private Instant expiration;