java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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]
    via by Tim Eddelbuettel,
  • facing issues with cyanite metrics API
    via Stack Overflow by vamsi
    ,
  • facing issues with metrics API
    via GitHub by vamsikorada
    ,
  • 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)
    via by Benito J. Gonzalez,
  • Set your deck slots.....
    via GitHub by Spale96
    ,
  • I get a 500 Internal Server error when I hit the workflow statistics endpoint with a run-id. Here is the stack trace from the master log. The endpoint is expecting an interval (not sure why it is required, it should ideally just return the runtime of all the nodes in that particular workflow run, if no interval is provided) and that is not communicated in the error message. {code} 2016-04-07 18:32:53,329 - ERROR [netty-executor-285:c.c.c.c.HttpExceptionHandler@49] - Unexpected error: request=GET /v3/namespaces/default/apps/JumboPipe3/workflows/DataPipelineWorkflow/runs/13088691-fcee-11e5-aee6-42010af0001f/statistics user=<null>: java.lang.NullPointerException: null at java.util.regex.Matcher.getTextLength(Matcher.java:1234) ~[na:1.7.0_75] at java.util.regex.Matcher.reset(Matcher.java:308) ~[na:1.7.0_75] at java.util.regex.Matcher.<init>(Matcher.java:228) ~[na:1.7.0_75] at java.util.regex.Pattern.matcher(Pattern.java:1088) ~[na:1.7.0_75] at co.cask.cdap.common.utils.TimeMathParser.resolutionInSeconds(TimeMathParser.java:80) ~[co.cask.cdap.cdap-common-3.4.0-SNAPSHOT.jar:na] at co.cask.cdap.gateway.handlers.WorkflowStatsSLAHttpHandler.workflowRunDetail(WorkflowStatsSLAHttpHandler.java:154) ~[co.cask.cdap.cdap-app-fabric-3.4.0-SNAPSHOT.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_75] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_75] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_75] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_75] at co.cask.http.HttpMethodInfo.invoke(HttpMethodInfo.java:80) ~[co.cask.http.netty-http-0.14.0.jar:na] at co.cask.http.HttpDispatcher.messageReceived(HttpDispatcher.java:38) [co.cask.http.netty-http-0.14.0.jar:na] at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) [io.netty.netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [io.netty.netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) [io.netty.netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.doRun(ChannelUpstreamEventRunnable.java:43) [io.netty.netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:67) [io.netty.netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:314) [io.netty.netty-3.6.6.Final.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_75] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_75] at java.lang.Thread.run(Thread.java:745) [na:1.7.0_75] {code}
    via by Gokul Gunasekaran,
    • 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]

    Users with the same issue

    rp
    5 times, last one,
    olle.hallin
    3 times, last one,
    kkandda
    8 times, last one,
    odd
    2 times, last one,
    stigkj
    6 times, last one,
    24 more bugmates