Questions tagged as 'java'

1
answer

Adapt txt file reader

I was using a manual method to grab a txt file, where the user typed the file name and extension and pressed the button, now they replace it with a code that opens a search box to choose the file in hd. JFileChooser fileChooser = new JFileChoo...
asked by 04.10.2017 / 17:58
1
answer

NullPointerException in Java web [closed]

I'm having a problem in a JSP that should insert a project into my work returning me as an error, this is almost identical to an exercise I did earlier, so I do not understand the reason for the error. Error: org.apache.jasper.JasperExcepti...
asked by 04.10.2017 / 21:00
1
answer

Checks whether a class has an @interface

I have the class below as an example: package br.com.nomeMarca.testes; import br.com.nomeMarca.cidog.interfaces.*; import javafx.beans.property.*; import java.io.*; import java.math.*; import java.time.*; @Table public class ClientePO imple...
asked by 17.10.2017 / 19:06
1
answer

Configure orphanRemoval = true in Generate Entities of Table - JPA Tools - Eclipse

I'm having a problem every time I need to use the Generate Entities of Table from JPA Tools (use Eclipse Neon.3). I generate the entities with the Generate Entities of Table command from JPA Tools. In the code of a class in the annotation of a r...
asked by 01.10.2017 / 05:16
1
answer

Simplify java buttons Change + Save

I have an application with 6 buttons on each screen, save, change, new, delete, exit, cancel. I would like help to put together two save and change buttons in one, to clean my screen a bit. Make a single button that does both save and chan...
asked by 11.10.2017 / 12:17
1
answer

JSON Data format

Hello, I have a webservice that needs to fetch some data in the database and return a json object and I'm having problems with the date. here is the object import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.dat...
asked by 10.10.2017 / 22:11
1
answer

Spring-boot web security, I can not tell if you are authenticating or not [closed]

I'm trying to implement spring-boot web security on my webApp, but when I enter login and password, it's simply reloading the page, and I can not understand if it's authentication failure, or if it redirects to another page it does not is correc...
asked by 17.11.2017 / 13:11
1
answer

Database Test with Spring Boot

Personally I have an error, when I run my application with the profile test, Spring Boot does not create the same database in the local profile. Any suggestion? Here's my application-local.properties file: # Hibernate logging.level.org.hibe...
asked by 17.11.2017 / 15:54
1
answer

How to convert a byte array to a bitmap image?

Hello, I am trying to return an ImageView stored in the database which is saved as an array of bytes in a BLOB field, what would be the alternatives for this?     
asked by 18.11.2017 / 20:47
1
answer

Android WebService Error while using Android 4.2

Hello, I'm developing a project where I need to get and send values to a server. I did everything and it worked perfectly in version 7.0 of the android, but when going to 4.2, it starts giving error. I'm using an Asynctask to make the request...
asked by 19.11.2017 / 00:01