-1
votes
2answers
47 views

Throws exception and return from finally - Tomcat hangs

Recently I was looking at the frequent hangs of the tomcat server and came across some exceptions thrown frequently in some part of the code. When I examined the code, this what it looked like ...
2
votes
0answers
10 views

Nested update with select deadlock

Background I am using some code that seems to deadlock often with itself. In Java, it produces a DeadLockLoserDataAccessException periodically, and the offending statement causing the deadlock is ...
-1
votes
2answers
32 views

Inserting NULL values into a MySQL table via JDBC program

I created a database in MySQL using below DDL: CREATE DATABASE iac_enrollment_system; USE iac_enrollment_system; CREATE TABLE course( course_code CHAR(7), course_desc VARCHAR(255) NOT NULL, ...
1
vote
2answers
17 views

In memory Database to test mysql database operation API using in memory database with maven

I have to test some api using JUnit test cases. Actually I have some simple JDBC database connection with API code to retrieve data from MYSQL database. But I need one inmemory databases to test ...
-1
votes
1answer
22 views

Delete selected checkbox rows in JSP page [on hold]

I am using jsp , servlets, javascripts. Data is being retrieved from data base. i need to delete the rows of table using checkbox. pls help me on this.
0
votes
5answers
54 views

MySQL/Java error

Newbie programmer here. Upon doing mvn tomcat:run I get the following error: SEVERE: Servlet.service() for servlet appServlet threw exception ...
-3
votes
1answer
54 views

Why am I getting a NullPointerException with this code that's executing a prepared statement?

Why am I getting a NullPointerException with this code that's executing a prepared statement? public ArrayList<BeanStaff> getLeaveStatus(ArrayList<String> name,String date) throws ...
0
votes
0answers
25 views

How to generate getter and setter for radio buttons in Struts

I'm working on an online exam. Here i have 5 groups of radio buttons and the name attribute is appended with a random number(which is the PK in MySql DB). How do i generate getter and setter methods ...
-3
votes
2answers
51 views

What is the purpose of “String[] whereArgs” in “int delete (String table, String whereClause, String[] whereArgs)” function? [duplicate]

String[] whereArgs also present in update function of SQLiteDatabase class, what does it depicts?? I've read the documentation but not getting it,Please help. Thanks in Advance !!
0
votes
2answers
28 views

Explanation of execSQL (String sql) function of SQLiteDatabase

What does execSQL (String sql) function which belongs to SQLiteDatabase actually do? i've read android documentation for it but not getting it..Please someone explain it in easy words. Thanks in ...
0
votes
1answer
43 views

Mysql in java usage, while(result.next()) with if and else

I have a problem about if else usage in java with mysql. My code is : if (!result29.next() ) { System.out.println("No data"); } else { do { ...
0
votes
1answer
37 views

Error parsing data org.json.jsonexception end of input at character 0

I have been looking over my code all day and can not find why this is happening (or why its not actually returning the result form the mysql server it should. Hopefully a fresh pair of eyes will find ...
-1
votes
2answers
25 views

MySQLNonTransientConnectionException in JDBC

I created a database with one table in MySQL: CREATE DATABASE iac_enrollment_system; USE iac_enrollment_system; CREATE TABLE course( course_code CHAR(7), course_desc VARCHAR(255) NOT NULL, ...
-1
votes
1answer
77 views

my sql query don't work

i have one problem with database in java my code is ( its only one small part of my project) public void Read_from_DB(int exhibition_id){ Statement stmt = null; ...
1
vote
1answer
24 views

Show SQL error message

I am using JDBC to connect to MySQL in my java project. I have implemented some check constraints in the mySQL table. I have a form in which the user enters some values and submits it to the MySQL ...

1 2 3 4 5 403
15 30 50 per page