Wrong port

That's the https port not bolt

Von meinem iPhone gesendet

> Am 03.06.2016 um 17:29 schrieb Andy <borucki.andr...@gmail.com>:
> 
> I have Java program
> import org.neo4j.driver.v1.*;
> import static org.neo4j.driver.v1.Values.parameters;
> 
> import java.util.List;
> import static java.util.Arrays.asList;
> import static java.util.Collections.singletonMap;
> 
> public class Main {
> 
>       public static void main(String... args) {
> 
>               Config isSSL = 
> Config.build().withEncryptionLevel(Config.EncryptionLevel.REQUIRED).toConfig();
>               Driver driver = GraphDatabase.driver("bolt://x.x.x.x:7473", 
> AuthTokens.basic("neo4j", "password"), isSSL);
>               try (Session session = driver.session()) {
>               }
>       }
> }
> 
> 
> Is error:
> Exception in thread "main" org.neo4j.driver.v1.exceptions.ClientException: 
> Protocol error, server suggested unexpected protocol version: 1213486160
>       at 
> org.neo4j.driver.internal.connector.socket.SocketClient.negotiateProtocol(SocketClient.java:198)
>       at 
> org.neo4j.driver.internal.connector.socket.SocketClient.start(SocketClient.java:73)
>       at 
> org.neo4j.driver.internal.connector.socket.SocketConnection.<init>(SocketConnection.java:63)
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Neo4j" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to neo4j+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to