Questions tagged as 'java'

0
answers

Help with post request in java

Hello. I'm trying to call a php webservice via post using java. the code and the following: public void post(String json) { try { CloseableHttpClient client = HttpClients.createDefault(); HttpPost httpPost =...
asked by 17.04.2018 / 19:16
1
answer

How do I populate a JTable?

I have a fairly simple java application that connects to a database, in the console I type the query I want to pass by parameter to the executeQuery. Now I need to pass all this to a graphical interface. Is there any way I can create just one wi...
asked by 10.06.2014 / 06:03
1
answer

Error in pom.xml

I'm working on a project, I used the eclipse java IDE tool and I configured my project for maven project, and in that I set up my pom.xml to run hibernate + jpa and the following error occurred:    java.lang.ClassNotFoundException:   com.sun....
asked by 18.04.2018 / 19:00
0
answers

Nullpointer on report Jasper

I have a report made in JasperReports that works normally in a local bank, but if I call the same report with the same database but online it does not work anymore, the nullpointer error simply appears My application was made with springboot...
asked by 16.04.2018 / 17:11
1
answer

Error running Android app on mobile phone but working on other devices and emulator

I've been tinkering with Android for a while and got this error recently during an evaluative activity at school, where we had to make a basic app for two activities, the second getting data from the first. On my cell phone it locks and closes w...
asked by 16.04.2018 / 21:20
0
answers

Report with parameter in Jaspersoft Studio

I have a java class in netbenas that was supposed to generate a report, according to the Service Order (ID) entered by the user. However Netbeans returns a "File or report not found" error. private void imprimir() { int confirma = JOptionP...
asked by 16.04.2018 / 23:11
1
answer

Problems adding JsonObject to JsonArray

import javax.json.Json; import javax.json.JsonArray; import javax.json.JsonObject; import javax.json.JsonValue; ... JsonObject object = Json.createObjectBuilder().build(); JsonArray array = Json.createArrayBuilder().build(); JsonA...
asked by 16.04.2018 / 17:31
0
answers

Error in project: java.sql.SQLException: Can not create JDBC driver of class '' for connect URL 'null' - JavaParaWeb

I'm studying Java for the book "Java for Web 2nd Ed.", I was going quiet, but I stopped at the following error: abr 12, 2018 11:39:31 PM org.apache.tomcat.util.digester.SetPropertiesRule begin ADVERTÊNCIA: [SetPropertiesRule]{Server/Servi...
asked by 13.04.2018 / 04:43
0
answers

Domain masking with Tomcat and SpringBoot

I'm developing a web application using SpringBoot, and other technologies. This application will be unique, that is, an application must serve multiple users (clients). Each user will have a page, which is composed as follows: www.meusite....
asked by 13.04.2018 / 02:48
0
answers

Symbol appears at the end of XML

I have an XML document that serves for a program in Java to save some values that will be read by another one in C #. It is not the best way to exchange values between languages (this is what has come out, but I accept suggestions for alternativ...
asked by 12.04.2018 / 11:06