public boolean addUser(User user) throws ClassNotFoundException, SQLException {
try {
readWriteLock.writeLock().lock();
String sql ="INSERT INTO User VALUES ("+0+",'"+user.getName()+"','"+user.getType()+"',AES_ENCRYPT('"+user.getPassword()+"','')) ";
Connection connection = DBConnection.getConnection();
Statement stm = connection.createStatement();
int res = stm.executeUpdate(sql);
return res > 0;
} finally {
readWriteLock.writeLock().unlock();
}
}
예외를 찾을 수 없습니다라고오류 클래스
java.rmi.UnmarshalException: Error unmarshaling return; nested exception is:
java.lang.ClassNotFoundException: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException (no security manager: RMI class loader disabled)
내 오류를 해결할 수없는 ... 은 내가 돈 원격으로이 방법 .. 를 호출; t 자바
를 사용하여이 같은 암호를 암호화하는 방법을 알고
'java.rmi.UnmarshalException'! RMI를 사용하여이 메소드를 원격으로 호출 하시겠습니까? 그렇다면 질문에 언급해야한다고 생각하지 않습니까? –
예 .. 원격. 실수로 유감입니다. –