Questions tagged as 'java'

1
answer

Selective reading of an XML

I'm able to read XML but there are more things I do not need. The problem is that my XML source file has repeated tags in a hierarchy like this (see the PLAN tag that repeats): <explain> <Query-Text> </Query-Text> &l...
asked by 13.01.2017 / 20:18
1
answer

How to pass as a parameter in a 'items' method of a forEach, a URL variable?

I am developing a project in Java, academic work. My doubt is in the following. I can display the items related to a logged in user, where the value (nick) is set in a session named login. See: <jsp:useBean id="dao" class="dao.CestaDAO" /&g...
asked by 08.02.2017 / 19:56
1
answer

Error in Reactive Native when generating Android app

I'm running the commands: react-native init AwesomeProject cd AwesomeProject react-native start And then this command: react-native run-android The error that appears: How to fix this error ??     
asked by 03.04.2017 / 21:29
1
answer

Data insertion error java null, Java Postgre Database

I'm trying to insert data into a table in the database, but it returns error "null." public void cadastrarChamadas() { Chamadas1 cha= null; String sql = "Insert into tb_chamadas(cha_cod , cha_nome, cha_defeito, cha_datainicio, cha_dat...
asked by 20.01.2017 / 12:33
1
answer

Android ListView customized in a fragment

I have an application whose layout was done in tabs and in one of them I would like to implement ListView custom, but I could not because the tab JAVA class extends the fragment class % and to make the list I need to ex...
asked by 10.01.2017 / 11:30
1
answer

Error inserting data with Hibernate

I'm having an error inserting into my database:    ERROR: You have an error in your SQL syntax; Admission, Date of Resignation, Name, Marital Status, Sex, Zip Code, CPF, RG, Date of N 'at line 1   Exception in thread "AWT-EventQueue-0" org.hi...
asked by 07.01.2017 / 20:21
1
answer

How do I send data to a socket server that was already started inside an AsyncTask?

I have already been able to connect to the server by the application, receive and display the data sent by it. There are also no problems sending messages to the server. The problem is: once the connection is established, capture data from an e...
asked by 08.01.2017 / 02:59
1
answer

Java + Active Directory - Single Sign On

I was asked to do SSO for a web application in Java. The idea is that through computer information, the application checks in the AD and according to the user's OU it has access to certain application modules. I've already researched t...
asked by 25.01.2017 / 20:19
1
answer

Error while listing SQLite data

I am making a listing of the information contained in my SQLite database However, sometimes I get the following error:    java.lang.ArrayIndexOutOfBoundsException: length = 13; index = 1401 The intriguing that this only occurs from tim...
asked by 26.01.2017 / 20:53
1
answer

Sort a LinkedList of integers without method sort?

I want to know a simple method for sorting a LinkedList! I'm breaking my head and rolling the internet, but I only find methods that already perform the work I WOULD perform manually. public class OrdenacaoTeste { public static void...
asked by 25.01.2017 / 19:16