com.cenqua.fisheye.user.AuthenticationException: Problem communicating with Crowd

Atlassian JIRA | Ajay Sridhar [Atlassian] | 5 years ago
  1. 0

    When a local JIRA user authenticates from FishEye to JIRA, the following response is returned from JIRA: {noformat} 2013-12-07 22:57:50,898 DEBUG [qtp16566588-223 ] httpclient.wire.content Wire-wire - << "<user expand="attributes" name="jira.test"><link href="http://jira.acme.com/rest/usermanagement/1/user?username=jira.test" rel="self"/><first-name>Jira</first-name><last-name>Test</last-name><display-name>Jira Test</display-name><email>jira.test@acme.com</email><password><link href="http://jira.acme.com/rest/usermanagement/1/user/password?username=jira.test" rel="edit"/></password><key>1:acd45554-6bef-4231-9ec5-ebdcbb299a43</key><active>true</active><attributes><link href="http://jira.acme.com/rest/usermanagement/1/user/attribute?username=jira.test" rel="self"/></attributes></user>" {noformat} However when the user configures JIRA to use LDAP to store users, the following (invalid) response is returned: {noformat} 2013-12-07 22:41:53,581 DEBUG [qtp16566588-196 ] httpclient.wire.content Wire-wire - << "<user expand="attributes" name="jira.test"><link href="http://jira.acme.com/rest/usermanagement/1/user?username=jira.test" rel="self"/><first-name>Jira</first-name><last-name>Test</last-name><display-name>Jira Test</display-name><email>jira.test@acme.com</email><password><link href="http://jira.acme.com/rest/usermanagement/1/user/password?username=jira.test" rel="edit"/></password><key>10100:[0xe][0x6]c[0xef][0xbf][0xbd]&amp;IYK[0xef][0xbf][0xbd]Fn[0xef][0xbf][0xbd][0xef][0xbf][0xbd]e[0xef][0xbf][0xbd][0xef][0xbf][0xbd]</key><active>true</active><attributes><link href="http://jira.acme.com/rest/usermanagement/1/user/attribute?username=jira.test" rel="self"/></attributes></user>" {noformat} Which causes FishEye to barf when trying to parse the XML: bq. An invalid XML character (Unicode: 0xe) was found in the element content of the document.] {noformat} 2013-12-07 22:41:53,581 ERROR [qtp16566588-196 ] fisheye DefaultUserManager-getOrImportUser - Could not authenticate user "jira.test" com.cenqua.fisheye.user.AuthenticationException: Problem communicating with Crowd at com.cenqua.fisheye.user.crowd.CrowdAuth.authenticate(CrowdAuth.java:261) at com.cenqua.fisheye.user.DefaultUserManager.getOrImportUser(DefaultUserManager.java:611) at com.cenqua.fisheye.user.DefaultUserManager.loginWithSanitizedUserName(DefaultUserManager.java:428) at com.cenqua.fisheye.user.DefaultUserManager.login(DefaultUserManager.java:402) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196) at com.sun.proxy.$Proxy44.login(Unknown Source) at com.cenqua.fisheye.web.LoginServlet.login(LoginServlet.java:115) at com.cenqua.fisheye.web.LoginServlet.doLogin(LoginServlet.java:74) at com.cenqua.fisheye.web.LoginServlet.doGet(LoginServlet.java:60) [....] - with linked exception: [org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 460; An invalid XML character (Unicode: 0xe) was found in the element content of the document.] at javax.xml.bind.JAXB.unmarshal(JAXB.java:226) at com.atlassian.crowd.integration.rest.service.RestExecutor$MethodExecutor.andReceive(RestExecutor.java:349) at com.atlassian.crowd.integration.rest.service.RestCrowdClient.authenticateUser(RestCrowdClient.java:115) at com.cenqua.fisheye.user.crowd.CrowdAuth$3.call(CrowdAuth.java:235) at com.cenqua.fisheye.user.crowd.CrowdAuth$3.call(CrowdAuth.java:225) {noformat} The invalid XML appears to be: {code} <key>10100:[0xe][0x6]c[0xef][0xbf][0xbd]&amp;IYK[0xef][0xbf][0xbd]Fn[0xef][0xbf][0xbd][0xef][0xbf][0xbd]e[0xef][0xbf][0xbd][0xef][0xbf][0xbd]</key> {code} This element, when using local user storage in JIRA, is: {code} <key>1:acd45554-6bef-4231-9ec5-ebdcbb299a43</key> {code}

    Atlassian JIRA | 3 years ago | Ricardo Martins [Atlassian]
    com.cenqua.fisheye.user.AuthenticationException: Problem communicating with Crowd
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    This can only happen if you have JIRA or Crowd as an External User Directory connected to your Stash and they are as well connected to an LDAP server. {noformat} 2014-03-17 09:57:13,950 ERROR [scheduler_Worker-4] c.a.c.d.DbCachingDirectoryPoller Error occurred while refreshing the cache for directory [ 32770 ]. javax.xml.bind.DataBindingException: javax.xml.bind.UnmarshalException - with linked exception: [org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1082; An invalid XML character (Unicode: 0x1) was found in the element content of the document.] ... ... Caused by: org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x1) was found in the element content of the document. ... ... {noformat} It could also happen during authentication time: {noformat} 2013-12-07 22:41:53,581 ERROR [qtp16566588-196 ] fisheye DefaultUserManager-getOrImportUser - Could not authenticate user "jira.test" com.cenqua.fisheye.user.AuthenticationException: Problem communicating with Crowd at com.cenqua.fisheye.user.crowd.CrowdAuth.authenticate(CrowdAuth.java:261) at com.cenqua.fisheye.user.DefaultUserManager.getOrImportUser(DefaultUserManager.java:611) at com.cenqua.fisheye.user.DefaultUserManager.loginWithSanitizedUserName(DefaultUserManager.java:428) at com.cenqua.fisheye.user.DefaultUserManager.login(DefaultUserManager.java:402) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196) at com.sun.proxy.$Proxy44.login(Unknown Source) at com.cenqua.fisheye.web.LoginServlet.login(LoginServlet.java:115) at com.cenqua.fisheye.web.LoginServlet.doLogin(LoginServlet.java:74) at com.cenqua.fisheye.web.LoginServlet.doGet(LoginServlet.java:60) [....] - with linked exception: [org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 460; An invalid XML character (Unicode: 0xe) was found in the element content of the document.] at javax.xml.bind.JAXB.unmarshal(JAXB.java:226) at com.atlassian.crowd.integration.rest.service.RestExecutor$MethodExecutor.andReceive(RestExecutor.java:349) at com.atlassian.crowd.integration.rest.service.RestCrowdClient.authenticateUser(RestCrowdClient.java:115) at com.cenqua.fisheye.user.crowd.CrowdAuth$3.call(CrowdAuth.java:235) at com.cenqua.fisheye.user.crowd.CrowdAuth$3.call(CrowdAuth.java:225) {noformat} The invalid XML appears to be: {code} <key>10100:[0xe][0x6]c[0xef][0xbf][0xbd]&amp;IYK[0xef][0xbf][0xbd]Fn[0xef][0xbf][0xbd][0xef][0xbf][0xbd]e[0xef][0xbf][0xbd][0xef][0xbf][0xbd]</key> {code} This element, when using local user storage in JIRA, is: {code} <key>1:acd45554-6bef-4231-9ec5-ebdcbb299a43</key> {code} {panel} *Possible workaround:* if you are in this situation you could bypass Crowd or JIRA and add the LDAP directly as your User Directory. {panel}

    Atlassian JIRA | 3 years ago | Thiago Bomfim [Atlassian]
    com.cenqua.fisheye.user.AuthenticationException: Problem communicating with Crowd
  4. 0

    When a local JIRA user authenticates from FishEye to JIRA, the following response is returned from JIRA: {noformat} 2013-12-07 22:57:50,898 DEBUG [qtp16566588-223 ] httpclient.wire.content Wire-wire - << "<user expand="attributes" name="jira.test"><link href="http://jira.acme.com/rest/usermanagement/1/user?username=jira.test" rel="self"/><first-name>Jira</first-name><last-name>Test</last-name><display-name>Jira Test</display-name><email>jira.test@acme.com</email><password><link href="http://jira.acme.com/rest/usermanagement/1/user/password?username=jira.test" rel="edit"/></password><key>1:acd45554-6bef-4231-9ec5-ebdcbb299a43</key><active>true</active><attributes><link href="http://jira.acme.com/rest/usermanagement/1/user/attribute?username=jira.test" rel="self"/></attributes></user>" {noformat} However when the user configures JIRA to use LDAP to store users, the following (invalid) response is returned: {noformat} 2013-12-07 22:41:53,581 DEBUG [qtp16566588-196 ] httpclient.wire.content Wire-wire - << "<user expand="attributes" name="jira.test"><link href="http://jira.acme.com/rest/usermanagement/1/user?username=jira.test" rel="self"/><first-name>Jira</first-name><last-name>Test</last-name><display-name>Jira Test</display-name><email>jira.test@acme.com</email><password><link href="http://jira.acme.com/rest/usermanagement/1/user/password?username=jira.test" rel="edit"/></password><key>10100:[0xe][0x6]c[0xef][0xbf][0xbd]&amp;IYK[0xef][0xbf][0xbd]Fn[0xef][0xbf][0xbd][0xef][0xbf][0xbd]e[0xef][0xbf][0xbd][0xef][0xbf][0xbd]</key><active>true</active><attributes><link href="http://jira.acme.com/rest/usermanagement/1/user/attribute?username=jira.test" rel="self"/></attributes></user>" {noformat} Which causes FishEye to barf when trying to parse the XML: bq. An invalid XML character (Unicode: 0xe) was found in the element content of the document.] {noformat} 2013-12-07 22:41:53,581 ERROR [qtp16566588-196 ] fisheye DefaultUserManager-getOrImportUser - Could not authenticate user "jira.test" com.cenqua.fisheye.user.AuthenticationException: Problem communicating with Crowd at com.cenqua.fisheye.user.crowd.CrowdAuth.authenticate(CrowdAuth.java:261) at com.cenqua.fisheye.user.DefaultUserManager.getOrImportUser(DefaultUserManager.java:611) at com.cenqua.fisheye.user.DefaultUserManager.loginWithSanitizedUserName(DefaultUserManager.java:428) at com.cenqua.fisheye.user.DefaultUserManager.login(DefaultUserManager.java:402) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196) at com.sun.proxy.$Proxy44.login(Unknown Source) at com.cenqua.fisheye.web.LoginServlet.login(LoginServlet.java:115) at com.cenqua.fisheye.web.LoginServlet.doLogin(LoginServlet.java:74) at com.cenqua.fisheye.web.LoginServlet.doGet(LoginServlet.java:60) [....] - with linked exception: [org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 460; An invalid XML character (Unicode: 0xe) was found in the element content of the document.] at javax.xml.bind.JAXB.unmarshal(JAXB.java:226) at com.atlassian.crowd.integration.rest.service.RestExecutor$MethodExecutor.andReceive(RestExecutor.java:349) at com.atlassian.crowd.integration.rest.service.RestCrowdClient.authenticateUser(RestCrowdClient.java:115) at com.cenqua.fisheye.user.crowd.CrowdAuth$3.call(CrowdAuth.java:235) at com.cenqua.fisheye.user.crowd.CrowdAuth$3.call(CrowdAuth.java:225) {noformat} The invalid XML appears to be: {code} <key>10100:[0xe][0x6]c[0xef][0xbf][0xbd]&amp;IYK[0xef][0xbf][0xbd]Fn[0xef][0xbf][0xbd][0xef][0xbf][0xbd]e[0xef][0xbf][0xbd][0xef][0xbf][0xbd]</key> {code} This element, when using local user storage in JIRA, is: {code} <key>1:acd45554-6bef-4231-9ec5-ebdcbb299a43</key> {code}

    Atlassian JIRA | 3 years ago | Ricardo Martins [Atlassian]
    com.cenqua.fisheye.user.AuthenticationException: Problem communicating with Crowd

    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. com.cenqua.fisheye.user.AuthenticationException

      Problem communicating with Crowd

      at com.cenqua.fisheye.user.crowd.CrowdAuth.recreateAuth()
    2. com.cenqua.fisheye
      CrowdAuth.recreateAuth
      1. com.cenqua.fisheye.user.crowd.CrowdAuth.recreateAuth(CrowdAuth.java:285)
      1 frame