Getting a java.lang.StackOverflowError

I've just upgraded elasticsearch from 1.7 to 2.0 and when I'm trying to index documents I'm receiving this error: Method threw 'java.lang.StackOverflowError' exception. Cannot evaluate org.elasticsearch.common.inject.InjectorImpl.toString()

Here is the code I'm trying to run

    try {
        conn = DbConnectionBroker.getDbConnection();
        Settings settings = Settings.settingsBuilder().put("cluster.name", "elasticsearch").build();
        client = TransportClient.builder().settings(settings).build().addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName("localhost"), 9300));            searchClient = new CreateElasticSearchIndex();
        searchClient.runMainJobLoop(client);

    } catch (Exception e) {
        Logger.log(e);
    } finally {
        client.close();
        try {
            conn.close();
        } catch (SQLException e) {
            Logger.log(e);
        }
    }

`

i have the same issue , did you fixed it ?