java.lang.NullPointerException: null

Apereo Issues | Benito J. Gonzalez | 4 months ago
  1. 0

    ERROR [uP-PortletExec-6-brucephillips-RESOURCE-[newsreader-portlet]] o.s.web.portlet.DispatcherPortlet 2016-08-08 12:15:09,152 - Could not complete request java.lang.NullPointerException: null at java.util.regex.Matcher.getTextLength(Matcher.java:1283) at java.util.regex.Matcher.reset(Matcher.java:309) at java.util.regex.Matcher.<init>(Matcher.java:229) at java.util.regex.Pattern.matcher(Pattern.java:1093) at org.jasig.portlet.newsreader.service.Whitelist.filter(Whitelist.java:65) at org.jasig.portlet.newsreader.service.NewsConfigurationWhitelist.filter(NewsConfigurationWhitelist.java:65) at org.jasig.portlet.newsreader.mvc.AbstractNewsController.filterNonWhitelistedConfigurations(AbstractNewsController.java:66) at org.jasig.portlet.newsreader.mvc.portlet.reader.AjaxNewsController.getJSONFeeds(AjaxNewsController.java:97) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:177) at org.springframework.web.portlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:369) at org.springframework.web.portlet.mvc.annotation.AnnotationMethodHandlerAdapter.doHandle(AnnotationMethodHandlerAdapter.java:356) at org.springframework.web.portlet.mvc.annotation.AnnotationMethodHandlerAdapter.handleResource(AnnotationMethodHandlerAdapter.java:302) at org.springframework.web.portlet.DispatcherPortlet.doResourceService(DispatcherPortlet.java:859) at org.springframework.web.portlet.FrameworkPortlet.processRequest(FrameworkPortlet.java:539) at org.springframework.web.portlet.FrameworkPortlet.serveResource(FrameworkPortlet.java:490) at org.jasig.portal.portlet.container.FilterChainImpl.doFilter(FilterChainImpl.java:211) at org.jasig.portal.portlet.container.FilterChainImpl.processFilter(FilterChainImpl.java:83) at org.jasig.portal.portlet.container.FilterManagerImpl.processFilter(FilterManagerImpl.java:102) at org.apache.pluto.container.driver.PortletServlet.dispatch(PortletServlet.java:350) at org.apache.pluto.container.driver.PortletServlet.doPost(PortletServlet.java:267) at javax.servlet.http.HttpServlet.service(HttpServlet.java:648) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:720) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:466) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:391) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:318) at org.apache.pluto.driver.container.DefaultPortletInvokerService.invoke(DefaultPortletInvokerService.java:229) at org.apache.pluto.driver.container.DefaultPortletInvokerService.serveResource(DefaultPortletInvokerService.java:149) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80) at org.jasig.portal.portlet.dao.jpa.ThreadContextClassLoaderAspect.doThreadContextClassLoaderUpdate(ThreadContextClassLoaderAspect.java:68) at sun.reflect.GeneratedMethodAccessor192.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621) at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610) at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at com.sun.proxy.$Proxy401.serveResource(Unknown Source) at org.apache.pluto.container.impl.PortletContainerImpl.doServeResource(PortletContainerImpl.java:203) at org.jasig.portal.portlet.rendering.PortletRendererImpl.doServeResource(PortletRendererImpl.java:553) at org.jasig.portal.portlet.rendering.worker.PortletResourceExecutionWorker.callInternal(PortletResourceExecutionWorker.java:53) at org.jasig.portal.portlet.rendering.worker.PortletResourceExecutionWorker.callInternal(PortletResourceExecutionWorker.java:31) at org.jasig.portal.portlet.rendering.worker.PortletExecutionWorker$1.call(PortletExecutionWorker.java:135) at org.jasig.portal.portlet.rendering.worker.PortletExecutionWorker$ExecutionLifecycleCallable.call(PortletExecutionWorker.java:175) at org.jasig.portal.portlet.rendering.worker.PortletExecutionCallable.call(PortletExecutionCallable.java:118) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

    Apereo Issues | 4 months ago | Benito J. Gonzalez
    java.lang.NullPointerException: null
  2. 0

    diffChangeLog fails with null exception

    GitHub | 2 years ago | gojesandeep
    liquibase.command.CommandExecutionException: java.lang.NullPointerException
  3. 0

    facing issues with cyanite metrics API

    Stack Overflow | 6 months ago | vamsi
    java.lang.NullPointerException: null
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    facing issues with metrics API

    GitHub | 6 months ago | vamsikorada
    java.lang.NullPointerException: null
  6. 0

    h3. Problem description After the update to Bitbucket 4.6 and when i start Bitbucket i see the following error log entries in atlassian-bitbucket.log. {code} 016-05-30 12:50:51,390 ERROR [search-indexing:thread-1] c.a.b.s.i.i.e.IndexEventQueueProcessor Unexpected error from index event worker for QueuedEvent{event=ProjectCreatedIndexEvent{projectId=43}, retries=0}, dropping event java.lang.NullPointerException: null at java.util.regex.Matcher.getTextLength(Matcher.java:1283) ~[na:1.8.0_74] at java.util.regex.Matcher.reset(Matcher.java:309) ~[na:1.8.0_74] at java.util.regex.Matcher.<init>(Matcher.java:229) ~[na:1.8.0_74] at java.util.regex.Pattern.matcher(Pattern.java:1093) ~[na:1.8.0_74] at com.atlassian.bitbucket.search.internal.indexing.SearchDomainObjectConverter.extractAvatar(SearchDomainObjectConverter.java:150) ~[na:na] at com.atlassian.bitbucket.search.internal.indexing.SearchDomainObjectConverter.convertToSearchProject(SearchDomainObjectConverter.java:62) ~[na:na] at rx.internal.operators.OperatorMap$1.onNext(OperatorMap.java:54) ~[na:na] at rx.internal.util.ScalarSynchronousObservable$1.call(ScalarSynchronousObservable.java:46) ~[na:na] at rx.internal.util.ScalarSynchronousObservable$1.call(ScalarSynchronousObservable.java:35) ~[na:na] at rx.Observable$2.call(Observable.java:162) ~[na:na] at rx.Observable$2.call(Observable.java:154) ~[na:na] at rx.Observable$2.call(Observable.java:162) ~[na:na] at rx.Observable$2.call(Observable.java:154) ~[na:na] at rx.Observable$2.call(Observable.java:162) ~[na:na] at rx.Observable$2.call(Observable.java:154) ~[na:na] at rx.Observable.subscribe(Observable.java:8264) ~[na:na] at rx.Observable.subscribe(Observable.java:8231) ~[na:na] at rx.Observable.subscribe(Observable.java:8035) ~[na:na] at com.atlassian.bitbucket.search.internal.indexing.event.IndexEventQueueProcessor.processEvent(IndexEventQueueProcessor.java:219) ~[na:na] at com.atlassian.bitbucket.search.internal.indexing.event.IndexEventQueueProcessor.processEvents(IndexEventQueueProcessor.java:200) ~[na:na] at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_74] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[na:1.8.0_74] at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_74] ... 1 frame trimmed Caused by: rx.exceptions.OnErrorThrowable$OnNextValue: OnError while emitting onNext value: com.atlassian.stash.internal.project.InternalPersonalProject.class at rx.exceptions.OnErrorThrowable.addValueAsLastCause(OnErrorThrowable.java:109) ~[bitbucket-search-index-2.0.0.jar:na] at rx.exceptions.Exceptions.throwOrReport(Exceptions.java:188) ~[na:na] at rx.internal.operators.OperatorMap$1.onNext(OperatorMap.java:56) ~[na:na] ... 17 common frames omitted 2016-05-30 12:51:08,092 ERROR [search-indexing:thread-1] c.a.b.s.i.i.e.IndexEventQueueProcessor Unexpected error from index event worker for QueuedEvent{event=RepositoryCreatedIndexEvent{repositoryId=23}, retries=0}, dropping event java.lang.NullPointerException: null 2016-05-30 12:51:08,095 ERROR [search-indexing:thread-1] c.a.b.s.i.i.e.IndexEventQueueProcessor Unexpected error from index event worker for QueuedEvent{event=RepositoryContentModifiedIndexEvent{repositoryId=23}, retries=0}, dropping event java.lang.NullPointerException: null {code} h3. Cause (maybe) I've looked to the written *projectId=43* and *repositoryId=23* and see that the project is a personal repository from a user which was deleted from our Active Directory. So it looks like the error comes from the deleted user and the still existing repository. h3. Workaround Move or delete the repository and the error message is fixed. [How to find personal repositories of deleted users|https://confluence.atlassian.com/bitbucketserverkb/how-to-find-personal-repositories-of-deleted-users-779171148.html]

    Atlassian JIRA | 6 months ago | Tim Eddelbuettel
    java.lang.NullPointerException: null

  1. tyson925 4 times, last 2 months ago
  2. tyson925 28 times, last 2 months ago
  3. lribeiro 6 times, last 3 months ago
  4. davidvanlaatum 1 times, last 4 months ago
  5. jk 2 times, last 5 months ago
5 more registered users
9 unregistered visitors
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 java.util.regex.Matcher.getTextLength()
  2. Java RT
    Pattern.matcher
    1. java.util.regex.Matcher.getTextLength(Matcher.java:1283)
    2. java.util.regex.Matcher.reset(Matcher.java:309)
    3. java.util.regex.Matcher.<init>(Matcher.java:229)
    4. java.util.regex.Pattern.matcher(Pattern.java:1093)
    4 frames
  3. org.jasig.portlet
    AjaxNewsController.getJSONFeeds
    1. org.jasig.portlet.newsreader.service.Whitelist.filter(Whitelist.java:65)
    2. org.jasig.portlet.newsreader.service.NewsConfigurationWhitelist.filter(NewsConfigurationWhitelist.java:65)
    3. org.jasig.portlet.newsreader.mvc.AbstractNewsController.filterNonWhitelistedConfigurations(AbstractNewsController.java:66)
    4. org.jasig.portlet.newsreader.mvc.portlet.reader.AjaxNewsController.getJSONFeeds(AjaxNewsController.java:97)
    4 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    4 frames
  5. Spring
    HandlerMethodInvoker.invokeHandlerMethod
    1. org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:177)
    1 frame
  6. Spring Web Portlet
    FrameworkPortlet.serveResource
    1. org.springframework.web.portlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:369)
    2. org.springframework.web.portlet.mvc.annotation.AnnotationMethodHandlerAdapter.doHandle(AnnotationMethodHandlerAdapter.java:356)
    3. org.springframework.web.portlet.mvc.annotation.AnnotationMethodHandlerAdapter.handleResource(AnnotationMethodHandlerAdapter.java:302)
    4. org.springframework.web.portlet.DispatcherPortlet.doResourceService(DispatcherPortlet.java:859)
    5. org.springframework.web.portlet.FrameworkPortlet.processRequest(FrameworkPortlet.java:539)
    6. org.springframework.web.portlet.FrameworkPortlet.serveResource(FrameworkPortlet.java:490)
    6 frames
  7. org.jasig.portal
    FilterManagerImpl.processFilter
    1. org.jasig.portal.portlet.container.FilterChainImpl.doFilter(FilterChainImpl.java:211)
    2. org.jasig.portal.portlet.container.FilterChainImpl.processFilter(FilterChainImpl.java:83)
    3. org.jasig.portal.portlet.container.FilterManagerImpl.processFilter(FilterManagerImpl.java:102)
    3 frames
  8. org.apache.pluto
    PortletServlet.doPost
    1. org.apache.pluto.container.driver.PortletServlet.dispatch(PortletServlet.java:350)
    2. org.apache.pluto.container.driver.PortletServlet.doPost(PortletServlet.java:267)
    2 frames
  9. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
    2. javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    2 frames
  10. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
    2 frames
  11. Tomcat WS
    WsFilter.doFilter
    1. org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    1 frame
  12. Glassfish Core
    ApplicationDispatcher.forward
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
    3. org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:720)
    4. org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:466)
    5. org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:391)
    6. org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:318)
    6 frames
  13. org.apache.pluto
    DefaultPortletInvokerService.serveResource
    1. org.apache.pluto.driver.container.DefaultPortletInvokerService.invoke(DefaultPortletInvokerService.java:229)
    2. org.apache.pluto.driver.container.DefaultPortletInvokerService.serveResource(DefaultPortletInvokerService.java:149)
    2 frames
  14. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    4 frames
  15. Spring AOP
    MethodInvocationProceedingJoinPoint.proceed
    1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
    2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
    3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
    4. org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
    5. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    6. org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80)
    6 frames
  16. org.jasig.portal
    ThreadContextClassLoaderAspect.doThreadContextClassLoaderUpdate
    1. org.jasig.portal.portlet.dao.jpa.ThreadContextClassLoaderAspect.doThreadContextClassLoaderUpdate(ThreadContextClassLoaderAspect.java:68)
    1 frame
  17. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor192.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    3. java.lang.reflect.Method.invoke(Method.java:498)
    3 frames
  18. Spring AOP
    JdkDynamicAopProxy.invoke
    1. org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621)
    2. org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610)
    3. org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65)
    4. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    5. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    5 frames
  19. com.sun.proxy
    $Proxy401.serveResource
    1. com.sun.proxy.$Proxy401.serveResource(Unknown Source)
    1 frame
  20. org.apache.pluto
    PortletContainerImpl.doServeResource
    1. org.apache.pluto.container.impl.PortletContainerImpl.doServeResource(PortletContainerImpl.java:203)
    1 frame
  21. org.jasig.portal
    PortletExecutionCallable.call
    1. org.jasig.portal.portlet.rendering.PortletRendererImpl.doServeResource(PortletRendererImpl.java:553)
    2. org.jasig.portal.portlet.rendering.worker.PortletResourceExecutionWorker.callInternal(PortletResourceExecutionWorker.java:53)
    3. org.jasig.portal.portlet.rendering.worker.PortletResourceExecutionWorker.callInternal(PortletResourceExecutionWorker.java:31)
    4. org.jasig.portal.portlet.rendering.worker.PortletExecutionWorker$1.call(PortletExecutionWorker.java:135)
    5. org.jasig.portal.portlet.rendering.worker.PortletExecutionWorker$ExecutionLifecycleCallable.call(PortletExecutionWorker.java:175)
    6. org.jasig.portal.portlet.rendering.worker.PortletExecutionCallable.call(PortletExecutionCallable.java:118)
    6 frames
  22. Java RT
    Thread.run
    1. java.util.concurrent.FutureTask.run(FutureTask.java:266)
    2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    4. java.lang.Thread.run(Thread.java:745)
    4 frames