Bug 1203666
Summary: | /etc/resolv.conf nameserver with ipv6 address causes jndi NumberFormatException | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Alon Bar-Lev <alonbl> | ||||
Component: | java-1.7.0-openjdk | Assignee: | Andrew John Hughes <ahughes> | ||||
Status: | CLOSED ERRATA | QA Contact: | Lukáš Zachar <lzachar> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 7.1 | CC: | ahughes, dbhole, iheim, sbaiduzh, simon.fayer05 | ||||
Target Milestone: | rc | Keywords: | Reopened | ||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
URL: | https://bugs.openjdk.java.net/browse/JDK-6991580?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2015-11-19 03:55:07 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | 1210739 | ||||||
Bug Blocks: | |||||||
Attachments: |
|
Description
Alon Bar-Lev
2015-03-19 11:47:46 UTC
Hi, what are the contents of your resolv.conf? (In reply to Deepak Bhole from comment #2) > Hi, what are the contents of your resolv.conf? you can put any ipv6, simple example: nameserver ::1 Severin already fixed the root issue in another bug. *** This bug has been marked as a duplicate of bug 1210739 *** The other bug is a Fedora java-1.8.0-openjdk bug. This is for java-1.7.0-openjdk on RHEL 7.1. Re-opening. Reproduced: $ /usr/lib/jvm/icedtea-7/bin/java -version java version "1.7.0_79" OpenJDK Runtime Environment (IcedTea 2.5.5) (Gentoo package icedtea-7.2.5.5) OpenJDK 64-Bit Server VM (build 24.79-b02, mixed mode) $ cat /etc/resolv.conf nameserver ::1 $ /usr/lib/jvm/icedtea-7/bin/java Resolve Resolving: lt2dka00.grid.hep.ph.ic.ac.uk Exception in thread "main" java.lang.NumberFormatException: For input string: ":1" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:492) at java.lang.Integer.parseInt(Integer.java:527) at com.sun.jndi.dns.DnsClient.<init>(DnsClient.java:125) at com.sun.jndi.dns.Resolver.<init>(Resolver.java:61) at com.sun.jndi.dns.DnsContext.getResolver(DnsContext.java:570) at com.sun.jndi.dns.DnsContext.c_getAttributes(DnsContext.java:430) at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_getAttributes(ComponentDirContext.java:231) at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.getAttributes(PartialCompositeDirContext.java:139) at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.getAttributes(PartialCompositeDirContext.java:127) at javax.naming.directory.InitialDirContext.getAttributes(InitialDirContext.java:142) at Resolve.main(Resolve.java:16) With 2.6.0pre23, where 6991580 is applied: $ /home/andrew/build/icedtea7/bin/java -version java version "1.7.0_80" OpenJDK Runtime Environment (IcedTea 2.6.0pre23+r909fa12f498c+) (Gentoo build 1.7.0_80-b32) OpenJDK 64-Bit Server VM (build 24.80-b11, mixed mode) $ /home/andrew/build/icedtea7/bin/java Resolve Resolving: lt2dka00.grid.hep.ph.ic.ac.uk {aaaa=AAAA: 2001:630:12:580::101} Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHEA-2015-2177.html |