Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DRDA protocol error ? #5

Open
ii64 opened this issue Jul 27, 2020 · 3 comments
Open

DRDA protocol error ? #5

ii64 opened this issue Jul 27, 2020 · 3 comments

Comments

@ii64
Copy link

ii64 commented Jul 27, 2020

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
Copy link
Owner

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
Copy link
Author

ii64 commented Jul 29, 2020

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

@nakagami
Copy link
Owner

nakagami commented Dec 9, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants