java.lang.RuntimeException: java.lang.NullPointerException

Apereo Issues | Dan McCallum | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    If the {{ssp}} webapp starts up before {{ssp-platform}}, you'll get the following stack trace b/c the coach sync job fires effectively right away: {noformat} java.lang.RuntimeException: java.lang.NullPointerException at org.jasig.portlet.utils.rest.SimpleCrossContextRestApiInvoker.doInvoke(SimpleCrossContextRestApiInvoker.java:183) ~[portal-rest-api-1.0.0-M3.jar:1.0.0-M3] at org.jasig.portlet.utils.rest.SimpleCrossContextRestApiInvoker.invoke(SimpleCrossContextRestApiInvoker.java:93) ~[portal-rest-api-1.0.0-M3.jar:1.0.0-M3] at org.jasig.ssp.service.impl.UPortalPersonAttributesService.searchForUsers(UPortalPersonAttributesService.java:209) ~[UPortalPersonAttributesService.class:na] at org.jasig.ssp.service.impl.UPortalPersonAttributesService.getCoaches(UPortalPersonAttributesService.java:260) ~[UPortalPersonAttributesService.class:na] at org.jasig.ssp.service.impl.PersonServiceImpl.getAllCoachUsernamesFromDirectory(PersonServiceImpl.java:553) ~[PersonServiceImpl.class:na] at org.jasig.ssp.service.impl.PersonServiceImpl.syncCoaches(PersonServiceImpl.java:619) ~[PersonServiceImpl.class:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_45] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_45] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_45] at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_45] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319) ~[spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) ~[spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) ~[spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE] at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110) ~[spring-tx-3.1.2.RELEASE.jar:3.1.2.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) ~[spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) ~[spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE] at com.sun.proxy.$Proxy52.syncCoaches(Unknown Source) ~[na:na] at org.jasig.ssp.service.impl.ScheduledTaskWrapperServiceImpl.syncCoaches(ScheduledTaskWrapperServiceImpl.java:87) ~[ScheduledTaskWrapperServiceImpl.class:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_45] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_45] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_45] at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_45] at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:64) ~[spring-context-3.1.2.RELEASE.jar:3.1.2.RELEASE] at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:53) ~[spring-context-3.1.2.RELEASE.jar:3.1.2.RELEASE] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) [na:1.6.0_45] at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) [na:1.6.0_45] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) [na:1.6.0_45] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) [na:1.6.0_45] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180) [na:1.6.0_45] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204) [na:1.6.0_45] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) [na:1.6.0_45] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) [na:1.6.0_45] at java.lang.Thread.run(Thread.java:662) [na:1.6.0_45] Caused by: java.lang.NullPointerException: null at org.jasig.portlet.utils.rest.SimpleCrossContextRestApiInvoker.doInvoke(SimpleCrossContextRestApiInvoker.java:175) ~[portal-rest-api-1.0.0-M3.jar:1.0.0-M3] ... 32 common frames omitted {noformat} There's been concern expressed that this is a needless distraction for deployers b/c the error eventually "goes away". I.e. by the next time the coach sync job fires, platform will have started up. This is a bit of a tough one. The servlet spec has nothing to say about webapp startup ordering. So we can't stipulate via config that {{ssp-platform}} should always start ahead of {{ssp}}. (This was one motivation for Sakai "components", for example.) And we can't just swallow the exception as a rule b/c it's harmless except when it's not. I.e. while it usually represents a transient failure, if it happens repeatedly or any time _after_ {{ssp-platform}} startup, it does represent a serious problem worthy of stack trace logging. What probably needs to happen is one or both of two things: # Delay firing of the coach sync job to give {{ssp-platform}} a chance to start up # When invoking {{ssp-platform}} from a background job (where you have the luxury of retries), detect this particular failure mode and implement a backoff/retry loop that will fire up to a configurable limit.

    Apereo Issues | 3 years ago | Dan McCallum
    java.lang.RuntimeException: java.lang.NullPointerException
  2. 0

    If the {{ssp}} webapp starts up before {{ssp-platform}}, you'll get the following stack trace b/c the coach sync job fires effectively right away: {noformat} java.lang.RuntimeException: java.lang.NullPointerException at org.jasig.portlet.utils.rest.SimpleCrossContextRestApiInvoker.doInvoke(SimpleCrossContextRestApiInvoker.java:183) ~[portal-rest-api-1.0.0-M3.jar:1.0.0-M3] at org.jasig.portlet.utils.rest.SimpleCrossContextRestApiInvoker.invoke(SimpleCrossContextRestApiInvoker.java:93) ~[portal-rest-api-1.0.0-M3.jar:1.0.0-M3] at org.jasig.ssp.service.impl.UPortalPersonAttributesService.searchForUsers(UPortalPersonAttributesService.java:209) ~[UPortalPersonAttributesService.class:na] at org.jasig.ssp.service.impl.UPortalPersonAttributesService.getCoaches(UPortalPersonAttributesService.java:260) ~[UPortalPersonAttributesService.class:na] at org.jasig.ssp.service.impl.PersonServiceImpl.getAllCoachUsernamesFromDirectory(PersonServiceImpl.java:553) ~[PersonServiceImpl.class:na] at org.jasig.ssp.service.impl.PersonServiceImpl.syncCoaches(PersonServiceImpl.java:619) ~[PersonServiceImpl.class:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_45] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_45] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_45] at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_45] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319) ~[spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) ~[spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) ~[spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE] at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110) ~[spring-tx-3.1.2.RELEASE.jar:3.1.2.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) ~[spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) ~[spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE] at com.sun.proxy.$Proxy52.syncCoaches(Unknown Source) ~[na:na] at org.jasig.ssp.service.impl.ScheduledTaskWrapperServiceImpl.syncCoaches(ScheduledTaskWrapperServiceImpl.java:87) ~[ScheduledTaskWrapperServiceImpl.class:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_45] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_45] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_45] at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_45] at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:64) ~[spring-context-3.1.2.RELEASE.jar:3.1.2.RELEASE] at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:53) ~[spring-context-3.1.2.RELEASE.jar:3.1.2.RELEASE] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) [na:1.6.0_45] at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) [na:1.6.0_45] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) [na:1.6.0_45] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) [na:1.6.0_45] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180) [na:1.6.0_45] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204) [na:1.6.0_45] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) [na:1.6.0_45] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) [na:1.6.0_45] at java.lang.Thread.run(Thread.java:662) [na:1.6.0_45] Caused by: java.lang.NullPointerException: null at org.jasig.portlet.utils.rest.SimpleCrossContextRestApiInvoker.doInvoke(SimpleCrossContextRestApiInvoker.java:175) ~[portal-rest-api-1.0.0-M3.jar:1.0.0-M3] ... 32 common frames omitted {noformat} There's been concern expressed that this is a needless distraction for deployers b/c the error eventually "goes away". I.e. by the next time the coach sync job fires, platform will have started up. This is a bit of a tough one. The servlet spec has nothing to say about webapp startup ordering. So we can't stipulate via config that {{ssp-platform}} should always start ahead of {{ssp}}. (This was one motivation for Sakai "components", for example.) And we can't just swallow the exception as a rule b/c it's harmless except when it's not. I.e. while it usually represents a transient failure, if it happens repeatedly or any time _after_ {{ssp-platform}} startup, it does represent a serious problem worthy of stack trace logging. What probably needs to happen is one or both of two things: # Delay firing of the coach sync job to give {{ssp-platform}} a chance to start up # When invoking {{ssp-platform}} from a background job (where you have the luxury of retries), detect this particular failure mode and implement a backoff/retry loop that will fire up to a configurable limit.

    Apereo Issues | 3 years ago | Dan McCallum
    java.lang.RuntimeException: java.lang.NullPointerException
  3. 0

    The intermittent HTTP 500 error continues to happen. I was able to catch the on-screen error and exception today. On-screen error {"success":false, "uri":/ssp/api/1/report/AddressLabels/, "http status code":"500", "exception":"java.lang.RuntimeException: java.lang.IllegalStateException: Neither HttpServletResponse.getWriter nor HttpServletResponse.getOutputStream has not been called"} ssp.log exception DEV: 15:40:19.507 [http-8080-4] ERROR 500.jsp - Exception caught in view layer for URI: /ssp/api/1/report/AddressLabels/ java.lang.RuntimeException: java.lang.IllegalStateException: Neither HttpServletResponse.getWriter nor HttpServletResponse.getOutputStream has not been called at org.jasig.portlet.utils.rest.SimpleCrossContextRestApiInvoker.doInvoke(SimpleCrossContextRestApiInvoker.java:183) ~[portal-rest-api-1.0.0-M3.jar:1.0.0-M3] at org.jasig.portlet.utils.rest.SimpleCrossContextRestApiInvoker.invoke(SimpleCrossContextRestApiInvoker.java:93) ~[portal-rest-api-1.0.0-M3.jar:1.0.0-M3] at org.jasig.ssp.security.uportal.KeepSessionAliveFilter.doFilter(KeepSessionAliveFilter.java:75) ~[KeepSessionAliveFilter.class:na] at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346) ~[spring-web-3.1.2.RELEASE.jar:3.1.2.RELEASE] at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259) ~[spring-web-3.1.2.RELEASE.jar:3.1.2.RELEASE] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) ~[catalina.jar:6.0.36] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) ~[catalina.jar:6.0.36] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:369) ~[spring-security-web-3.0.7.RELEASE.jar:3.0.7.RELEASE] at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109) ~[spring-security-web-3.0.7.RELEASE.jar:3.0.7.RELEASE] at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) ~[spring-security-web-3.0.7.RELEASE.jar:3.0.7.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) ~[spring-security-web-3.0.7.RELEASE.jar:3.0.7.RELEASE] at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97) ~[spring-security-web-3.0.7.RELEASE.jar:3.0.7.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) ~[spring-security-web-3.0.7.RELEASE.jar:3.0.7.RELEASE] at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78) ~[spring-security-web-3.0.7.RELEASE.jar:3.0.7.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) ~[spring-security-web-3.0.7.RELEASE.jar:3.0.7.RELEASE] at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54) ~[spring-security-web-3.0.7.RELEASE.jar:3.0.7.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) ~[spring-security-web-3.0.7.RELEASE.jar:3.0.7.RELEASE] at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:35) ~[spring-security-web-3.0.7.RELEASE.jar:3.0.7.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) ~[spring-security-web-3.0.7.RELEASE.jar:3.0.7.RELEASE] at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187) ~[spring-security-web-3.0.7.RELEASE.jar:3.0.7.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) ~[spring-security-web-3.0.7.RELEASE.jar:3.0.7.RELEASE] at org.jasig.ssp.security.uportal.UPortalPreAuthenticatedProcessingFilter.doFilter(UPortalPreAuthenticatedProcessingFilter.java:98) ~[UPortalPreAuthenticatedProcessingFilter.class:na] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) ~[spring-security-web-3.0.7.RELEASE.jar:3.0.7.RELEASE] at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105) ~[spring-security-web-3.0.7.RELEASE.jar:3.0.7.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) ~[spring-security-web-3.0.7.RELEASE.jar:3.0.7.RELEASE] at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79) ~[spring-security-web-3.0.7.RELEASE.jar:3.0.7.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) ~[spring-security-web-3.0.7.RELEASE.jar:3.0.7.RELEASE] at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:168) ~[spring-security-web-3.0.7.RELEASE.jar:3.0.7.RELEASE] at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346) ~[spring-web-3.1.2.RELEASE.jar:3.1.2.RELEASE] at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259) ~[spring-web-3.1.2.RELEASE.jar:3.1.2.RELEASE] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) ~[catalina.jar:6.0.36] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) ~[catalina.jar:6.0.36] at org.jasig.ssp.security.uportal.RequestAndResponseAccessFilter.doFilter(RequestAndResponseAccessFilter.java:61) ~[RequestAndResponseAccessFilter.class:na] at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346) ~[spring-web-3.1.2.RELEASE.jar:3.1.2.RELEASE] at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259) ~[spring-web-3.1.2.RELEASE.jar:3.1.2.RELEASE] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) ~[catalina.jar:6.0.36] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) ~[catalina.jar:6.0.36] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) ~[catalina.jar:6.0.36] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) ~[catalina.jar:6.0.36] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) ~[catalina.jar:6.0.36] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) [catalina.jar:6.0.36] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [catalina.jar:6.0.36] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) [catalina.jar:6.0.36] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861) [tomcat-coyote.jar:6.0.36] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606) [tomcat-coyote.jar:6.0.36] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) [tomcat-coyote.jar:6.0.36] at java.lang.Thread.run(Thread.java:662) [na:1.6.0_38] Caused by: java.lang.IllegalStateException: Neither HttpServletResponse.getWriter nor HttpServletResponse.getOutputStream has not been called at org.jasig.portlet.utils.rest.SimpleCrossContextRestApiInvoker$HttpServletResponseWrapperImpl.getOutputAsString(SimpleCrossContextRestApiInvoker.java:228) ~[portal-rest-api-1.0.0-M3.jar:1.0.0-M3] at org.jasig.portlet.utils.rest.SimpleCrossContextRestApiInvoker.doInvoke(SimpleCrossContextRestApiInvoker.java:178) ~[portal-rest-api-1.0.0-M3.jar:1.0.0-M3] ... 46 common frames omitted

    Apereo Issues | 4 years ago | Jason Elwood
    java.lang.RuntimeException: java.lang.IllegalStateException: Neither HttpServletResponse.getWriter nor HttpServletResponse.getOutputStream has not been called
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Getting a nullpointer exception when switching displayables in J2ME

    Stack Overflow | 6 years ago | Pallinder
    java.lang.NullPointerException: 0 at javax.microedition.lcdui.Display$ChameleonTunnel.callScreenListener(), bci=46 at com.sun.midp.chameleon.layers.SoftButtonLayer.processCommand(), bci=74 at com.sun.midp.chameleon.layers.SoftButtonLayer.soft1(), bci=37 at com.sun.midp.chameleon.layers.SoftButtonLayer.keyInput(), bci=36 at com.sun.midp.chameleon.CWindow.keyInput(), bci=38 at javax.microedition.lcdui.Display$DisplayEventConsumerImpl.handleKeyEvent(), bci=17 at com.sun.midp.lcdui.DisplayEventListener.process(), bci=277 at com.sun.midp.events.EventQueue.run(), bci=179
  6. 0

    J2ME (Java) - Null Pointer Exception caught in Display Class

    Stack Overflow | 6 years ago | Tom
    java.lang.NullPointerException: 0 at javax.microedition.lcdui.Display$ChameleonTunnel.callScreenListener(), bci=46 at com.sun.midp.chameleon.layers.SoftButtonLayer.processCommand(), bci=74 at com.sun.midp.chameleon.layers.SoftButtonLayer.soft1(), bci=37 at com.sun.midp.chameleon.layers.SoftButtonLayer.keyInput(), bci=36 at com.sun.midp.chameleon.CWindow.keyInput(), bci=38 at javax.microedition.lcdui.Display$DisplayEventConsumerImpl.handleKeyEvent(), bci=17 at com.sun.midp.lcdui.DisplayEventListener.process(), bci=277 at com.sun.midp.events.EventQueue.run(), bci=179

    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

      null

      at org.jasig.portlet.utils.rest.SimpleCrossContextRestApiInvoker.doInvoke()
    2. org.jasig.portlet
      SimpleCrossContextRestApiInvoker.invoke
      1. org.jasig.portlet.utils.rest.SimpleCrossContextRestApiInvoker.doInvoke(SimpleCrossContextRestApiInvoker.java:175)[portal-rest-api-1.0.0-M3.jar:1.0.0-M3]
      2. org.jasig.portlet.utils.rest.SimpleCrossContextRestApiInvoker.invoke(SimpleCrossContextRestApiInvoker.java:93)[portal-rest-api-1.0.0-M3.jar:1.0.0-M3]
      2 frames
    3. org.jasig.ssp
      PersonServiceImpl.syncCoaches
      1. org.jasig.ssp.service.impl.UPortalPersonAttributesService.searchForUsers(UPortalPersonAttributesService.java:209)[UPortalPersonAttributesService.class:na]
      2. org.jasig.ssp.service.impl.UPortalPersonAttributesService.getCoaches(UPortalPersonAttributesService.java:260)[UPortalPersonAttributesService.class:na]
      3. org.jasig.ssp.service.impl.PersonServiceImpl.getAllCoachUsernamesFromDirectory(PersonServiceImpl.java:553)[PersonServiceImpl.class:na]
      4. org.jasig.ssp.service.impl.PersonServiceImpl.syncCoaches(PersonServiceImpl.java:619)[PersonServiceImpl.class:na]
      4 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.6.0_45]
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[na:1.6.0_45]
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[na:1.6.0_45]
      4. java.lang.reflect.Method.invoke(Method.java:597)[na:1.6.0_45]
      4 frames
    5. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)[spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE]
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)[spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE]
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)[spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE]
      3 frames
    6. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)[spring-tx-3.1.2.RELEASE.jar:3.1.2.RELEASE]
      1 frame
    7. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)[spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE]
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)[spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE]
      2 frames
    8. com.sun.proxy
      $Proxy52.syncCoaches
      1. com.sun.proxy.$Proxy52.syncCoaches(Unknown Source)[na:na]
      1 frame
    9. org.jasig.ssp
      ScheduledTaskWrapperServiceImpl.syncCoaches
      1. org.jasig.ssp.service.impl.ScheduledTaskWrapperServiceImpl.syncCoaches(ScheduledTaskWrapperServiceImpl.java:87)[ScheduledTaskWrapperServiceImpl.class:na]
      1 frame
    10. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.6.0_45]
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[na:1.6.0_45]
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[na:1.6.0_45]
      4. java.lang.reflect.Method.invoke(Method.java:597)[na:1.6.0_45]
      4 frames
    11. Spring Context
      DelegatingErrorHandlingRunnable.run
      1. org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:64)[spring-context-3.1.2.RELEASE.jar:3.1.2.RELEASE]
      2. org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:53)[spring-context-3.1.2.RELEASE.jar:3.1.2.RELEASE]
      2 frames
    12. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)[na:1.6.0_45]
      2. java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)[na:1.6.0_45]
      3. java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)[na:1.6.0_45]
      4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)[na:1.6.0_45]
      5. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)[na:1.6.0_45]
      6. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)[na:1.6.0_45]
      7. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)[na:1.6.0_45]
      8. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)[na:1.6.0_45]
      9. java.lang.Thread.run(Thread.java:662)[na:1.6.0_45]
      9 frames