java.lang.RuntimeException: null value

Atlassian JIRA | Wilfred Hughes | 1 year ago
  1. 0

    Whenever a user deletes an SSH key, we're seeing an error in the logs. The key is deleted, but we see the following exception: {code} 2015-07-13 17:55:43,634 ERROR [AtlassianEvent::thread-1] whughes @5DSGV3x1075x641648x0 1yduy58 10.200.18.31,127.0.0.1 "DELETE /rest/ssh/latest/keys/655 HTTP/1.1" c.a.s.i.a.AbstractAuditEven 2015-07-13 17:55:43,638 ERROR [AtlassianEvent::thread-1] whughes @5DSGV3x1075x641648x0 1yduy58 10.200.18.31,127.0.0.1 "DELETE /rest/ssh/latest/keys/655 HTTP/1.1" c.a.s.i.e.AsyncBatchingInvo java.lang.RuntimeException: null value at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:54) ~[atlassian-event-2.3.5.jar:na] at com.atlassian.stash.internal.event.AsyncBatchingInvokersTransformer$AsyncInvokerBatch.invoke(AsyncBatchingInvokersTransformer.java:100) ~[stash-platform-3.10.0.jar:na] at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$1$1.run(AsynchronousAbleEventDispatcher.java:48) ~[atlassian-event-2.3.5.jar:na] at com.atlassian.sal.core.executor.ThreadLocalDelegateRunnable.run(ThreadLocalDelegateRunnable.java:38) ~[sal-core-2.13.4.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) ~[na:1.7.0_25] at java.lang.Thread.run(Thread.java:724) ~[na:1.7.0_25] ... 1 frame trimmed Caused by: java.lang.NullPointerException: null value at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:204) ~[guava-11.0.2-atlassian-02.jar:na] at com.google.common.collect.ImmutableMap.entryOf(ImmutableMap.java:139) ~[guava-11.0.2-atlassian-02.jar:na] at com.google.common.collect.ImmutableMap$Builder.put(ImmutableMap.java:178) ~[guava-11.0.2-atlassian-02.jar:na] at com.atlassian.stash.ssh.SshKeyEventConverter.convert(SshKeyEventConverter.java:32) ~[na:na] at com.atlassian.stash.ssh.SshKeyEventConverter.convert(SshKeyEventConverter.java:24) ~[na:na] at com.atlassian.stash.internal.audit.AuditedAnnotatedEventListener.onEvent(AuditedAnnotatedEventListener.java:44) ~[stash-service-impl-3.10.0.jar:na] at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:36) ~[atlassian-event-2.3.5.jar:na] ... 6 common frames omitted {code}

    Atlassian JIRA | 1 year ago | Wilfred Hughes
    java.lang.RuntimeException: null value
  2. 0

    Whenever a user deletes an SSH key, we're seeing an error in the logs. The key is deleted, but we see the following exception: {code} 2015-07-13 17:55:43,634 ERROR [AtlassianEvent::thread-1] whughes @5DSGV3x1075x641648x0 1yduy58 10.200.18.31,127.0.0.1 "DELETE /rest/ssh/latest/keys/655 HTTP/1.1" c.a.s.i.a.AbstractAuditEven 2015-07-13 17:55:43,638 ERROR [AtlassianEvent::thread-1] whughes @5DSGV3x1075x641648x0 1yduy58 10.200.18.31,127.0.0.1 "DELETE /rest/ssh/latest/keys/655 HTTP/1.1" c.a.s.i.e.AsyncBatchingInvo java.lang.RuntimeException: null value at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:54) ~[atlassian-event-2.3.5.jar:na] at com.atlassian.stash.internal.event.AsyncBatchingInvokersTransformer$AsyncInvokerBatch.invoke(AsyncBatchingInvokersTransformer.java:100) ~[stash-platform-3.10.0.jar:na] at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$1$1.run(AsynchronousAbleEventDispatcher.java:48) ~[atlassian-event-2.3.5.jar:na] at com.atlassian.sal.core.executor.ThreadLocalDelegateRunnable.run(ThreadLocalDelegateRunnable.java:38) ~[sal-core-2.13.4.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) ~[na:1.7.0_25] at java.lang.Thread.run(Thread.java:724) ~[na:1.7.0_25] ... 1 frame trimmed Caused by: java.lang.NullPointerException: null value at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:204) ~[guava-11.0.2-atlassian-02.jar:na] at com.google.common.collect.ImmutableMap.entryOf(ImmutableMap.java:139) ~[guava-11.0.2-atlassian-02.jar:na] at com.google.common.collect.ImmutableMap$Builder.put(ImmutableMap.java:178) ~[guava-11.0.2-atlassian-02.jar:na] at com.atlassian.stash.ssh.SshKeyEventConverter.convert(SshKeyEventConverter.java:32) ~[na:na] at com.atlassian.stash.ssh.SshKeyEventConverter.convert(SshKeyEventConverter.java:24) ~[na:na] at com.atlassian.stash.internal.audit.AuditedAnnotatedEventListener.onEvent(AuditedAnnotatedEventListener.java:44) ~[stash-service-impl-3.10.0.jar:na] at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:36) ~[atlassian-event-2.3.5.jar:na] ... 6 common frames omitted {code}

    Atlassian JIRA | 1 year ago | Wilfred Hughes
    java.lang.RuntimeException: null value
  3. 0

    NoSuchElementException when pushing remote merge

    GitHub | 2 years ago | bbaetz
    java.lang.RuntimeException: java.util.NoSuchElementException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    The offending code is in {{BranchVersion.compareTo}}. We should probably just throw a more meaningful exception, as without numeric components trying to compare the branches is not a great idea. {noformat} c.a.s.i.e.AsyncBatchingInvokersTransformer There was an exception thrown trying to dispatch event 'com.atlassian.stash.event.pull.PullRequestMergedEvent[source=com.atlassian.stash.internal.pull.PullRequestServiceImpl@2bfc34d3]' for the invoker 'SingleParameterMethodListenerInvoker{method=public void com.atlassian.stash.internal.branch.automerge.AutoMergePullRequestProcessor.onPullRequestMerged(com.atlassian.stash.event.pull.PullRequestMergedEvent), listener=com.atlassian.stash.internal.branch.automerge.AutoMergePullRequestProcessor@3d1fc30e}'. java.lang.RuntimeException: index (-1) must not be negative at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:54) ~[atlassian-event-2.3.5.jar:na] at com.atlassian.stash.internal.event.AsyncBatchingInvokersTransformer$AsyncInvokerBatch.invoke(AsyncBatchingInvokersTransformer.java:100) ~[stash-platform-3.2.0.jar:na] at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$1$1.run(AsynchronousAbleEventDispatcher.java:48) [atlassian-event-2.3.5.jar:na] at com.atlassian.sal.core.executor.ThreadLocalDelegateRunnable.run(ThreadLocalDelegateRunnable.java:38) [sal-core-2.12.1.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_60] at java.lang.Thread.run(Thread.java:745) [na:1.7.0_60] ... 1 frame trimmed Caused by: java.lang.IndexOutOfBoundsException: index (-1) must not be negative at com.google.common.base.Preconditions.checkElementIndex(Preconditions.java:301) ~[guava-11.0.2-atlassian-01.jar:na] at com.google.common.base.Preconditions.checkElementIndex(Preconditions.java:280) ~[guava-11.0.2-atlassian-01.jar:na] at com.google.common.collect.SingletonImmutableList.get(SingletonImmutableList.java:46) ~[guava-11.0.2-atlassian-01.jar:na] at com.atlassian.stash.internal.branch.model.version.BranchVersion.componentAt(BranchVersion.java:155) ~[na:na] at com.atlassian.stash.internal.branch.model.version.BranchVersion.compareTo(BranchVersion.java:67) ~[na:na] at com.atlassian.stash.internal.branch.model.version.VersionedBranch.compareTo(VersionedBranch.java:84) ~[na:na] at com.atlassian.stash.internal.branch.model.version.VersionedBranch$4.apply(VersionedBranch.java:77) ~[na:na] at com.atlassian.stash.internal.branch.model.version.VersionedBranch$4.apply(VersionedBranch.java:74) ~[na:na] at com.google.common.base.Predicates$AndPredicate.apply(Predicates.java:338) ~[guava-11.0.2-atlassian-01.jar:na] at com.google.common.collect.Iterators$7.computeNext(Iterators.java:649) ~[guava-11.0.2-atlassian-01.jar:na] at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143) ~[guava-11.0.2-atlassian-01.jar:na] at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138) ~[guava-11.0.2-atlassian-01.jar:na] at com.google.common.collect.Lists.newArrayList(Lists.java:138) ~[guava-11.0.2-atlassian-01.jar:na] at com.google.common.collect.Lists.newArrayList(Lists.java:119) ~[guava-11.0.2-atlassian-01.jar:na] at com.google.common.collect.NaturalOrdering.sortedCopy(NaturalOrdering.java:57) ~[guava-11.0.2-atlassian-01.jar:na] at com.google.common.collect.Ordering.immutableSortedCopy(Ordering.java:534) ~[guava-11.0.2-atlassian-01.jar:na] at com.atlassian.stash.util.Chainable.sort(Chainable.java:102) ~[stash-util-3.2.0.jar:na] at com.atlassian.stash.internal.branch.model.SimpleBranchModel.getMergePath(SimpleBranchModel.java:72) ~[na:na] at com.atlassian.stash.internal.branch.automerge.DefaultAutoMergeService$$anonfun$getDownstreamBranches$2.apply(DefaultAutoMergeService.scala:44) ~[na:na] at {noformat}

    Atlassian JIRA | 2 years ago | Dariusz Kordonski [Atlassian]
    java.lang.RuntimeException: index (-1) must not be negative
  6. 0

    h3. Summary No events transitioned to JIRA when user pushed a commit or raised a Pull Request. h3. Steps to Reproduce Not clear. h3. Actual Results The below exception is thrown in the {{atlassian-bitbucket.log}} - {{java.lang.ClassNotFoundException}} {noformat} java.lang.RuntimeException: java.lang.NoClassDefFoundError: com/atlassian/devstatus/vcs/LimitExceededEvent at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:54) ~[atlassian-event-3.0.0.jar:na] at com.atlassian.stash.internal.event.AsyncBatchingInvokersTransformer$AsyncInvokerBatch.invoke(AsyncBatchingInvokersTransformer.java:94) ~[bitbucket-platform-4.2.0.jar:na] at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$1$1.run(AsynchronousAbleEventDispatcher.java:46) [atlassian-event-3.0.0.jar:na] at com.atlassian.sal.core.executor.ThreadLocalDelegateRunnable.run(ThreadLocalDelegateRunnable.java:34) [sal-core-3.0.5.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_66] at java.lang.Thread.run(Thread.java:745) [na:1.8.0_66] ... 1 frame trimmed Caused by: com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.NoClassDefFoundError: com/atlassian/devstatus/vcs/LimitExceededEvent at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:149) ~[atlassian-util-concurrent-3.0.0.jar:na] at com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:112) ~[atlassian-util-concurrent-3.0.0.jar:na] at com.atlassian.util.concurrent.ResettableLazyReference.get(ResettableLazyReference.java:92) ~[atlassian-util-concurrent-3.0.0.jar:na] at com.atlassian.event.remote.impl.DefaultRemoteEventProducerRegistrar.isRegistered(DefaultRemoteEventProducerRegistrar.scala:23) ~[na:na] at com.atlassian.event.remote.impl.RemoteEventListener.onRemoteEvent(RemoteEventListener.scala:76) ~[na:na] at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:36) ~[atlassian-event-3.0.0.jar:na] ... 6 common frames omitted Caused by: java.lang.NoClassDefFoundError: com/atlassian/devstatus/vcs/LimitExceededEvent at com.atlassian.stash.internal.jira.index.impl.IssueCommitIndexer.produces(IssueCommitIndexer.scala:58) ~[na:na] at com.atlassian.event.remote.impl.DefaultRemoteEventProducerRegistrar$$anon$2$$anonfun$create$1.apply(DefaultRemoteEventProducerRegistrar.scala:18) ~[na:na] at com.atlassian.event.remote.impl.DefaultRemoteEventProducerRegistrar$$anon$2$$anonfun$create$1.apply(DefaultRemoteEventProducerRegistrar.scala:18) ~[na:na] at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:251) ~[na:na] at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:251) ~[na:na] at scala.collection.mutable.HashSet.foreach(HashSet.scala:79) ~[na:na] at com.atlassian.event.remote.impl.DefaultRemoteEventProducerRegistrar$$anon$1.scala$collection$mutable$SynchronizedSet$$super$foreach(DefaultRemoteEventProducerRegistrar.scala:13) ~[na:na] at scala.collection.mutable.SynchronizedSet$class.foreach(SynchronizedSet.scala:82) ~[na:na] at com.atlassian.event.remote.impl.DefaultRemoteEventProducerRegistrar$$anon$1.foreach(DefaultRemoteEventProducerRegistrar.scala:13) ~[na:na] at scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:251) ~[na:na] at scala.collection.AbstractTraversable.flatMap(Traversable.scala:105) ~[na:na] at com.atlassian.event.remote.impl.DefaultRemoteEventProducerRegistrar$$anon$2.create(DefaultRemoteEventProducerRegistrar.scala:18) ~[na:na] at com.atlassian.event.remote.impl.DefaultRemoteEventProducerRegistrar$$anon$2.create(DefaultRemoteEventProducerRegistrar.scala:16) ~[na:na] at com.atlassian.util.concurrent.ResettableLazyReference$InternalReference.create(ResettableLazyReference.java:179) ~[atlassian-util-concurrent-3.0.0.jar:na] at com.atlassian.util.concurrent.LazyReference$Sync.run(LazyReference.java:325) ~[atlassian-util-concurrent-3.0.0.jar:na] at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:143) ~[atlassian-util-concurrent-3.0.0.jar:na] at com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:112) ~[atlassian-util-concurrent-3.0.0.jar:na] at com.atlassian.util.concurrent.ResettableLazyReference.get(ResettableLazyReference.java:92) ~[atlassian-util-concurrent-3.0.0.jar:na] at com.atlassian.event.remote.impl.DefaultRemoteEventProducerRegistrar.isRegistered(DefaultRemoteEventProducerRegistrar.scala:23) ~[na:na] at com.atlassian.event.remote.impl.RemoteEventListener.onRemoteEvent(RemoteEventListener.scala:76) ~[na:na] at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:36) ~[atlassian-event-3.0.0.jar:na] at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$1$1.run(AsynchronousAbleEventDispatcher.java:46) [atlassian-event-3.0.0.jar:na] at com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.execute(MoreExecutors.java:299) ~[guava-18.0.jar:na] at com.atlassian.event.internal.AsynchronousAbleEventDispatcher.dispatch(AsynchronousAbleEventDispatcher.java:105) ~[atlassian-event-3.0.0.jar:na] at com.atlassian.event.internal.LockFreeEventPublisher$Publisher.dispatch(LockFreeEventPublisher.java:260) ~[atlassian-event-3.0.0.jar:na] at com.atlassian.event.internal.LockFreeEventPublisher.publish(LockFreeEventPublisher.java:102) ~[atlassian-event-3.0.0.jar:na] at com.atlassian.stash.internal.event.TransactionAwareEventPublisher.publish(TransactionAwareEventPublisher.java:84) ~[bitbucket-platform-4.2.0.jar:na] at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:30) ~[atlassian-plugins-core-4.0.4.jar:na] at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56) ~[na:na] at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60) ~[na:na] at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:70) ~[na:na] at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:53) ~[na:na] at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57) ~[na:na] at com.atlassian.bitbucket.plugin.remote.event.listener.BitbucketRepositoryRefsChangedEventProducer.handleRepositoryRefsChanged(BitbucketRepositoryRefsChangedEventProducer.java:64) ~[na:na] ... 7 common frames omitted Caused by: java.lang.ClassNotFoundException: Unable to load class 'com.atlassian.devstatus.vcs.LimitExceededEvent' because the bundle wiring for com.atlassian.bitbucket.server.bitbucket-jira-development-integration is no longer valid. at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1494) ~[org.apache.felix.framework-4.2.1.jar:na] ... 41 common frames omitted {noformat} h3. Notes The class that is the subject of all your {{ClassNotFoundException}}'s - {{com.atlassian.devstatus.vcs.LimitExceededEvent}} - isn't part of Bitbucket core or any bundled plugin and hasn't been for a very long time. It used to be part of a bundled plugin called the {{atlassian-dev-status-plugin}}, but this was removed from Stash 3.1 and replaced with another plugin called the {{atlassian-remote-event-producer-plugin}} that doesn't export any {{LimitExceededEvent}} class. The context of the {{ClassNotFoundException}} seems to indicate it was thrown inside of an event handler, possibly in a plugin, but the stack for this is gone as the exception isn't caught until it gets to {{SingleParameterMethodListenerInvoker}} (which is where in fact the {{LimitExceededEvent}} class loading error is reported). h3.Solution {{atlassian-dev-status}} plugin, Perform a search on your file system of our server and and you should find an old {{atlassian-dev-status-api-2.5.9.jar}} in OSGI cache directory. The problem should be solved by cleaning the cache directory: # Shutdown Bitbucket Server. # Backup and remove the following directories. They will be rebuilt when Stash starts again: #* {{$BITBUCKET_HOME/plugins/.bundled-plugins/}} #* {{$BITBUCKET_HOME/plugins/.osgi-cache/}} # Restart Bitbucket Server.

    Atlassian JIRA | 1 year ago | Roman Kirilenko
    java.lang.RuntimeException: java.lang.NoClassDefFoundError: com/atlassian/devstatus/vcs/LimitExceededEvent

    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.RuntimeException

      null value

      at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke()
    2. com.atlassian.event
      SingleParameterMethodListenerInvoker.invoke
      1. com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:54)[atlassian-event-2.3.5.jar:na]
      1 frame
    3. com.atlassian.stash
      AsyncBatchingInvokersTransformer$AsyncInvokerBatch.invoke
      1. com.atlassian.stash.internal.event.AsyncBatchingInvokersTransformer$AsyncInvokerBatch.invoke(AsyncBatchingInvokersTransformer.java:100)[stash-platform-3.10.0.jar:na]
      1 frame
    4. com.atlassian.event
      AsynchronousAbleEventDispatcher$1$1.run
      1. com.atlassian.event.internal.AsynchronousAbleEventDispatcher$1$1.run(AsynchronousAbleEventDispatcher.java:48)[atlassian-event-2.3.5.jar:na]
      1 frame
    5. com.atlassian.sal
      ThreadLocalDelegateRunnable.run
      1. com.atlassian.sal.core.executor.ThreadLocalDelegateRunnable.run(ThreadLocalDelegateRunnable.java:38)[sal-core-2.13.4.jar:na]
      1 frame
    6. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[na:1.7.0_25]
      2. java.lang.Thread.run(Thread.java:724)[na:1.7.0_25]
      2 frames