Thread: Jdbc closed statement

Results 1 to 2 of 2
  1. #1 Jdbc closed statement 
    Banned

    Join Date
    Dec 2011
    Age
    26
    Posts
    2,303
    Thanks given
    471
    Thanks received
    764
    Rep Power
    0


    It works on my computer but not on the dedicated server..

    Quote Originally Posted by 5tuart View Post
    please provide the complete code for the query which is being made?
    Code:
    int[] resultData = new int[7];
      try {
       ResultSet results = null;
       String query = "SELECT * FROM vb_user WHERE username LIKE '"+username+"'";
       try {
        if (statement == null) {
         statement = connection.createStatement();
        }
        if (statement.isClosed()) { //line 102 (from the error)
         statement = connection.createStatement();
        }
       } catch (Exception e5) {
        statement = null;
        connection = null;
        createConnection();
        statement = connection.createStatement();
        e5.printStackTrace();
       }
       try {
        results = statement.executeQuery(query);
       } catch (Exception e) {
        e.printStackTrace();
       }
     

  2. #2  
    Xenon
    Guest
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Jdbc closed statement
    By Orel in forum Help
    Replies: 8
    Last Post: 11-25-2012, 06:17 PM
  2. [CLOSED]Buying AGS [CLOSED]
    By Trek in forum Gold & Items
    Replies: 0
    Last Post: 10-27-2011, 03:53 PM
  3. Jdbc help
    By clankilla 1 in forum Application Development
    Replies: 1
    Last Post: 09-19-2011, 07:40 AM
  4. Replies: 3
    Last Post: 07-21-2011, 05:21 PM
  5. JDBC help
    By tucybro in forum Application Development
    Replies: 9
    Last Post: 01-11-2011, 12:57 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •