com.opensymphony.user.EntityNotFoundException: No group testgroup found

Atlassian JIRA | Jeff Turner | 10 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    When a group is subscribed to the filter, and then that group is deleted, the filtersubscription still exists, and once a minute the logs get filled with these errors: 2007-06-18 12:46:04,585 Sending mailitem com.atlassian.jira.mail.SubscriptionMailQueueItem subject: 'Subscription: testfilter' Owner: 'test ERROR [atlassian.mail.queue.MailQueueImpl] Error occurred in sending e-mail: com.atlassian.jira.mail.SubscriptionMailQueueItem subject: 'Subscription: testfilter' Owner: 'test com.atlassian.mail.MailException: com.opensymphony.user.EntityNotFoundException: No group testgroup found at com.atlassian.jira.mail.SubscriptionMailQueueItem.send(SubscriptionMailQueueItem.java:88) at com.atlassian.mail.queue.MailQueueImpl.sendBuffer(MailQueueImpl.java:68) at com.atlassian.jira.service.services.mail.MailQueueService.run(MailQueueService.java:23) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:67) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48) at org.quartz.core.JobRunShell.run(JobRunShell.java:191) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516) Caused by: com.opensymphony.user.EntityNotFoundException: No group testgroup found at com.opensymphony.user.UserManager.getEntity(UserManager.java:302) at com.opensymphony.user.UserManager.getGroup(UserManager.java:172) at com.atlassian.jira.mail.SubscriptionMailQueueItem.send(SubscriptionMailQueueItem.java:71) ... 6 more 2007-06-18 12:46:04,585 Sending mailitem com.atlassian.jira.mail.SubscriptionMailQueueItem subject: 'Subscription: testfilter' Owner: 'test ERROR [atlassian.jira.mail.SubscriptionMailQueueItem] com.opensymphony.user.EntityNotFoundException: No group testgroup found com.opensymphony.user.EntityNotFoundException: No group testgroup found at com.opensymphony.user.UserManager.getEntity(UserManager.java:302) at com.opensymphony.user.UserManager.getGroup(UserManager.java:172) at com.atlassian.jira.mail.SubscriptionMailQueueItem.send(SubscriptionMailQueueItem.java:71) at com.atlassian.mail.queue.MailQueueImpl.sendBuffer(MailQueueImpl.java:68) at com.atlassian.jira.service.services.mail.MailQueueService.run(MailQueueService.java:23) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:67) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48) at org.quartz.core.JobRunShell.run(JobRunShell.java:191) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516) Assuming that this is not an error condition (that it's okay to have dangling group pointers in filtersubscriptions), we should a) log it as WARN, not ERROR, b) print a one-line message, rather than a stacktrace.

    Atlassian JIRA | 10 years ago | Jeff Turner
    com.opensymphony.user.EntityNotFoundException: No group testgroup found
  2. 0

    When a group is subscribed to the filter, and then that group is deleted, the filtersubscription still exists, and once a minute the logs get filled with these errors: 2007-06-18 12:46:04,585 Sending mailitem com.atlassian.jira.mail.SubscriptionMailQueueItem subject: 'Subscription: testfilter' Owner: 'test ERROR [atlassian.mail.queue.MailQueueImpl] Error occurred in sending e-mail: com.atlassian.jira.mail.SubscriptionMailQueueItem subject: 'Subscription: testfilter' Owner: 'test com.atlassian.mail.MailException: com.opensymphony.user.EntityNotFoundException: No group testgroup found at com.atlassian.jira.mail.SubscriptionMailQueueItem.send(SubscriptionMailQueueItem.java:88) at com.atlassian.mail.queue.MailQueueImpl.sendBuffer(MailQueueImpl.java:68) at com.atlassian.jira.service.services.mail.MailQueueService.run(MailQueueService.java:23) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:67) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48) at org.quartz.core.JobRunShell.run(JobRunShell.java:191) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516) Caused by: com.opensymphony.user.EntityNotFoundException: No group testgroup found at com.opensymphony.user.UserManager.getEntity(UserManager.java:302) at com.opensymphony.user.UserManager.getGroup(UserManager.java:172) at com.atlassian.jira.mail.SubscriptionMailQueueItem.send(SubscriptionMailQueueItem.java:71) ... 6 more 2007-06-18 12:46:04,585 Sending mailitem com.atlassian.jira.mail.SubscriptionMailQueueItem subject: 'Subscription: testfilter' Owner: 'test ERROR [atlassian.jira.mail.SubscriptionMailQueueItem] com.opensymphony.user.EntityNotFoundException: No group testgroup found com.opensymphony.user.EntityNotFoundException: No group testgroup found at com.opensymphony.user.UserManager.getEntity(UserManager.java:302) at com.opensymphony.user.UserManager.getGroup(UserManager.java:172) at com.atlassian.jira.mail.SubscriptionMailQueueItem.send(SubscriptionMailQueueItem.java:71) at com.atlassian.mail.queue.MailQueueImpl.sendBuffer(MailQueueImpl.java:68) at com.atlassian.jira.service.services.mail.MailQueueService.run(MailQueueService.java:23) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:67) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48) at org.quartz.core.JobRunShell.run(JobRunShell.java:191) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516) Assuming that this is not an error condition (that it's okay to have dangling group pointers in filtersubscriptions), we should a) log it as WARN, not ERROR, b) print a one-line message, rather than a stacktrace.

    Atlassian JIRA | 10 years ago | Jeff Turner
    com.opensymphony.user.EntityNotFoundException: No group testgroup found
  3. 0

    The problem is that Sybase refuses to store empty strings and stores spaces instead: [http://manuals.sybase.com/onlinebooks/group-as/asg1250e/sqlug/@Generic__BookTextView/2485] The reason they provide for this is that an empty value means NULL and as "" is not NULL they have to store a space. Fascinating logic, every other db we support, which is quite a few, seems to deal with it fine. At the moment the subscriptions die with: {code} 2005-10-28 17:40:36,322 ERROR [atlassian.mail.queue.MailQueueImpl] Error occurred in sending e-mail: com.atlassian.jira.mail.SubscriptionMailQueueItem subject: 'Subscription: Test Filter' Owner: 'admin com.atlassian.mail.MailException: com.opensymphony.user.EntityNotFoundException: No group found at com.atlassian.jira.mail.SubscriptionMailQueueItem.send(SubscriptionMailQueueItem.java:67) at com.atlassian.mail.queue.MailQueueImpl.sendBuffer(MailQueueImpl.java:67) at com.atlassian.jira.service.services.mail.MailQueueService.run(MailQueueService.java:23) at com.atlassian.jira.service.JiraServiceContainer.run(JiraServiceContainer.java:59) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:50) at org.quartz.core.JobRunShell.run(JobRunShell.java:191) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516) Caused by: com.opensymphony.user.EntityNotFoundException: No group found at com.opensymphony.user.UserManager.getEntity(UserManager.java:302) at com.opensymphony.user.UserManager.getGroup(UserManager.java:172) at com.atlassian.jira.mail.SubscriptionMailQueueItem.send(SubscriptionMailQueueItem.java:52) ... 6 more {code} Need to ensure that we store NULL instead of '' for personal subscriptions.

    Atlassian JIRA | 1 decade ago | Anton Mazkovoi [Atlassian]
    com.atlassian.mail.MailException: com.opensymphony.user.EntityNotFoundException: No group found
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.opensymphony.user.EntityNotFoundException

      No group testgroup found

      at com.opensymphony.user.UserManager.getEntity()
    2. com.opensymphony.user
      UserManager.getGroup
      1. com.opensymphony.user.UserManager.getEntity(UserManager.java:302)
      2. com.opensymphony.user.UserManager.getGroup(UserManager.java:172)
      2 frames
    3. com.atlassian.jira
      SubscriptionMailQueueItem.send
      1. com.atlassian.jira.mail.SubscriptionMailQueueItem.send(SubscriptionMailQueueItem.java:71)
      1 frame
    4. com.atlassian.mail
      MailQueueImpl.sendBuffer
      1. com.atlassian.mail.queue.MailQueueImpl.sendBuffer(MailQueueImpl.java:68)
      1 frame
    5. com.atlassian.jira
      ServiceRunner.execute
      1. com.atlassian.jira.service.services.mail.MailQueueService.run(MailQueueService.java:23)
      2. com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:67)
      3. com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48)
      3 frames
    6. quartz
      SimpleThreadPool$WorkerThread.run
      1. org.quartz.core.JobRunShell.run(JobRunShell.java:191)
      2. org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516)
      2 frames