Category "java"

Use WebSphere MQ as the messaging layer for Springboot applications

I need to use WebSphere MQ as the messaging layer for my Springboot apps. Using RabbitMQ, Kafka or activeMQ is straight forward with Springboot and there are to

How to do HtmlPage refresh using HTMLUNIT Java?

I am facing an issue while refreshing the page. I am using HTMLUNIT.I am using WebClient and HTMLPAge to access a resource. com.gargoylesoftware.htmlunit.WebCl

Using @TestConfiguration doesn't work as Context for @SpringBootTest

I've written an integration test that uses @SpringBootTest annotation. Since my app has many beans, I want to load in the integration test only the beans that a

Maven svn: E215004: Authentication failed and interactive prompting is disabled; see the --force-interactive option

When I try to do a mvn release: perform, I get this error [ERROR] Provider message: [ERROR] The svn command failed. [ERROR] Command output: [ERROR] svn: E2150

onDrawerClosed and onDrawerOpened not being called

I am playing with the DrawerListener , and unfortunately the official documentation is not quite detailed, not to say there aren't any examples given. All I w

Possibly consider using a shorter maxLifetime value - hikari connection pool spring boot

After starting my SpringBoot application, getting an exception on few minutes of the server startup. Did not use any HikariPool Configuration externally, Spring

Failed to convert from type [java.lang.Object[]] to type

I have spring web app (JPA/Hibernate + MySQL). I have two DAO classes. CustomerDAO @Entity @Table(name = "customers") public class Customer { @Id @Column

POI - ZIP entry size is too large

I use JXLS to create my woorkbook. JXLS uses POI underneath. To create a workbook JXLS either need a File or an input stream. With file object I get my desired

Switching 2 methods parameter(different type) to use overloading

I'm a High school student, I studied a little bit of Java by myself. My teacher asked if you can write two methods with switched but same parameters. For exampl

How to map JSON field names to different object field names?

What is the equiv way in Jackson json annotation for the following jax-b annotations? I need to produce json rather than xml and need to know the conventional

How to set multiple attributes for calender object at once?

This is my existing code snippet: Calendar cal = Calendar.getInstance(); cal.set(Calendar.HOUR_OF_DAY, 0); cal.set(Calendar.MINUTE, 0); cal.set(Calendar.S

Spring cache and Spring data redis

Spring cache + Spring redis: Spring provides a caching abstraction package spring-boot-starter-cache which basically provides method level annotations to cache

Get emoji flag by country code

There is a list of countries codes, I need to attach emoji flag to each one. Is there a way to extract unicode from it or find emoji for country code? This np

How can i call the Add() function?

i have been trying to make an easy calculator import java.util.Scanner; public class Math { static Scanner input = new Scanner(System.in);

Dependency injection from Quarkus (java)

Colleagues, hello! Is is possible to inject beans inside of class which is created via 'new' operator? For example: public class TestClass implements Callback {

Maven Could not resolve dependencies (Return code is: 409 , ReasonPhrase:Conflict)

Failed to execute goal on project lcms.web: Could not resolve dependencies for project lcms:lcms.web:war:0.0.1-SNAPSHOT: Failed to collect depende

Authentication in Jersey [closed]

I want to implement authentication for my Jersey0based server/client REST but I'm not sure how exactly to lay out the code. Basically for ev

Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. with FF version 26.0 and selenium standalone jar 2.39

I am trying to connect to selenium 2.30 with FF version 26.0 installed in my AWS unix machine but I am getting below error when I start both my client which acc

Failed to load or instantiate TagExtraInfo class: org.apache.struts.taglib.bean.CookieTei

I am trying to build struts 1 web project using maven in eclipse. I am getting the following error: My pom.xml is below: <project xmlns="http://maven.apa

Given sorted Array, Returns index i if array A contains an element A[i] such that A[i] = i (recursive and divide and conquer)

So i have homework to make a recursive method that uses a divide and conquer algorithm to search a sorted array and check if A[i] == i (if value matches current