Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: add Transactional annotation to method to fix "no session" error #157

Draft
wants to merge 3 commits into
base: 2.15.0-DEV
Choose a base branch
from

Conversation

pieterlukasse
Copy link

@pieterlukasse pieterlukasse commented Sep 6, 2024

Link to JIRA ticket if there is one: https://ctds-planx.atlassian.net/browse/VADC-1319

Bug Fixes

  • fixes the error
2024-08-29 15:03:15.050 ERROR http-nio-8080-exec-16 org.ohdsi.webapi.util.GenericExceptionMapper - [] - 
org.springframework.core.convert.ConversionFailedException: Failed to convert from type 
[org.ohdsi.webapi.feanalysis.domain.FeAnalysisWithPrevalenceCriteriaEntity] to type 
[org.ohdsi.webapi.feanalysis.dto.FeAnalysisDTO] for value 
'org.ohdsi.webapi.feanalysis.domain.FeAnalysisWithPrevalenceCriteriaEntity@8b'; nested exception is 
org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: 
org.ohdsi.webapi.feanalysis.domain.FeAnalysisWithCriteriaEntity.design, could not initialize proxy - no Session

...
at...
 org.ohdsi.webapi.feanalysis.converter.FeAnalysisEntityToFeAnalysisDTOConverter.convertDesignToJson(FeAnalysisEntityToFeAnalysisDTOConverter.java:53)
	at org.ohdsi.webapi.feanalysis.converter.FeAnalysisEntityToFeAnalysisDTOConverter.convert(FeAnalysisEntityToFeAnalysisDTOConverter.java:26)
	at org.ohdsi.webapi.feanalysis.converter.FeAnalysisEntityToFeAnalysisDTOConverter.convert(FeAnalysisEntityToFeAnalysisDTOConverter.java:17)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant