Questions tagged as 'java'

1
answer

JSF - Parameter passing

I have a form in JSF and I need to insert the data of it into the database I have already researched in several ways, but it is not working Could you give me a hand in what I'm doing wrong? JSF Form I am not able to pass the parameter...
asked by 05.07.2017 / 18:41
3
answers

Check number in the database

In my database I have a table called "Matrices". In this table I make a record of the livestock matrices that I have on the farm, and each matrix has its respective number, which is stored in the "Number" column of the table. This column is UNIQ...
asked by 18.10.2016 / 18:58
1
answer

Error trying to access website using Http Service

Hello, people. I'm seriously in need of your help. There is a system in which I am working at the university that consists of entering the academic system of the university through the requisition of protocol. I'm using the Apache Http Service c...
asked by 06.10.2016 / 16:50
1
answer

doubt about JPQL

Hello everyone. I am using JPQL in my project to create some database access commands and I am having difficulty manipulating the language. I'm posting the snippet of code I'm having trouble with. public Usuario porNome(String nome) { Usua...
asked by 21.10.2016 / 04:56
1
answer

Eclipse and Selenium - Transforming .JAVA into .EXE or .BAT

I'm using Eclipse and the Selenium framework for creating automated Web page opening routines and executing commands (clicks on links, fill fields, change site etc). I've already been able to create some test routines and they all work very well...
asked by 21.03.2016 / 19:06
1
answer

NFe XML Parser for Object

I'm trying to make an XML parser from NFe for the TNFeProc object, and I always get the error: java.lang.IllegalArgumentException: can't parse argument number: {0} at java.text.MessageFormat.makeFormat(MessageFormat.java:1429) at java.text.Mes...
asked by 16.03.2016 / 01:35
1
answer

Problem invoking method of a newly loaded class

I made a code that dynamically compiles a java file, and through the .class generated with load this class, create an instance and invoke its methods using the getDeclaredMethod() method. So far so good. But now I'm encountering an error...
asked by 07.04.2016 / 16:04
1
answer

How to establish communication between WebService RestFul Jersey with desktop application?

I'm developing a chat system, in it I have a Java desktop application that needs to communicate with a WebService (server) which will distribute the messages to all connected clients. What is the best way to do this? I have a WebService RestF...
asked by 02.12.2015 / 18:44
2
answers

Update JTable using DefaultTableModel

I understand that the use of DefaultTableModel is almost abominable, but I used this template and now I have no time to change to a TableModel (which I have not learned yet), is there any way to update a table of a class in View , after a method...
asked by 14.06.2016 / 18:34
1
answer

Error loading image from gallery or camera

I'm having the following error while loading image gallery or smartphone camera. And I can not find where this error because this only happens in some models of smartphones.    java.lang.RuntimeException: Unable to resume activity   {br.com.c...
asked by 16.06.2016 / 20:22