Questions tagged as 'java'

1
answer

Encrypting passwords in web application

I am developing a web application in the play framework 1.4 and implemented the password encryption using CRYPTO, but it is not encrypting and consequently decrypting, where am I wrong? In the Employees class, when registering a new user, the...
asked by 10.07.2017 / 15:24
1
answer

Error reading if file. arff exists or not

I'm developing a JAVA robot along with the Robocode framework and WEKA. Whenever I try to check if the ".arff" file exists, it always gives me the same error.    Round 1 initializing ..       Let the games begin!       Preventing Interative...
asked by 09.07.2017 / 21:19
1
answer

How to create a Chronometer in a notification?

I have the following method below: public NotificationCompat.Builder createNotification(Context context) { Intent intent = new Intent(this, MapsActivity.class); PendingIntent pIntent = PendingIntent.getActivity(this, (int) System.curre...
asked by 12.06.2017 / 23:53
1
answer

Problem with Spring Security configuration

I'm having trouble with the following scenario: I have two projects, where one is the resource project and the other project is the authentication server, both projects were built with spring boot. The project with the application server i...
asked by 14.06.2017 / 14:47
2
answers

Paging with spring data

I have a list of clients per vendor and I'm trying to create a paging to show 10 and 10 clients on my modal in PHP. If anyone can help me thank you, because I'm still not good at spring data. Below is my repository: import java.util.List;...
asked by 12.07.2017 / 14:36
1
answer

Deploy to heroku after reinstalling Ubuntu

Good afternoon! I needed to reinstall Ubuntu on my machine, and it was because of it that I was deploying to the heroku. But now that I've reinstalled everything I can no longer deploy. I cloned the git project and managed to push the remote...
asked by 11.07.2017 / 22:14
1
answer

Doubt regarding dispose () in JFrame

I'm trying to check the login screen to see if the configuration file where the access information is already set exists. If it does not exist, it was supposed to give dispose on the login screen and open the setup. For some reason,...
asked by 12.07.2017 / 17:39
1
answer

Null in PrimeFaces component UploadFile

I'm having trouble retrieving this file, file , in my bean. .xhtml <h:form id="form" enctype="multipart/form-data"> <p:fileUpload value="#{bean.file}" skinSimple="true" mode="simple" /> <p:comma...
asked by 28.06.2017 / 21:54
1
answer

SQLITE login screen

I'm trying to perform user verification and login while accessing the system. I am using the following codes: public int login(String username,String password) { String[] selectionArgs = new String[]{username, password}; tr...
asked by 23.06.2017 / 19:03
1
answer

Exchange information with fragments

I have a CRUD to add users but I'm having trouble implementing the edit. The user clicking edit wanted the edittext to be loaded already filled in. For this, I tried to implement something like: ImageView editarBt = (ImageView) view.findVie...
asked by 23.06.2017 / 16:22