By: yoom nguyen user 27 Mar 2017 at 4:54 p.m. CDT

0 Responses
yoom nguyen gravatar
Greetings everyone, I am back trying to get SCIM to work again. I am testing SCIM ability to query data but ran into a problem. Any idea why it did not return values that I am looking for? We used the same codes to query data through SCIM for GLUU version 2.1 and it work on GLUU version 2.1. The same code will now not work on GLUU 2.4.4. Perhaps, I missed some configuration or missed configure something? Anyone got this to work? Any help will be appreciate it. ``` **681 [main] DEBUG httpclient.wire.header - << "HTTP/1.1 404 Not **Found[\r][\n]" **681 [main] DEBUG httpclient.wire.header - << "HTTP/1.1 404 Not ### ************SAMPLE CODES************************** public static GluuUser retrieveUserInfoFromGluuDEV(String userName, String password, boolean useAdminAccount) throws PortalException { try { ScimClient client; if (useAdminAccount) { client = createScimClientDEV("admin", "Test123!"); } else { client = createScimClientDEV(userName, password); } ScimResponse response = client.personSearch("uid", userName, MediaType.APPLICATION_JSON); log.debug(response.getResponseBodyString()); String responseBodyJSONString = response.getResponseBodyString(); JSONObject jsonObject; try { jsonObject = new JSONObject(responseBodyJSONString); } catch (JSONException e) { log.debug("GLUU response is not a valid JSON Object.", e); return null; } String inum = null; try { inum = jsonObject.getString("id"); } catch (JSONException e) { log.debug("JSON Object has id tag missing.", e); return null; } log.debug("inum from Response:" + inum); String userNameResp = jsonObject.getString("userName"); log.debug("userName from Response:" + userNameResp); String firstName; String lastName; { JSONObject nameJO = jsonObject.getJSONObject("name"); firstName = nameJO.getString("givenName"); lastName = nameJO.getString("familyName"); log.debug("firstName:" + firstName); log.debug("lastName:" + lastName); } String email; { JSONArray emailsJA = jsonObject.getJSONArray("emails"); JSONObject emailJO = (JSONObject) emailsJA.get(0); email = emailJO.getString("value"); log.debug("email:" + email); } } JSONArray phoneNumbersJA = jsonObject.getJSONArray("phoneNumbers"); String phoneWork = "", phoneWorkExt = "", phoneCompany = "", phoneCompanyExt = "", phoneCell = "", phoneCellExt = "", fax = ""; for (int i = 0; i < phoneNumbersJA.length(); i++) { JSONObject phoneJO = (JSONObject) phoneNumbersJA.get(i); if (phoneJO.getString("type").compareToIgnoreCase("Work") == 0) { phoneWork = phoneJO.getString("value"); log.debug("phoneWork:" + phoneWork); } else if (phoneJO.getString("type").compareToIgnoreCase("WorkExt") == 0) { phoneWorkExt = phoneJO.getString("value"); log.debug("phoneWorkExt:" + phoneWorkExt); } else if (phoneJO.getString("type").compareToIgnoreCase("Company") == 0) { phoneCompany = phoneJO.getString("value"); log.debug("phoneCompany:" + phoneCompany); } else if (phoneJO.getString("type").compareToIgnoreCase("CompanyExt") == 0) { phoneCompanyExt = phoneJO.getString("value"); log.debug("phoneCompanyExt:" + phoneCompanyExt); } else if (phoneJO.getString("type").compareToIgnoreCase("Cell") == 0) { phoneCell = phoneJO.getString("value"); log.debug("phoneCell:" + phoneCell); } else if (phoneJO.getString("type").compareToIgnoreCase("CellExt") == 0) { phoneCellExt = phoneJO.getString("value"); log.debug("phoneCellExt:" + phoneCellExt); } else if (phoneJO.getString("type").compareToIgnoreCase("Fax") == 0) { fax = phoneJO.getString("value"); log.debug("Fax:" + fax); } } GluuUser gluuUser = new GluuUser(inum, userName, password, firstName, lastName, email, phoneWork, phoneWorkExt, phoneCompany, phoneCompanyExt, phoneCell, phoneCellExt, fax, streetAddress, locality, postalCode, region, country, securityType, custNum, contNo); return gluuUser; } catch (IOException | JAXBException | NumberFormatException | JSONException e) { throw new PortalException(e, PortalException.SEVERITY_LEVEL_2); } } ScimClient client = ScimClient.oAuthInstance(email, password, "@!0231.3470.8EF9.420B!0001!819C.E9B6!0008!AA38.26BC", "abc1234", "https://idp.test.com/identity/seam/resource/restv1", "https://idp.test.com/oxauth/seam/resource/restv1/oxauth/token"); // return client; ### *******************LOG********************* 0 [main] DEBUG org.jboss.resteasy.plugins.providers.DocumentProvider - Unable to retrieve ServletContext: expandEntityReferences defaults to true 4 [main] DEBUG org.jboss.resteasy.plugins.providers.DocumentProvider - Unable to retrieve ServletContext: expandEntityReferences defaults to true 70 [main] DEBUG org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager - Get connection: HttpRoute[{s}->https://idp.test.com], timeout = 0 71 [main] DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute - [HttpRoute[{s}->https://idp.test.com]] total kept alive: 0, total issued: 0, total allocated: 0 out of 1000 71 [main] DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute - No free connections [HttpRoute[{s}->https://idp.test.com]][null] 71 [main] DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute - Available capacity: 1000 out of 1000 [HttpRoute[{s}->https://idp.test.com]][null] 71 [main] DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute - Creating new connection [HttpRoute[{s}->https://idp.test.com]] 180 [main] DEBUG org.apache.http.impl.conn.DefaultClientConnectionOperator - Connecting to idp.test.com:443 257 [main] DEBUG org.apache.http.client.protocol.RequestAddCookies - CookieSpec selected: best-match 265 [main] DEBUG org.apache.http.client.protocol.RequestAuthCache - Auth cache not set in the context 265 [main] DEBUG org.apache.http.impl.client.DefaultHttpClient - Attempt 1 to execute request 265 [main] DEBUG org.apache.http.impl.conn.DefaultClientConnection - Sending request: POST /oxauth/seam/resource/restv1/oxauth/token HTTP/1.1 265 [main] DEBUG org.apache.http.wire - >> "POST /oxauth/seam/resource/restv1/oxauth/token HTTP/1.1[\r][\n]" 266 [main] DEBUG org.apache.http.wire - >> "Authorization: Basic QCEwMjMxLjM0NzAuOEVGOS40MjBCITAwMDEhODE5Qy5FOUI2ITAwMDghQUEzOC4yNkJDOmFiYzEyMzQ=[\r][\n]" 266 [main] DEBUG org.apache.http.wire - >> "Accept-Encoding: gzip, deflate[\r][\n]" 266 [main] DEBUG org.apache.http.wire - >> "Content-Type: application/x-www-form-urlencoded[\r][\n]" 266 [main] DEBUG org.apache.http.wire - >> "Content-Length: 78[\r][\n]" 266 [main] DEBUG org.apache.http.wire - >> "Host: idp.test.com[\r][\n]" 266 [main] DEBUG org.apache.http.wire - >> "Connection: Keep-Alive[\r][\n]" 267 [main] DEBUG org.apache.http.wire - >> "User-Agent: Apache-HttpClient/4.1.2 (java 1.5)[\r][\n]" 267 [main] DEBUG org.apache.http.wire - >> "[\r][\n]" 267 [main] DEBUG org.apache.http.headers - >> POST /oxauth/seam/resource/restv1/oxauth/token HTTP/1.1 267 [main] DEBUG org.apache.http.headers - >> Authorization: Basic QCEwMjMxLjM0NzAuOEVGOS40MjBCITAwMDEhODE5Qy5FOUI2ITAwMDghQUEzOC4yNkJDOmFiYzEyMzQ= 267 [main] DEBUG org.apache.http.headers - >> Accept-Encoding: gzip, deflate 267 [main] DEBUG org.apache.http.headers - >> Content-Type: application/x-www-form-urlencoded 267 [main] DEBUG org.apache.http.headers - >> Content-Length: 78 267 [main] DEBUG org.apache.http.headers - >> Host: idp.test.com 267 [main] DEBUG org.apache.http.headers - >> Connection: Keep-Alive 267 [main] DEBUG org.apache.http.headers - >> User-Agent: Apache-HttpClient/4.1.2 (java 1.5) 267 [main] DEBUG org.apache.http.wire - >> "username=admin&scope=openid+user_name&grant_type=password&password=Test123%21" 420 [main] DEBUG org.apache.http.wire - << "HTTP/1.1 200 OK[\r][\n]" 421 [main] DEBUG org.apache.http.wire - << "Date: Mon, 27 Mar 2017 21:22:33 GMT[\r][\n]" 422 [main] DEBUG org.apache.http.wire - << "Server: Apache[\r][\n]" 422 [main] DEBUG org.apache.http.wire - << "Cache-Control: no-store[\r][\n]" 422 [main] DEBUG org.apache.http.wire - << "Pragma: no-cache[\r][\n]" 422 [main] DEBUG org.apache.http.wire - << "Content-Type: application/json[\r][\n]" 422 [main] DEBUG org.apache.http.wire - << "Content-Length: 176[\r][\n]" 422 [main] DEBUG org.apache.http.wire - << "Set-Cookie: JSESSIONID=50E897FD69ABD4FCD5D97105C6E3D9E0; Path=/oxauth/; Secure; HttpOnly;HttpOnly[\r][\n]" 422 [main] DEBUG org.apache.http.wire - << "Access-Control-Allow-Origin: *[\r][\n]" 422 [main] DEBUG org.apache.http.wire - << "Connection: close[\r][\n]" 422 [main] DEBUG org.apache.http.wire - << "[\r][\n]" 422 [main] DEBUG org.apache.http.impl.conn.DefaultClientConnection - Receiving response: HTTP/1.1 200 OK 422 [main] DEBUG org.apache.http.headers - << HTTP/1.1 200 OK 422 [main] DEBUG org.apache.http.headers - << Date: Mon, 27 Mar 2017 21:22:33 GMT 422 [main] DEBUG org.apache.http.headers - << Server: Apache 422 [main] DEBUG org.apache.http.headers - << Cache-Control: no-store 422 [main] DEBUG org.apache.http.headers - << Pragma: no-cache 423 [main] DEBUG org.apache.http.headers - << Content-Type: application/json 423 [main] DEBUG org.apache.http.headers - << Content-Length: 176 423 [main] DEBUG org.apache.http.headers - << Set-Cookie: JSESSIONID=50E897FD69ABD4FCD5D97105C6E3D9E0; Path=/oxauth/; Secure; HttpOnly;HttpOnly 423 [main] DEBUG org.apache.http.headers - << Access-Control-Allow-Origin: * 423 [main] DEBUG org.apache.http.headers - << Connection: close 427 [main] DEBUG org.apache.http.client.protocol.ResponseProcessCookies - Cookie accepted: "[version: 0][name: JSESSIONID][value: 50E897FD69ABD4FCD5D97105C6E3D9E0][domain: idp.test.com][path: /oxauth/][expiry: null]". 431 [main] DEBUG org.xdi.oxauth.client.TokenClient - 432 [main] DEBUG org.xdi.oxauth.client.TokenClient - Location: null 434 [main] DEBUG org.apache.http.wire - << "{"access_token":"8c2bd37f-379b-44f0-a611-82994be6425b","token_type":"bearer","expires_in":299,"refresh_token":"6170afa0-1a7c-4e00-99be-4e7d0a672569","scope":"user_name openid"}" 435 [main] DEBUG org.apache.http.impl.conn.DefaultClientConnection - Connection shut down 435 [main] DEBUG org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager - Released connection is not reusable. 435 [main] DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute - Releasing connection [HttpRoute[{s}->https://idp.test.com]][null] 435 [main] DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute - Notifying no-one, there are no waiting threads 435 [main] DEBUG org.xdi.oxauth.client.TokenClient - entity: {"access_token":"8c2bd37f-379b-44f0-a611-82994be6425b","token_type":"bearer","expires_in":299,"refresh_token":"6170afa0-1a7c-4e00-99be-4e7d0a672569","scope":"user_name openid"} 442 [main] DEBUG org.apache.commons.httpclient.HttpClient - Java version: 1.7.0_75 442 [main] DEBUG org.apache.commons.httpclient.HttpClient - Java vendor: Oracle Corporation 442 [main] DEBUG org.apache.commons.httpclient.HttpClient - Java class path: C:\0Ati\ZWorkspace\portal-address\build\classes;C:\0Ati\ZSoftware\apache-tomcat-7.0.61\lib\annotations-api.jar;C:\0Ati\ZSoftware\apache-tomcat-7.0.61\lib\catalina-ant.jar;C:\0Ati\ZSoftware\apache-tomcat-7.0.61\lib\catalina-ha.jar;C:\0Ati\ZSoftware\apache-tomcat-7.0.61\lib\catalina-tribes.jar;C:\0Ati\ZSoftware\apache-tomcat-7.0.61\lib\catalina.jar;C:\0Ati\ZSoftware\apache-tomcat-7.0.61\lib\ecj-4.4.2.jar;C:\0Ati\ZSoftware\apache-tomcat-7.0.61\lib\el-api.jar;C:\0Ati\ZSoftware\apache-tomcat-7.0.61\lib\jasper-el.jar;C:\0Ati\ZSoftware\apache-tomcat-7.0.61\lib\jasper.jar;C:\0Ati\ZSoftware\apache-tomcat-7.0.61\lib\jsp-api.jar;C:\0Ati\ZSoftware\apache-tomcat-7.0.61\lib\postgresql-9.4.1212.jre6.jar;C:\0Ati\ZSoftware\apache-tomcat-7.0.61\lib\servlet-api.jar;C:\0Ati\ZSoftware\apache-tomcat-7.0.61\lib\tomcat-api.jar;C:\0Ati\ZSoftware\apache-tomcat-7.0.61\lib\tomcat-coyote.jar;C:\0Ati\ZSoftware\apache-tomcat-7.0.61\lib\tomcat-dbcp.jar;C:\0Ati\ZSoftware\apache-tomcat-7.0.61\lib\tomcat-i18n-es.jar;C:\0Ati\ZSoftware\apache-tomcat-7.0.61\lib\tomcat-i18n-fr.jar;C:\0Ati\ZSoftware\apache-tomcat-7.0.61\lib\tomcat-i18n-ja.jar;C:\0Ati\ZSoftware\apache-tomcat-7.0.61\lib\tomcat-jdbc.jar;C:\0Ati\ZSoftware\apache-tomcat-7.0.61\lib\tomcat-util.jar;C:\0Ati\ZSoftware\apache-tomcat-7.0.61\lib\tomcat7-websocket.jar;C:\0Ati\ZSoftware\apache-tomcat-7.0.61\lib\websocket-api.jar;C:\0Ati\ZWorkspace\portal-address\WebContent\WEB-INF\lib\apache-httpcomponents-httpcore.jar;C:\0Ati\ZWorkspace\portal-address\WebContent\WEB-INF\lib\base.jar;C:\0Ati\ZWorkspace\portal-address\WebContent\WEB-INF\lib\commons-codec-1.10.jar;C:\0Ati\ZWorkspace\portal-address\WebContent\WEB-INF\lib\commons-collections-3.2.2.jar;C:\0Ati\ZWorkspace\portal-address\WebContent\WEB-INF\lib\commons-digester-2.1.jar;C:\0Ati\ZWorkspace\portal-address\WebContent\WEB-INF\lib\commons-httpclient-3.1.jar;C:\0Ati\ZWorkspace\portal-address\WebContent\WEB-INF\lib\commons-io-2.4.jar;C:\0Ati\ZWorkspace\portal-address\WebContent\WEB-INF\lib\commons-lang-2.6.jar;C:\0Ati\ZWorkspace\portal-address\WebContent\WEB-INF\lib\commons-lang3-3.1.jar;C:\0Ati\ZWorkspace\portal-address\WebContent\WEB-INF\lib\commons-logging-1.2.jar;C:\0Ati\ZWorkspace\portal-address\WebContent\WEB-INF\lib\commons-validator-1.4.1.jar;C:\0Ati\ZWorkspace\portal-address\WebContent\WEB-INF\lib\dom4j-1.6.1.jar;C:\0Ati\ZWorkspace\portal-address\WebContent\WEB-INF\lib\dynamicreports-core-4.1.1-javadoc.jar;C:\0Ati\ZWorkspace\portal-address\WebContent\WEB-INF\lib\dynamicreports-core-4.1.1.jar;C:\0Ati\ZWorkspace\portal-address\WebContent\WEB-INF\lib\httpclient-4.1.2.jar;C:\0Ati\ZWorkspace\portal-address\WebContent\WEB-INF\lib\httpcore-4.1.2.jar;C:\0Ati\ZWorkspace\portal-address\WebContent\WEB-INF\lib\jackson-all-1.9.0.jar;C:\0Ati\ZWorkspace\portal-address\WebContent\WEB-INF\lib\jackson-annotations-2.6.0-rc1.jar;C:\0Ati\ZWorkspace\portal-address\WebContent\WEB-INF\lib\jackson-core-2.6.0-rc1.jar;C:\0Ati\ZWorkspace\portal-address\WebContent\WEB-INF\lib\jackson-databind-2.6.0-rc1.jar;C:\0Ati\ZWorkspace\portal-address\WebContent\WEB-INF\lib\jasperreports-6.2.2.jar;C:\0Ati\ZWorkspace\portal-address\WebContent\WEB-INF\lib\jasypt-1.9.2.jar;C:\0Ati\ZWorkspace\portal-address\WebContent\WEB-INF\lib\javax.faces-api-2.0.jar;C:\0Ati\ZWorkspace\portal-address\WebContent\WEB-INF\lib\javax.ws.rs.jar;C:\0Ati\ZWorkspace\portal-address\WebContent\WEB-INF\lib\jboss-seam-2.2.2.Final.jar;C:\0Ati\ZWorkspace\portal-address\WebContent\WEB-INF\lib\jettison-1.3.jar;C:\0Ati\ZWorkspace\portal-address\WebContent\WEB-INF\lib\jgeocoder-0.5-jar-with-dependencies.jar;C:\0Ati\ZWorkspace\portal-address\WebContent\WEB-INF\lib\jsslutils-extra-apachehttpclient3-1.0.5.jar;C:\0Ati\ZWorkspace\portal-address\WebContent\WEB-INF\lib\jstl.jar;C:\0Ati\ZWorkspace\portal-address\WebContent\WEB-INF\lib\log4j-1.2.17.jar;C:\0Ati\ZWorkspace\portal-address\WebContent\WEB-INF\lib\mail-1.4.7.jar;C:\0Ati\ZWorkspace\portal-address\WebContent\WEB-INF\lib\opencsv-3.4.jar;C:\0Ati\ZWorkspace\portal-address\WebContent\WEB-INF\lib\openedge.jar;C:\0Ati\ZWorkspace\portal-address\WebContent\WEB-INF\lib\oxLdap-1.7.0-SNAPSHOT.jar;C:\0Ati\ZWorkspace\portal-address\WebContent\WEB-INF\lib\oxService-1.7.0-SNAPSHOT.jar;C:\0Ati\ZWorkspace\portal-address\WebContent\WEB-INF\lib\oxUtil-2.1.0.Final.jar;C:\0Ati\ZWorkspace\portal-address\WebContent\WEB-INF\lib\progress.jar;C:\0Ati\ZWorkspace\portal-address\WebContent\WEB-INF\lib\resteasy-jaxrs-2.3.1.GA.jar;C:\0Ati\ZWorkspace\portal-address\WebContent\WEB-INF\lib\resteasy-jaxrs-2.3.2.final.jar;C:\0Ati\ZWorkspace\portal-address\WebContent\WEB-INF\lib\simplecaptcha-latest.jar;C:\0Ati\ZWorkspace\portal-address\WebContent\WEB-INF\lib\simplecaptcha-standard.jar;C:\0Ati\ZWorkspace\portal-address\WebContent\WEB-INF\lib\slf4j-api-1.7.21.jar;C:\0Ati\ZWorkspace\portal-address\WebContent\WEB-INF\lib\slf4j-simple-1.7.21.jar;C:\0Ati\ZWorkspace\portal-address\WebContent\WEB-INF\lib\standard.jar;C:\0Ati\ZWorkspace\portal-address\WebContent\WEB-INF\lib\util.jar 442 [main] DEBUG org.apache.commons.httpclient.HttpClient - Operating system name: Windows 7 442 [main] DEBUG org.apache.commons.httpclient.HttpClient - Operating system architecture: amd64 442 [main] DEBUG org.apache.commons.httpclient.HttpClient - Operating system version: 6.1 442 [main] DEBUG org.apache.commons.httpclient.HttpClient - SUN 1.7: SUN (DSA key/parameter generation; DSA signing; SHA-1, MD5 digests; SecureRandom; X.509 certificates; JKS keystore; PKIX CertPathValidator; PKIX CertPathBuilder; LDAP, Collection CertStores, JavaPolicy Policy; JavaLoginConfig Configuration) 442 [main] DEBUG org.apache.commons.httpclient.HttpClient - SunRsaSign 1.7: Sun RSA signature provider 442 [main] DEBUG org.apache.commons.httpclient.HttpClient - SunEC 1.7: Sun Elliptic Curve provider (EC, ECDSA, ECDH) 442 [main] DEBUG org.apache.commons.httpclient.HttpClient - SunJSSE 1.7: Sun JSSE provider(PKCS12, SunX509 key/trust factories, SSLv3, TLSv1) 442 [main] DEBUG org.apache.commons.httpclient.HttpClient - SunJCE 1.7: SunJCE Provider (implements RSA, DES, Triple DES, AES, Blowfish, ARCFOUR, RC2, PBE, Diffie-Hellman, HMAC) 442 [main] DEBUG org.apache.commons.httpclient.HttpClient - SunJGSS 1.7: Sun (Kerberos v5, SPNEGO) 442 [main] DEBUG org.apache.commons.httpclient.HttpClient - SunSASL 1.7: Sun SASL provider(implements client mechanisms for: DIGEST-MD5, GSSAPI, EXTERNAL, PLAIN, CRAM-MD5, NTLM; server mechanisms for: DIGEST-MD5, GSSAPI, CRAM-MD5, NTLM) 443 [main] DEBUG org.apache.commons.httpclient.HttpClient - XMLDSig 1.0: XMLDSig (DOM XMLSignatureFactory; DOM KeyInfoFactory) 443 [main] DEBUG org.apache.commons.httpclient.HttpClient - SunPCSC 1.7: Sun PC/SC provider 443 [main] DEBUG org.apache.commons.httpclient.HttpClient - SunMSCAPI 1.7: Sun's Microsoft Crypto API provider 445 [main] DEBUG org.apache.commons.httpclient.params.DefaultHttpParams - Set parameter http.useragent = Jakarta Commons-HttpClient/3.1 446 [main] DEBUG org.apache.commons.httpclient.params.DefaultHttpParams - Set parameter http.protocol.version = HTTP/1.1 446 [main] DEBUG org.apache.commons.httpclient.params.DefaultHttpParams - Set parameter http.connection-manager.class = class org.apache.commons.httpclient.SimpleHttpConnectionManager 446 [main] DEBUG org.apache.commons.httpclient.params.DefaultHttpParams - Set parameter http.protocol.cookie-policy = default 446 [main] DEBUG org.apache.commons.httpclient.params.DefaultHttpParams - Set parameter http.protocol.element-charset = US-ASCII 446 [main] DEBUG org.apache.commons.httpclient.params.DefaultHttpParams - Set parameter http.protocol.content-charset = ISO-8859-1 447 [main] DEBUG org.apache.commons.httpclient.params.DefaultHttpParams - Set parameter http.method.retry-handler = org.apache.commons.httpclient.DefaultHttpMethodRetryHandler@111718cb 447 [main] DEBUG org.apache.commons.httpclient.params.DefaultHttpParams - Set parameter http.dateparser.patterns = [EEE, dd MMM yyyy HH:mm:ss zzz, EEEE, dd-MMM-yy HH:mm:ss zzz, EEE MMM d HH:mm:ss yyyy, EEE, dd-MMM-yyyy HH:mm:ss z, EEE, dd-MMM-yyyy HH-mm-ss z, EEE, dd MMM yy HH:mm:ss z, EEE dd-MMM-yyyy HH:mm:ss z, EEE dd MMM yyyy HH:mm:ss z, EEE dd-MMM-yyyy HH-mm-ss z, EEE dd-MMM-yy HH:mm:ss z, EEE dd MMM yy HH:mm:ss z, EEE,dd-MMM-yy HH:mm:ss z, EEE,dd-MMM-yyyy HH:mm:ss z, EEE, dd-MM-yyyy HH:mm:ss z] 463 [main] DEBUG org.apache.commons.httpclient.params.DefaultHttpParams - Set parameter http.protocol.content-charset = utf-8 603 [main] DEBUG org.apache.commons.httpclient.HttpConnection - Open connection to idp.test.com:443 665 [main] DEBUG httpclient.wire.header - >> "POST /identity/seam/resource/restv1/Users/Search HTTP/1.1[\r][\n]" 665 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - Adding Host request header 671 [main] DEBUG httpclient.wire.header - >> "Authorization: Bearer 8c2bd37f-379b-44f0-a611-82994be6425b[\r][\n]" 671 [main] DEBUG httpclient.wire.header - >> "BearerTokenType: oxauth[\r][\n]" 671 [main] DEBUG httpclient.wire.header - >> "Accept: application/json[\r][\n]" 671 [main] DEBUG httpclient.wire.header - >> "User-Agent: Jakarta Commons-HttpClient/3.1[\r][\n]" 671 [main] DEBUG httpclient.wire.header - >> "Host: idp.test.com[\r][\n]" 671 [main] DEBUG httpclient.wire.header - >> "Content-Length: 48[\r][\n]" 671 [main] DEBUG httpclient.wire.header - >> "Content-Type: application/json; charset=UTF-8[\r][\n]" 671 [main] DEBUG httpclient.wire.header - >> "[\r][\n]" 671 [main] DEBUG httpclient.wire.content - >> "{"attribute":"email","value":"yoom@misoccer.us"}" 671 [main] DEBUG 1. list text here org.apache.commons.httpclient.methods.EntityEnclosingMethod - Request body sent **681 [main] DEBUG httpclient.wire.header - << "HTTP/1.1 404 Not **Found[\r][\n]" **681 [main] DEBUG httpclient.wire.header - << "HTTP/1.1 404 Not Found[\r][\n]" 682 [main] DEBUG httpclient.wire.header - << "Date: Mon, 27 Mar 2017 21:22:33 GMT[\r][\n]" 682 [main] DEBUG httpclient.wire.header - << "Server: Apache[\r]**[\n]" 682 [main] DEBUG httpclient.wire.header - << "Content-Type: text/html;charset=utf-8[\r][\n]" 682 [main] DEBUG httpclient.wire.header - << "Content-Language: en[\r][\n]" 682 [main] DEBUG httpclient.wire.header - << "Content-Length: 1211[\r][\n]" 682 [main] DEBUG httpclient.wire.header - << "Set-Cookie: JSESSIONID=3868ACB89EC20B7F4FA02ABA63F0C402; Path=/identity/; Secure; HttpOnly;HttpOnly[\r][\n]" 682 [main] DEBUG httpclient.wire.header - << "Connection: close[\r][\n]" 682 [main] DEBUG httpclient.wire.header - << "[\r][\n]" 682 [main] DEBUG org.apache.commons.httpclient.cookie.CookieSpec - Unrecognized cookie attribute: name=HttpOnly, value=null 682 [main] DEBUG org.apache.commons.httpclient.cookie.CookieSpec - Unrecognized cookie attribute: name=HttpOnly, value=null 683 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - Cookie accepted: "$Version=0; JSESSIONID=3868ACB89EC20B7F4FA02ABA63F0C402; $Path=/identity/" 684 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - Buffering response body 684 [main] DEBUG httpclient.wire.content - << "<html><head><title>Apache Tomcat/7.0.65 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 404 - Could not find resource for relative : /Users/Search of full path: https://idp.test.com/identity/seam/resource/restv1/Users/Search</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>Could not find resource for relative : /Users/Search of full path: https://idp.test.com/identity/seam/resource/restv1/Users/Search</u></p><p><b>description</b> <u>The requested resource is not available.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/7.0.65</h3></body></html>" 684 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - Should close connection in response to directive: close 685 [main] DEBUG org.apache.commons.httpclient.HttpConnection - Releasing connection back to connection manager. 685 [main] DEBUG test.portal.user.GluuUser - <html><head><title>Apache Tomcat/7.0.65 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 404 - Could not find resource for relative : /Users/Search of full path: https://idp.test.com/identity/seam/resource/restv1/Users/Search</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>Could not find resource for relative : /Users/Search of full path: https://idp.test.com/identity/seam/resource/restv1/Users/Search</u></p><p><b>description</b> <u>The requested resource is not available.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/7.0.65</h3></body></html> 685 [main] DEBUG test.portal.user.GluuUser - GLUU response is not a valid JSON Object. org.codehaus.jettison.json.JSONException: A JSONObject text must begin with '{' at character 1 of <html><head><title>Apache Tomcat/7.0.65 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 404 - Could not find resource for relative : /Users/Search of full path: https://idp.test.com/identity/seam/resource/restv1/Users/Search</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>Could not find resource for relative : /Users/Search of full path: https://idp.test.com/identity/seam/resource/restv1/Users/Search</u></p><p><b>description</b> <u>The requested resource is not available.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/7.0.65</h3></body></html> at org.codehaus.jettison.json.JSONTokener.syntaxError(JSONTokener.java:439) at org.codehaus.jettison.json.JSONObject.<init>(JSONObject.java:169) at org.codehaus.jettison.json.JSONObject.<init>(JSONObject.java:266) at test.portal.user.GluuUser.retrieveUserInfoFromGluuDEV(GluuUser.java:1787) at DecodeTest.main(DecodeTest.java:416) ```