Page 3 of 3 FirstFirst 123
Results 21 to 27 of 27

Thread: Initial Build Failure

  1. #21
    Join Date
    Mar 2011
    Posts
    6

    Default

    Quote Originally Posted by Chris Beams View Post
    Sure. Just check out the 3.0.5.RELEASE tag and build from there.

    https://src.springframework.org/svn/...3.0.5.RELEASE/

    - C
    Thank you.

    I've tried this version, but it looks like the same as the trunk version, At first, the testMemUsage error like my first post:
    [junit]
    [junit] Testsuite: org.springframework.core.LocalVariableTableParamet erNameDiscovererTests
    [junit] Tests run: 11, Failures: 1, Errors: 0, Time elapsed: 0.187 sec
    [junit]
    [junit] Testcase: testMemUsage(org.springframework.core.LocalVariabl eTableParameterNameDiscovererTests): FAILED
    [junit] null
    [junit] junit.framework.AssertionFailedError: null
    [junit] at org.springframework.core.LocalVariableTableParamet erNameDiscovererTests.testMemUsage(LocalVariableTa bleParameterNameDiscovererTests.java:202)
    [junit]
    [junit]
    [subant] Leaving directory: /home/sunny/workshop/codes/spring-framework-3.0.5.RELEASE.svn/org.springframework.core
    and then the writeMultipart error which you might not notice:
    [junit]
    [junit] Testcase: writeMultipart(org.springframework.http.converter. FormHttpMessageConverterTests): Caused an ERROR
    [junit] expected:<[image/jpeg]> but was:<[application/octet-stream]>
    [junit] at org.springframework.http.converter.FormHttpMessage ConverterTests.writeMultipart(FormHttpMessageConve rterTests.java:151)
    [junit]
    [junit]
    [subant] Leaving directory: /home/sunny/workshop/codes/spring-framework-3.0.5.RELEASE.svn/org.springframework.web
    Would you like to give some suggestions ? TIA.

  2. #22
    Join Date
    Aug 2008
    Location
    Japan
    Posts
    1

    Default

    Hi,

    I could build spring-framework-3.0.5.RELEASE behind firewall.

    I set spring-build\lib\ivy\jets3t.properties file like this.

    # Proxy configuration
    httpclient.proxy-autodetect=false
    httpclient.proxy-host=proxy.server.name
    httpclient.proxy-port=8080

  3. #23
    Join Date
    May 2006
    Location
    Madrid
    Posts
    382

    Default

    Hello:

    I have the same failure:

    Code:
    [junit] Tests run: 5, Failures: 1, Errors: 0, Time elapsed: 0.262 sec
        [junit] 
        [junit] Testcase: writeMultipart(org.springframework.http.converter.FormHttpMessageConverterTests):	FAILED
        [junit] expected:<[image/jpeg]> but was:<[application/octet-stream]>
        [junit] junit.framework.AssertionFailedError: expected:<[image/jpeg]> but was:<[application/octet-stream]>
        [junit] 	at org.springframework.http.converter.FormHttpMessageConverterTests.writeMultipart(FormHttpMessageConverterTests.java:154)
    My environment is Ubuntu 10.10 and:
    Code:
    javier@BART:~/Documents/git/spring-framework$ mvn --version
    Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
    Maven home: /usr/local/lib/apache-maven-3.0.3
    Java version: 1.6.0_20, vendor: Sun Microsystems Inc.
    Java home: /usr/lib/jvm/java-6-openjdk/jre
    Default locale: en_US, platform encoding: UTF-8
    OS name: "linux", version: "2.6.35-30-generic", arch: "amd64", family: "unix"
    Any help with this issue?

    Thank you very much in advance.

  4. #24
    Join Date
    Apr 2007
    Posts
    307

    Default

    The Maven POMs are not supported for building the framework. These exist only for the purpose of maintaining Maven metadata for *consuming* Spring framework artifacts, as opposed to building them. The best approach is simply to use the ant build which all the core developers use on a daily basis. This has been documented here: https://github.com/cbeams/spring-framework/wiki
    Chris Beams
    Spring Framework committer, VMware
    http://github.com/cbeams

  5. #25
    Join Date
    May 2006
    Location
    Madrid
    Posts
    382

    Default

    Thanks.

    And apologize for the misunderstanding. I used the maven command because it's an easy way to show my environment (OS, Java version, etc.)

    I followed the your instructions without problems in MAC but with failures in UBUNTU and windows.

  6. #26
    Join Date
    Apr 2007
    Posts
    307

    Default

    Understood. Please file a bug for this. The team builds against OS X, Ubuntu and Windows every day, and this test isn't failing for any of us, so this suggests it's something local on your machine. Nevertheless, it'll be good to figure out.
    Chris Beams
    Spring Framework committer, VMware
    http://github.com/cbeams

  7. #27
    Join Date
    May 2006
    Location
    Madrid
    Posts
    382

    Default

    Ok, thank you, I'll do it.

    In windows I have problems with ASM:
    Code:
    C:\...\spring-framework\org.springframework.asm\build.xml
    :53: java.lang.NoSuchMethodError: org.objectweb.asm.ClassReader.accept(Lorg/obje
    ctweb/asm/ClassVisitor;I)V
            at com.springsource.bundlor.support.asm.AsmTypeArtefactAnalyser.analyse(
    AsmTypeArtefactAnalyser.java:43)
            at com.springsource.bundlor.support.StandardManifestGenerator.analyzeEnt
    ry(StandardManifestGenerator.java:116)
            at com.springsource.bundlor.support.StandardManifestGenerator.analyzeEnt
    ries(StandardManifestGenerator.java:101)
            at com.springsource.bundlor.support.StandardManifestGenerator.generate(S
    tandardManifestGenerator.java:66)
            at com.springsource.bundlor.ant.internal.AntBundlorExecutor.execute(AntB
    undlorExecutor.java:73)
            at com.springsource.bundlor.ant.Bundlor.execute(Bundlor.java:106)
    Is there anything I can share in order to clarify what my problem is?

    Thanks again.

Posting Permissions

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