Uploaded image for project: 'Content Gateway'
  1. Content Gateway
  2. CGW-282

Lazy Initialization in JDF Service

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • DM 5.4.0, Q3FY20
    • None
    • None

      Error message

      javax.ejb.EJBException: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: org.jboss.downloadmanager.data.UserRHD.availableRoles, could not initialize proxy - no Session
      Stack trace
      org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx (CMTTxInterceptor.java:246)

      org.jboss.as.ejb3.tx.CMTTxInterceptor.required (CMTTxInterceptor.java:362)

      org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation (CMTTxInterceptor.java:144)

      org.jboss.invocation.InterceptorContext.proceed (InterceptorContext.java:422)

      …jboss.invocation.InterceptorContext$Invocation.proceed (InterceptorContext.java:509)

      …tractEJBRequestScopeActivationInterceptor.aroundInvoke (AbstractEJBRequestScopeActivationInterceptor.java:72)

      …EjbRequestScopeActivationInterceptor.processInvocation (EjbRequestScopeActivationInterceptor.java:89)

      org.jboss.invocation.InterceptorContext.proceed (InterceptorContext.java:422)

      ….CurrentInvocationContextInterceptor.processInvocation (CurrentInvocationContextInterceptor.java:41)

      org.jboss.invocation.InterceptorContext.proceed (InterceptorContext.java:422)

      …nvocationmetrics.WaitTimeInterceptor.processInvocation (WaitTimeInterceptor.java:47)

      org.jboss.invocation.InterceptorContext.proceed (InterceptorContext.java:422)

      ….security.SecurityContextInterceptor.processInvocation (SecurityContextInterceptor.java:100)

      org.jboss.invocation.InterceptorContext.proceed (InterceptorContext.java:422)

      …t.processors.StartupAwaitInterceptor.processInvocation (StartupAwaitInterceptor.java:22)

      org.jboss.invocation.InterceptorContext.proceed (InterceptorContext.java:422)

      …ceptors.ShutDownInterceptorFactory$1.processInvocation (ShutDownInterceptorFactory.java:64)

      org.jboss.invocation.InterceptorContext.proceed (InterceptorContext.java:422)

      …nent.interceptors.LoggingInterceptor.processInvocation (LoggingInterceptor.java:67)

      org.jboss.invocation.InterceptorContext.proceed (InterceptorContext.java:422)

      …omponent.NamespaceContextInterceptor.processInvocation (NamespaceContextInterceptor.java:50)

      org.jboss.invocation.InterceptorContext.proceed (InterceptorContext.java:422)

      …cation.ContextClassLoaderInterceptor.processInvocation (ContextClassLoaderInterceptor.java:60)

      org.jboss.invocation.InterceptorContext.proceed (InterceptorContext.java:422)

      org.jboss.invocation.InterceptorContext.run (InterceptorContext.java:438)

      …dfly.security.manager.WildFlySecurityManager.doChecked (WildFlySecurityManager.java:631)

      …invocation.AccessCheckingInterceptor.processInvocation (AccessCheckingInterceptor.java:57)

      org.jboss.invocation.InterceptorContext.proceed (InterceptorContext.java:422)

      ….jboss.invocation.ChainedInterceptor.processInvocation (ChainedInterceptor.java:53)

      org.jboss.as.ee.component.ViewService$View.invoke (ViewService.java:198)

      …ss.as.ee.component.ViewDescription$1.processInvocation (ViewDescription.java:185)

      org.jboss.as.ee.component.ProxyInvocationHandler.invoke (ProxyInvocationHandler.java:81)

      …r.dao.TermsAndConditionsDAO$$$view25.isDownloadAllowed (Unknown Source)

      ….rest.jdf.wizardSteps.TCDownloadWizardStep.isNecessary (TCDownloadWizardStep.java:116)

      org.jboss.downloadmanager.rest.jdf.JDFServlet.doGet (JDFServlet.java:213)

      javax.servlet.http.HttpServlet.doHead (HttpServlet.java:287)

      javax.servlet.http.HttpServlet.service (HttpServlet.java:703)

      javax.servlet.http.HttpServlet.service (HttpServlet.java:791)

      …undertow.servlet.handlers.ServletHandler.handleRequest (ServletHandler.java:74)

      …ervlet.handlers.FilterHandler$FilterChainImpl.doFilter (FilterHandler.java:129)

      …oss.downloadmanager.WelcomeFileRedirectFilter.doFilter (WelcomeFileRedirectFilter.java:44)

      io.undertow.servlet.core.ManagedFilter.doFilter (ManagedFilter.java:61)

      …ervlet.handlers.FilterHandler$FilterChainImpl.doFilter (FilterHandler.java:131)

      org.jboss.downloadmanager.CookiesEnabledFilter.doFilter (CookiesEnabledFilter.java:196)

      io.undertow.servlet.core.ManagedFilter.doFilter (ManagedFilter.java:61)

      …ervlet.handlers.FilterHandler$FilterChainImpl.doFilter (FilterHandler.java:131)

      …boss.downloadmanager.SetRequestEncodingFilter.doFilter (SetRequestEncodingFilter.java:17)

      io.undertow.servlet.core.ManagedFilter.doFilter (ManagedFilter.java:61)

      …ervlet.handlers.FilterHandler$FilterChainImpl.doFilter (FilterHandler.java:131)

      …ing.contrib.jaxrs2.server.SpanFinishingFilter.doFilter (SpanFinishingFilter.java:55)

      io.undertow.servlet.core.ManagedFilter.doFilter (ManagedFilter.java:61)

      …ervlet.handlers.FilterHandler$FilterChainImpl.doFilter (FilterHandler.java:131)

      ….undertow.servlet.handlers.FilterHandler.handleRequest (FilterHandler.java:84)

      …lers.security.ServletSecurityRoleHandler.handleRequest (ServletSecurityRoleHandler.java:62)

      …undertow.servlet.handlers.ServletChain$1.handleRequest (ServletChain.java:68)

      …rvlet.handlers.ServletDispatchingHandler.handleRequest (ServletDispatchingHandler.java:36)

      …curity.SecurityContextAssociationHandler.handleRequest (SecurityContextAssociationHandler.java:78)

      …ndertow.server.handlers.PredicateHandler.handleRequest (PredicateHandler.java:43)

      …rtow.UndertowAuthenticatedActionsHandler.handleRequest (UndertowAuthenticatedActionsHandler.java:66)

      …rtow.servlet.handlers.RedirectDirHandler.handleRequest (RedirectDirHandler.java:68)

      …ecurity.SSLInformationAssociationHandler.handleRequest (SSLInformationAssociationHandler.java:132)

      …ecurity.ServletAuthenticationCallHandler.handleRequest (ServletAuthenticationCallHandler.java:57)

      …ndertow.server.handlers.PredicateHandler.handleRequest (PredicateHandler.java:43)

      …handlers.AuthenticationConstraintHandler.handleRequest (AuthenticationConstraintHandler.java:53)

      ….handlers.AbstractConfidentialityHandler.handleRequest (AbstractConfidentialityHandler.java:46)

      ….ServletConfidentialityConstraintHandler.handleRequest (ServletConfidentialityConstraintHandler.java:64)

      …ecurity.ServletSecurityConstraintHandler.handleRequest (ServletSecurityConstraintHandler.java:59)

      …handlers.AuthenticationMechanismsHandler.handleRequest (AuthenticationMechanismsHandler.java:60)

      …curity.CachedAuthenticatedSessionHandler.handleRequest (CachedAuthenticatedSessionHandler.java:77)

      …ity.handlers.NotificationReceiverHandler.handleRequest (NotificationReceiverHandler.java:50)

      …bstractSecurityContextAssociationHandler.handleRequest (AbstractSecurityContextAssociationHandler.java:43)

      …ndertow.server.handlers.PredicateHandler.handleRequest (PredicateHandler.java:43)

      …ertow.security.jacc.JACCContextIdHandler.handleRequest (JACCContextIdHandler.java:61)

      …ndertow.server.handlers.PredicateHandler.handleRequest (PredicateHandler.java:43)

      …eployment.GlobalRequestControllerHandler.handleRequest (GlobalRequestControllerHandler.java:68)

      …rs.undertow.ServletPreAuthActionsHandler.handleRequest (ServletPreAuthActionsHandler.java:69)

      …ndertow.server.handlers.PredicateHandler.handleRequest (PredicateHandler.java:43)

      …vlet.handlers.ServletInitialHandler.handleFirstRequest (ServletInitialHandler.java:269)

      …rtow.servlet.handlers.ServletInitialHandler.access$100 (ServletInitialHandler.java:78)

      …undertow.servlet.handlers.ServletInitialHandler$2.call (ServletInitialHandler.java:133)

      …undertow.servlet.handlers.ServletInitialHandler$2.call (ServletInitialHandler.java:130)

      …let.core.ServletRequestContextThreadSetupAction$1.call (ServletRequestContextThreadSetupAction.java:48)

      …rtow.servlet.core.ContextClassLoaderSetupAction$1.call (ContextClassLoaderSetupAction.java:43)

      …urity.SecurityContextThreadSetupAction.lambda$create$0 (SecurityContextThreadSetupAction.java:105)

      …tInfoService$UndertowThreadSetupAction.lambda$create$0 (UndertowDeploymentInfoService.java:1504)

      …tInfoService$UndertowThreadSetupAction.lambda$create$0 (UndertowDeploymentInfoService.java:1504)

      …tInfoService$UndertowThreadSetupAction.lambda$create$0 (UndertowDeploymentInfoService.java:1504)

      …tInfoService$UndertowThreadSetupAction.lambda$create$0 (UndertowDeploymentInfoService.java:1504)

      …tInfoService$UndertowThreadSetupAction.lambda$create$0 (UndertowDeploymentInfoService.java:1504)

      …servlet.handlers.ServletInitialHandler.dispatchRequest (ServletInitialHandler.java:249)

      …rtow.servlet.handlers.ServletInitialHandler.access$000 (ServletInitialHandler.java:78)

      …servlet.handlers.ServletInitialHandler$1.handleRequest (ServletInitialHandler.java:99)

      io.undertow.server.Connectors.executeRootHandler (Connectors.java:376)

      io.undertow.server.HttpServerExchange$1.run (HttpServerExchange.java:830)

      org.jboss.threads.ContextClassLoaderSavingRunnable.run (ContextClassLoaderSavingRunnable.java:35)

      org.jboss.threads.EnhancedQueueExecutor.safeRun (EnhancedQueueExecutor.java:1985)

      …oss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask (EnhancedQueueExecutor.java:1487)

      org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run (EnhancedQueueExecutor.java:1378)

      java.lang.Thread.run (Thread.java:748)

              dhladky@redhat.com David Hladky
              dhladky@redhat.com David Hladky
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: