java.lang.NullPointerException: name argument cannot be null

Atlassian JIRA | Jon Bevan [Adaptavist] | 6 months ago
  1. 0

    This bug applies to the com.atlassian.jira.security.PermissionManager 1. Create a project with key "TEST" 2. Update the Permission Scheme of that project so that the "Anyone" wildcard group has Work On Issue permissions (see attached image) 3. Execute the following code (using the ScriptRunner console or stick the code below in an add-on): {code} import com.atlassian.jira.component.ComponentAccessor import com.atlassian.jira.security.PermissionManager import com.atlassian.jira.project.ProjectManager import com.atlassian.jira.security.Permissions import com.atlassian.crowd.embedded.api.Group ProjectManager projectManager = ComponentAccessor.getProjectManager(); PermissionManager permissionManager = ComponentAccessor.getPermissionManager(); Collection<Group> availableGroups = permissionManager.getAllGroups(Permissions.WORK_ISSUE, projectManager.getProjectByCurrentKey("TEST")); {code} You'll get the following stack trace: {noformat} [INFO] [talledLocalContainer] java.lang.NullPointerException: name argument cannot be null [INFO] [talledLocalContainer] at org.apache.commons.lang3.Validate.notNull(Validate.java:222) [INFO] [talledLocalContainer] at com.atlassian.crowd.directory.AbstractInternalDirectory.findGroupByName(AbstractInternalDirectory.java:786) [INFO] [talledLocalContainer] at com.atlassian.crowd.directory.AbstractInternalDirectory.findGroupByName(AbstractInternalDirectory.java:64) [INFO] [talledLocalContainer] at com.atlassian.crowd.manager.directory.DirectoryManagerGeneric.findGroupByName(DirectoryManagerGeneric.java:484) [INFO] [talledLocalContainer] at com.atlassian.crowd.manager.application.ApplicationServiceGeneric.findGroupByName(ApplicationServiceGeneric.java:890) [INFO] [talledLocalContainer] at com.atlassian.crowd.embedded.core.CrowdServiceImpl.getGroup(CrowdServiceImpl.java:128) [INFO] [talledLocalContainer] at com.atlassian.crowd.embedded.core.DelegatingCrowdService.getGroup(DelegatingCrowdService.java:55) [INFO] [talledLocalContainer] at com.atlassian.crowd.embedded.core.FilteredCrowdServiceImpl.getGroup(FilteredCrowdServiceImpl.java:80) [INFO] [talledLocalContainer] at com.atlassian.jira.security.groups.DefaultGroupManager.getGroup(DefaultGroupManager.java:103) [INFO] [talledLocalContainer] at com.atlassian.jira.security.groups.RequestCachingGroupManager.getGroup(RequestCachingGroupManager.java:78) [INFO] [talledLocalContainer] at com.atlassian.jira.permission.DefaultPermissionSchemeManager.getGroups(DefaultPermissionSchemeManager.java:553) [INFO] [talledLocalContainer] at com.atlassian.jira.permission.DefaultPermissionSchemeManager.getGroups(DefaultPermissionSchemeManager.java:529) [INFO] [talledLocalContainer] at com.atlassian.jira.security.DefaultPermissionManager.getAllGroups(DefaultPermissionManager.java:307) [INFO] [talledLocalContainer] at com.atlassian.jira.security.ApplicationRequiredPermissionManager.getAllGroups(ApplicationRequiredPermissionManager.java:165) [INFO] [talledLocalContainer] at com.atlassian.util.profiling.object.ObjectProfiler.profiledInvoke(ObjectProfiler.java:83) [INFO] [talledLocalContainer] at com.atlassian.jira.config.component.SwitchingInvocationHandler.invoke(SwitchingInvocationHandler.java:25) [INFO] [talledLocalContainer] at com.sun.proxy.$Proxy7.getAllGroups(Unknown Source) [INFO] [talledLocalContainer] at com.atlassian.jira.security.PermissionManager$getAllGroups$0.call(Unknown Source) {noformat}

    Atlassian JIRA | 6 months ago | Jon Bevan [Adaptavist]
    java.lang.NullPointerException: name argument cannot be null
  2. 0

    Allow circuit breaker annotation on Spring MVC controllers directly

    GitHub | 2 years ago | spencergibb
    java.lang.NullPointerException: failed to get method from joinPoint: execution(PagedResources myfeed.feed.FeedApp.getUserResource(String))
  3. 0

    roo> addon install bundle --bundleSymbolicName org.springframework.roo.addon.cloud.foundry Target resource(s): ------------------- Spring Roo - Addon - Cloud Foundry (1.2.3.RELEASE) Required resource(s): --------------------- Spring AOP (3.1.1.RELEASE) Spring Beans (3.1.1.RELEASE) jcl-over-slf4j (1.6.1) slf4j-nop (1.6.1) Spring Core (3.1.1.RELEASE) Jackson JSON processor (1.6.2) Data mapper for Jackson JSON processor (1.6.2) Spring Web (3.1.1.RELEASE) Spring Roo - Wrapping - aopalliance (1.0.0.0010) Spring Context (3.1.1.RELEASE) slf4j-api (1.6.1) Servlet API Bundle (3.0.0.v201112011016) Spring Roo - Wrapping - Cloud Foundry API (0.0.1.0010) Optional resource(s): --------------------- Spring ASM (3.1.1.RELEASE) Spring Expression Language (3.1.1.RELEASE) Common Eclipse Runtime (3.6.0.v20110523) Java Persistence API 2.0 (2.0.4.v201112161009) Javax Expression Language Bundle (2.2.0.v201108011116) JSP API Bundle (2.2.0.v201112011158) OSGi System Bundle (3.7.1.R37x_v20110808-1106) Deploying...done. [org.apache.felix.bundlerepository [6]] Resolver: Install error - org.eclipse.equinox.common java.lang.NullPointerException: Unable to retrieve signature from stream at org.apache.commons.lang3.Validate.notNull(Validate.java:222) at org.springframework.roo.felix.pgp.PgpServiceImpl.isSignatureAcceptable(PgpServiceImpl.java:224) at org.springframework.roo.felix.HttpPgpUrlStreamHandlerServiceImpl.openConnection(HttpPgpUrlStreamHandlerServiceImp l.java:110) at org.apache.felix.framework.URLHandlersStreamHandlerProxy.openConnection(URLHandlersStreamHandlerProxy.java:271) at java.net.URL.openConnection(Unknown Source) at org.apache.felix.bundlerepository.impl.FileUtil.openURL(FileUtil.java:199) at org.apache.felix.bundlerepository.impl.ResolverImpl.deploy(ResolverImpl.java:598) at org.apache.felix.bundlerepository.impl.ObrCommandImpl._deploy(ObrCommandImpl.java:395) at org.apache.felix.bundlerepository.impl.ObrCommandImpl.deploy(ObrCommandImpl.java:333) at org.apache.felix.bundlerepository.impl.ObrCommandImpl.execute(ObrCommandImpl.java:119) at org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:286) at org.springframework.roo.felix.FelixDelegator.perform(FelixDelegator.java:208) at org.springframework.roo.felix.FelixDelegator.obrStart(FelixDelegator.java:146) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy$1.callback(ProcessManagerHostedExec utionStrategy.java:47) Downloaded 100% of lookup at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.ja va:283) at org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:64) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(Pr onStrategy.java:44) at org.springframework.roo.shell.AbstractShell.executeCommandImpl(AbstractShell.java:226) at org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:146) at org.springframework.roo.addon.roobot.client.AddOnRooBotOperationsImpl.installOrUpgradeAddOn(AddOnRooBotOperations Impl.java:478) at org.springframework.roo.addon.roobot.client.AddOnRooBotOperationsImpl.installAddon(AddOnRooBotOperationsImpl.java :396) at org.springframework.roo.addon.roobot.client.AddOnRooBotOperationsImpl.installAddOn(AddOnRooBotOperationsImpl.java :441) at org.springframework.roo.addon.roobot.client.AddOnCommands.installBsn(AddOnCommands.java:62) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy$1.callback(ProcessManagerHostedExec utionStrategy.java:47) at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.ja va:283) at org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:64) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecuti onStrategy.java:44) at org.springframework.roo.shell.AbstractShell.executeCommandImpl(AbstractShell.java:226) at org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:146) at org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:421) at org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:539) at java.lang.Thread.run(Unknown Source) Successfully installed add-on: Spring Roo - Addon - Cloud Foundry [version: 1.2.3.RELEASE] [Hint] Please consider rating this add-on with the following command: [Hint] addon feedback bundle --bundleSymbolicName org.springframework.roo.addon.cloud.foundry --rating ... --comment ".. ."

    Spring JIRA | 4 years ago | jay
    java.lang.NullPointerException: Unable to retrieve signature from stream
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Instagram example schema fails to convert w/ Swagger2Markup 1.0.0

    GitHub | 6 months ago | starlightknight
    java.lang.NullPointerException: property must not be null
  6. 0

    Using allOf in array leads to NullPointerException: property must not be null

    GitHub | 6 months ago | meyeraxel
    java.lang.NullPointerException: property must not be null

    1 unregistered visitors
    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.NullPointerException

      name argument cannot be null

      at org.apache.commons.lang3.Validate.notNull()
    2. Commons Lang
      Validate.notNull
      1. org.apache.commons.lang3.Validate.notNull(Validate.java:222)
      1 frame
    3. com.atlassian.crowd
      FilteredCrowdServiceImpl.getGroup
      1. com.atlassian.crowd.directory.AbstractInternalDirectory.findGroupByName(AbstractInternalDirectory.java:786)
      2. com.atlassian.crowd.directory.AbstractInternalDirectory.findGroupByName(AbstractInternalDirectory.java:64)
      3. com.atlassian.crowd.manager.directory.DirectoryManagerGeneric.findGroupByName(DirectoryManagerGeneric.java:484)
      4. com.atlassian.crowd.manager.application.ApplicationServiceGeneric.findGroupByName(ApplicationServiceGeneric.java:890)
      5. com.atlassian.crowd.embedded.core.CrowdServiceImpl.getGroup(CrowdServiceImpl.java:128)
      6. com.atlassian.crowd.embedded.core.DelegatingCrowdService.getGroup(DelegatingCrowdService.java:55)
      7. com.atlassian.crowd.embedded.core.FilteredCrowdServiceImpl.getGroup(FilteredCrowdServiceImpl.java:80)
      7 frames
    4. com.atlassian.jira
      ApplicationRequiredPermissionManager.getAllGroups
      1. com.atlassian.jira.security.groups.DefaultGroupManager.getGroup(DefaultGroupManager.java:103)
      2. com.atlassian.jira.security.groups.RequestCachingGroupManager.getGroup(RequestCachingGroupManager.java:78)
      3. com.atlassian.jira.permission.DefaultPermissionSchemeManager.getGroups(DefaultPermissionSchemeManager.java:553)
      4. com.atlassian.jira.permission.DefaultPermissionSchemeManager.getGroups(DefaultPermissionSchemeManager.java:529)
      5. com.atlassian.jira.security.DefaultPermissionManager.getAllGroups(DefaultPermissionManager.java:307)
      6. com.atlassian.jira.security.ApplicationRequiredPermissionManager.getAllGroups(ApplicationRequiredPermissionManager.java:165)
      6 frames
    5. com.atlassian.util
      ObjectProfiler.profiledInvoke
      1. com.atlassian.util.profiling.object.ObjectProfiler.profiledInvoke(ObjectProfiler.java:83)
      1 frame
    6. com.atlassian.jira
      SwitchingInvocationHandler.invoke
      1. com.atlassian.jira.config.component.SwitchingInvocationHandler.invoke(SwitchingInvocationHandler.java:25)
      1 frame
    7. com.sun.proxy
      $Proxy7.getAllGroups
      1. com.sun.proxy.$Proxy7.getAllGroups(Unknown Source)
      1 frame
    8. com.atlassian.jira
      PermissionManager$getAllGroups$0.call
      1. com.atlassian.jira.security.PermissionManager$getAllGroups$0.call(Unknown Source)
      1 frame