Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-14539

Infinite recursion in setLocale on non-standard repos

    XMLWordPrintable

    Details

      Description

      When using multi-repo, and working on the non-default repository, there's first a failure to fetch from the proper repository:

      18:27:28,834 ERROR [DefaultActionFilter] evaluation of condition #{favoritesActions.canCurrentDocumentBeAddedToFavorites()} failed: returning false
      javax.el.ELException: org.nuxeo.ecm.core.api.ClientException: Failed to get document 8b142656-d52a-4ba3-ac38-d439270fb0e7
      Caused by: org.nuxeo.ecm.core.api.ClientException: Failed to get document 8b142656-d52a-4ba3-ac38-d439270fb0e7
      	at org.nuxeo.ecm.core.api.AbstractSession.getDocument(AbstractSession.java:1016)
      	at sun.reflect.GeneratedMethodAccessor371.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at org.nuxeo.ecm.core.api.TransactionalCoreSessionWrapper.invoke(TransactionalCoreSessionWrapper.java:131)
      	at com.sun.proxy.$Proxy88.getDocument(Unknown Source)
      	at org.nuxeo.ecm.user.center.profile.UserProfileServiceImpl.getUserProfileDocument(UserProfileServiceImpl.java:73)
      	at org.nuxeo.ecm.user.center.profile.localeProvider.UserLocaleProvider.getLocale(UserLocaleProvider.java:44)
      	at org.nuxeo.ecm.collections.core.FavoritesManagerImpl.getLocale(FavoritesManagerImpl.java:132)
      	at org.nuxeo.ecm.collections.core.FavoritesManagerImpl.createFavorites(FavoritesManagerImpl.java:72)
      	at org.nuxeo.ecm.collections.core.FavoritesManagerImpl.getFavorites(FavoritesManagerImpl.java:115)
      	at org.nuxeo.ecm.collections.core.FavoritesManagerImpl.isFavorite(FavoritesManagerImpl.java:144)
      	at org.nuxeo.ecm.collections.jsf.actions.FavoritesActionBean.canCurrentDocumentBeAddedToFavorites(FavoritesActionBean.java:80)
      	at sun.reflect.GeneratedMethodAccessor1183.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      

      Then, maybe because of this, I have an recursive call looping and eating memory:

       - org.nuxeo.ecm.core.api.AbstractSession.createDocument(org.nuxeo.ecm.core.api.DocumentModel) @bci=340, line=779 (Interpreted frame)
       - org.nuxeo.ecm.user.center.profile.UserProfileServiceImpl$UserProfileDocumentGetter.run() @bci=117, line=147 (Interpreted frame)
       - org.nuxeo.ecm.user.center.profile.UserProfileServiceImpl$UserProfileDocumentGetter.getOrCreate() @bci=24, line=160 (Interpreted frame)
       - org.nuxeo.ecm.user.center.profile.UserProfileServiceImpl.getUserProfileDocument(org.nuxeo.ecm.core.api.CoreSession) @bci=65, line=75 (Interpreted frame)
       - org.nuxeo.ecm.user.center.profile.localeProvider.UserLocaleProvider.getLocale(org.nuxeo.ecm.core.api.CoreSession) @bci=12, line=44 (Interpreted frame)
       - org.nuxeo.ecm.webapp.locale.LocaleStartup.setupLocale(org.nuxeo.ecm.core.api.CoreSession) @bci=12, line=102 (Interpreted frame)
       - sun.reflect.NativeMethodAccessorImpl.invoke0(java.lang.reflect.Method, java.lang.Object, java.lang.Object[]) @bci=0 (Compiled frame)
       - sun.reflect.NativeMethodAccessorImpl.invoke(java.lang.Object, java.lang.Object[]) @bci=87, line=57 (Interpreted frame)
       - sun.reflect.DelegatingMethodAccessorImpl.invoke(java.lang.Object, java.lang.Object[]) @bci=6, line=43 (Compiled frame)
       - java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) @bci=57, line=606 (Compiled frame)
       - org.jboss.seam.util.Reflections.invoke(java.lang.reflect.Method, java.lang.Object, java.lang.Object[]) @bci=3, line=22 (Compiled frame)
       - org.jboss.seam.intercept.RootInvocationContext.proceed() @bci=12, line=31 (Compiled frame)
       - org.jboss.seam.intercept.SeamInvocationContext.proceed() @bci=20, line=56 (Compiled frame)
       - org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(org.jboss.seam.intercept.InvocationContext) @bci=1, line=28 (Interpreted frame)
       - org.jboss.seam.intercept.SeamInvocationContext.proceed() @bci=124, line=68 (Compiled frame)
       - org.jboss.seam.core.BijectionInterceptor.aroundInvoke(org.jboss.seam.intercept.InvocationContext) @bci=125, line=68 (Interpreted frame)
       - org.jboss.seam.intercept.SeamInvocationContext.proceed() @bci=124, line=68 (Compiled frame)
       - org.nuxeo.ecm.platform.ui.web.util.NuxeoExceptionInterceptor.aroundInvoke(org.jboss.seam.intercept.InvocationContext) @bci=1, line=79 (Interpreted frame)
       - org.jboss.seam.intercept.SeamInvocationContext.proceed() @bci=124, line=68 (Compiled frame)
       - org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(org.jboss.seam.intercept.InvocationContext) @bci=98, line=44 (Interpreted frame)
       - org.jboss.seam.intercept.SeamInvocationContext.proceed() @bci=124, line=68 (Compiled frame)
       - org.jboss.seam.core.SynchronizationInterceptor.aroundInvoke(org.jboss.seam.intercept.InvocationContext) @bci=21, line=32 (Interpreted frame)
       - org.jboss.seam.intercept.SeamInvocationContext.proceed() @bci=124, line=68 (Compiled frame)
       - org.jboss.seam.intercept.RootInterceptor.invoke(org.jboss.seam.intercept.InvocationContext, org.jboss.seam.intercept.EventType) @bci=38, line=107 (Interpreted frame)
       - org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(java.lang.reflect.Method, java.lang.Object[]) @bci=17, line=166 (Interpreted frame)
       - org.jboss.seam.intercept.JavaBeanInterceptor.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.reflect.Method, java.lang.Object[]) @bci=232, line=102 (Interpreted frame)
       - org.nuxeo.ecm.webapp.locale.LocaleStartup_$$_javassist_7.setupLocale(org.nuxeo.ecm.core.api.CoreSession) @bci=56 (Interpreted frame)
       - org.nuxeo.ecm.user.center.profile.localeProvider.UserLocaleSelectorListener.handleEvent(org.nuxeo.ecm.core.event.Event) @bci=99, line=65 (Interpreted frame)
       - org.nuxeo.ecm.core.event.impl.EventServiceImpl.fireEvent(org.nuxeo.ecm.core.event.Event) @bci=71, line=218 (Interpreted frame)
       - org.nuxeo.ecm.core.api.AbstractSession.notifyEvent(java.lang.String, org.nuxeo.ecm.core.api.DocumentModel, java.util.Map, java.lang.String, java.lang.String, boolean, boolean) @bci=209, line=277 (Interpreted frame)
       - org.nuxeo.ecm.core.api.AbstractSession.createDocument(org.nuxeo.ecm.core.api.DocumentModel) @bci=340, line=779 (Interpreted frame)
       - sun.reflect.NativeMethodAccessorImpl.invoke0(java.lang.reflect.Method, java.lang.Object, java.lang.Object[]) @bci=0 (Compiled frame)
       - sun.reflect.NativeMethodAccessorImpl.invoke(java.lang.Object, java.lang.Object[]) @bci=87, line=57 (Interpreted frame)
       - sun.reflect.DelegatingMethodAccessorImpl.invoke(java.lang.Object, java.lang.Object[]) @bci=6, line=43 (Compiled frame)
       - java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) @bci=57, line=606 (Interpreted frame)
       - org.nuxeo.ecm.core.api.TransactionalCoreSessionWrapper.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[]) @bci=89, line=131 (Interpreted frame)
       - com.sun.proxy.$Proxy88.createDocument(org.nuxeo.ecm.core.api.DocumentModel) @bci=16 (Interpreted frame)
       - org.nuxeo.ecm.user.center.profile.UserProfileServiceImpl$UserProfileDocumentGetter.run() @bci=117, line=147 (Interpreted frame)
       - org.nuxeo.ecm.user.center.profile.UserProfileServiceImpl$UserProfileDocumentGetter.getOrCreate() @bci=24, line=160 (Interpreted frame)
       - org.nuxeo.ecm.user.center.profile.UserProfileServiceImpl.getUserProfileDocument(org.nuxeo.ecm.core.api.CoreSession) @bci=65, line=75 (Interpreted frame)
       - org.nuxeo.ecm.user.center.profile.localeProvider.UserLocaleProvider.getLocale(org.nuxeo.ecm.core.api.CoreSession) @bci=12, line=44 (Interpreted frame)
       - org.nuxeo.ecm.collections.core.FavoritesManagerImpl.getLocale(org.nuxeo.ecm.core.api.CoreSession) @bci=12, line=132 (Interpreted frame)
       - org.nuxeo.ecm.collections.core.FavoritesManagerImpl.createFavorites(org.nuxeo.ecm.core.api.CoreSession, org.nuxeo.ecm.core.api.DocumentModel) @bci=33, line=72 (Interpreted frame)
       - org.nuxeo.ecm.collections.core.FavoritesManagerImpl.getFavorites(org.nuxeo.ecm.core.api.DocumentModel, org.nuxeo.ecm.core.api.CoreSession) @bci=98, line=115 (Interpreted frame)
       - org.nuxeo.ecm.collections.core.FavoritesManagerImpl.isFavorite(org.nuxeo.ecm.core.api.DocumentModel, org.nuxeo.ecm.core.api.CoreSession) @bci=14, line=144 (Interpreted frame)
       - org.nuxeo.ecm.collections.jsf.actions.FavoritesActionBean.canCurrentDocumentBeAddedToFavorites() @bci=68, line=80 (Interpreted frame)
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: