Skip to content

Instantly share code, notes, and snippets.

@freynaud
Created September 1, 2011 17:30
Show Gist options
  • Save freynaud/1186703 to your computer and use it in GitHub Desktop.
Save freynaud/1186703 to your computer and use it in GitHub Desktop.
INFO: new session 1314893298613 created
Sep 1, 2011 8:09:47 PM org.openqa.grid.web.servlet.handler.RequestHandler handleNewSession
WARNING: ERROR , registry not updated
Sep 1, 2011 8:09:47 PM org.openqa.grid.web.servlet.handler.RequestHandler handleNewSession
WARNING: ERROR , 2b2c5b98-ba56-41ee-bb06-0e2b41d339dd ext:1314893298613
Sep 1, 2011 8:09:47 PM org.openqa.grid.web.servlet.handler.RequestHandler handleNewSession
WARNING: ERROR, [ext. key 1314893298616, ext. key 1314893298615, ext. key 1314893355254, ext. key 1314893247257, ext. key 1314893288646, ext. key 1314893292243, ext. key 1314893292244, ext. key 1314893288647, ext. key 1314893232508, ext. key 1314893355255, ext. key 1314893232509, ext. key 1314893247258, ext. key 1314893288648, ext. key 1314893247259, ext. key 1314893292245, ext. key 1314893355256, ext. key 1314893232510, ext. key 1314893298617, ext. key 1314893355257, ext. key 1314893247260, ext. key 1314893288649]
Sep 1, 2011 8:09:47 PM org.openqa.grid.web.servlet.handler.RequestHandler getSession
WARNING: Cannot find session 1314893298613 in the registry.[1314893232508, 1314893232507, 1314893292244, 1314893232509, 1314893292245, 1314893292242, 1314893292243, 1314893292240, 1314893292241, 1314893232504, 1314893232503, 1314893232506, 1314893232505, 1314893247260, 1314893298617, 1314893298615, 1314893298616, 1314893298613, 1314893298614, 1314893298612, 1314893292238, 1314893292239, 1314893355257, 1314893355256, 1314893355255, 1314893355254, 1314893355253, 1314893355252, 1314893355251, 1314893355250, 1314893355249, 1314893355248, 1314893288645, 1314893247258, 1314893247257, 1314893288646, 1314893288643, 1314893288644, 1314893247259, 1314893247254, 1314893288649, 1314893247253, 1314893247256, 1314893288647, 1314893247255, 1314893288648, 1314893247252, 1314893232510, 1314893288642, 1314893288641]
Session [1314893298613] not available - [ext. key 1314893298616, ext. key 1314893298615, ext. key 1314893355254, ext. key 1314893247257, ext. key 1314893288646, ext. key 1314893292243, ext. key 1314893292244, ext. key 1314893288647, ext. key 1314893232508, ext. key 1314893355255, ext. key 1314893232509, ext. key 1314893247258, ext. key 1314893288648, ext. key 1314893247259, ext. key 1314893292245, ext. key 1314893355256, ext. key 1314893232510, ext. key 1314893298617, ext. key 1314893355257, ext. key 1314893247260, ext. key 1314893288649]
@freynaud
Copy link
Author

freynaud commented Sep 1, 2011

String externalKey = forwardNewSessionRequest(session);
    if (externalKey == null) {
        session.terminate();
        // TODO (kmenard 04/10/11): We should indicate what the requested
        // session type is.
        throw new GridException("Error getting a new session from the remote." + registry.getAllProxies());
    } else {
        session.setExternalKey(externalKey);
        log.info("new session " + externalKey + " created");
        boolean ok = sessions.add(externalKey);
        if (!ok){
            throw new RuntimeException("DUPLICATE");
        }
        TestSession s = registry.getSession(externalKey);
        if (s == null){
            log.warning("ERROR , registry not updated");
            log.warning("ERROR , "+session.getInternalKey()+" ext:"+session.getExternalKey());
            log.warning("ERROR, " +registry.getActiveSessions());
        }

    }

@freynaud
Copy link
Author

freynaud commented Sep 1, 2011

public static Set sessions = Collections.synchronizedSet(new HashSet());
protected TestSession getSession() {
if (session == null) {
String externalKey = extractSession();
session = registry.getSession(externalKey);
if (session == null) {
log.warning("Cannot find session " + externalKey + " in the registry." + sessions);
}
}
return session;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment