Closed GoogleCodeExporter closed 9 years ago
Ah, I forgot to mention the filename CupsBinding.java.
Original comment by steffen2...@gmail.com
on 16 Oct 2013 at 9:51
Your hint on the error in the code is not quite correct. As you can see it is
checked if the given host is NO corrent IP address (there is a negotiation !):
if (!matcher.matches())
in this case it is assumed that the host-variable contains a valid hostname in
your network and tries to find the corresponding ip address.
Original comment by TBraeuti...@gmail.com
on 17 Oct 2013 at 5:35
You are right. But if the ip is correct, the correct IP is in the host variable
and not in the ip Variable. And the later statement connect(ip, port); uses the
ip Variable which is null if the host contains a valid IP in the first place.
host = (String) config.get("host");
Matcher matcher = IP_PATTERN.matcher(host);
if (!matcher.matches()) {
try {
InetAddress address = InetAddress.getByName(host);
ip = address.getHostAddress();
} catch (UnknownHostException e) {
throw new ConfigurationException("host", "unknown host '" + host + "'!");
}
} else {
ip = host;
}
Original comment by steffen2...@gmail.com
on 17 Oct 2013 at 7:22
Oops you are right. My fault, maybe it was too early in the morning to think
clearly for me ;-)
Original comment by TBraeuti...@gmail.com
on 17 Oct 2013 at 7:58
And for me too late, to write more words ;-) I am glad if I can get some hints
on how to build just single bindings, without compiling the whole product. I am
not so used to maven and its structure an tools. For now I have manually
exchanged the .class in the jar ;-)
Original comment by steffen2...@gmail.com
on 17 Oct 2013 at 8:16
Currently I have some changes in my master branch and an ongoing pull request.
As I am quite new to git, I don´t know how to create a new branch on my clone
without my changes in order to create a pull request with only contains this
bugfix.
If you have any chance to to so, please go ahead. Otherwise I will fix it after
my former pull request gets accepted.
Original comment by TBraeuti...@gmail.com
on 17 Oct 2013 at 8:20
Ok, so you are in the same situation. It took me a while to get the right
version of the source for remote debugging. So take the fix if it is nice
enough ...
Original comment by steffen2...@gmail.com
on 17 Oct 2013 at 8:29
merged pull request. can you confirm the fix is working for you?
Original comment by teichsta
on 4 Nov 2013 at 8:47
ACK, binding works fine. Thanks
Original comment by steffen2...@gmail.com
on 7 Nov 2013 at 4:37
perfect, thanks for your confirmation!
Original comment by teichsta
on 7 Nov 2013 at 5:05
Original issue reported on code.google.com by
steffen2...@gmail.com
on 16 Oct 2013 at 9:50