Category "java"

Can we embed Excel file in ppt through aspose slide java

Can we embed Excel file as a link in ppt through aspose slide java. Currently I have tried with Aspose slide , the object was embedded in the pptx file but whil

Jedis : Could not get a resource from the pool

Background Our application uses Jedis-2.2.1 and connects to Redis-2.6, here's how I get jedis resource : protected static JedisWrapper getRedisUserWrite(Stri

Error running Apache Camel

I'm going through the tutorial here: Apache Camel Report Incident Part 5 I've copied and pasted the code in the tutorial but am getting this error when I type

Converting from HSV (HSB in Java) to RGB without using java.awt.Color (disallowed on Google App Engine)

I figured I should post this question, even if I have already found a solution, as a Java implementation was not readily available when I searched for it. Usin

How to use Mockito with JUnit5

How can I use injection with Mockito and JUnit 5? In JUnit4 I can just use the @RunWith(MockitoJUnitRunner.class) Annotation. In JUnit5 is no @RunWith Annotati

Java: Zipinputstream to Zipoutputstream leads to "end-of-central-directory signature not found" Error

I try to copy a Zip from a Zipinputstream to a Zipoutputstream. I store the Zip as byte[] in a Oracle database. I use Zipinputstream to decompress the zip (la

Filter (search and replace) array of bytes in an InputStream

I have an InputStream which takes the html file as input parameter. I have to get the bytes from the input stream . I have a string: "XYZ". I'd like to convert

Should callers of an interface (need to) make assumptions about the underlying implementation?

I understand the benefit of Programming to an Interface and the benefit of using an Interface for the return type of a method: public List<Integer> getUs

how to override the equals() method when you have to compare 7 instance variables? [duplicate]

I am currently doing my programming assignment. But there is one step that i don't quite understand. There are 7 private instance variables an

Is this the right Kafka Consumer Config - under this Kafka setup?

My Kafka Producer is producing messages at the rate of about .. 350 mb per 30 seconds.. Kafka Setup: --> 1 Zookeeper instance --> 3 Kafka Brokers --&

how to use Service,ServiceLocator,portType,porttypeProxy and stub to create a java client

i have used axis web service client wizard + develop client slider for generating files as : Mage_Api_Model_Server_HandlerBindingStub Mage_Api_Model_Server_

Ignore fields from Java object dynamically while sending as JSON from Spring MVC

I have model class like this, for hibernate @Entity @Table(name = "user", catalog = "userdb") @JsonIgnoreProperties(ignoreUnknown = true) public class User imp

IntelliJ shows method parameter hints on usage - How to disable it

I am new to IntelliJ and recently updated to IntelliJ-2016.3. In the editor for Java code, it shows the method signature upon usage. How do I disable this featu

Does OkHttp support accepting self-signed SSL certs?

I'm working for a customer who has a server with self-signed SSL cert. I'm using Retrofit + CustomClient using wrapped OkHttp client: RestAdapter restAdapter

How to convert DB2 binary data to UTF-8 at query level

I am connected to IBM DB2 database with java but data is stored as binary format in database so when I fetch any value it comes as binary or hexdecimal format.

Loading images from firestore in image slider

I'm trying to load the images in an image slider from firestore. The image urls are there in firestore. I'm using the following library https://github.com/denzc

JSVGCanvas svg is blurry

I have pretty much copy pasted the code from http://people.apache.org/~clay/batik/svgcanvas.html but the svg that is outputing is blurry. I have used both a fon

How to change the Gradle version?

I would like to change the Gradle version to 3.5.1 according to the project version received from git using this eclipse. So I changed the editing path for the

IllegalArgumentException: At least one JPA metamodel must be present

while starting with spring rest I got following error as > org.springframework.beans.factory.BeanCreationException: Error > creating bean with name 'jpaM

Installing jdk17 on Mac with brew

I am trying to install jdk17 with brew, while also having java8, java11 and java16 installed. In order to install 8, 11 and 16 I ran: brew tap adoptopenjdk/open