CRM On Demand - Web Services Integration (MOSC)

MOSC Banner

Error while logging in to CRM java.util.NoSuchElementException; Internal Server Error

edited Mar 21, 2014 12:00PM in CRM On Demand - Web Services Integration (MOSC) 5 commentsAnswered

Hi,

I often get this error java.util.NoSuchElementException.Response: 500 and Response Code: Internal Server Error.

The strange thing is this error is intermediate which means Sometimes I get this error while sometime not.

Can anyone tell me why this erroor is coming.

I suspect this part of code for this error. Does anyone has a better loggin code

    public static String getCookieFromHeaders(HttpURLConnection wsConnection) {
        // debug code - display all the returned headers
        String headerName;
        String headerValue = "FAIL";
        for (int i = 0; ; i++) {
            headerName = wsConnection.getHeaderFieldKey(i);
            if (headerName != null && headerName.equals("Set-Cookie")) {
                // found the Set-Cookie header (code assumes only one cookie is being set)

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center