Программисты JAVA общаются здесь
Anonymous
Соединение oracle.jdbc.driver.T4CConnection@73e0fb8c помечено как нарушенное из-за SQLSTATE(08003), ErrorCode(17008)
Сообщение
Anonymous » 05 ноя 2024, 11:47
Код: Выделить всё
@Service
public class StudentService {
@Autowired
private StudentRepository studentRepository;
public void enrollStudents(List students) {
//Calling 1st method (verification)
studentRepository.performBackgroundVerification(students);
//Calling 2nd method (enroll)
studentRepository.enrollStudents(students);
}
}
@Repository
public class StudentRepository {
public void performBackgroundVerification(List students) throws Exception {
Connection wrappedConnection = null;
OracleConnection oracleConnection = null;
try {
//Get Wrapped Connection
wrappedConnection = jdbcTemplate.getDataSource().getConnection();
//Get Oracle Connection
oracleConnection = wrappedConnection.unwrap(OracleConnection.class);
//Create Oracle Object(typ_student_obj")
Struct[] studentStruct = new Struct[students.size()];
for(int i=0; i
Подробнее здесь: [url]https://stackoverflow.com/questions/79158299/connection-oracle-jdbc-driver-t4cconnection73e0fb8c-marked-as-broken-because-of[/url]
1730796450
Anonymous
[code]@Service public class StudentService { @Autowired private StudentRepository studentRepository; public void enrollStudents(List students) { //Calling 1st method (verification) studentRepository.performBackgroundVerification(students); //Calling 2nd method (enroll) studentRepository.enrollStudents(students); } } @Repository public class StudentRepository { public void performBackgroundVerification(List students) throws Exception { Connection wrappedConnection = null; OracleConnection oracleConnection = null; try { //Get Wrapped Connection wrappedConnection = jdbcTemplate.getDataSource().getConnection(); //Get Oracle Connection oracleConnection = wrappedConnection.unwrap(OracleConnection.class); //Create Oracle Object(typ_student_obj") Struct[] studentStruct = new Struct[students.size()]; for(int i=0; i Подробнее здесь: [url]https://stackoverflow.com/questions/79158299/connection-oracle-jdbc-driver-t4cconnection73e0fb8c-marked-as-broken-because-of[/url]
JDBCExceptionReporter — ошибка SQL: 17008, SQLState: 08003
Anonymous »
31 окт 2024, 14:41 » в форуме
JAVA
Я получаю сообщение об ошибке ниже при получении записей, и это случается спорадически. Это исправляется либо путем перезапуска сервера, либо само по себе через некоторое время. Я использую Struts 2, Oracle 11g, Hibernate 3.
Ошибка:
2014-05-06...
0 Ответы
48 Просмотры
Последнее сообщение Anonymous
31 окт 2024, 14:41
0 Ответы
20 Просмотры
Последнее сообщение Anonymous
12 фев 2025, 10:35
0 Ответы
21 Просмотры
Последнее сообщение Anonymous
08 ноя 2024, 17:14
0 Ответы
2 Просмотры
Последнее сообщение Anonymous
27 авг 2025, 17:03
Невозможно загрузить класс драйвера JDBC «org.mariadb.jdbc.Driver».
Anonymous »
13 янв 2025, 12:34 » в форуме
Python
Я хочу поместить данные из Apache Nifi в MariaDB в среде Docker, но из-за ошибки невозможно загрузить драйвер jdbc, хотя я установил его раньше.
введите описание изображения здесь
изображение
введите здесь описание изображения
Пожалуйста, помогите...
0 Ответы
34 Просмотры
Последнее сообщение Anonymous
13 янв 2025, 12:34