Page 1 of 3 123 LastLast
Results 1 to 10 of 27

Thread: Initial Build Failure

  1. #1
    Join Date
    Jun 2010
    Posts
    1

    Default Initial Build Failure

    I am new to Spring. When I tried to do the initial build following these directions http://blog.springsource.com/2009/03...ding-spring-3/, I got

    WARNING: Retried connection 6 times, which exceeds the maximum retry count of 5
    [ivy:cachepath]
    [ivy:cachepath] :: problems summary ::
    [ivy:cachepath] :::: WARNINGS
    [ivy:cachepath] module not found: com.google.jarjar#com.springsource.com.tonicsystem s.jarjar;1.0.0
    [ivy:cachepath] ==== local-external-repository: tried
    [ivy:cachepath] /tmp/local-repository/com.google.jarjar/com.springsource.com.tonicsystems.jarjar/1.0.0/ivy-1.0.0.xml
    [ivy:cachepath] ==== bundle-external-repository: tried
    [ivy:cachepath] s3://repository.springsource.com/ivy/bundles/external/com.google.jarjar/com.springsource.com.tonicsystems.jarjar/1.0.0/ivy-1.0.0.xml
    [ivy:cachepath] ==== library-external-repository: tried
    [ivy:cachepath] s3://repository.springsource.com/ivy/libraries/external/com.google.jarjar/com.springsource.com.tonicsystems.jarjar/1.0.0/ivy-1.0.0.xml
    [ivy:cachepath] ::::::::::::::::::::::::::::::::::::::::::::::
    [ivy:cachepath] :: UNRESOLVED DEPENDENCIES ::
    [ivy:cachepath] ::::::::::::::::::::::::::::::::::::::::::::::
    [ivy:cachepath] :: com.google.jarjar#com.springsource.com.tonicsystem s.jarjar;1.0.0: not found
    [ivy:cachepath] ::::::::::::::::::::::::::::::::::::::::::::::
    [ivy:cachepath]
    [ivy:cachepath] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
    [subant] Leaving directory: /home/gabriel/spring-framework/org.springframework.asm

    BUILD FAILED
    /home/gabriel/spring-framework/spring-build/multi-bundle/artifact.xml:45: The following error occurred while executing this line:
    /home/gabriel/spring-framework/spring-build/multi-bundle/common.xml:71: The following error occurred while executing this line:
    /home/gabriel/spring-framework/org.springframework.asm/build.xml:45: impossible to resolve dependencies:
    resolve failed - see output for details
    Can anyone help.

    Thank you

  2. #2
    Join Date
    Feb 2011
    Posts
    2

    Default

    Quote Originally Posted by gyanovsky View Post
    I am new to Spring. When I tried to do the initial build following these directions http://blog.springsource.com/2009/03...ding-spring-3/, I got

    WARNING: Retried connection 6 times, which exceeds the maximum retry count of 5
    [ivy:cachepath]
    [ivy:cachepath] :: problems summary ::
    [ivy:cachepath] :::: WARNINGS
    [ivy:cachepath] module not found: com.google.jarjar#com.springsource.com.tonicsystem s.jarjar;1.0.0
    [ivy:cachepath] ==== local-external-repository: tried
    [ivy:cachepath] /tmp/local-repository/com.google.jarjar/com.springsource.com.tonicsystems.jarjar/1.0.0/ivy-1.0.0.xml
    [ivy:cachepath] ==== bundle-external-repository: tried
    [ivy:cachepath] s3://repository.springsource.com/ivy/bundles/external/com.google.jarjar/com.springsource.com.tonicsystems.jarjar/1.0.0/ivy-1.0.0.xml
    [ivy:cachepath] ==== library-external-repository: tried
    [ivy:cachepath] s3://repository.springsource.com/ivy/libraries/external/com.google.jarjar/com.springsource.com.tonicsystems.jarjar/1.0.0/ivy-1.0.0.xml
    [ivy:cachepath] ::::::::::::::::::::::::::::::::::::::::::::::
    [ivy:cachepath] :: UNRESOLVED DEPENDENCIES ::
    [ivy:cachepath] ::::::::::::::::::::::::::::::::::::::::::::::
    [ivy:cachepath] :: com.google.jarjar#com.springsource.com.tonicsystem s.jarjar;1.0.0: not found
    [ivy:cachepath] ::::::::::::::::::::::::::::::::::::::::::::::
    [ivy:cachepath]
    [ivy:cachepath] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
    [subant] Leaving directory: /home/gabriel/spring-framework/org.springframework.asm

    BUILD FAILED
    /home/gabriel/spring-framework/spring-build/multi-bundle/artifact.xml:45: The following error occurred while executing this line:
    /home/gabriel/spring-framework/spring-build/multi-bundle/common.xml:71: The following error occurred while executing this line:
    /home/gabriel/spring-framework/org.springframework.asm/build.xml:45: impossible to resolve dependencies:
    resolve failed - see output for details
    Can anyone help.

    Thank you
    I just ran into the exact same thing. Do you recall how you resolved this missing dependency?

    Thanks!

  3. #3
    Join Date
    Mar 2008
    Posts
    79

    Default

    Quote Originally Posted by gyanovsky View Post
    I am new to Spring. When I tried to do the initial build following these directions http://blog.springsource.com/2009/03...ding-spring-3/, ....
    If you are new to Spring I would not recommend building the distribution from source and, in particular, I would not recommend trying to build an older version when newer versions are easily available. Visit the community download center and you will be able to retrieve already built versions of Spring 3.0 and the new Spring 3.1 milestone.

    You can try following along with the recent Green Beans series of blog posts that are designed to give developers an overview of the basic fundamental approaches used in developing with Spring.

    Adam FitzGerald
    SpringSource

  4. #4
    Join Date
    Feb 2011
    Posts
    2

    Default

    Adam,

    Thanks for the advice. Unlike the original poster, I'm not completely new to Spring, but this is the first time I've tried to build it, and have good reason for needing to do so. So, I'd like to figure out what's up with the ivy dependencies.

    Thanks

  5. #5
    Join Date
    Mar 2011
    Location
    Washington DC
    Posts
    1

    Default Build failure

    I am getting the following error while compiling. Can anyone help? Thanks


    [junit] Testsuite: org.springframework.core.LocalVariableTableParamet erNameDiscovererTests
    [junit] Tests run: 11, Failures: 1, Errors: 0, Time elapsed: 0.113 sec
    [junit]
    [junit] Testcase: testMemUsage(org.springframework.core.LocalVariabl eTableParameterNameDiscovererTests): FAILED
    [junit] Expected: <null> but was: [Ljava.lang.String;@164804
    [junit] junit.framework.AssertionFailedError: Expected: <null> but was: [Ljava.lang.String;@164804
    [junit] at org.springframework.core.LocalVariableTableParamet erNameDiscovererTests.testMemUsage(LocalVariableTa bleParameterNameDiscovererTests.java:202)
    [junit]
    [junit]
    [subant] Leaving directory: /home/SpringSource/spring-framework/org.springframework.core

    BUILD FAILED
    /home/SpringSource/spring-framework/spring-build/multi-bundle/quality.xml:43: The following error occurred while executing this line:
    /home/SpringSource/spring-framework/spring-build/multi-bundle/common.xml:86: The following error occurred while executing this line:
    /home/SpringSource/spring-framework/spring-build/common/quality.xml:68: The following error occurred while executing this line:
    /home/SpringSource/spring-framework/spring-build/common/quality.xml:238: Tests failed
    Last edited by f.shantanu; Mar 13th, 2011 at 01:08 AM.

  6. #6
    Join Date
    Mar 2011
    Posts
    6

    Default

    Quote Originally Posted by f.shantanu View Post
    I am getting the following error while compiling. Can anyone help? Thanks


    [junit] Testsuite: org.springframework.core.LocalVariableTableParamet erNameDiscovererTests
    [junit] Tests run: 11, Failures: 1, Errors: 0, Time elapsed: 0.113 sec
    [junit]
    [junit] Testcase: testMemUsage(org.springframework.core.LocalVariabl eTableParameterNameDiscovererTests): FAILED
    [junit] Expected: <null> but was: [Ljava.lang.String;@164804
    [junit] junit.framework.AssertionFailedError: Expected: <null> but was: [Ljava.lang.String;@164804
    [junit] at org.springframework.core.LocalVariableTableParamet erNameDiscovererTests.testMemUsage(LocalVariableTa bleParameterNameDiscovererTests.java:202)
    [junit]
    [junit]
    [subant] Leaving directory: /home/SpringSource/spring-framework/org.springframework.core

    BUILD FAILED
    /home/SpringSource/spring-framework/spring-build/multi-bundle/quality.xml:43: The following error occurred while executing this line:
    /home/SpringSource/spring-framework/spring-build/multi-bundle/common.xml:86: The following error occurred while executing this line:
    /home/SpringSource/spring-framework/spring-build/common/quality.xml:68: The following error occurred while executing this line:
    /home/SpringSource/spring-framework/spring-build/common/quality.xml:238: Tests failed
    Same error +1.

    Would anyone like to give some suggestions about this? TIA.

  7. #7
    Join Date
    Apr 2007
    Posts
    307

    Default

    @gyanovsky, @dmlech:

    Regarding the failure by Ivy to download jarjar, I just did the following on my own machine, which has normal connection to the internet (no VPN, no firewall, etc).

    I already had a cached version of jarjar, so I moved it out of the way:
    Code:
    cbeams@anakata:~/Work/spring-framework/spring-framework>$ mv ivy-cache//repository/com.google.jarjar/com.springsource.com.tonicsystems.jarjar ivy-cache//repository/com.google.jarjar/com.springsource.com.tonicsystems.jarjar.BAK
    Then, simply ran `ant jar` to trigger downloading the now-missing dependency:
    Code:
    cbeams@anakata:~/Work/spring-framework/spring-framework>$ ant -f build-spring-framework/build.xml jar
    ...
    jarjar.init:
    [ivy:cachepath] :: Ivy 2.1.0 - 20090925235825 :: http://ant.apache.org/ivy/ ::
    [ivy:cachepath] :: loading settings :: file = /Users/cbeams/Work/spring-framework/spring-framework/spring-build/common/ivysettings.xml
    [ivy:cachepath] downloading s3://repository.springsource.com/ivy/bundles/external/com.google.jarjar/com.springsource.com.tonicsystems.jarjar/1.0.0/com.springsource.com.tonicsystems.jarjar-sources-1.0.0.jar ...
    [ivy:cachepath] ....
    [ivy:cachepath] ....
    [ivy:cachepath] .. (42kB)
    [ivy:cachepath]  (42kB)
    [ivy:cachepath] .. (0kB)
    [ivy:cachepath]  (0kB)
    [ivy:cachepath]         [SUCCESSFUL ] com.google.jarjar#com.springsource.com.tonicsystems.jarjar;1.0.0!com.springsource.com.tonicsystems.jarjar-sources.jar(src) (8645ms)
    [ivy:cachepath] downloading s3://repository.springsource.com/ivy/bundles/external/com.google.jarjar/com.springsource.com.tonicsystems.jarjar/1.0.0/com.springsource.com.tonicsystems.jarjar-1.0.0.jar ...
    [ivy:cachepath] ....
    [ivy:cachepath] ...
    [ivy:cachepath] ....
    [ivy:cachepath] ....
    [ivy:cachepath] ..
    [ivy:cachepath] ..
    [ivy:cachepath] ..
    [ivy:cachepath] ..
    [ivy:cachepath] ..... (110kB)
    [ivy:cachepath]  (110kB)
    [ivy:cachepath] .. (0kB)
    [ivy:cachepath]  (0kB)
    [ivy:cachepath]         [SUCCESSFUL ] com.google.jarjar#com.springsource.com.tonicsystems.jarjar;1.0.0!com.springsource.com.tonicsystems.jarjar.jar (25903ms)
    [ivy:cachepath] downloading s3://repository.springsource.com/ivy/bundles/external/com.google.jarjar/com.springsource.com.tonicsystems.jarjar/1.0.0/license-1.0.0.txt ...
    [ivy:cachepath] ..
    [ivy:cachepath] . (11kB)
    [ivy:cachepath]  (11kB)
    [ivy:cachepath] .. (0kB)
    [ivy:cachepath]  (0kB)
    [ivy:cachepath]         [SUCCESSFUL ] com.google.jarjar#com.springsource.com.tonicsystems.jarjar;1.0.0!license.txt(license) (5762ms)
    ...
    The point here is that the dependency does exist in the repositories configured by the build system and can be downloaded successfully. It is certainly suspicious that two unrelated people are running into the same issue, but my hypothesis remains the same: are you behind a firewall, or otherwise unable to access these files? If so, what happens if you try the build from outside that network?
    Chris Beams
    Spring Framework committer, VMware
    http://github.com/cbeams

  8. #8
    Join Date
    Apr 2007
    Posts
    307

    Default

    @f.shantanu, @eric.,

    This test passes every night on our CI server, and also passes locally all of us who build Spring on a daily basis while we work. Could you please post details about your environment? JVM vendor and version, etc.

    For example, the following is my situation and it works perfectly well:
    Code:
    >$ uname -a
    Darwin anakata.local 10.6.0 Darwin Kernel Version 10.6.0: Wed Nov 10 18:13:17 PST 2010; root:xnu-1504.9.26~3/RELEASE_I386 i386 i386
    
    >$ ant -version
    Apache Ant version 1.7.1 compiled on June 27 2008
    
    >$ java -version
    java version "1.6.0_22"
    Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-10M3261)
    Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03-307, mixed mode)
    
    >$ javac -version
    javac 1.6.0_22
    Thanks.
    Chris Beams
    Spring Framework committer, VMware
    http://github.com/cbeams

  9. #9
    Join Date
    Mar 2011
    Posts
    6

    Default

    @Chris Beams,

    Thanks for your reply, and here is mine:

    Code:
    $ uname -a
    Linux coolrat 2.6.32-30-generic #59-Ubuntu SMP Tue Mar 1 21:30:46 UTC 2011 x86_64 GNU/Linux
    $ ant -version
    Apache Ant version 1.7.1 compiled on September 8 2010
    $ java -version
    java version "1.6.0_20"
    OpenJDK Runtime Environment (IcedTea6 1.9.7) (6b20-1.9.7-0ubuntu1~10.04.1)
    OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)
    $ javac -version
    javac 1.6.0_20

  10. #10
    Join Date
    Apr 2007
    Posts
    307

    Default

    Chris Beams
    Spring Framework committer, VMware
    http://github.com/cbeams

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •