Quantcast

[Bug 1538] New: HttpCallerInfo missing from rt.jar when bootstrapping is enabled

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Bug 1538] New: HttpCallerInfo missing from rt.jar when bootstrapping is enabled

bugzilla-daemon
Bug ID 1538
Summary HttpCallerInfo missing from rt.jar when bootstrapping is enabled
Classification Unclassified
Product IcedTea
Version 2.4.1
Hardware x86_64
OS Linux
Status NEW
Severity normal
Priority P3
Component IcedTea
Assignee gnu.andrew@redhat.com
Reporter icedtea@jmbreuer.net
CC unassigned@icedtea.classpath.org

When building IcedTea-7 on gentoo using the default configuration of its
ebuild, specifically '--enable-bootstrap'; at least one class -
sun/net/www/protocol/http/HttpCallerInfo - is missing from the resulting
rt.jar.

This problem becomes readily apparent when using apache maven 2.2.1 with the
IcedTea-7 VM, whenever maven wants to download something:

Downloading:
<a href="http://xxxxxxxx:yyyy/nexus/content/groups/mirror/org/eclipse/equinox/org.eclipse.equinox.common/3.4.0/org.eclipse.equinox.common-3.4.0.pom">http://xxxxxxxx:yyyy/nexus/content/groups/mirror/org/eclipse/equinox/org.eclipse.equinox.common/3.4.0/org.eclipse.equinox.common-3.4.0.pom
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] sun/net/www/protocol/http/HttpCallerInfo
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.NoClassDefFoundError: sun/net/www/protocol/http/HttpCallerInfo
        at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1447)
        at
java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468)
        at
org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:115)
        at
org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)
        at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
        at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
        at
org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:546)
... [Stacktrace truncated, I don't think there's anything valuable following]


The corresponding gentoo bug is https://bugs.gentoo.org/show_bug.cgi?id=464224


I tried to build IcedTea7-2.4.1 outside of gentoo's build system to see whether
the issue is related to gentoo's ebuild; by doing the following:

a) Got the icedtea distribution from
http://icedtea.wildebeest.org/download/source/icedtea-2.4.1.tar.gz

b) Set up my gentoo environment to use the icedtea-7 2.3.9 binary JDK (this JDK
does include the HttpCallerInfo class, i.e. it works inconspicuously for me:
$ java-config -s icedtea-bin-7
$ export JAVA_HOME=/opt/icedtea-bin-7.2.3.9

c) Made sure this configuration is actually used [I took this from the ebuild]
$ export ANT_RESPECT_JAVA_HOME=TRUE
$ export ANT_TASKS="none"

d) configured with as little intervention as seemed useful:
$ ./configure --with-parallel-jobs=48 --enable-nss --without-rhino
[I'd already checked earlier; disabling parallel jobs makes no difference]

e) built:
$ make


The resulting ./openjdk.build/ now has rt.jar files with HttpCallerInfo
missing, compare these (HttpURLConnection is class right next to HttpCallerInfo
in the same package, sun.net.www.protocol.http):

$ find . -type f -iname \*.jar -print0 | xargs -0 grep HttpURLConnection
Binary file ./openjdk.build-boot/lib/charsets.jar matches
Binary file ./openjdk.build-boot/lib/ext/dnsns.jar matches
Binary file ./openjdk.build-boot/lib/ext/localedata.jar matches
Binary file ./openjdk.build-boot/lib/sa-jdi.jar matches
Binary file ./openjdk.build-boot/tmp/rt-orig.jar matches
Binary file ./openjdk.build-boot/j2re-image/lib/rt.jar matches
Binary file ./openjdk.build-boot/j2re-image/lib/charsets.jar matches
Binary file ./openjdk.build-boot/j2re-image/lib/ext/dnsns.jar matches
Binary file ./openjdk.build-boot/j2re-image/lib/ext/localedata.jar matches
Binary file ./openjdk.build-boot/jaxws/dist/lib/classes.jar matches
Binary file ./openjdk.build-boot/j2sdk-server-image/lib/sa-jdi.jar matches
Binary file ./openjdk.build-boot/j2sdk-server-image/jre/lib/rt.jar matches
Binary file ./openjdk.build-boot/j2sdk-server-image/jre/lib/charsets.jar
matches
Binary file ./openjdk.build-boot/j2sdk-server-image/jre/lib/ext/dnsns.jar
matches
Binary file ./openjdk.build-boot/j2sdk-server-image/jre/lib/ext/localedata.jar
matches
Binary file ./openjdk.build-boot/hotspot/import/lib/sa-jdi.jar matches
Binary file
./openjdk.build-boot/hotspot/outputdir/linux_amd64_compiler2/generated/sa-jdi.jar
matches
Binary file ./openjdk.build-boot/j2sdk-image/lib/sa-jdi.jar matches
Binary file ./openjdk.build-boot/j2sdk-image/jre/lib/rt.jar matches
Binary file ./openjdk.build-boot/j2sdk-image/jre/lib/charsets.jar matches
Binary file ./openjdk.build-boot/j2sdk-image/jre/lib/ext/dnsns.jar matches
Binary file ./openjdk.build-boot/j2sdk-image/jre/lib/ext/localedata.jar matches
Binary file ./openjdk.build-boot/corba/dist/lib/classes.jar matches
Binary file ./openjdk.build/tmp/rt-orig.jar matches
Binary file ./openjdk.build/j2re-image/lib/rt.jar matches
Binary file ./openjdk.build/j2sdk-server-image/jre/lib/rt.jar matches
Binary file ./openjdk.build/j2sdk-image/jre/lib/rt.jar matches
Binary file ./bootstrap/boot/jre/lib/rt.jar matches

$ find . -type f -iname \*.jar -print0 | xargs -0 grep HttpCallerInfo
Binary file ./openjdk.build-boot/lib/charsets.jar matches
Binary file ./openjdk.build-boot/lib/ext/dnsns.jar matches
Binary file ./openjdk.build-boot/lib/ext/localedata.jar matches
Binary file ./openjdk.build-boot/lib/sa-jdi.jar matches
Binary file ./openjdk.build-boot/tmp/rt-orig.jar matches
Binary file ./openjdk.build-boot/j2re-image/lib/rt.jar matches
Binary file ./openjdk.build-boot/j2re-image/lib/charsets.jar matches
Binary file ./openjdk.build-boot/j2re-image/lib/ext/dnsns.jar matches
Binary file ./openjdk.build-boot/j2re-image/lib/ext/localedata.jar matches
Binary file ./openjdk.build-boot/jaxws/dist/lib/classes.jar matches
Binary file ./openjdk.build-boot/j2sdk-server-image/lib/sa-jdi.jar matches
Binary file ./openjdk.build-boot/j2sdk-server-image/jre/lib/rt.jar matches
Binary file ./openjdk.build-boot/j2sdk-server-image/jre/lib/charsets.jar
matches
Binary file ./openjdk.build-boot/j2sdk-server-image/jre/lib/ext/dnsns.jar
matches
Binary file ./openjdk.build-boot/j2sdk-server-image/jre/lib/ext/localedata.jar
matches
Binary file ./openjdk.build-boot/hotspot/import/lib/sa-jdi.jar matches
Binary file
./openjdk.build-boot/hotspot/outputdir/linux_amd64_compiler2/generated/sa-jdi.jar
matches
Binary file ./openjdk.build-boot/j2sdk-image/lib/sa-jdi.jar matches
Binary file ./openjdk.build-boot/j2sdk-image/jre/lib/rt.jar matches
Binary file ./openjdk.build-boot/j2sdk-image/jre/lib/charsets.jar matches
Binary file ./openjdk.build-boot/j2sdk-image/jre/lib/ext/dnsns.jar matches
Binary file ./openjdk.build-boot/j2sdk-image/jre/lib/ext/localedata.jar matches
Binary file ./openjdk.build-boot/corba/dist/lib/classes.jar matches
Binary file ./bootstrap/boot/jre/lib/rt.jar matches


When running 'make check' in the build directory, a number of tests fail - I
cannot say what significance that might have:

FAILED: compiler/8010927/Test8010927.java
FAILED: compiler/8011901/Test8011901.java
Error:  gc/6941923/test6941923.sh
FAILED: gc/heap_inspection/TestPrintClassHistogram.java
FAILED: gc/init/TestHandleExceedingProcessSizeLimitIn32BitBuilds.java
FAILED: gc/TestVerifyBeforeGCDuringStartup.java
Error:  runtime/7196045/Test7196045.java
FAILED: runtime/CommandLine/CompilerConfigFileWarning.java
FAILED: runtime/CommandLine/ConfigFileWarning.java
FAILED: runtime/NMT/BaselineWithParameter.java
FAILED: runtime/NMT/CommandLineDetail.java
FAILED: runtime/NMT/CommandLineEmptyArgument.java
FAILED: runtime/NMT/CommandLineInvalidArgument.java
FAILED: runtime/NMT/CommandLineSummary.java
FAILED: runtime/NMT/CommandLineTurnOffNMT.java
FAILED: runtime/NMT/JcmdDiffCallsite.java
FAILED: runtime/NMT/JcmdScale.java
FAILED: runtime/NMT/JcmdWithNMTDisabled.java
FAILED: runtime/NMT/MallocTestType.java
FAILED: runtime/NMT/PrintNMTStatistics.java
FAILED: runtime/NMT/PrintNMTStatisticsWithNMTDisabled.java
FAILED: runtime/NMT/ReleaseCommittedMemory.java
FAILED: runtime/NMT/ShutdownTwice.java
FAILED: runtime/NMT/SummaryAfterShutdown.java
FAILED: runtime/NMT/SummarySanityCheck.java
FAILED: runtime/NMT/ThreadedMallocTestType.java
FAILED: runtime/NMT/ThreadedVirtualAllocTestType.java
FAILED: runtime/NMT/VirtualAllocTestType.java
FAILED: sanity/WBApi.java
FAILED: serviceability/ParserTest.java
Test results: passed: 231; failed: 28; error: 2
Error: Some tests failed or other problems occurred.

FAILED: com/oracle/security/ucrypto/TestAES.java
FAILED: com/oracle/security/ucrypto/TestRSA.java
Error:  com/sun/awt/SecurityWarning/GetSizeShouldNotReturnZero.java

... then a window opened up instructing me (after a while) to press Ctrl-C -
which aborted the test run.

The test problems I've seen all stem from com.oracle.java.testlibrary.* and
sun.hotspot.WhiteBox not being available.


I'll be happy to help with any further analysis, and I'll (try to) keep this
build directory around for a while.


You are receiving this mail because:
  • You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Bug 1538] HttpCallerInfo missing from rt.jar when bootstrapping is enabled

bugzilla-daemon

Comment # 1 on bug 1538 from [hidden email]
With IcedTea 2.4.3 as built in gentoo (with jbootstrap enabled), I no longer
experience the problems caused by the missing HttpCallerInfo class.

But still, the HttpCallerInfo class is missing from the generated rt.jar:

$ javap -c sun.net.www.protocol.http.HttpCallerInfo
Error:  class not found: sun.net.www.protocol.http.HttpCallerInfo

although it is referenced from HttpURLConnection:

$ javap -c sun.net.www.protocol.http.HttpURLConnection | grep HttpCallerInfo
     593: new           #325                // class
sun/net/www/protocol/http/HttpCallerInfo
     615: invokespecial #326                // Method
sun/net/www/protocol/http/HttpCallerInfo."<init>":(Ljava/net/URL;Ljava/lang/String;I)V
     620: invokespecial #327                // Method
sun/net/www/protocol/http/AuthenticationHeader."<init>":(Ljava/lang/String;Lsun/net/www/MessageHeader;Lsun/net/www/protocol/http/HttpCallerInfo;Z)V
     929: new           #325                // class
sun/net/www/protocol/http/HttpCallerInfo
     937: invokespecial #335                // Method
sun/net/www/protocol/http/HttpCallerInfo."<init>":(Ljava/net/URL;)V
     942: invokespecial #327                // Method
sun/net/www/protocol/http/AuthenticationHeader."<init>":(Ljava/lang/String;Lsun/net/www/MessageHeader;Lsun/net/www/protocol/http/HttpCallerInfo;Z)V
     306: new           #325                // class
sun/net/www/protocol/http/HttpCallerInfo
     328: invokespecial #326                // Method
sun/net/www/protocol/http/HttpCallerInfo."<init>":(Ljava/net/URL;Ljava/lang/String;I)V
     333: invokespecial #327                // Method
sun/net/www/protocol/http/AuthenticationHeader."<init>":(Ljava/lang/String;Lsun/net/www/MessageHeader;Lsun/net/www/protocol/http/HttpCallerInfo;Z)V


For more details, see the update on the corresponding gentoo bug:
https://bugs.gentoo.org/show_bug.cgi?id=464224#c17


You are receiving this mail because:
  • You are on the CC list for the bug.
Loading...