Questions tagged as 'java'

1
answer

Problem with JSF during form validation

I have a problem with the animal registration form: Here's the part of the diagram involved in the form relationship: TheproblemisthatwhenIamregisteringananimal,Icangetbythename,age,genderandtypeofanimal(whichinthiscaseisfromanothertable)...
asked by 03.11.2017 / 00:26
1
answer

How do I show the logged-on user's Firebase ID?

I need to get the getUid of the connected user and set the id in an editText. I left below just to show what I want to do, because that way it does not work. How can I call a getUid connected in any part of the code and set it to EditText? pri...
asked by 09.11.2017 / 23:37
0
answers

Server connection pool for web application

I would like to know if it is possible to deploy a pool of connections on a server and have it deploy connections to java desktop applications, if possible I would like a targeting than to search to implement this using Java and MongoDB. Sce...
asked by 23.10.2017 / 19:21
0
answers

Adding boats dynamically to the board

I am developing an application using RMI that simulates the battle game. My code for now is dynamically generating the board and automatically positioning the ships on the board, my question is how do I choose where to add each type of vessel (d...
asked by 23.10.2017 / 21:41
1
answer

java.lang.IllegalArgumentException: attempt to create delete event with null entity

I have a simple Model class from Manufacturer with only the 'description' attribute. My database is populated and the save and edit method is working normally. But when I go away it generates the following error on the console: java.lang.Illeg...
asked by 24.10.2017 / 13:11
1
answer

Array list does not store data

//------------------------------------------ Classe diario (metodo localizar aluno)-------------------------------- package gerenciamento; import java.util.ArrayList; public final class Diario { String nomeDisciplina; int cargaHoraria;...
asked by 23.10.2017 / 03:17
1
answer

Date not accepted in Mysql database

I am developing a web application using the Spring Boot , I have my table in the database MySQL ready and working normally but not saving the date appears this error in the console. Field error in object 'tarefas' on field 'data': rejected...
asked by 23.10.2017 / 05:17
0
answers

Sending values to DB leaves application too slow

I have created a java program to capture the movement of a sensor and then send the data to a database, so that the movement is accessed by another machine in real time (or almost) from another location. the movement is captured perfectly, the d...
asked by 23.10.2017 / 00:57
1
answer

img not aparace using thymeleaf, spring boot (with maven)

The image I want to add is in the following directory: /src/main/resources/static/images/logo.png And the HTML tag looks like this: <img width="220px" height="70px" th:src="@{/static/images/logo.png}"/> However, I get the follow...
asked by 21.10.2017 / 01:37
0
answers

Prevent the user from cleaning App data (Android)

I have a native Android app and I need to prevent the user from doing manual cleanup ( Settings - > Applications - > - &> Clear Data ) already tried < android: allowClearUserData="false" AndroidManifest.xml Changed the button to "Man...
asked by 25.10.2017 / 22:29