Questions tagged as 'java'

1
answer

How to do the treatment to avoid Nullpointer error

I need to create a treatment for, if no investment fund registration is found, avoid error and nullpointer. You are returning the error:    java.lang.IllegalArgumentException: id to load is required for loading Line to be treated: fu...
asked by 13.11.2018 / 18:28
0
answers

WebService (XML return) - JAVA

Good morning. I'm trying to make some requests for a web service, but I do not have much experience in the subject and I went to see some forums how to make the connection; In summary, I used jax-B to generate the classes and when I make the req...
asked by 13.11.2018 / 15:00
0
answers

Error in saving the third table - conflict in Integer and Long

I need to save on three tables. I can save the first two [simulations] and [response_investors]. I need to save the data in the table [background_simulation] ... When executing the project, you are displaying the error when saving in the s...
asked by 13.11.2018 / 17:30
1
answer

check items does not work

I want to make a method that will check if an element has already been added to a list, if it is already going to increment 1. This is the class I made, but it is giving error. public class Rascunho { private int [] vetor; private int...
asked by 13.11.2018 / 15:22
0
answers

How to connect a web service that is in another linux machine?

I have a code in php for access to the bank hosted on a Linux machine, I use the credentials to access it through the terminal. Normally I would have to use: java.net.URL url = new URL(URL); HttpURLConnection httpURLConnection = (HttpURLConnec...
asked by 06.11.2018 / 19:05
0
answers

Primefaces, how to export Header and Footer from dataTable

I have a dataTable that uses HeaderRow and SummaryRow, as follows: <p:dataTable var="dre" value="#{planoContasControle.listaPlanoContas}" sortBy="#{dre.dre.id}" id="dre" expandableRowGroups="true"> <p:headerRo...
asked by 07.11.2018 / 12:24
1
answer

R can not be resolved android Studio [duplicate]

I'm facing a problem, it seems to be a bit simple, but I'm already a few hours away. I'm building a project in android Studio and the Same is giving in the field private UserLoginTask mAuthTask = null ; // UI references. private Aut...
asked by 06.11.2018 / 19:49
0
answers

How to use 2 databases using Room Sqlite?

Hello. Is it possible to use multiple DBs using Sqlite's Room? In my case I need to use 2 DB, if it is possible how to change from DB1 to DB2 dynamically?     
asked by 06.11.2018 / 22:25
1
answer

With create a searchbar without the arrow icon in the left corner?

I need to create a toolbar with a searchview that works like the first two images: When this searchview opens, it needs to be superimposed on the image (logo) and spread throughout the toolbar. If in my menu I use app: showAsAction="always |...
asked by 06.11.2018 / 21:43
0
answers

Problems to run Widfly 14

I'm doing a course where I create a client registry, but by the time I'm going to run the server Widfly 14, I get the following error: Can you help me please?     
asked by 12.11.2018 / 14:30