java.util.NoSuchElementException

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.

  • Crash. Just walking around.
    via GitHub by darkthought
    ,
  • Hibernate - double left join
    via Stack Overflow by Jasmine
    ,
  • When using the "Transition Date/Time Field" along with the "@TransitionName" parameter the indexer will throw an exception if the transition name is not found in any of the workflows. The exception given is: {code} java.util.NoSuchElementException at java.util.HashMap$HashIterator.nextEntry(Unknown Source) at java.util.HashMap$KeyIterator.next(Unknown Source) at com.innovalog.jmcf.fields.WorkflowLastHistoryDAO.findWorkflowEntry(WorkflowLastHistoryDAO.java:73) at com.innovalog.jmcf.fields.ActionExecutionTimeField.getValueFromIssue(ActionExecutionTimeField.java:49) at com.atlassian.jira.issue.fields.CustomFieldImpl.getValue(CustomFieldImpl.java:404) at com.atlassian.jira.issue.index.indexers.impl.DateCustomFieldIndexer.addDocumentFields(DateCustomFieldIndexer.java:44) at com.atlassian.jira.issue.index.indexers.impl.DateCustomFieldIndexer.addDocumentFieldsSearchable(DateCustomFieldIndexer.java:34) at com.atlassian.jira.issue.index.indexers.impl.AbstractCustomFieldIndexer.addIndex(AbstractCustomFieldIndexer.java:46) at com.atlassian.jira.issue.index.IssueDocument.getDocument(IssueDocument.java:41) ... {code} This seems to be caused by an empty "actionsIDs" collection being passed to workflowHistoryDAO.findWorkflowEntry(issue, actionIDs); This line checks if the collection is null but does not check if it is empty: https://bitbucket.org/innovalog/jmcf/src/3a0ed2a79ddcb7f5bcc8b2be0ebd9e88ab6634d8/src/main/java/com/innovalog/jmcf/fields/ActionExecutionTimeField.java?at=master#cl-44 Normally if an error occurs, null is returned instead of the collection, however, in the case of an invalid workflow transition name, the collection is created but never filled. This can be seen here: https://bitbucket.org/innovalog/jmcf/src/3a0ed2a79ddcb7f5bcc8b2be0ebd9e88ab6634d8/src/main/java/com/innovalog/jmcf/fields/AbstractTransitionSearchField.java?at=master#cl-102
    via by Jacob Feisley,
    • java.util.NoSuchElementException at java.util.HashMap$HashIterator.nextEntry(Unknown Source) at java.util.HashMap$KeyIterator.next(Unknown Source) at org.hibernate.collection.internal.AbstractPersistentCollection$IteratorProxy.next(AbstractPersistentCollection.java:795)

    Users with the same issue

    linxiaolong
    linxiaolong2 times, last one,
    andyglick
    andyglick1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    3 more bugmates