相关文章推荐
面冷心慈的豆腐  ·  java - IntelliJ IDEA ...·  1 年前    · 

deep rt.jar NoSuchMethodError in java.net.InetAddress

843798 May 12 2004 — edited May 17 2004
Hi all,
I am sort of facing an issue:
From our code we call: java.net.InetAddress.getByName(java.lang.String) where the argument represents a machine name (pingable by the system).
See here a snippet from the stack trace:
java.lang.NoSuchMethodError: java.net.InetAddress$CacheEntry.<init>(Ljava/lang/String;Ljava/lang/Object;J)V
        at java.net.InetAddress.cacheInitIfNeeded(InetAddress.java:607)
        at java.net.InetAddress.getCachedAddress(InetAddress.java:668)
        at java.net.InetAddress.getAllByName0(InetAddress.java:941)
        at java.net.InetAddress.getAllByName0(InetAddress.java:918)
        at java.net.InetAddress.getAllByName(InetAddress.java:912)
        at java.net.InetAddress.getByName(InetAddress.java:832)
stacktrace of our code ...
Our code was compiled on Win2000 platform with jdk-1.4.2_3.
Run under linux with j2re1.4.2_03.
When I look in the source code, there is indeed no constructor for CacheEntry such as: java.net.InetAddress$CacheEntry.<init>(Ljava/lang/String;Ljava/lang/Object;J)V
Any clue about this ?
Thank you for help.
Christophe