title: Exception in Database
body: <p>HI</p>
  
  <p>I made a method in my class that is:</p>
  
  <pre><code>public void addInfo(String username, String password, String name, String family) {
          try {
  
   String sql = "INSERT INTO user VALUES (?, ?, ?, ?)";
              PreparedStatement pst = conn.prepareCall(sql);
              pst.setString(1, username);
              pst.setString(2, password);
              pst.setString(3, name);
              pst.setString(4, family);
              int nRecords = pst.executeUpdate();
              logger.info("User Added Successfully...");
          } catch (SQLException ex) {
              logger.info("ERROR in adding user");
  
              ex.printStackTrace();
          }
      }
  </code></pre>
  
  <p>And then I retrieve this in my addInfo class:</p>
  
  <pre><code> private void AcceptButtonActionPerformed(java.awt.event.ActionEvent evt) {                                            
  
          String name = NameField.getText().trim();
          String family = FamilyField.getText().trim();
          String username_signup = UsernameSignUp.getText().trim();
          String password = new String(PasswordSignUp.getPassword()).trim();
  
          if ((name == null ? "" == null : name.equals("")) || (family == null ? "" == null : family.equals("")) || (username_signup == null ? "" == null : username_signup.equals("")) || (password == null ? "" == null : password.equals(""))) {
  
              JOptionPane.showMessageDialog(this, "Fill the blanks...", "WARNING", JOptionPane.WARNING_MESSAGE);
              clearAll();
              NameField.grabFocus();
              return;
  
          } else {
  
              UserManager um = new UserManager();
              um.addInfo(username_signup, password, name, family);
  
              FirstPage fp = new FirstPage();
              this.setVisible(false);
              fp.setVisible(true);
          }
      }
  </code></pre>
  
  <p>But I face with these exceptions:</p>
  
  <pre><code>run:
  Jan 9, 2010 3:54:20 PM DBManager.UserManager addInfo
  INFO: ERROR in adding user
  java.sql.SQLException: Unable to retrieve metadata for procedure.
          at com.mysql.jdbc.CallableStatement.extractProcedureName(CallableStatement.java:1076)
          at com.mysql.jdbc.CallableStatement.determineParameterTypes(CallableStatement.java:1026)
          at com.mysql.jdbc.CallableStatement.&lt;init&gt;(CallableStatement.java:83)
          at com.mysql.jdbc.Connection.prepareCall(Connection.java:1204)
          at com.mysql.jdbc.Connection.prepareCall(Connection.java:1181) 
  </code></pre>