Questions tagged as 'jdbc'

1
answer

Error while deploying with Tomcat 7

I made an app with springboot and when I squeeze it inside springboot it works normally but when I generate the war and boto to run in tomcat it gives some errors. I've tried some things I've seen on the internet but so far nothing has helped me...
asked by 19.07.2018 / 15:03
1
answer

Error trying to delete with DELETE method using web service rest in Java [duplicate]

I created a REST Web Service in Java. All operations are working less than DELETE which returns the following error: HTTPDELETEmethod:@DELETE@Path("excluir/{idpromocao}") public void excluir(@PathParam("idpromocao") int idpromocao){...
asked by 25.10.2017 / 04:40
1
answer

SQLException error while trying to connect to the database

I'm creating a project with JDBC. When I run the code it gives the following error message:    Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: java.sql.SQLException: No suitable driver found for jdbc: mysql: // localhost: 3...
asked by 31.10.2017 / 22:45
0
answers

Popular TableView with data coming from the apache derby [closed]

I'm trying to popular tableview with more apache derby data I'm not getting. Here is the code: ScreenGrid Class: package view; import java.awt.ScrollPane; import java.util.Observable; import java.util.Set; import javax.swing.JOptionPane;...
asked by 16.10.2017 / 00:41
1
answer

Java with MySQL (JDBC) - Type YEAR

I am having a question on how to write a YEAR type in MYSQL database using a Java application from a TextField, I have already tried to use Date type, but I can not get just the year to write to the YEAR field in the YEAR field. I tried with Sim...
asked by 01.07.2017 / 23:38
1
answer

JDBC connection in Eclipse Neon

I need help adding the JDBC driver to my project made in Eclipse Neon version. If possible, pass on a connection class for testing.     
asked by 26.02.2017 / 16:27
0
answers

How to export a table from postgres with column names to csv format with jdbc?

This is my code, which unfortunately does not export the column names: package net.viralpatel.java; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.sql.Connec...
asked by 10.01.2017 / 19:47
1
answer

Error Connection mysql and android

I'm developing an app that needs to have an external connection and I'm having a problem running, how could I fix this? Follow the code: import java.sql.DriverManager; import java.sql.SQLException; import com.mysql.jdbc.Driver; import com.m...
asked by 27.09.2016 / 20:26
0
answers

connections in web application

I'm creating a J2EE project, jsf. They have multiple beans and a controller, and the beans access the Database. I am having doubts about how to manage the connection to the database, at the moment I have only one connection, but it does not make...
asked by 08.06.2016 / 12:44
0
answers

Active Jdbc Association not work

Hello. I have two classes: User and Competition. I need to make a relationship between the two, as below: public class User extends Model{ } @Table(value = "competencias") @BelongsTo(foreignKeyName = "user_id", parent = User.class) public...
asked by 27.05.2016 / 21:34