Questions tagged as 'jdbc'

0
answers

Eclipse does not find source code for sqljdbcJar

My code works fine, I can start the connection to the database and everything else without problems. But at the time of creating a statement: Statement stmt = conexao.createStatement(); I get the following error: Thisoccurswithinmy"Obje...
asked by 01.02.2018 / 19:44
0
answers

Two filters working in a JAVA report

I'm doing a job for college, I got the report part and created the report as the image shows. HoweverIwasabletojustmakethenamefieldworkonasecondjavaclassthatIcreatedusingthefollowingcodepublicclassrela_clientes_nome{conexaoBDconn=newconexaoB...
asked by 26.11.2017 / 03:16
1
answer

Error: java.lang.NullPointerException in project using JDBC

Could help me with the error below, this is one, I'm having error in lines 14 of class TestaLista and error in line 32 of class ContatoDao . Exception in thread "main" java.lang.NullPointerException at br.com.caelum.jdbc.dao.Conta...
asked by 15.11.2017 / 19:37
0
answers

Error in webservice: javax.servlet.ServletException: java.lang.NullPointerException

I'm trying to run a query in my Webservice, but the function that the query is inside breaks nothing. My code: public boolean excluir(String usuario) { String sql = "DELETE * FROM listaproduto where uclogin=?"; Boolean retorno = fal...
asked by 27.09.2017 / 19:43
1
answer

Failed to update field of all records with path of files using JDBC

I'm migrating pdf files stored in the database to file systems. In the code as it can be seen below, I use an algorithm that generates the names of the files and saves them in a directory generated through the date of inclusion of the document....
asked by 12.08.2017 / 16:50
1
answer

Insert date in bd with JDBC Google Script

I'm trying to write to the database (MySQL) a lot of data, but in the data of type date the execution of the following error:    Can not find setTimestamp (number, string) method. (line 32, file "Code") The code is: var data = Utilities...
asked by 18.04.2017 / 21:15
0
answers

How to connect the SQL Server online database by JDBC in Netbeans

I have a question about how to generate the Java JDBC connection URL in the Netbeans IDE to connect to an online SQL Server database. Below is my code, which did not generate a connection like the database: package teste.br.com.DAO; impo...
asked by 03.03.2017 / 17:18
2
answers

Exception solution ServiceException and Failed to execute goal org.codehaus.mojo: exec-maven-plugin: 1.2.1: exec?

The following error occurred:    ServiceException and Failed to execute goal org.codehaus.mojo: exec-maven-plugin: 1.2.1: exec? I have already changed the provider name of org.hibernate.ejb.HibernatePersistence to org.hibernate.jpa.Hibern...
asked by 19.03.2017 / 11:11
1
answer

NullPointerException SelectOneMenu [JSF + PRIMEFACES]

In a JSF page about a car shop, first select the car brand and then choose the model. However, when selecting an item from the first menu "Hyundai", it gives NullPointerException and I can not understand. I've tried a lot, I'm a beginner...
asked by 10.01.2017 / 16:51
0
answers

Whitelabel Error Page

Hello, I'm trying to make a spring boot application with mysql database access using JdbcTemplate and when I try to access the database via url I always get the error: Whitelabel Error Page This application has no explicit mapping for / err...
asked by 19.12.2016 / 16:00