org.jasig.portal.PortalException: Unable to instantiate a "org.jasig.portal.layout.SimpleUserLayoutManager" at org.jasig.portal.layout.UserLayoutManagerFactory.getUserLayoutManager(UserLayoutManagerFactory.java:85) at org.jasig.portal.GuestUserPreferencesManager.registerSession(GuestUserPreferencesManager.java:194) at org.jasig.portal.GuestUserInstance.registerSession(GuestUserInstance.java:89) at org.jasig.portal.UserInstanceManager.getUserInstance(UserInstanceManager.java:89) at org.jasig.portal.PortalSessionManager.doGet(PortalSessionManager.java:219)

Apereo Issues | cbrownray | 1 decade ago
  1. 0

    Error not encountered when using Hypersonic. Portal Log contains the following when using MS SQLServer: ----------------------------------------------------------------- INFO [main] root.[] Nov/19 12:52:29 - uPortal started INFO [main] root.[] Nov/19 12:52:29 - External services: bound class instance for service "LogService" INFO [Thread-6] root.[] Nov/19 12:52:34 - Microsoft SQL Server/com.microsoft.jdbc.sqlserver.SQLServerDriver (2.2.0029) database/driver supports: Prepared statements=true, Outer joins=true, Transactions=true, '{ts' metasyntax=true ERROR [Thread-6] root.[] Nov/19 12:52:35 - EXCEPTION: org.jasig.portal.PortalException: Unable to instantiate a "org.jasig.portal.layout.SimpleUserLayoutManager" org.jasig.portal.PortalException: Unable to instantiate a "org.jasig.portal.layout.SimpleUserLayoutManager" at org.jasig.portal.layout.UserLayoutManagerFactory.getUserLayoutManager(UserLayoutManagerFactory.java:85) at org.jasig.portal.GuestUserPreferencesManager.registerSession(GuestUserPreferencesManager.java:194) at org.jasig.portal.GuestUserInstance.registerSession(GuestUserInstance.java:89) at org.jasig.portal.UserInstanceManager.getUserInstance(UserInstanceManager.java:89) at org.jasig.portal.PortalSessionManager.doGet(PortalSessionManager.java:219) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) "portal.log" 76L, 6719C

    Apereo Issues | 1 decade ago | cbrownray
    org.jasig.portal.PortalException: Unable to instantiate a "org.jasig.portal.layout.SimpleUserLayoutManager" at org.jasig.portal.layout.UserLayoutManagerFactory.getUserLayoutManager(UserLayoutManagerFactory.java:85) at org.jasig.portal.GuestUserPreferencesManager.registerSession(GuestUserPreferencesManager.java:194) at org.jasig.portal.GuestUserInstance.registerSession(GuestUserInstance.java:89) at org.jasig.portal.UserInstanceManager.getUserInstance(UserInstanceManager.java:89) at org.jasig.portal.PortalSessionManager.doGet(PortalSessionManager.java:219)
  2. 0

    Error not encountered when using Hypersonic. Portal Log contains the following when using MS SQLServer: ----------------------------------------------------------------- INFO [main] root.[] Nov/19 12:52:29 - uPortal started INFO [main] root.[] Nov/19 12:52:29 - External services: bound class instance for service "LogService" INFO [Thread-6] root.[] Nov/19 12:52:34 - Microsoft SQL Server/com.microsoft.jdbc.sqlserver.SQLServerDriver (2.2.0029) database/driver supports: Prepared statements=true, Outer joins=true, Transactions=true, '{ts' metasyntax=true ERROR [Thread-6] root.[] Nov/19 12:52:35 - EXCEPTION: org.jasig.portal.PortalException: Unable to instantiate a "org.jasig.portal.layout.SimpleUserLayoutManager" org.jasig.portal.PortalException: Unable to instantiate a "org.jasig.portal.layout.SimpleUserLayoutManager" at org.jasig.portal.layout.UserLayoutManagerFactory.getUserLayoutManager(UserLayoutManagerFactory.java:85) at org.jasig.portal.GuestUserPreferencesManager.registerSession(GuestUserPreferencesManager.java:194) at org.jasig.portal.GuestUserInstance.registerSession(GuestUserInstance.java:89) at org.jasig.portal.UserInstanceManager.getUserInstance(UserInstanceManager.java:89) at org.jasig.portal.PortalSessionManager.doGet(PortalSessionManager.java:219) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) "portal.log" 76L, 6719C

    Apereo Issues | 1 decade ago | cbrownray
    org.jasig.portal.PortalException: Unable to instantiate a "org.jasig.portal.layout.SimpleUserLayoutManager" at org.jasig.portal.layout.UserLayoutManagerFactory.getUserLayoutManager(UserLayoutManagerFactory.java:85) at org.jasig.portal.GuestUserPreferencesManager.registerSession(GuestUserPreferencesManager.java:194) at org.jasig.portal.GuestUserInstance.registerSession(GuestUserInstance.java:89) at org.jasig.portal.UserInstanceManager.getUserInstance(UserInstanceManager.java:89) at org.jasig.portal.PortalSessionManager.doGet(PortalSessionManager.java:219)
  3. 0

    I was able to reproduce this exception reliably by doing the following on the 2.4.1 quickstart! ant hsql & cd uPortal_rel-2-4-1 modify properties/PersonDirs.xml: Set the uidquery to the following: -------------------- <uidquery>SELECT FIRST_NAME||' '||LAST_NAME AS FIRST_LAST, FIRST_NAME, LAST_NAME, EMAIL , 'test' as template FROM UP_PERSON_DIR WHERE USER_NAME=?</uidquery> --Add the following to map template to the template user name -------------------- <attribute><alias>uPortalTemplateUserName</alias> <name>template</name></attribute> -------------------- ant md5passwd -Dusername=test # enter password ant md5passwd -Dusername=test1 # enter password cd .. ant tomcatstart # browse to http://localhost:8080/uPortal # login as test and logout (do not do anything else such as modify the layout) # login as test1 # you will get Cannot Start uPortal along with the following exceptions in the log: ERROR [http-8080-Processor25] layout.AggregatedUserLayoutStore.[] Jan/18 08:44:58 - Error getting aggregated layout for user org.jasig.portal.security.provider.PersonImpl@145e460 org.jasig.portal.PortalException: AggregatedUserLayoutStore::getAggregatedLayout(): No INIT_NODE_ID in UP_USER_LAYOUT_AGGR for 17 and LAYOUT_ID 1 at org.jasig.portal.layout.AggregatedUserLayoutStore.getAggregatedLayout(AggregatedUserLayoutStore.java:1889) at org.jasig.portal.layout.AggregatedLayoutManager.loadUserLayout(AggregatedLayoutManager.java:1081) at org.jasig.portal.layout.AggregatedLayoutManager.<init>(AggregatedLayoutManager.java:120) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at org.jasig.portal.layout.UserLayoutManagerFactory.getUserLayoutManager(UserLayoutManagerFactory.java:85) at org.jasig.portal.UserPreferencesManager.<init>(UserPreferencesManager.java:233) at org.jasig.portal.UserInstance.writeContent(UserInstance.java:174) at org.jasig.portal.PortalSessionManager.doGet(PortalSessionManager.java:276) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534) ERROR [http-8080-Processor25] portal.ExceptionHelper.[] Jan/18 08:44:58 - Programming error java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at org.jasig.portal.layout.UserLayoutManagerFactory.getUserLayoutManager(UserLayoutManagerFactory.java:85) at org.jasig.portal.UserPreferencesManager.<init>(UserPreferencesManager.java:233) at org.jasig.portal.UserInstance.writeContent(UserInstance.java:174) at org.jasig.portal.PortalSessionManager.doGet(PortalSessionManager.java:276) Caused by: org.jasig.portal.PortalException: null [based on exception: AggregatedUserLayoutStore::getAggregatedLayout(): No INIT_NODE_ID in UP_USER_LAYOUT_AGGR for 17 and LAYOUT_ ID 1] at org.jasig.portal.layout.AggregatedLayoutManager.loadUserLayout(AggregatedLayoutManager.java:1101) at org.jasig.portal.layout.AggregatedLayoutManager.<init>(AggregatedLayoutManager.java:120) ... 34 more

    Apereo Issues | 1 decade ago | Brad Johnson
    org.jasig.portal.PortalException: AggregatedUserLayoutStore::getAggregatedLayout(): No INIT_NODE_ID in UP_USER_LAYOUT_AGGR for 17 and LAYOUT_ID 1 at org.jasig.portal.layout.AggregatedUserLayoutStore.getAggregatedLayout(AggregatedUserLayoutStore.java:1889) at org.jasig.portal.layout.AggregatedLayoutManager.loadUserLayout(AggregatedLayoutManager.java:1081) at org.jasig.portal.layout.AggregatedLayoutManager.<init>(AggregatedLayoutManager.java:120) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at org.jasig.portal.layout.UserLayoutManagerFactory.getUserLayoutManager(UserLayoutManagerFactory.java:85) at org.jasig.portal.UserPreferencesManager.<init>(UserPreferencesManager.java:233) at org.jasig.portal.UserInstance.writeContent(UserInstance.java:174) at org.jasig.portal.PortalSessionManager.doGet(PortalSessionManager.java:276) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I was able to reproduce this exception reliably by doing the following on the 2.4.1 quickstart! ant hsql & cd uPortal_rel-2-4-1 modify properties/PersonDirs.xml: Set the uidquery to the following: -------------------- <uidquery>SELECT FIRST_NAME||' '||LAST_NAME AS FIRST_LAST, FIRST_NAME, LAST_NAME, EMAIL , 'test' as template FROM UP_PERSON_DIR WHERE USER_NAME=?</uidquery> --Add the following to map template to the template user name -------------------- <attribute><alias>uPortalTemplateUserName</alias> <name>template</name></attribute> -------------------- ant md5passwd -Dusername=test # enter password ant md5passwd -Dusername=test1 # enter password cd .. ant tomcatstart # browse to http://localhost:8080/uPortal # login as test and logout (do not do anything else such as modify the layout) # login as test1 # you will get Cannot Start uPortal along with the following exceptions in the log: ERROR [http-8080-Processor25] layout.AggregatedUserLayoutStore.[] Jan/18 08:44:58 - Error getting aggregated layout for user org.jasig.portal.security.provider.PersonImpl@145e460 org.jasig.portal.PortalException: AggregatedUserLayoutStore::getAggregatedLayout(): No INIT_NODE_ID in UP_USER_LAYOUT_AGGR for 17 and LAYOUT_ID 1 at org.jasig.portal.layout.AggregatedUserLayoutStore.getAggregatedLayout(AggregatedUserLayoutStore.java:1889) at org.jasig.portal.layout.AggregatedLayoutManager.loadUserLayout(AggregatedLayoutManager.java:1081) at org.jasig.portal.layout.AggregatedLayoutManager.<init>(AggregatedLayoutManager.java:120) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at org.jasig.portal.layout.UserLayoutManagerFactory.getUserLayoutManager(UserLayoutManagerFactory.java:85) at org.jasig.portal.UserPreferencesManager.<init>(UserPreferencesManager.java:233) at org.jasig.portal.UserInstance.writeContent(UserInstance.java:174) at org.jasig.portal.PortalSessionManager.doGet(PortalSessionManager.java:276) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534) ERROR [http-8080-Processor25] portal.ExceptionHelper.[] Jan/18 08:44:58 - Programming error java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at org.jasig.portal.layout.UserLayoutManagerFactory.getUserLayoutManager(UserLayoutManagerFactory.java:85) at org.jasig.portal.UserPreferencesManager.<init>(UserPreferencesManager.java:233) at org.jasig.portal.UserInstance.writeContent(UserInstance.java:174) at org.jasig.portal.PortalSessionManager.doGet(PortalSessionManager.java:276) Caused by: org.jasig.portal.PortalException: null [based on exception: AggregatedUserLayoutStore::getAggregatedLayout(): No INIT_NODE_ID in UP_USER_LAYOUT_AGGR for 17 and LAYOUT_ ID 1] at org.jasig.portal.layout.AggregatedLayoutManager.loadUserLayout(AggregatedLayoutManager.java:1101) at org.jasig.portal.layout.AggregatedLayoutManager.<init>(AggregatedLayoutManager.java:120) ... 34 more

    Apereo Issues | 1 decade ago | Brad Johnson
    org.jasig.portal.PortalException: AggregatedUserLayoutStore::getAggregatedLayout(): No INIT_NODE_ID in UP_USER_LAYOUT_AGGR for 17 and LAYOUT_ID 1 at org.jasig.portal.layout.AggregatedUserLayoutStore.getAggregatedLayout(AggregatedUserLayoutStore.java:1889) at org.jasig.portal.layout.AggregatedLayoutManager.loadUserLayout(AggregatedLayoutManager.java:1081) at org.jasig.portal.layout.AggregatedLayoutManager.<init>(AggregatedLayoutManager.java:120) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at org.jasig.portal.layout.UserLayoutManagerFactory.getUserLayoutManager(UserLayoutManagerFactory.java:85) at org.jasig.portal.UserPreferencesManager.<init>(UserPreferencesManager.java:233) at org.jasig.portal.UserInstance.writeContent(UserInstance.java:174) at org.jasig.portal.PortalSessionManager.doGet(PortalSessionManager.java:276) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.jasig.portal.PortalException

      Unable to instantiate a "org.jasig.portal.layout.SimpleUserLayoutManager" at org.jasig.portal.layout.UserLayoutManagerFactory.getUserLayoutManager(UserLayoutManagerFactory.java:85) at org.jasig.portal.GuestUserPreferencesManager.registerSession(GuestUserPreferencesManager.java:194) at org.jasig.portal.GuestUserInstance.registerSession(GuestUserInstance.java:89) at org.jasig.portal.UserInstanceManager.getUserInstance(UserInstanceManager.java:89) at org.jasig.portal.PortalSessionManager.doGet(PortalSessionManager.java:219)

      at javax.servlet.http.HttpServlet.service()
    2. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
      1 frame