Announcement Announcement Module
Collapse
No announcement yet.
Building Spring 3.1.0.M1 from source Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Building Spring 3.1.0.M1 from source

    When I check out the source code for springframework 3.1.0.M1 from https://src.springsource.org/svn/spr...ework-3.1.0.M1 spring-framework-3.1.0.M1 and try to build it by issueing an ant build from the build-spring-framework/ directory. The sources seem to compile fine but I get failures on the following test: org.springframework.jmx.export.annotation.Annotati onMetadataAssemblerTests

    Is there anything I need to set-up or change before I can run the build?

    The output I get is as follows:


    [junit] Testcase: testWithCglibProxy(org.springframework.jmx.export. annotation.AnnotationMetadataAssemblerTests): Caused an ERROR
    [junit] spring:bean=test,proxy=true
    [junit] javax.management.InstanceNotFoundException: spring:bean=test,proxy=true
    [junit] at com.sun.jmx.interceptor.DefaultMBeanServerIntercep tor.getMBean(DefaultMBeanServerInterceptor.java:10 94)
    [junit] at com.sun.jmx.interceptor.DefaultMBeanServerIntercep tor.getMBeanInfo(DefaultMBeanServerInterceptor.jav a:1372)
    [junit] at com.sun.jmx.mbeanserver.JmxMBeanServer.getMBeanInf o(JmxMBeanServer.java:880)
    [junit] at org.springframework.jmx.export.assembler.AbstractM etadataAssemblerTests.testWithCglibProxy(AbstractM etadataAssemblerTests.java:167)
    [junit]
    [junit]
    [junit] Testcase: testMBeanRegistration(org.springframework.jmx.expo rt.annotation.AnnotationMetadataAssemblerTests): Caused an ERROR
    [junit] bean:name=testBean4
    [junit] javax.management.InstanceNotFoundException: bean:name=testBean4
    [junit] at com.sun.jmx.interceptor.DefaultMBeanServerIntercep tor.getMBean(DefaultMBeanServerInterceptor.java:10 94)
    [junit] at com.sun.jmx.interceptor.DefaultMBeanServerIntercep tor.getObjectInstance(DefaultMBeanServerIntercepto r.java:459)
    [junit] at com.sun.jmx.mbeanserver.JmxMBeanServer.getObjectIn stance(JmxMBeanServer.java:524)
    [junit] at org.springframework.jmx.export.assembler.AbstractJ mxAssemblerTests.getObjectInstance(AbstractJmxAsse mblerTests.java:189)
    [junit] at org.springframework.jmx.export.assembler.AbstractJ mxAssemblerTests.testMBeanRegistration(AbstractJmx AssemblerTests.java:48)
    [junit]
    [junit]
    [junit] Testcase: testRegisterOperations(org.springframework.jmx.exp ort.annotation.AnnotationMetadataAssemblerTests): Caused an ERROR
    [junit] bean:name=testBean4
    [junit] javax.management.InstanceNotFoundException: bean:name=testBean4
    [junit] at com.sun.jmx.interceptor.DefaultMBeanServerIntercep tor.getMBean(DefaultMBeanServerInterceptor.java:10 94)
    [junit] at com.sun.jmx.interceptor.DefaultMBeanServerIntercep tor.getMBeanInfo(DefaultMBeanServerInterceptor.jav a:1372)
    [junit] at com.sun.jmx.mbeanserver.JmxMBeanServer.getMBeanInf o(JmxMBeanServer.java:880)
    [junit] at org.springframework.jmx.export.assembler.AbstractJ mxAssemblerTests.getMBeanInfo(AbstractJmxAssembler Tests.java:185)
    [junit] at org.springframework.jmx.export.assembler.AbstractJ mxAssemblerTests.testRegisterOperations(AbstractJm xAssemblerTests.java:54)
    [junit]
    [junit]
    [junit] Testcase: testRegisterAttributes(org.springframework.jmx.exp ort.annotation.AnnotationMetadataAssemblerTests): Caused an ERROR
    [junit] bean:name=testBean4
    [junit] javax.management.InstanceNotFoundException: bean:name=testBean4
    [junit] at com.sun.jmx.interceptor.DefaultMBeanServerIntercep tor.getMBean(DefaultMBeanServerInterceptor.java:10 94)
    [junit] at com.sun.jmx.interceptor.DefaultMBeanServerIntercep tor.getMBeanInfo(DefaultMBeanServerInterceptor.jav a:1372)
    [junit] at com.sun.jmx.mbeanserver.JmxMBeanServer.getMBeanInf o(JmxMBeanServer.java:880)
    [junit] at org.springframework.jmx.export.assembler.AbstractJ mxAssemblerTests.getMBeanInfo(AbstractJmxAssembler Tests.java:185)
    [junit] at org.springframework.jmx.export.assembler.AbstractJ mxAssemblerTests.testRegisterAttributes(AbstractJm xAssemblerTests.java:61)
    [junit]
    [junit]
    [junit] Testcase: testSetAttribute(org.springframework.jmx.export.an notation.AnnotationMetadataAssemblerTests): Caused an ERROR
    [junit] bean:name=testBean4
    [junit] javax.management.InstanceNotFoundException: bean:name=testBean4
    [junit] at com.sun.jmx.interceptor.DefaultMBeanServerIntercep tor.getMBean(DefaultMBeanServerInterceptor.java:10 94)
    [junit] at com.sun.jmx.interceptor.DefaultMBeanServerIntercep tor.setAttribute(DefaultMBeanServerInterceptor.jav a:757)
    [junit] at com.sun.jmx.mbeanserver.JmxMBeanServer.setAttribut e(JmxMBeanServer.java:699)
    [junit] at org.springframework.jmx.export.assembler.AbstractJ mxAssemblerTests.testSetAttribute(AbstractJmxAssem blerTests.java:108)
    [junit]
    [junit]
    [junit] Testcase: testGetAttribute(org.springframework.jmx.export.an notation.AnnotationMetadataAssemblerTests): Caused an ERROR
    [junit] bean:name=testBean4
    [junit] javax.management.InstanceNotFoundException: bean:name=testBean4
    [junit] at com.sun.jmx.interceptor.DefaultMBeanServerIntercep tor.getMBean(DefaultMBeanServerInterceptor.java:10 94)
    [junit] at com.sun.jmx.interceptor.DefaultMBeanServerIntercep tor.getAttribute(DefaultMBeanServerInterceptor.jav a:662)
    [junit] at com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribut e(JmxMBeanServer.java:638)
    [junit] at org.springframework.jmx.export.assembler.AbstractJ mxAssemblerTests.testGetAttribute(AbstractJmxAssem blerTests.java:116)
    [junit]
    [junit]
    [junit] Testcase: testOperationInvocation(org.springframework.jmx.ex port.annotation.AnnotationMetadataAssemblerTests): Caused an ERROR
    [junit] bean:name=testBean4
    [junit] javax.management.InstanceNotFoundException: bean:name=testBean4
    [junit] at com.sun.jmx.interceptor.DefaultMBeanServerIntercep tor.getMBean(DefaultMBeanServerInterceptor.java:10 94)
    [junit] at com.sun.jmx.interceptor.DefaultMBeanServerIntercep tor.invoke(DefaultMBeanServerInterceptor.java:833)
    [junit] at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxM BeanServer.java:761)
    [junit] at org.springframework.jmx.export.assembler.AbstractJ mxAssemblerTests.testOperationInvocation(AbstractJ mxAssemblerTests.java:122)
    [junit]
    [junit]
    [junit] Testcase: testNotificationMetadata(org.springframework.jmx.e xport.annotation.AnnotationMetadataAssemblerTests) : Caused an ERROR
    [junit] bean:name=testBean4
    [junit] javax.management.InstanceNotFoundException: bean:name=testBean4
    [junit] at com.sun.jmx.interceptor.DefaultMBeanServerIntercep tor.getMBean(DefaultMBeanServerInterceptor.java:10 94)
    [junit] at com.sun.jmx.interceptor.DefaultMBeanServerIntercep tor.getMBeanInfo(DefaultMBeanServerInterceptor.jav a:1372)
    [junit] at com.sun.jmx.mbeanserver.JmxMBeanServer.getMBeanInf o(JmxMBeanServer.java:880)
    [junit] at org.springframework.jmx.export.assembler.AbstractJ mxAssemblerTests.getMBeanInfo(AbstractJmxAssembler Tests.java:185)
    [junit] at org.springframework.jmx.export.assembler.AbstractJ mxAssemblerTests.testNotificationMetadata(Abstract JmxAssemblerTests.java:161)
    [junit]
    [junit]
    [subant] Leaving directory: /home/jaap/tmp/spring-framework-3.1.0.M1/org.springframework.context

  • #2
    I believe this is related to SPR-9288

    Comment

    Working...
    X