Questions tagged as 'java'

1
answer

BasicNetwork.performRequest: Unexpected response code 500 for

I'm developing a mobile application that will consume services from my server, developed in the Play Framework. I already created the login service as below: public class Services extends Controller { public static void login(String login, St...
asked by 22.12.2017 / 13:51
1
answer

Treat response from rest service using volley

I'm developing an application in android studio where it consumes a service I created in the Play Framework. I am now learning how to create and consume services, and I am having difficulty responding when I log in to my application, regardless...
asked by 25.12.2017 / 15:32
1
answer

Error consuming service using volley

I'm developing an app in Android Studio where it consumes a service I created in the Play Framework. This is my route in the service: GET /Services/cadastrarPalheta/{matricula}/{data_instalacao}/{local}/{cod}/{estado}/{bairro}/{rua}/{comple...
asked by 26.12.2017 / 15:24
1
answer

Validate form

I'm developing a mobile application in android studio and I'm having a hard time implementing validation of the form's input fields. Can anyone explain why I can not validate? Form Class: public class FormPalhetasActivity extends Activit...
asked by 30.12.2017 / 18:22
1
answer

How to change the color of a button?

I'm doing some experiments to get a better understanding of Netbeans IDE and I had this doubt about the color of a button. By right-clicking on any jButton and selecting Properties, I set the background item to green, for example, but only...
asked by 31.12.2017 / 15:45
1
answer

Creating a Splash

I'm creating a splash but this splach is stopping my App, it works for a few seconds then automatically closes my App stops working and does not open anymore. public class Splash extends AppCompatActivity { private final int SPLASH_DISPLA...
asked by 19.01.2018 / 17:26
1
answer

Ionic Authentication

I would like some help, as I have been trying to figure out a way to do this for days, but I still can not quite understand how to do it. I have an ionic application, where access happens through a login that gives me an access token that exp...
asked by 19.01.2018 / 16:16
1
answer

Factory error using @Embeddable in JPA

I need to create a composite key on my system, after researching a little to find out that I should implement @Embeddable, until all right, I added the class in my system implementing the keys, but when I try to run the factory it indicates a pr...
asked by 11.01.2018 / 14:51
1
answer

Send login and password in JavaMail email

I'm developing a web application using jsp and servlet and I would like it when sending the email it passes an image and the login and password but the email only send the image and does not send the login and password. / p> Image with error...
asked by 11.01.2018 / 02:53
1
answer

A function rotate endlessly in the Servlet

I have a servlet application that constantly receives POST requests, I do data processing and processing normally in its proper Java classes, but one of my applications it should not be run when there is a request, but every time of defined time...
asked by 11.01.2018 / 06:08