com.jivesoftware.base.UnauthorizedException: Authentication Failed

Atlassian JIRA | Shihab Hamid | 9 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

    Using Jive's remote API to authenticate (via Crowd) fails because a "null" username/password is sent to the Crowd server. Running: {code} ServiceLocator locator = new ServiceLocator("http://localhost:8083/jiveforums", "admin", "admin"); ContentService contentService = locator.getContentService(); {code} Results in: {code} Exception in thread "main" com.jivesoftware.base.UnauthorizedException: Authentication Failed at com.jivesoftware.forum.webservices.ServiceLocator$ExceptionHandler.getException(ServiceLocator.java:410) at com.jivesoftware.forum.webservices.ServiceLocator$ExceptionHandler.invoke(ServiceLocator.java:364) at $Proxy0.getForumCategory(Unknown Source) 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:585) at com.jivesoftware.forum.webservices.ServiceLocator$CacheHandler.invoke(ServiceLocator.java:492) at $Proxy1.getForumCategory(Unknown Source) at Scrap.main(Scrap.java:21) {code} Due to: {code} 11:38:15,479 DEBUG integration.service.soap.xfire.XFireInLoggingMethodHandler: SOAP service method: authenticatePrincipal com.atlassian.crowd.integration.authentication.AuthenticatedToken@c202ae[name=jiveforums,token=i1l8nrfeSbGKFnzT1ETbMA00] com.atlassian.crowd.integration.authentication.PrincipalAuthenticationContext@3df1ff[name=<null>,credential=com.atlassian.crowd.integration.authentication.PasswordCredential@0,validationFactors={com.atlassian.crowd.integration.authentication.ValidationFactor@dada88[name=User-Agent,value=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; XFire Client +http://xfire.codehaus.org)],com.atlassian.crowd.integration.authentication.ValidationFactor@4140b3[name=remote_address,value=127.0.0.1],<null>},application=jiveforums] ... 11:38:17,488 DEBUG atlassian.crowd.manager.directory.DirectoryManagerGeneric: authenticate: user null {code}

    Atlassian JIRA | 9 years ago | Shihab Hamid [Atlassian]
    com.jivesoftware.base.UnauthorizedException: Authentication Failed
  2. 0

    Using Jive's remote API to authenticate (via Crowd) fails because a "null" username/password is sent to the Crowd server. Running: {code} ServiceLocator locator = new ServiceLocator("http://localhost:8083/jiveforums", "admin", "admin"); ContentService contentService = locator.getContentService(); {code} Results in: {code} Exception in thread "main" com.jivesoftware.base.UnauthorizedException: Authentication Failed at com.jivesoftware.forum.webservices.ServiceLocator$ExceptionHandler.getException(ServiceLocator.java:410) at com.jivesoftware.forum.webservices.ServiceLocator$ExceptionHandler.invoke(ServiceLocator.java:364) at $Proxy0.getForumCategory(Unknown Source) 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:585) at com.jivesoftware.forum.webservices.ServiceLocator$CacheHandler.invoke(ServiceLocator.java:492) at $Proxy1.getForumCategory(Unknown Source) at Scrap.main(Scrap.java:21) {code} Due to: {code} 11:38:15,479 DEBUG integration.service.soap.xfire.XFireInLoggingMethodHandler: SOAP service method: authenticatePrincipal com.atlassian.crowd.integration.authentication.AuthenticatedToken@c202ae[name=jiveforums,token=i1l8nrfeSbGKFnzT1ETbMA00] com.atlassian.crowd.integration.authentication.PrincipalAuthenticationContext@3df1ff[name=<null>,credential=com.atlassian.crowd.integration.authentication.PasswordCredential@0,validationFactors={com.atlassian.crowd.integration.authentication.ValidationFactor@dada88[name=User-Agent,value=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; XFire Client +http://xfire.codehaus.org)],com.atlassian.crowd.integration.authentication.ValidationFactor@4140b3[name=remote_address,value=127.0.0.1],<null>},application=jiveforums] ... 11:38:17,488 DEBUG atlassian.crowd.manager.directory.DirectoryManagerGeneric: authenticate: user null {code}

    Atlassian JIRA | 9 years ago | Shihab Hamid
    com.jivesoftware.base.UnauthorizedException: Authentication Failed

    Root Cause Analysis

    1. com.jivesoftware.base.UnauthorizedException

      Authentication Failed

      at com.jivesoftware.forum.webservices.ServiceLocator$ExceptionHandler.getException()
    2. com.jivesoftware.forum
      ServiceLocator$ExceptionHandler.invoke
      1. com.jivesoftware.forum.webservices.ServiceLocator$ExceptionHandler.getException(ServiceLocator.java:410)
      2. com.jivesoftware.forum.webservices.ServiceLocator$ExceptionHandler.invoke(ServiceLocator.java:364)
      2 frames
    3. Unknown
      $Proxy0.getForumCategory
      1. $Proxy0.getForumCategory(Unknown Source)
      1 frame
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      4 frames
    5. com.jivesoftware.forum
      ServiceLocator$CacheHandler.invoke
      1. com.jivesoftware.forum.webservices.ServiceLocator$CacheHandler.invoke(ServiceLocator.java:492)
      1 frame
    6. Unknown
      Scrap.main
      1. $Proxy1.getForumCategory(Unknown Source)
      2. Scrap.main(Scrap.java:21)
      2 frames