Spring mvc org.hibernate.LazyInitializationException: could not initialize proxy - no Session - Java EE - Обсуждение 1907313 |
|
Обсуждение
Всего сообщений: 22
|
||||
Имя | Дата | Сообщение | ||
Читать обсуждение полностью: Spring mvc org.hibernate.LazyInitializationException: could not initialize proxy - no Session |
||||
kostrorod | 25.01.2017 15:23 |
https://www.cyberforum.ru/post10043267.html
Добрый день. Помогите исправить ошибку.
Проблема после...
|
||
kostrorod | 25.01.2017 15:25 |
https://www.cyberforum.ru/post10043278.html
ошибка
|
||
KEKCoGEN | 25.01.2017 22:23 |
https://www.cyberforum.ru/post10044931.html
kostrorod, попробуйте навесить аннотацию @Transactional на...
|
||
kostrorod | 25.01.2017 22:50 |
https://www.cyberforum.ru/post10045032.html
Ошибка сохраняется
|
||
Skelotron | 25.01.2017 22:51 |
https://www.cyberforum.ru/post10045039.html
Покажите код методов:
productService.get(id) и...
|
||
kostrorod | 25.01.2017 23:07 |
https://www.cyberforum.ru/post10045081.html
productService
@Service("productService")
public class...
|
||
Skelotron | 25.01.2017 23:14 |
https://www.cyberforum.ru/post10045126.html
и ещё ProductRepository
|
||
kostrorod | 25.01.2017 23:18 |
https://www.cyberforum.ru/post10045142.html
ProductRepository
public interface ProductRepository {
...
|
||
Skelotron | 25.01.2017 23:26 |
https://www.cyberforum.ru/post10045166.html
Попробуйте в ProxyProductRepository убрать
и также...
|
||
kostrorod | 25.01.2017 23:30 |
https://www.cyberforum.ru/post10045182.html
нет такого метода
|
||
Skelotron | 25.01.2017 23:38 |
https://www.cyberforum.ru/post10045201.html
а в конфигурации спринга есть что-то наподобие ...
|
||
kostrorod | 25.01.2017 23:45 |
https://www.cyberforum.ru/post10045209.html
<!--@Transaction annotation support -->
...
|
||
Skelotron | 26.01.2017 00:10 |
https://www.cyberforum.ru/post10045290.html
Попробуйте убрать аннотацию @Transactional из...
|
||
KuKu | 26.01.2017 01:00 |
Решение https://www.cyberforum.ru/post10045380.html
Ошибка тут судя по всему:
@Transactional(readOnly =...
|
||
kostrorod | 26.01.2017 09:49 |
https://www.cyberforum.ru/post10045855.html
Да действительно, даже после переброса логики по совету...
|
||
KEKCoGEN | 26.01.2017 10:13 |
https://www.cyberforum.ru/post10045971.html
kostrorod, зачем вам транзакции на простых методах?
|
||
kostrorod | 26.01.2017 11:03 |
https://www.cyberforum.ru/post10046101.html
save и delete простые методы? Вдруг в продакшен связь...
|
||
KEKCoGEN | 26.01.2017 11:05 |
https://www.cyberforum.ru/post10046106.html
Что именно вы собираетесь откатывать в этих методах?
|
||
kostrorod | 26.01.2017 11:25 |
https://www.cyberforum.ru/post10046165.html
Не знаю, что вы предлагаете удалить транзакции?
|
||
LeX | 26.01.2017 11:49 |
https://www.cyberforum.ru/post10046228.html
репозитории не должны открывать транзакции (кроме редких...
|
||
kostrorod | 26.01.2017 11:59 |
https://www.cyberforum.ru/post10046272.html
я так понимаю KEKCoGEN интересуется транзакциями уже в...
|
||
KEKCoGEN | 26.01.2017 12:14 |
https://www.cyberforum.ru/post10046324.html
я предлагаю вам понять что такое транзакции, для чего они...
|
||
|
||||
Similar |
Hibernate + could not initialize proxy - no Session Spring-mvc session Spring MVC + Hibernate Spring MVC + Hibernate project |
|||
Ads |
|
|||
MoreAnswers |
Spring MVC, Hibernate - получаю exception Session scoped бины в Spring при сохранении в Redis через Spring Session Трудности с выводом данных Spring MVC + Hibernate Spring MVC + Hibernate, java.lang.ClassNotFoundException |
|||