Questions tagged as 'jdbc'

1
answer

How to list data from a Mysql database using the java List method (jdbc)?

I'm having trouble trying to list the data.    Exception in thread "main" java.lang.NullPointerException at template.Dao.getList (Dao.java:111) at main.Main.listarTravel (Main.java:161) at main.Main.menu (Main.java : 58) at main.Main.main (Ma...
asked by 01.07.2015 / 16:23
0
answers

Doubt about data distribution between classes

I have a class called Socio that asks for the name, phone ... and I have created methods getters and setters . And another class called DadosDoUsuario that will ask for the information to fill the register, but what happens is t...
asked by 16.05.2015 / 20:04
0
answers

Doubt about data distribution between classes

I have a class called Socio that asks for the name, phone ... and I have created methods getters and setters . And another class called DadosDoUsuario that will ask for the information to fill the register, but what happens is t...
asked by 16.05.2015 / 20:04
1
answer

Error while executing this page

importandroid.app.*;importandroid.content.*;importandroid.os.*;importandroid.util.*;importandroid.view.*;importandroid.widget.*;importjava.util.*;importorg.apache.http.*;importorg.apache.http.message.*;importorg.json.*;publicclassverextendsActiv...
asked by 04.05.2015 / 12:56
0
answers

No Session found for current thread

I'm having trouble performing a test to add a profile user! My problem is in the addUser method. Test class code: public class AddUser { public static void main(String[] args) { ApplicationContext appContext = new Class...
asked by 01.12.2014 / 02:07
1
answer

TimeOut Android and SQL Server connection using JDBC / JTDS

I would like to limit a time for the connection. Whenever it does not find Host to connect, it keeps trying and slows down. Here is the code: @SuppressLint("NewApi") public Connection CONN() { /*Properties props = new Properties(); props.s...
asked by 28.11.2017 / 21:45
1
answer

SQLite with java, error

I have made a Database of Bank Accounts of a Bank, each of these accounts has its id to identify, and has its tipo , to know what type of account the user is accessing at that moment , type, it can have a current account and salary,...
asked by 13.06.2018 / 21:43
1
answer

How to display query result in a JtextArea within a JtextArea

How do I display data from a query in a database within a JtextArea? I have done all my Listing method (which is in the class CarroDAO), and I want it to show the data inside the textArea (which is in the Screen class) follow the code: DA...
asked by 02.11.2017 / 18:20
2
answers

Error installing jdbc oracle in eclipse

I'm finding impediments to installing oracle jdbc. Screen Errormessage:  Errorreadingfile  C:\Users\alex.jose.silva.m2\repository\com\oracle\ojdbc14\10.2.0.3.0\ojdbc14-10.2.0.3.0.jar  C:\Users\alex.jose.silva.m2\repository\com\oracle\ojdbc...
asked by 16.01.2018 / 16:18
2
answers

Use data that is in the database

I'm creating a Quiz. I was able to create the screen to create the questions, it is recording in the database all right. But now I'm going to do the "game" itself, so I would have to get a question that is stored in the bank and return to the sc...
asked by 04.09.2014 / 22:41