Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6456960
Votes 0
Synopsis java 1.5.0_07compiler reports JVM out of memory error when MANIFEST classpath el
Category java:compiler
Reported Against
Release Fixed
State 11-Closed, duplicate of 6400872, bug
Priority: 4-Low
Related Bugs 6485027
Submit Date 03-AUG-2006
Description
In our project I have dependent jar files added as MANIFEST classpath entries. The jars have cyclic depedency upon other jars. All these dependencies are specified as MANIFEST classpath entries.

When compiling my code using Javac 1.5.0_07 I get "JVM out of memory" error. When run using -verbose option you can observe that "search path for class files" keeps on expanding infinitely. Utlitimately JVM reports out of memory error.

I tried reproducing it using a simple code. Keep three jars say a.jar, b.jar and c.jar having cyclic dependency in their MANIFEST files.

MANIFEST files of these jars are following:
a.jar:
Manifest-Version: 1.0
Specification-Title: "a.jar"
Class-Path: ../../tmp/temp/c.jar
Created-By: 1.5.0_06 (Sun Microsystems Inc.)
Implementation-Title: "a"

b.jar:
Manifest-Version: 1.0
Specification-Title: "b.jar"
Class-Path: ../../tmp/temp/a.jar
Created-By: 1.5.0_06 (Sun Microsystems Inc.)
Implementation-Title: "b"

c.jar:
Manifest-Version: 1.0
Specification-Title: "c.jar"
Class-Path: ../../tmp/temp/b.jar
Created-By: 1.5.0_06 (Sun Microsystems Inc.)
Implementation-Title: "c"

Set the classpath to "<basedir>/tmp/temp/a.jar".

Have a java file say D.java which depends upon classes present in a.jar. Now invvoking "javac D.java" reports "Zip file name too long" error. The actual javac output is mentioned at the end.

The error reported here is "Zip file Name too long" and not "out of memory" but underlying problem is the same. If you run javac with -verbose option you will find that "search path for class files" keeps on expanding infinitely. Utlitimately error is reported.

This problem looks similar to bug# 6400872 (REGRESSION: Java Compiler cannot find jar files referenced by other) but this bug is filed on 1.6 beta.


JAVAC OUTPUT:
============================

error: error reading /tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/../../tmp/temp/b.jar; zip file name too long
1 error
Posted Date : 2006-08-03 21:14:25.0
Work Around
N/A
Evaluation
N/A
Comments
  
  Include a link with my name & email   

Submitted On 28-JUL-2008
sherpad
Hi,
can you tell me which version of 1.5, this issue was resolved.
Thx



PLEASE NOTE: JDK6 is formerly known as Project Mustang