Questions tagged as 'java'

1
answer

JPQL Order by and LIMIT (JSF and JPA)

I'm having trouble solving a query with JPQL. I want it to work: SELECT * from tab_historico WHERE idPolicial = 1 ORDER BY idhistorico DESC LIMIT 1 My DAO is wrong, where I need to put the query: public Historico obterMarket() { St...
asked by 23.09.2018 / 20:15
1
answer

Android IMEI: all versions android [duplicate]

The methods below are not effective for capturing the IMEI of all versions of Android. private String getIMEINumber() { String IMEINumber = ""; if (ActivityCompat.checkSelfPermission(this, android.Manifest.permission.READ_PHO...
asked by 14.09.2018 / 16:16
0
answers

How do I get an application to enter data into the bank in real time?

I have an application that consumes data from a network server, it follows my code: conn.setRequestMethod("GET"); conn.setRequestProperty("Authorization", "Basic " + asB64); conn.setRequestProperty("Accept", "applicatio...
asked by 18.09.2018 / 20:41
0
answers

E515 - Error when signing signature. - Shipment adulterated after signature

Hello. I developed a Java software to send invoices to Thema (Cachoeirinha / RS) and I received the error message E515, stating that the Shipment was tampered with, ie the .xml file was changed after the signature. The problem is that nothing is...
asked by 18.09.2018 / 18:28
2
answers

How to create new TextViews within a scrollview by Java in android studio?

Hi, I have a question for making an application: I need to create a new TextView inside a ScrollView with each click of a button. I need to also add attributes to the textview, such as positioning it on the screen, background color, and text col...
asked by 21.09.2018 / 22:57
0
answers

Error when deploying a java application with postgres

Expensive. I created a small web application using postgres. However, when I run the eclipse, it runs smoothly. But when I export the .war file and try to deploy it on the tomcat server, it returns the error below: Caused by: javax.persi...
asked by 19.09.2018 / 16:48
0
answers

Problems with Safari

I'm having problems with my application in the Safari browser, when I try to update some information. In my application, the form is mounted dynamically, with properties coming from the API. In other browsers, it works correctly, only in Safari...
asked by 12.09.2018 / 11:50
1
answer

How to count how many occurrences of an attribute in a list are equal to a value? JSF

I need to count how many statuses are equal to '1'. I used this to count how many objects I had on the list and it worked. Now I can not count only those with status equal to 1. <h:outputText value="#{fn:length(cur.listaProdutosManutencao)}...
asked by 12.09.2018 / 16:35
1
answer

Generate .jar file in Eclipse with Maven, application connects to MySql

I'm using Eclipse and I have an application made using Maven that connects to the MySql database. I can generate the file .jar , but when I run it, it simply hangs on the login screen, it does not seem to connect to the database. To...
asked by 13.09.2018 / 22:54
0
answers

How to write serialized objects to XML files without overwriting? SAXParseException

So, as the title suggests, I've been trying to write serialized objects without overwriting the file. The problem is that whenever I add an object to this file I get the following sentence: "org.xml.sax.SAXParseException; lineNumber: 1; colum...
asked by 13.09.2018 / 22:05