java.lang.reflect.UndeclaredThrowableException

Atlassian JIRA | Daniel Leng | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    When trying to add a new group through the JIRA UI, and permanent profiling is activated (via the *web.xml* file and [this documentation|https://confluence.atlassian.com/display/JIRA/Logging+and+Profiling#LoggingandProfiling-Permanentlyenablingprofiling]), the following stack trace is shown in the browser: {noformat} java.lang.reflect.UndeclaredThrowableException at sun.proxy.$Proxy1570.findByName(Unknown Source) at com.atlassian.crowd.directory.AbstractInternalDirectory.findGroupByName(AbstractInternalDirectory.java:576) at com.atlassian.crowd.directory.AbstractInternalDirectory.findGroupByName(AbstractInternalDirectory.java:32) at com.atlassian.crowd.manager.directory.DirectoryManagerGeneric.findGroupByName(DirectoryManagerGeneric.java:492) at com.atlassian.crowd.manager.application.ApplicationServiceGeneric.findGroupByName(ApplicationServiceGeneric.java:658) at com.atlassian.crowd.embedded.core.CrowdServiceImpl.getGroup(CrowdServiceImpl.java:126) at com.atlassian.crowd.embedded.core.DelegatingCrowdService.getGroup(DelegatingCrowdService.java:50) at com.atlassian.crowd.embedded.core.FilteredCrowdServiceImpl.getGroup(FilteredCrowdServiceImpl.java:86) at com.atlassian.jira.web.action.admin.user.GroupBrowser.addNewGroup(GroupBrowser.java:114) ... Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.atlassian.jira.config.component.GroupedMethodProfiler.profiledInvoke(GroupedMethodProfiler.java:65) at com.atlassian.jira.config.component.TimerInvocationHandler.invoke(GroupedMethodProfiler.java:99) ... 175 more Caused by: com.atlassian.crowd.exception.GroupNotFoundException: Group <THE-GROUP-NAME-HERE> does not exist at com.atlassian.jira.crowd.embedded.ofbiz.OfBizGroupDao.findByName(OfBizGroupDao.java:85) at com.atlassian.jira.crowd.embedded.ofbiz.OfBizGroupDao.findByName(OfBizGroupDao.java:42) ... 181 more {noformat} *Steps to Reproduce:* # Install a fresh new JIRA 5.2.11 instance. # Activate permanent profiling as per [this documentation|https://confluence.atlassian.com/display/JIRA/Logging+and+Profiling#LoggingandProfiling-Permanentlyenablingprofiling]. # Try to add a new group via *Administration > Users > Groups*. # Observe that the stack trace is thrown, and the group is not successfully created. *Workaround:* # Disable permanent profiling.

    Atlassian JIRA | 4 years ago | Daniel Leng [Atlassian]
    java.lang.reflect.UndeclaredThrowableException
  2. 0

    When trying to add a new group through the JIRA UI, and permanent profiling is activated (via the *web.xml* file and [this documentation|https://confluence.atlassian.com/display/JIRA/Logging+and+Profiling#LoggingandProfiling-Permanentlyenablingprofiling]), the following stack trace is shown in the browser: {noformat} java.lang.reflect.UndeclaredThrowableException at sun.proxy.$Proxy1570.findByName(Unknown Source) at com.atlassian.crowd.directory.AbstractInternalDirectory.findGroupByName(AbstractInternalDirectory.java:576) at com.atlassian.crowd.directory.AbstractInternalDirectory.findGroupByName(AbstractInternalDirectory.java:32) at com.atlassian.crowd.manager.directory.DirectoryManagerGeneric.findGroupByName(DirectoryManagerGeneric.java:492) at com.atlassian.crowd.manager.application.ApplicationServiceGeneric.findGroupByName(ApplicationServiceGeneric.java:658) at com.atlassian.crowd.embedded.core.CrowdServiceImpl.getGroup(CrowdServiceImpl.java:126) at com.atlassian.crowd.embedded.core.DelegatingCrowdService.getGroup(DelegatingCrowdService.java:50) at com.atlassian.crowd.embedded.core.FilteredCrowdServiceImpl.getGroup(FilteredCrowdServiceImpl.java:86) at com.atlassian.jira.web.action.admin.user.GroupBrowser.addNewGroup(GroupBrowser.java:114) ... Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.atlassian.jira.config.component.GroupedMethodProfiler.profiledInvoke(GroupedMethodProfiler.java:65) at com.atlassian.jira.config.component.TimerInvocationHandler.invoke(GroupedMethodProfiler.java:99) ... 175 more Caused by: com.atlassian.crowd.exception.GroupNotFoundException: Group <THE-GROUP-NAME-HERE> does not exist at com.atlassian.jira.crowd.embedded.ofbiz.OfBizGroupDao.findByName(OfBizGroupDao.java:85) at com.atlassian.jira.crowd.embedded.ofbiz.OfBizGroupDao.findByName(OfBizGroupDao.java:42) ... 181 more {noformat} *Steps to Reproduce:* # Install a fresh new JIRA 5.2.11 instance. # Activate permanent profiling as per [this documentation|https://confluence.atlassian.com/display/JIRA/Logging+and+Profiling#LoggingandProfiling-Permanentlyenablingprofiling]. # Try to add a new group via *Administration > Users > Groups*. # Observe that the stack trace is thrown, and the group is not successfully created. *Workaround:* # Disable permanent profiling.

    Atlassian JIRA | 4 years ago | Daniel Leng
    java.lang.reflect.UndeclaredThrowableException

    Root Cause Analysis

    1. java.lang.reflect.UndeclaredThrowableException

      No message provided

      at sun.proxy.$Proxy1570.findByName()
    2. sun.proxy
      $Proxy1570.findByName
      1. sun.proxy.$Proxy1570.findByName(Unknown Source)
      1 frame
    3. com.atlassian.crowd
      FilteredCrowdServiceImpl.getGroup
      1. com.atlassian.crowd.directory.AbstractInternalDirectory.findGroupByName(AbstractInternalDirectory.java:576)
      2. com.atlassian.crowd.directory.AbstractInternalDirectory.findGroupByName(AbstractInternalDirectory.java:32)
      3. com.atlassian.crowd.manager.directory.DirectoryManagerGeneric.findGroupByName(DirectoryManagerGeneric.java:492)
      4. com.atlassian.crowd.manager.application.ApplicationServiceGeneric.findGroupByName(ApplicationServiceGeneric.java:658)
      5. com.atlassian.crowd.embedded.core.CrowdServiceImpl.getGroup(CrowdServiceImpl.java:126)
      6. com.atlassian.crowd.embedded.core.DelegatingCrowdService.getGroup(DelegatingCrowdService.java:50)
      7. com.atlassian.crowd.embedded.core.FilteredCrowdServiceImpl.getGroup(FilteredCrowdServiceImpl.java:86)
      7 frames
    4. com.atlassian.jira
      GroupBrowser.addNewGroup
      1. com.atlassian.jira.web.action.admin.user.GroupBrowser.addNewGroup(GroupBrowser.java:114)
      1 frame