org.jasig.portal.PortalException: java.lang.NullPointerException

Apereo Issues | Jennifer Bourey | 9 years ago
  1. 0

    A missing channel that was deleted before it was removed from a fragment layout prevented me from removing it from the layout or adding additional channels to the layout. The missing channel causes an error similar to this one: WARN [ErrorRendering#124] Oct/10 22:32:39,737 error.CError.[] - ErrorDocument XML is <error code="6"> <message>You don't have authorization to render this channel.</message> <channel> <id>n116</id> <name>Missing channel</name> </channel> </error> When trying to remove the missing channel from the layout I received this error in the stack trace: ERROR [org.jasig.portal.ChannelManager#63] Oct/10 22:35:25,952 DLMUserPreferences.TabColumnPrefsState.[] - org.jasig.portal.PortalException: Unable to acquire channel definition. org.jasig.portal.PortalException: Unable to acquire channel definition. at org.jasig.portal.layout.dlm.DistributedLayoutManager.getPublishedChannelParametersMap(DistributedLayoutManager.java:1158) at org.jasig.portal.layout.dlm.DistributedLayoutManager.updateChannelNode(DistributedLayoutManager.java:1006) at org.jasig.portal.layout.dlm.DistributedLayoutManager.updateNode(DistributedLayoutManager.java:755) at org.jasig.portal.layout.TransientUserLayoutManagerWrapper.updateNode(TransientUserLayoutManagerWrapper.java:222) at org.jasig.portal.channels.DLMUserPreferences.TabColumnPrefsState.changeRestrictions(TabColumnPrefsState.java:346) at org.jasig.portal.channels.DLMUserPreferences.TabColumnPrefsState.access$600(TabColumnPrefsState.java:99) at org.jasig.portal.channels.DLMUserPreferences.TabColumnPrefsState$DefaultState.setRuntimeData(TabColumnPrefsState.java:872) at org.jasig.portal.channels.DLMUserPreferences.TabColumnPrefsState.setRuntimeData(TabColumnPrefsState.java:197) at org.jasig.portal.channels.DLMUserPreferences.CUserPreferences.setRuntimeData(CUserPreferences.java:211) at org.jasig.portal.ChannelRenderer$Worker.execute(ChannelRenderer.java:519) at org.jasig.portal.utils.threading.BaseTask.run(BaseTask.java:41) at sun.reflect.GeneratedMethodAccessor163.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.orm.jpa.JpaInterceptor.invoke(JpaInterceptor.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at org.jasig.portal.$Proxy183.run(Unknown Source) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:636) Caused by: java.lang.NullPointerException at org.jasig.portal.layout.dlm.DistributedLayoutManager.getPublishedChannelParametersMap(DistributedLayoutManager.java:1155) ... 26 more When trying to add a channel to the layout which contains a missing channel I received this error: INFO [org.jasig.portal.ChannelManager#91] Oct/10 22:36:10,196 properties.PropertiesManager.[] - Property [org.jasig.portal.layout.channels.CSkinSelector.skins_path] was requested but not found. INFO [org.jasig.portal.ChannelManager#91] Oct/10 22:36:10,317 portal.ChannelRegistryManager.[] - Caching channel registry. ERROR [org.jasig.portal.ChannelManager#93] Oct/10 22:36:20,727 DLMUserPreferences.TabColumnPrefsState.[] - Problem occurred adding Channel. org.jasig.portal.PortalException: Exception encountered while saving layout for userId=13, profileId=3 at org.jasig.portal.layout.dlm.DistributedLayoutManager.saveUserLayout(DistributedLayoutManager.java:520) at org.jasig.portal.layout.TransientUserLayoutManagerWrapper.saveUserLayout(TransientUserLayoutManagerWrapper.java:168) at org.jasig.portal.channels.DLMUserPreferences.TabColumnPrefsState.saveLayout(TabColumnPrefsState.java:792) at org.jasig.portal.channels.DLMUserPreferences.TabColumnPrefsState.addChannel(TabColumnPrefsState.java:574) at org.jasig.portal.channels.DLMUserPreferences.TabColumnPrefsState.addChannel(TabColumnPrefsState.java:587) at org.jasig.portal.channels.DLMUserPreferences.TabColumnPrefsState.addChannel(TabColumnPrefsState.java:601) at org.jasig.portal.channels.DLMUserPreferences.TabColumnPrefsState.access$2500(TabColumnPrefsState.java:99) at org.jasig.portal.channels.DLMUserPreferences.TabColumnPrefsState$NewChannelState.setRuntimeData(TabColumnPrefsState.java:1401) at org.jasig.portal.channels.DLMUserPreferences.TabColumnPrefsState.setRuntimeData(TabColumnPrefsState.java:197) at org.jasig.portal.channels.DLMUserPreferences.CUserPreferences.setRuntimeData(CUserPreferences.java:211) at org.jasig.portal.ChannelRenderer$Worker.execute(ChannelRenderer.java:519) at org.jasig.portal.utils.threading.BaseTask.run(BaseTask.java:41) at sun.reflect.GeneratedMethodAccessor163.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.orm.jpa.JpaInterceptor.invoke(JpaInterceptor.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at org.jasig.portal.$Proxy183.run(Unknown Source) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:636) Caused by: java.lang.NullPointerException at org.jasig.portal.layout.dlm.RDBMDistributedLayoutStore.saveStructure(RDBMDistributedLayoutStore.java:2581) at org.jasig.portal.layout.dlm.RDBMDistributedLayoutStore.saveStructure(RDBMDistributedLayoutStore.java:2487) at org.jasig.portal.layout.dlm.RDBMDistributedLayoutStore.saveStructure(RDBMDistributedLayoutStore.java:2487) at org.jasig.portal.layout.dlm.RDBMDistributedLayoutStore.saveStructure(RDBMDistributedLayoutStore.java:2490) at org.jasig.portal.layout.dlm.RDBMDistributedLayoutStore.saveStructure(RDBMDistributedLayoutStore.java:2490) at org.jasig.portal.layout.dlm.RDBMDistributedLayoutStore.saveStructure(RDBMDistributedLayoutStore.java:2490) at org.jasig.portal.layout.dlm.RDBMDistributedLayoutStore.saveStructure(RDBMDistributedLayoutStore.java:2490) at org.jasig.portal.layout.dlm.RDBMDistributedLayoutStore.saveStructure(RDBMDistributedLayoutStore.java:2487) at org.jasig.portal.layout.simple.RDBMUserLayoutStore.setUserLayout(RDBMUserLayoutStore.java:2271) at org.jasig.portal.layout.dlm.RDBMDistributedLayoutStore.setUserLayout(RDBMDistributedLayoutStore.java:1408) at org.jasig.portal.layout.dlm.RDBMDistributedLayoutStore.setUserLayout(RDBMDistributedLayoutStore.java:1389) at org.jasig.portal.layout.dlm.DistributedLayoutManager.saveUserLayout(DistributedLayoutManager.java:518) ... 27 more

    Apereo Issues | 5 years ago | Laura McCord
    org.jasig.portal.PortalException: Unable to acquire channel definition.
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    A missing channel that was deleted before it was removed from a fragment layout prevented me from removing it from the layout or adding additional channels to the layout. The missing channel causes an error similar to this one: WARN [ErrorRendering#124] Oct/10 22:32:39,737 error.CError.[] - ErrorDocument XML is <error code="6"> <message>You don't have authorization to render this channel.</message> <channel> <id>n116</id> <name>Missing channel</name> </channel> </error> When trying to remove the missing channel from the layout I received this error in the stack trace: ERROR [org.jasig.portal.ChannelManager#63] Oct/10 22:35:25,952 DLMUserPreferences.TabColumnPrefsState.[] - org.jasig.portal.PortalException: Unable to acquire channel definition. org.jasig.portal.PortalException: Unable to acquire channel definition. at org.jasig.portal.layout.dlm.DistributedLayoutManager.getPublishedChannelParametersMap(DistributedLayoutManager.java:1158) at org.jasig.portal.layout.dlm.DistributedLayoutManager.updateChannelNode(DistributedLayoutManager.java:1006) at org.jasig.portal.layout.dlm.DistributedLayoutManager.updateNode(DistributedLayoutManager.java:755) at org.jasig.portal.layout.TransientUserLayoutManagerWrapper.updateNode(TransientUserLayoutManagerWrapper.java:222) at org.jasig.portal.channels.DLMUserPreferences.TabColumnPrefsState.changeRestrictions(TabColumnPrefsState.java:346) at org.jasig.portal.channels.DLMUserPreferences.TabColumnPrefsState.access$600(TabColumnPrefsState.java:99) at org.jasig.portal.channels.DLMUserPreferences.TabColumnPrefsState$DefaultState.setRuntimeData(TabColumnPrefsState.java:872) at org.jasig.portal.channels.DLMUserPreferences.TabColumnPrefsState.setRuntimeData(TabColumnPrefsState.java:197) at org.jasig.portal.channels.DLMUserPreferences.CUserPreferences.setRuntimeData(CUserPreferences.java:211) at org.jasig.portal.ChannelRenderer$Worker.execute(ChannelRenderer.java:519) at org.jasig.portal.utils.threading.BaseTask.run(BaseTask.java:41) at sun.reflect.GeneratedMethodAccessor163.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.orm.jpa.JpaInterceptor.invoke(JpaInterceptor.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at org.jasig.portal.$Proxy183.run(Unknown Source) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:636) Caused by: java.lang.NullPointerException at org.jasig.portal.layout.dlm.DistributedLayoutManager.getPublishedChannelParametersMap(DistributedLayoutManager.java:1155) ... 26 more When trying to add a channel to the layout which contains a missing channel I received this error: INFO [org.jasig.portal.ChannelManager#91] Oct/10 22:36:10,196 properties.PropertiesManager.[] - Property [org.jasig.portal.layout.channels.CSkinSelector.skins_path] was requested but not found. INFO [org.jasig.portal.ChannelManager#91] Oct/10 22:36:10,317 portal.ChannelRegistryManager.[] - Caching channel registry. ERROR [org.jasig.portal.ChannelManager#93] Oct/10 22:36:20,727 DLMUserPreferences.TabColumnPrefsState.[] - Problem occurred adding Channel. org.jasig.portal.PortalException: Exception encountered while saving layout for userId=13, profileId=3 at org.jasig.portal.layout.dlm.DistributedLayoutManager.saveUserLayout(DistributedLayoutManager.java:520) at org.jasig.portal.layout.TransientUserLayoutManagerWrapper.saveUserLayout(TransientUserLayoutManagerWrapper.java:168) at org.jasig.portal.channels.DLMUserPreferences.TabColumnPrefsState.saveLayout(TabColumnPrefsState.java:792) at org.jasig.portal.channels.DLMUserPreferences.TabColumnPrefsState.addChannel(TabColumnPrefsState.java:574) at org.jasig.portal.channels.DLMUserPreferences.TabColumnPrefsState.addChannel(TabColumnPrefsState.java:587) at org.jasig.portal.channels.DLMUserPreferences.TabColumnPrefsState.addChannel(TabColumnPrefsState.java:601) at org.jasig.portal.channels.DLMUserPreferences.TabColumnPrefsState.access$2500(TabColumnPrefsState.java:99) at org.jasig.portal.channels.DLMUserPreferences.TabColumnPrefsState$NewChannelState.setRuntimeData(TabColumnPrefsState.java:1401) at org.jasig.portal.channels.DLMUserPreferences.TabColumnPrefsState.setRuntimeData(TabColumnPrefsState.java:197) at org.jasig.portal.channels.DLMUserPreferences.CUserPreferences.setRuntimeData(CUserPreferences.java:211) at org.jasig.portal.ChannelRenderer$Worker.execute(ChannelRenderer.java:519) at org.jasig.portal.utils.threading.BaseTask.run(BaseTask.java:41) at sun.reflect.GeneratedMethodAccessor163.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.orm.jpa.JpaInterceptor.invoke(JpaInterceptor.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at org.jasig.portal.$Proxy183.run(Unknown Source) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:636) Caused by: java.lang.NullPointerException at org.jasig.portal.layout.dlm.RDBMDistributedLayoutStore.saveStructure(RDBMDistributedLayoutStore.java:2581) at org.jasig.portal.layout.dlm.RDBMDistributedLayoutStore.saveStructure(RDBMDistributedLayoutStore.java:2487) at org.jasig.portal.layout.dlm.RDBMDistributedLayoutStore.saveStructure(RDBMDistributedLayoutStore.java:2487) at org.jasig.portal.layout.dlm.RDBMDistributedLayoutStore.saveStructure(RDBMDistributedLayoutStore.java:2490) at org.jasig.portal.layout.dlm.RDBMDistributedLayoutStore.saveStructure(RDBMDistributedLayoutStore.java:2490) at org.jasig.portal.layout.dlm.RDBMDistributedLayoutStore.saveStructure(RDBMDistributedLayoutStore.java:2490) at org.jasig.portal.layout.dlm.RDBMDistributedLayoutStore.saveStructure(RDBMDistributedLayoutStore.java:2490) at org.jasig.portal.layout.dlm.RDBMDistributedLayoutStore.saveStructure(RDBMDistributedLayoutStore.java:2487) at org.jasig.portal.layout.simple.RDBMUserLayoutStore.setUserLayout(RDBMUserLayoutStore.java:2271) at org.jasig.portal.layout.dlm.RDBMDistributedLayoutStore.setUserLayout(RDBMDistributedLayoutStore.java:1408) at org.jasig.portal.layout.dlm.RDBMDistributedLayoutStore.setUserLayout(RDBMDistributedLayoutStore.java:1389) at org.jasig.portal.layout.dlm.DistributedLayoutManager.saveUserLayout(DistributedLayoutManager.java:518) ... 27 more

    Apereo Issues | 5 years ago | Laura McCord
    org.jasig.portal.PortalException: Unable to acquire channel definition.
  4. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException

    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. java.lang.NullPointerException

      No message provided

      at org.jasig.portal.layout.channels.locales.CUserLocalesSelector.setRuntimeData()
    2. org.jasig.portal
      BaseTask.run
      1. org.jasig.portal.layout.channels.locales.CUserLocalesSelector.setRuntimeData(CUserLocalesSelector.java:51)
      2. org.jasig.portal.ChannelRenderer$Worker.execute(ChannelRenderer.java:445)
      3. org.jasig.portal.utils.threading.BaseTask.run(BaseTask.java:27)
      3 frames
    3. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
      2. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
      3. java.util.concurrent.FutureTask.run(FutureTask.java:123)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
      5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
      6. java.lang.Thread.run(Thread.java:613)
      6 frames