Questions tagged as 'java'

0
answers

HttpURLConnection with MySQL and Webservice

I'm trying to create a connection class to feed information into a MySQL database as follows: import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.net.HttpU...
asked by 05.10.2017 / 04:00
1
answer

Maven OWL API How to resolve dependency error

My question is about Maven. I'm working on a project that involves the OWL API library and after attempting to load an ontology the project returned an error that can be seen in the following image. RegardingthiserrorIfoundthe OWL API resolu...
asked by 13.10.2017 / 02:10
2
answers

How to set a background color and borders for my button besides the states pressed and not pressed on the button with?

I'd like my button to have a lower border plus it had the states of the sample button pressed, not pressed would be another color ... I'm trying to do all this in my drawable xml to set a background for my button. Here is the drawable xml:...
asked by 02.10.2017 / 02:14
2
answers

Query with result null Firebase

Hello everyone, I'm having a problem querying the firebase database. The bank is this: I'mtryingtodoasearchforalltherestaurantsthathavethenameIguatemi,untilthenaccordingtomydebug,I'mgettingtodoitgood.Theproblemisthatwhenthedataistaken,iti...
asked by 03.10.2017 / 15:20
1
answer

JFreechart with Dynamic values

I've been struggling to create an online graph that is dynamic, I've got some "progress" but now it gives me an error: Exception in thread "main" org.jfree.data.UnknownKeyException: Unrecognised columnKey: 10/17 . The idea of the chart is,...
asked by 09.10.2017 / 19:40
0
answers

Android notification buttons do not appear on the mobile device

I've always interacted with my Android application through the emulator, but recently I started testing everything I did with my phone. I created some notifications with buttons, and in the emulator they appear as expected and do what is supp...
asked by 27.09.2017 / 15:49
0
answers

Error: Could not find or load main class [duplicate]

I already tried: Could not locate or load the main class file.java I'm starting to learn how to use java. Code: class main { public static void main (String[]args){ System.out.println("Ola mundo"); } }     
asked by 30.09.2017 / 20:41
0
answers

Error in webservice: javax.servlet.ServletException: java.lang.NullPointerException

I'm trying to run a query in my Webservice, but the function that the query is inside breaks nothing. My code: public boolean excluir(String usuario) { String sql = "DELETE * FROM listaproduto where uclogin=?"; Boolean retorno = fal...
asked by 27.09.2017 / 19:43
1
answer

I can not display the Spring error message

I'm trying to validate some fields with annotations, but I can not bring the messages to the jsp page: User.java mport java.util.Calendar; import javax.validation.constraints.Email; import javax.validation.constraints.NotNull; import jav...
asked by 27.09.2017 / 16:50
1
answer

How to clean AsyncTasks from memory after running?

I am developing a commercial APP, in this case I need to load all the clients of the establishment, so I make a request requesting each client, since I need to send the ID of this in the request URL, so far so good, the problem is that when I do...
asked by 27.09.2017 / 22:27