FAQ

[Ant-notifications] [jira] Created: (IVY-1251) Mysterious corrupted ivy classpath passed to javac task causes javac warnings

Archie Cobbs (JIRA)
Dec 1, 2010 at 11:18 pm
Mysterious corrupted ivy classpath passed to javac task causes javac warnings
-----------------------------------------------------------------------------

Key: IVY-1251
URL: https://issues.apache.org/jira/browse/IVY-1251
Project: Ivy
Issue Type: Bug
Components: Core
Affects Versions: 2.2.0
Environment: ivy-2.2.0
ant-1.7.1
javac 1.6.0_18
openSUSE 11.3

Reporter: Archie Cobbs


There is some weird problem where a classpath generated by ivy gets corrupted when (before? after?) it gets passed to the {{<javac>}} ant task.

How to reproduce:

# Unpack the attached ZIP file test case
# Change directory into the {{ivywarnbug}} directory
# Copy your favorite version of {{ivy.jar}} to the current directory (I'm using version 2.2.0)
# Run "ant"

This is what I see (line breaks added for clarity):

{noformat}
bug:
[echo] jibx.path=/home/archie/ivywarnbug/cache/net.sourceforge.jibx/jibx/jars/jibx-schema-1.2.2.jar
:/home/archie/ivywarnbug/cache/net.sourceforge.jibx/jibx/jars/jibx-run-1.2.2.jar
:/home/archie/ivywarnbug/cache/net.sourceforge.jibx/jibx/jars/jibx-bind-1.2.2.jar
:/home/archie/ivywarnbug/cache/org.apache.bcel/bcel/jars/bcel-5.1.jar
:/home/archie/ivywarnbug/cache/org.apache.log4j/log4j/jars/log4j-1.2.15.jar
[delete] Deleting directory /home/archie/ivywarnbug/classes
[mkdir] Created dir: /home/archie/ivywarnbug/classes
[javac] Compiling 1 source file to /home/archie/ivywarnbug/classes
[javac] warning: [path] bad path element "/home/archie/ivywarnbug/cache/net.sourceforge.jibx/jibx/jars/jibx-run.jar": no such file or directory
[javac] warning: [path] bad path element "/home/archie/ivywarnbug/cache/net.sourceforge.jibx/jibx/jars/jibx-bind.jar": no such file or directory
[javac] warning: [path] bad path element "/home/archie/ivywarnbug/cache/net.sourceforge.jibx/jibx/jars/xpp3.jar": no such file or directory
[javac] warning: [path] bad path element "/home/archie/ivywarnbug/cache/net.sourceforge.jibx/jibx/jars/stax-api.jar": no such file or directory
[javac] warning: [path] bad path element "/home/archie/ivywarnbug/cache/net.sourceforge.jibx/jibx/jars/wstx-asl.jar": no such file or directory
[javac] warning: [path] bad path element "/home/archie/ivywarnbug/cache/net.sourceforge.jibx/jibx/jars/bcel.jar": no such file or directory
[javac] 6 warnings
{noformat}

Note that the output of the {{<echo>}} task displays the correct path, but {{<javac>}} complains about non-existent files in the path that it sees, *and the paths are different!*

Somehow the path is getting corrupted somehow when it gets passed to {{<javac>}}.

Also weird is that this only happens for a few modules in Ivy Roundup. So far I've only seen it happen with JiBX and iText.


--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
reply

Search Discussions

3 responses

  • Archie Cobbs (JIRA) at Dec 1, 2010 at 11:20 pm
    [ https://issues.apache.org/jira/browse/IVY-1251?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Archie Cobbs updated IVY-1251:
    ------------------------------

    Attachment: ivywarnbug.zip
    Mysterious corrupted ivy classpath passed to javac task causes javac warnings
    -----------------------------------------------------------------------------

    Key: IVY-1251
    URL: https://issues.apache.org/jira/browse/IVY-1251
    Project: Ivy
    Issue Type: Bug
    Components: Core
    Affects Versions: 2.2.0
    Environment: ivy-2.2.0
    ant-1.7.1
    javac 1.6.0_18
    openSUSE 11.3
    Reporter: Archie Cobbs
    Attachments: ivywarnbug.zip


    There is some weird problem where a classpath generated by ivy gets corrupted when (before? after?) it gets passed to the {{<javac>}} ant task.
    How to reproduce:
    # Unpack the attached ZIP file test case
    # Change directory into the {{ivywarnbug}} directory
    # Copy your favorite version of {{ivy.jar}} to the current directory (I'm using version 2.2.0)
    # Run "ant"
    This is what I see (line breaks added for clarity):
    {noformat}
    bug:
    [echo] jibx.path=/home/archie/ivywarnbug/cache/net.sourceforge.jibx/jibx/jars/jibx-schema-1.2.2.jar
    :/home/archie/ivywarnbug/cache/net.sourceforge.jibx/jibx/jars/jibx-run-1.2.2.jar
    :/home/archie/ivywarnbug/cache/net.sourceforge.jibx/jibx/jars/jibx-bind-1.2.2.jar
    :/home/archie/ivywarnbug/cache/org.apache.bcel/bcel/jars/bcel-5.1.jar
    :/home/archie/ivywarnbug/cache/org.apache.log4j/log4j/jars/log4j-1.2.15.jar
    [delete] Deleting directory /home/archie/ivywarnbug/classes
    [mkdir] Created dir: /home/archie/ivywarnbug/classes
    [javac] Compiling 1 source file to /home/archie/ivywarnbug/classes
    [javac] warning: [path] bad path element "/home/archie/ivywarnbug/cache/net.sourceforge.jibx/jibx/jars/jibx-run.jar": no such file or directory
    [javac] warning: [path] bad path element "/home/archie/ivywarnbug/cache/net.sourceforge.jibx/jibx/jars/jibx-bind.jar": no such file or directory
    [javac] warning: [path] bad path element "/home/archie/ivywarnbug/cache/net.sourceforge.jibx/jibx/jars/xpp3.jar": no such file or directory
    [javac] warning: [path] bad path element "/home/archie/ivywarnbug/cache/net.sourceforge.jibx/jibx/jars/stax-api.jar": no such file or directory
    [javac] warning: [path] bad path element "/home/archie/ivywarnbug/cache/net.sourceforge.jibx/jibx/jars/wstx-asl.jar": no such file or directory
    [javac] warning: [path] bad path element "/home/archie/ivywarnbug/cache/net.sourceforge.jibx/jibx/jars/bcel.jar": no such file or directory
    [javac] 6 warnings
    {noformat}
    Note that the output of the {{<echo>}} task displays the correct path, but {{<javac>}} complains about non-existent files in the path that it sees, *and the paths are different!*
    Somehow the path is getting corrupted somehow when it gets passed to {{<javac>}}.
    Also weird is that this only happens for a few modules in Ivy Roundup. So far I've only seen it happen with JiBX and iText.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Archie Cobbs (JIRA) at Dec 2, 2010 at 2:32 pm
    [ https://issues.apache.org/jira/browse/IVY-1251?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Archie Cobbs updated IVY-1251:
    ------------------------------


    Adding comment on behalf of Maarten Coene:
    {quote}
    Hi Archie,

    I cannot login at JIRA atm, so I'm sending you a quick answer regarding issue
    IVY-1251 you have created some minutes ago.

    I think it's just a warning of the javac compiler and is caused because the
    jixb-schema-1.2.2.jar has a 'Class-Path' attribute in it's manifest pointing to
    some additional jars.
    It seems that the javac compiler also uses this attribute for compilation and of
    course doesn't find these additional jars.
    {quote}

    Thanks Maarten... sounds like pretty stupid (and dangerous) behavior by {{javac}}, but it also sounds like it can be worked-around in Ivy RoundUp by removing the Class-Path attributes from the manifest. I will look into this.

    Please feel free to resolve this bug as invalid.

    Thanks!

    Mysterious corrupted ivy classpath passed to javac task causes javac warnings
    -----------------------------------------------------------------------------

    Key: IVY-1251
    URL: https://issues.apache.org/jira/browse/IVY-1251
    Project: Ivy
    Issue Type: Bug
    Components: Core
    Affects Versions: 2.2.0
    Environment: ivy-2.2.0
    ant-1.7.1
    javac 1.6.0_18
    openSUSE 11.3
    Reporter: Archie Cobbs
    Attachments: ivywarnbug.zip


    There is some weird problem where a classpath generated by ivy gets corrupted when (before? after?) it gets passed to the {{<javac>}} ant task.
    How to reproduce:
    # Unpack the attached ZIP file test case
    # Change directory into the {{ivywarnbug}} directory
    # Copy your favorite version of {{ivy.jar}} to the current directory (I'm using version 2.2.0)
    # Run "ant"
    This is what I see (line breaks added for clarity):
    {noformat}
    bug:
    [echo] jibx.path=/home/archie/ivywarnbug/cache/net.sourceforge.jibx/jibx/jars/jibx-schema-1.2.2.jar
    :/home/archie/ivywarnbug/cache/net.sourceforge.jibx/jibx/jars/jibx-run-1.2.2.jar
    :/home/archie/ivywarnbug/cache/net.sourceforge.jibx/jibx/jars/jibx-bind-1.2.2.jar
    :/home/archie/ivywarnbug/cache/org.apache.bcel/bcel/jars/bcel-5.1.jar
    :/home/archie/ivywarnbug/cache/org.apache.log4j/log4j/jars/log4j-1.2.15.jar
    [delete] Deleting directory /home/archie/ivywarnbug/classes
    [mkdir] Created dir: /home/archie/ivywarnbug/classes
    [javac] Compiling 1 source file to /home/archie/ivywarnbug/classes
    [javac] warning: [path] bad path element "/home/archie/ivywarnbug/cache/net.sourceforge.jibx/jibx/jars/jibx-run.jar": no such file or directory
    [javac] warning: [path] bad path element "/home/archie/ivywarnbug/cache/net.sourceforge.jibx/jibx/jars/jibx-bind.jar": no such file or directory
    [javac] warning: [path] bad path element "/home/archie/ivywarnbug/cache/net.sourceforge.jibx/jibx/jars/xpp3.jar": no such file or directory
    [javac] warning: [path] bad path element "/home/archie/ivywarnbug/cache/net.sourceforge.jibx/jibx/jars/stax-api.jar": no such file or directory
    [javac] warning: [path] bad path element "/home/archie/ivywarnbug/cache/net.sourceforge.jibx/jibx/jars/wstx-asl.jar": no such file or directory
    [javac] warning: [path] bad path element "/home/archie/ivywarnbug/cache/net.sourceforge.jibx/jibx/jars/bcel.jar": no such file or directory
    [javac] 6 warnings
    {noformat}
    Note that the output of the {{<echo>}} task displays the correct path, but {{<javac>}} complains about non-existent files in the path that it sees, *and the paths are different!*
    Somehow the path is getting corrupted somehow when it gets passed to {{<javac>}}.
    Also weird is that this only happens for a few modules in Ivy Roundup. So far I've only seen it happen with JiBX and iText.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Maarten Coene (JIRA) at Dec 2, 2010 at 7:44 pm
    [ https://issues.apache.org/jira/browse/IVY-1251?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Maarten Coene resolved IVY-1251.
    --------------------------------

    Resolution: Invalid
    Mysterious corrupted ivy classpath passed to javac task causes javac warnings
    -----------------------------------------------------------------------------

    Key: IVY-1251
    URL: https://issues.apache.org/jira/browse/IVY-1251
    Project: Ivy
    Issue Type: Bug
    Components: Core
    Affects Versions: 2.2.0
    Environment: ivy-2.2.0
    ant-1.7.1
    javac 1.6.0_18
    openSUSE 11.3
    Reporter: Archie Cobbs
    Attachments: ivywarnbug.zip


    There is some weird problem where a classpath generated by ivy gets corrupted when (before? after?) it gets passed to the {{<javac>}} ant task.
    How to reproduce:
    # Unpack the attached ZIP file test case
    # Change directory into the {{ivywarnbug}} directory
    # Copy your favorite version of {{ivy.jar}} to the current directory (I'm using version 2.2.0)
    # Run "ant"
    This is what I see (line breaks added for clarity):
    {noformat}
    bug:
    [echo] jibx.path=/home/archie/ivywarnbug/cache/net.sourceforge.jibx/jibx/jars/jibx-schema-1.2.2.jar
    :/home/archie/ivywarnbug/cache/net.sourceforge.jibx/jibx/jars/jibx-run-1.2.2.jar
    :/home/archie/ivywarnbug/cache/net.sourceforge.jibx/jibx/jars/jibx-bind-1.2.2.jar
    :/home/archie/ivywarnbug/cache/org.apache.bcel/bcel/jars/bcel-5.1.jar
    :/home/archie/ivywarnbug/cache/org.apache.log4j/log4j/jars/log4j-1.2.15.jar
    [delete] Deleting directory /home/archie/ivywarnbug/classes
    [mkdir] Created dir: /home/archie/ivywarnbug/classes
    [javac] Compiling 1 source file to /home/archie/ivywarnbug/classes
    [javac] warning: [path] bad path element "/home/archie/ivywarnbug/cache/net.sourceforge.jibx/jibx/jars/jibx-run.jar": no such file or directory
    [javac] warning: [path] bad path element "/home/archie/ivywarnbug/cache/net.sourceforge.jibx/jibx/jars/jibx-bind.jar": no such file or directory
    [javac] warning: [path] bad path element "/home/archie/ivywarnbug/cache/net.sourceforge.jibx/jibx/jars/xpp3.jar": no such file or directory
    [javac] warning: [path] bad path element "/home/archie/ivywarnbug/cache/net.sourceforge.jibx/jibx/jars/stax-api.jar": no such file or directory
    [javac] warning: [path] bad path element "/home/archie/ivywarnbug/cache/net.sourceforge.jibx/jibx/jars/wstx-asl.jar": no such file or directory
    [javac] warning: [path] bad path element "/home/archie/ivywarnbug/cache/net.sourceforge.jibx/jibx/jars/bcel.jar": no such file or directory
    [javac] 6 warnings
    {noformat}
    Note that the output of the {{<echo>}} task displays the correct path, but {{<javac>}} complains about non-existent files in the path that it sees, *and the paths are different!*
    Somehow the path is getting corrupted somehow when it gets passed to {{<javac>}}.
    Also weird is that this only happens for a few modules in Ivy Roundup. So far I've only seen it happen with JiBX and iText.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.

Related Discussions

Discussion Navigation
viewthread | post

1 user in discussion

Maarten Coene (JIRA): 4 posts