Category "java"

Error when trying to use a PieChart (hellocharts) on an Activity

I'm trying to use the external library "hellocharts" in my project. I have linked the library to my project already, but when the activity that has the chart st

Heroku session unexpectedly dropped/created

I am running an application on Heroku. We have a staging site and a production site. We are attempting to move to a standard 0 tier database. I have successfull

Java Serialization/De-serialization giving null object references

I'm working on a group project and we've run into a problem with the serialization part of our software. We have the class protocol: import java.io.Seria

How to append to existing excel file using Java HSSF

I am still relatively new to Java and have cobbled together enough code that allows me to write my data out to a new excel file. However, I want it to write (a

How to install a tagged version (i.e. not a snapshot) of your project locally and not to the maven central?

So I have done mvn release:clean and mvn release:prepare. As a result I have a clean tag on my subversion with the latest version 1.3.3 of my artifact. Now I

Apache Flink + CEP - Detect same events

I'd like to detect events that share the same property. Suppose I have a simple case class: case class Record(name: String, value: Int) Suppose there is the

Converting text file to all uppercase letters

I have an assignment for class and I have to make a program that takes an existing file and converts all the letters to uppercase. Below is part of the code (sp

Solve Integer division in floating point context

When doing: double a = 1000000000 / FPS; It gives me the warning: Integer division in floating point context. How can I solve this?

Quarkus extension filter doesn't work when registers via AdditionalBeanBuildItem

I want to implement my custom filter in my application. TemplateOverrideFilter public class TemplateOverrideFilter implements ContainerRequestFilter { priva

Spring boot + thymeleaf in IntelliJ: cannot resolve vars

I'm writing a short web form application using spring boot and thymeleaf on IntelliJ, but it seems that in the html file, all fields in the model cannot be reso

Jira REST API Time Tracking Null

My below code is getting me a null pointer exception when I try to get time tracking for my issues , even if the issue have time tracking , I'm using this api:

Open JFrame from JDialog and it shows on top of JDialog

This is the scenario, My JFrame has a button it will open a JDialog when click it and it is a model dialog. JDialog has another button and i want to open anoth

How to change ip for ubuntu host in java [duplicate]

There is an ubuntu host with multiple ips. I want to make periodical change its ips in my java application. But I do not know how to do this.

add a serial number while performing iteration in thymeleaf

I have a senario in which i must perform iteration on a list and display result as a grid.Also include serial number in it. Now what I did for serial number is

What could be causing SMTPSenderFailedException: 501 5.1.7 Invalid address using java mail?

Unfortunately, this is at a customer site, so we can't debug. Apparently it's been verified that both the to and from emails are valid. They are apparently usin

How to create a new camera source in Java?

I am trying to create a new camera source or driver in java. There is a similar question based on python. What am trying to do is that I want a new camera sourc

How to display Arabic strings from RTL in PDF generated using itext 7 API?

I'm struggling with this problem for hours now but I can't find a way out, the problem is that: I wrote a program that generate a pdf file using itext version

Java ArrayList Copy Changing Original Value

I have copied an ArrayList as I want to keep original values of my source Arraylist. If I change first item of my source ArrayList, it automatically changes fir

Enable HTTP2 with Tomcat in Spring Boot

Tomcat 8.5, which will be the default in Spring Boot 1.4, supports HTTP/2. How can HTTP/2 be enabled in a Spring Boot application?

Print loop output horizontally?

Hey guys I have to write a program for class that asks me to produce a bar graph based on how many cars a salesperson sold for the month. An example is this: P