Questions tagged as 'java'

1
answer

How to stop handler inside an asynctask

I have the following asynctask, which contains a handler inside it, but when I exit the activity I close the async but sometimes the handler continues to call the async after it is closed. It does not crash in the application but it keeps sendin...
asked by 04.02.2016 / 22:15
2
answers

javax.faces.FacesException, java.lang.NullPointerException

The following error (full description below):    com.sun.faces.lifecycle.InvokeApplicationPhase execute WARNING: # {testHibernate.save}: java.lang.NullPointerException javax.faces.FacesException: # {testHibernate.save} This happens when I...
asked by 28.08.2015 / 16:01
1
answer

Update .csv file when edited in Java

I have a .csv file that contains information, but when I remove information (in this case contacts) from the console output the .csv file is not being updated. How to solve? private void insertContact(String contactName) { contacts...
asked by 04.11.2015 / 18:00
1
answer

Tomcat 8 does not start

I was doing a small application with Vraptor4, but the problem is the time to start the server. On the console it always brings me the following: GRAVE: A child container failed during start java.util.concurrent.ExecutionException: org.apache....
asked by 15.01.2016 / 21:06
1
answer

TextView position text displayed always at the end

How to do in TextView so that when entering text it stays as a line only and the text box goes with it as you go? <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Hello Worl...
asked by 16.01.2016 / 00:46
1
answer

How to change the Activity when clicking on an option in the AlertDialog menu?

I have the following problem, I have a method that is called, when the person clicks a button, and SAVE, (onLongClickListener) will appear an alert with several options. 1st Option is Cancel the Table, 2nd View requests, and 3rd Call another act...
asked by 02.12.2015 / 21:25
1
answer

Problem with taglig in Java

I'm building a page JSP , however, I'm having a problem referencing my taglib of jstl . I'm referencing it this way: <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> But in Eclipse I'm getting t...
asked by 28.11.2015 / 15:55
1
answer

I can not get value from my form

I created this form and can not redeem the values of it in the Bean. Follow form and parts of the bean. Form <h:form id="form"> <p:commandButton value="Salvar" icon="ui-icon-document" class="botaoDataTable"...
asked by 30.11.2015 / 18:20
1
answer

NullPointerException error with class composition

I have a class named Users, which has a Sensors-like vector as an attribute protected Sensors sensors[10]; It also has the setDescription method public void setDescription (int ind, String description) { this.sensors[ind].description...
asked by 11.07.2015 / 01:45
1
answer

How to run multiple FORs at once

In the code below I have 4 for and they run in sequence, but I need them to run all at the same time. public class main { public static void main(String[] args) { long init = System.currentTimeMillis(); ataque(999999, 999999);...
asked by 06.07.2015 / 22:38