Questions tagged as 'java'

1
answer

java.lang.NullPointerException error while sending data to a webservice

I have a webservice where I am sending some data. The return of the service is returning this message to me in the integration manual, says it would be an internal error, I wanted to understand if the problem is on my side or the service provide...
asked by 15.06.2018 / 19:50
0
answers

I / O exception (org.apache.axis2.AxisFault)

I'm encountering this error next to the site of the sefaz, I added my CACERTS inside the java .. / lib / security inside the jboss it finds but apparently it closes the connection Anyone can help me / ??????? follows the summary error stac...
asked by 15.06.2018 / 20:32
0
answers

Json, PHP + Android Studio

I'm making an application where the user types his "name" and calls json Android code btn_Enviar.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { JSONObject jo = new JSONOb...
asked by 14.06.2018 / 19:28
0
answers

Is giving error when I try to insert into my sqlite + java database

package Contas; import java.sql.PreparedStatement; import java.sql.SQLException; import java.util.Scanner; import javax.swing.JOptionPane; import BancoConexao.Banco; public class ContaCorrente extends Conta{ public ContaCorrente(int NumCo...
asked by 08.06.2018 / 15:04
0
answers

setar item from JComboBox

I have two JComboBox, the two contain strings for names of buyers and products. I need that by clicking on the table I can set the JComboBox with the names. I saw two examples of codes in this forum but they do not work so I am asking the que...
asked by 08.06.2018 / 05:17
1
answer

Gradle does not recognize dependency on IntelliJ IDE

My gradient is configured like this: plugins { id 'java' } version '1.0-SNAPSHOT' sourceCompatibility = 1.8 repositories { mavenCentral() } dependencies { testCompile group: 'junit', name: 'junit', version: '4.12' compile...
asked by 12.06.2018 / 22:36
0
answers

Creating Output to File Using PrintStream Class

I'm having trouble trying to generate a file with the PrintStream class from the java.io package. This application works as follows, I create an object of type 'Account' to store a 'ContaCorrente' or 'ContaPoupanca', and soon after the crea...
asked by 13.06.2018 / 03:34
1
answer

I can not leave JButton on top of JLabel

I have JPanel , and inside it a JLabel of same size. JLabel has an icon associated with it, working as a wallpaper. When I try to put a JButton on top of the JLabel, NetBeans repositions the 2. Would anyone know to answer me...
asked by 22.05.2016 / 05:53
0
answers

Capture JavaScript loaded elements with HtmlUnit

Hello, I'm new to HtmlUnit, I'm trying to capture content from a div that loads later via JavaScript, however I'm facing some exceptions. My code: WebClient client = new WebClient(BrowserVersion.CHROME); HtmlPage pagina = client.getPage("ht...
asked by 07.06.2018 / 00:56
0
answers

How to remove row from a txt file using Java?

I have a class that I called "database", in this class I can save a note in a txt file to access later. Well the problem is I do not know how to delete some annotation if necessary. I tried to create a new file, then tried to create a ArrayLi...
asked by 06.06.2018 / 20:10