java.lang.NullPointerException: null

Atlassian JIRA | Tim Eddelbuettel | 6 months ago
  1. 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
  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

    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

  1. tyson925 4 times, last 2 months ago
  2. tyson925 28 times, last 2 months ago
  3. lribeiro 6 times, last 2 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)[na:1.8.0_74]
    2. java.util.regex.Matcher.reset(Matcher.java:309)[na:1.8.0_74]
    3. java.util.regex.Matcher.<init>(Matcher.java:229)[na:1.8.0_74]
    4. java.util.regex.Pattern.matcher(Pattern.java:1093)[na:1.8.0_74]
    4 frames
  3. com.atlassian.bitbucket
    SearchDomainObjectConverter.convertToSearchProject
    1. com.atlassian.bitbucket.search.internal.indexing.SearchDomainObjectConverter.extractAvatar(SearchDomainObjectConverter.java:150)[na:na]
    2. com.atlassian.bitbucket.search.internal.indexing.SearchDomainObjectConverter.convertToSearchProject(SearchDomainObjectConverter.java:62)[na:na]
    2 frames
  4. rxjava
    Observable.subscribe
    1. rx.internal.operators.OperatorMap$1.onNext(OperatorMap.java:54)[na:na]
    2. rx.internal.util.ScalarSynchronousObservable$1.call(ScalarSynchronousObservable.java:46)[na:na]
    3. rx.internal.util.ScalarSynchronousObservable$1.call(ScalarSynchronousObservable.java:35)[na:na]
    4. rx.Observable$2.call(Observable.java:162)[na:na]
    5. rx.Observable$2.call(Observable.java:154)[na:na]
    6. rx.Observable$2.call(Observable.java:162)[na:na]
    7. rx.Observable$2.call(Observable.java:154)[na:na]
    8. rx.Observable$2.call(Observable.java:162)[na:na]
    9. rx.Observable$2.call(Observable.java:154)[na:na]
    10. rx.Observable.subscribe(Observable.java:8264)[na:na]
    11. rx.Observable.subscribe(Observable.java:8231)[na:na]
    12. rx.Observable.subscribe(Observable.java:8035)[na:na]
    12 frames
  5. com.atlassian.bitbucket
    IndexEventQueueProcessor.processEvents
    1. com.atlassian.bitbucket.search.internal.indexing.event.IndexEventQueueProcessor.processEvent(IndexEventQueueProcessor.java:219)[na:na]
    2. com.atlassian.bitbucket.search.internal.indexing.event.IndexEventQueueProcessor.processEvents(IndexEventQueueProcessor.java:200)[na:na]
    2 frames
  6. Java RT
    Thread.run
    1. java.util.concurrent.FutureTask.run(FutureTask.java:266)[na:1.8.0_74]
    2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_74]
    3. java.lang.Thread.run(Thread.java:745)[na:1.8.0_74]
    3 frames