From: Brian W. <bwe...@xb...> - 2011-10-10 23:43:47
|
On Oct 10, 2011, at 6:13 AM, Niel de Wet wrote: > Hi All, > > I've got this simple lookup: > > String domain = "test.surbl.org"; > String dnsblDomain = "multi.surbl.org"; > Lookup lookup = new Lookup(domain + "." + dnsblDomain, Type.ANY); > Resolver resolver = new SimpleResolver(); > lookup.setResolver(resolver); > Record[] records = lookup.run(); > > Trying to do a look up of DNS blacklists. However, at the last step an > IllegalArgumentException occurs with the message "oneElement(ANY)". I > find this very strange, since the documentation of the constructor says > "Throws: > IllegalArgumentException - The type is a meta type other than > ANY." > > What does this execption tell me? Am I missing something crucial? That there's a bug in dnsjava. I just committed a fix, which will be in the next release. It would have been easier to find if your sample code had been complete, though. The problem only occurs when there's existing data in the cache, so just attempting to run that code didn't fail. Brian |