nakagami / pydrda

Pure python Db2 and Apache Derby database driver
MIT License
12 stars 7 forks source link

DRDA protocol error ? #5

Open ii64 opened 4 years ago

ii64 commented 4 years ago

Hello, i have a problem when i tried to connect to Derby network server, it raise an exception (see picture below) image so i wonder is there something to configure? image

also this how i start the derby network server

public void cmdStartServer(String[] args) {
        try {
            getDBConnection();
            NetworkServerControl server = new NetworkServerControl(InetAddress.getByName("0.0.0.0"),1527);
            server.start(null);
            System.out.println("Server started: " + server);
        }catch(UnknownHostException e){
            e.printStackTrace();
        }catch(Exception e){
            e.printStackTrace();
        }
    }

Thank you in advance, i'm planning to port this to Golang after this protocol error fix

nakagami commented 4 years ago

I think because of wrong network environment.

Can you test connect with ij?

Test network server connection with ij http://db.apache.org/derby/papers/DerbyTut/ns_intro.html#configure_ns_client

ii64 commented 4 years ago

The ij tool client works just fine, it's connected. (see picture below) image

nakagami commented 2 years ago

Maybe it's because of Windows. Is anyone running it on windows java + dever(javadb)?