Questions tagged as 'java'

2
answers

Problems with JARs

I'm running a Spring application that uses Maven. All dependencies are in the pom.xml file or the JARs are in my% repository% local. Every time I try to run the application the following messages appear: The Class-Path manifest attribut...
asked by 23.02.2018 / 15:41
2
answers

'javax.persistence.RollbackException' received while invoking action list '# {}

I inform the values on the page, but the values are not persisted in the bank. it is as if my page did not send the values to the controlling classes. Yes the values are reported however, the error is when the values are persisted. I do not know...
asked by 23.02.2018 / 19:02
2
answers

Values do not serialize on return in REST with Jersey

Good morning everyone, I'm new here and I'm new to Java too and I'm having a problem with the serialization of an object and I do not know what else to do. I'm giving, at least trying to maintain a code here in the company, I have a class bel...
asked by 23.02.2018 / 14:20
1
answer

Float to string conversion - how to display two or more decimal places?

I have the following code, which returns values of type float . How can I make the result appear with two or more decimal places? private void btnDividirActionPerformed(java.awt.event.ActionEvent evt) {...
asked by 17.02.2018 / 17:15
3
answers

How to limit a user to only accessing their own data? [closed]

I'm developing a task list application for study, however, all users access all tasks. I wonder if anyone has implemented something like Spring Security and how they did it.     
asked by 07.03.2018 / 15:34
1
answer

Sending data via sockets ():: Software caused connection abort: socket write error

I have a client server program that is working when I request the communication, but when the sending of data starts the program generates the following error: Estabelecar conexão....... Conexão estabelecida....... Enviar mensagem...... Mensa...
asked by 08.03.2018 / 17:07
2
answers

POO JAVA - Doubt Exercise

Well first follow below the exercise:    Create a class named Date that includes three pieces of information as instance variables:   a mês (tipo int) , a dia (tipo int) and a ano (tipo int) .       Provide a method...
asked by 07.03.2018 / 18:12
0
answers

Problem calling Class Activitity

I have a class I want to call another class by clicking on one of the snippets, but it is not responding when calling the other activity gives an error in the app and application stops working. I have the following classes the first where is the...
asked by 15.02.2018 / 13:06
0
answers

How to make a Gradient Map (2 colors) in an Image?

I need a solution to turn the color of an image into black and white. There are 3 ways to do this, using grayscale that technically throws white to gray, causing the saturation to stand -100 and through Gradient Map (2 colors) that filters the i...
asked by 12.02.2018 / 06:38
0
answers

JBoss Forge x Spring Boot

What's the difference between JBoss Forge and Spring Boot? When to use one or the other? Is there a "TomCat Forge" for example? Or are things different?     
asked by 21.03.2018 / 03:28