java.lang.IllegalArgumentException: Passed List had more than one value.

Atlassian JIRA | Bogdan Dziedzic [Atlassian] | 9 years ago
  1. 0
  2. 0
  3. 0

    2005-01-18 21:12:53,054 WARN [jira.issue.index.DefaultIndexManager] There was an exception whilst reindexing issue TLV-16jav a.lang.IllegalArgumentException: Passed List had more than one value. java.lang.IllegalArgumentException: Passed List had more than one value. at org.ofbiz.core.entity.EntityUtil.getOnly(EntityUtil.java:58) at com.opensymphony.user.provider.ofbiz.OFBizAbstractProvider.findUser(OFBizAbstractProvider.java:159) at com.opensymphony.user.provider.ofbiz.OFBizCredentialsProvider.handles(OFBizCredentialsProvider.java:114) at com.opensymphony.user.UserManager.getProvider(UserManager.java:313) at com.opensymphony.user.UserManager.getEntity(UserManager.java:299) at com.opensymphony.user.UserManager.getUser(UserManager.java:193) at com.atlassian.core.user.UserUtils.getUser(UserUtils.java:31) at com.atlassian.jira.issue.index.AbstractDocument.indexUserGroups(AbstractDocument.java:34) at com.atlassian.jira.issue.index.IssueDocument.getDocument(IssueDocument.java:47) at com.atlassian.jira.issue.index.DefaultIndexManager.indexIssue(DefaultIndexManager.java:154) at com.atlassian.jira.issue.index.DefaultIndexManager.indexIssuesAndComments(DefaultIndexManager.java:272) at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexIssues(DefaultIndexManager.java:222) at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAll(DefaultIndexManager.java:135) at com.atlassian.jira.issue.index.DefaultIndexManager.activate(DefaultIndexManager.java:104) at com.atlassian.jira.action.admin.DataImport.reindex(DataImport.java:225) at com.atlassian.jira.action.admin.DataImport.doExecute(DataImport.java:134) at webwork.action.ActionSupport.execute(ActionSupport.java:151) at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:46) at com.atlassian.jira.action.JiraNonWebActionSupport.execute(JiraNonWebActionSupport.java:27) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:131) at com.atlassian.core.action.DefaultActionDispatcher.execute(DefaultActionDispatcher.java:34) at com.atlassian.jira.web.action.util.ImportAll.doExecute(ImportAll.java:56) at webwork.action.ActionSupport.execute(ActionSupport.java:151) at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:46) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:131) at com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:186) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:142) at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:58) at com.atlassian.jira.web.filters.SitemeshExcludePathFilter.doFilter(SitemeshExcludePathFilter.java:36) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at com.atlassian.seraph.filter.SecurityFilter.doFilter(SecurityFilter.java:168) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at com.atlassian.seraph.filter.LoginFilter.doFilter(LoginFilter.java:181) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at com.atlassian.util.profiling.filters.ProfilingFilter.doFilter(ProfilingFilter.java:132) at com.atlassian.jira.web.filters.ProfilingAndErrorFilter.doFilter(ProfilingAndErrorFilter.java:25) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at com.atlassian.jira.web.filters.ActionCleanupDelayFilter.doFilter(ActionCleanupDelayFilter.java:37) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at com.atlassian.johnson.filters.JohnsonFilter.doFilter(JohnsonFilter.java:91) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at com.atlassian.jira.web.filters.gzip.GzipFilter.doFilter(GzipFilter.java:72) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at com.atlassian.core.filters.AbstractEncodingFilter.doFilter(AbstractEncodingFilter.java:36) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666) at java.lang.Thread.run(Thread.java:536)

    Atlassian JIRA | 1 decade ago | Halil Demirezen
    java.lang.IllegalArgumentException: Passed List had more than one value.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    In some (rare) circumstances, it appears possible for there to be two identical users in the JIRA database (where userbase.username is the same). Restoring a database in this state will result in the following exception at the end when reindexing (the database is still useable): 2005-07-08 10:51:47,451 WARN [jira.issue.index.DefaultIndexManager] There was an exception whilst reindexing issue ABC-30java.lang.IllegalArgumentException: Passed List had more than one value. java.lang.IllegalArgumentException: Passed List had more than one value. at org.ofbiz.core.entity.EntityUtil.getOnly(EntityUtil.java:58) at com.opensymphony.user.provider.ofbiz.OFBizAbstractProvider.findUser(OFBizAbstractProvider.java:159) at com.opensymphony.user.provider.ofbiz.OFBizCredentialsProvider.handles(OFBizCredentialsProvider.java:114) at com.opensymphony.user.UserManager.getProvider(UserManager.java:313) at com.opensymphony.user.UserManager.getEntity(UserManager.java:299) at com.opensymphony.user.UserManager.getUser(UserManager.java:193) at com.atlassian.core.user.UserUtils.getUser(UserUtils.java:31) at com.atlassian.jira.issue.index.AbstractDocument.indexUserGroups(AbstractDocument.java:34) at com.atlassian.jira.issue.index.IssueDocument.getDocument(IssueDocument.java:47) at com.atlassian.jira.issue.index.DefaultIndexManager.indexIssue(DefaultIndexManager.java:154) at com.atlassian.jira.issue.index.DefaultIndexManager.indexIssuesAndComments(DefaultIndexManager.java:272) at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexIssues(DefaultIndexManager.java:222) at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAll(DefaultIndexManager.java:135) at com.atlassian.jira.issue.index.DefaultIndexManager.activate(DefaultIndexManager.java:104) at com.atlassian.jira.action.admin.DataImport.reindex(DataImport.java:202) at com.atlassian.jira.action.admin.DataImport.doExecute(DataImport.java:140) at webwork.action.ActionSupport.execute(ActionSupport.java:153) The duplicate record can be identified with SQL: mysql> select * from userbase group by username having count(username) > 1; +-------+----------+------------------------------------------------------------------------------------------+ | ID | username | PASSWORD_HASH | +-------+----------+------------------------------------------------------------------------------------------+ | 10085 | joe | uQieO/1CGMUIXXftw3ynrsaYLShI+GTcPS4LdUGWbIusFvHefUzD73Zvms6yMMvA8I7FViHVEqr6Mj4pCLKAFQ== | +-------+----------+------------------------------------------------------------------------------------------+

    Atlassian JIRA | 1 decade ago | Jeff Turner
    java.lang.IllegalArgumentException: Passed List had more than one value.
  6. 0

    In some (rare) circumstances, it appears possible for there to be two identical users in the JIRA database (where userbase.username is the same). Restoring a database in this state will result in the following exception at the end when reindexing (the database is still useable): 2005-07-08 10:51:47,451 WARN [jira.issue.index.DefaultIndexManager] There was an exception whilst reindexing issue ABC-30java.lang.IllegalArgumentException: Passed List had more than one value. java.lang.IllegalArgumentException: Passed List had more than one value. at org.ofbiz.core.entity.EntityUtil.getOnly(EntityUtil.java:58) at com.opensymphony.user.provider.ofbiz.OFBizAbstractProvider.findUser(OFBizAbstractProvider.java:159) at com.opensymphony.user.provider.ofbiz.OFBizCredentialsProvider.handles(OFBizCredentialsProvider.java:114) at com.opensymphony.user.UserManager.getProvider(UserManager.java:313) at com.opensymphony.user.UserManager.getEntity(UserManager.java:299) at com.opensymphony.user.UserManager.getUser(UserManager.java:193) at com.atlassian.core.user.UserUtils.getUser(UserUtils.java:31) at com.atlassian.jira.issue.index.AbstractDocument.indexUserGroups(AbstractDocument.java:34) at com.atlassian.jira.issue.index.IssueDocument.getDocument(IssueDocument.java:47) at com.atlassian.jira.issue.index.DefaultIndexManager.indexIssue(DefaultIndexManager.java:154) at com.atlassian.jira.issue.index.DefaultIndexManager.indexIssuesAndComments(DefaultIndexManager.java:272) at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexIssues(DefaultIndexManager.java:222) at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAll(DefaultIndexManager.java:135) at com.atlassian.jira.issue.index.DefaultIndexManager.activate(DefaultIndexManager.java:104) at com.atlassian.jira.action.admin.DataImport.reindex(DataImport.java:202) at com.atlassian.jira.action.admin.DataImport.doExecute(DataImport.java:140) at webwork.action.ActionSupport.execute(ActionSupport.java:153) The duplicate record can be identified with SQL: mysql> select * from userbase group by username having count(username) > 1; +-------+----------+------------------------------------------------------------------------------------------+ | ID | username | PASSWORD_HASH | +-------+----------+------------------------------------------------------------------------------------------+ | 10085 | joe | uQieO/1CGMUIXXftw3ynrsaYLShI+GTcPS4LdUGWbIusFvHefUzD73Zvms6yMMvA8I7FViHVEqr6Mj4pCLKAFQ== | +-------+----------+------------------------------------------------------------------------------------------+

    Atlassian JIRA | 1 decade ago | Jeff Turner
    java.lang.IllegalArgumentException: Passed List had more than one value.

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

      Passed List had more than one value.

      at org.ofbiz.core.entity.EntityUtil.getOnly()
    2. org.ofbiz.core
      EntityUtil.getOnly
      1. org.ofbiz.core.entity.EntityUtil.getOnly(EntityUtil.java:58)
      1 frame
    3. com.atlassian.scheduler
      OfBizJobStore.removeTrigger
      1. com.atlassian.scheduler.OfBizJobStore.removeTrigger(OfBizJobStore.java:332)
      1 frame
    4. quartz
      StdScheduler.unscheduleJob
      1. org.quartz.core.QuartzScheduler.unscheduleJob(QuartzScheduler.java:680)
      2. org.quartz.impl.StdScheduler.unscheduleJob(StdScheduler.java:268)
      2 frames
    5. com.atlassian.jira
      SimpleTriggerCheck.doCheck
      1. com.atlassian.jira.util.SimpleToCronUtil.unscheduleJob(SimpleToCronUtil.java:113)
      2. com.atlassian.jira.appconsistency.integrity.check.SimpleTriggerCheck.doCheck(SimpleTriggerCheck.java:83)
      2 frames