ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 44368] New: - NPE in Sort
Date Wed, 06 Feb 2008 12:27:48 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44368>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=44368

           Summary: NPE in Sort
           Product: Ant
           Version: 1.7.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: critical
          Priority: P2
         Component: Core
        AssignedTo: notifications@ant.apache.org
        ReportedBy: rruiz@gridsystems.com


I am experiencing this error in some of my projects:

java.lang.NullPointerException
        at org.apache.tools.ant.types.resources.Sort$SortedBag$MutableInt.access$100(Sort.java:44)
        at org.apache.tools.ant.types.resources.Sort$SortedBag$MyIterator.next(Sort.java:60)
        at org.apache.tools.ant.types.resources.FailFast.next(FailFast.java:115)
        at org.apache.tools.ant.taskdefs.DependSet.uptodate(DependSet.java:233)
        at org.apache.tools.ant.taskdefs.DependSet.execute(DependSet.java:202)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect...

The exception is thrown when some specific jars are included in a <dependset> task,
but only at
certain positions. If I move those jars up or down in the list, the error disappears.

Looking at the source code, it looks like a case of concurrent modification in Sort$SortedBag,
but I
have been unable to find out why or where.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Mime
View raw message