Questions tagged as 'jdbc'

1
answer

Make an INSERT with integrity constraint

I have two tables: Person table: CREATE TABLE T_AM_OME_PESSOA ( cd_pessoa NUMBER (8) NOT NULL , nm_pessoa VARCHAR2 (60) NOT NULL ) ; ALTER TABLE T_AM_OME_PESSOA ADD CONSTRAINT PK_AM_PESSOA PRIMARY KEY ( cd_pessoa ) ; and forum table: C...
asked by 15.10.2016 / 05:15
1
answer

JOIN of 3 tables +1 JDBC join table

I have a java program that returns the list of users who have a query on that day, so I built a database that lists some important data of the users, the name of the doctor with whom they will have a query and some such as the living room and th...
asked by 17.06.2016 / 12:28
1
answer

JDBC CallableStatement: Application hangs when calling procedure [closed]

When I run a procedure on the application, it crashes, but on the database it executes normal. This is the way I use to call procedure : public int incluir(TOCompra compra) { try { PreparedStatement ps = BancoDados.getConexao...
asked by 24.10.2015 / 00:39
1
answer

Mysql JDBC Connection Error in Eclipse

I am trying to connect the mysql database from my JAVA application. But I get this message:    org.apache.jasper.JasperException: An exception occurred processing JSP page /index.jsp at line 31 28: String action=""; 29: 30:...
asked by 16.06.2017 / 20:41
2
answers

Error connecting to JDBC with local sql Server

I try to connect the java with the Sql Server from my local machine but I get this error com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host localhost, port 1434 has failed. Error: Connection refused: connect. Pl...
asked by 28.07.2014 / 17:23
2
answers

HttpClient throwing exception org.hibernate.exception.GenericJDBCException?

Is there any reason for the following code to throw this exception? I have a webservice that queries my bank and transforms everything into xml and then sends to another webservice gets the answer and updates my database, everyth...
asked by 14.03.2014 / 17:45
1
answer

No suitable driver found MariaDB

I'm trying to insert a tuple of data into a DB using JDBC through a web page. I made a ConnectionFactory class to encapsulate the connection with MariaDB, I imported the driver for the classpath, I tried inserting some data with a...
asked by 11.09.2018 / 21:08