cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <dk...@apache.org>
Subject Re: svn commit: r748171 - in /cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addressing: GreeterImpl.java MAPTest.java
Date Thu, 26 Feb 2009 16:04:48 GMT


Eoghann,

I'm getting a bunch of random issues with this test now.   Sometimes it works
fine.     However, I'm also getting some stack traces, test failures, etc.....
on occasion.   Example:

-------------------------------------------------------
 T E S T S                                             
-------------------------------------------------------
Running org.apache.cxf.systest.ws.addressing.MAPTest   
Exception in thread "Thread-2" javax.xml.ws.soap.SOAPFaultException: Fault string, and possibly
fault code, not set
        at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:144)       
                         
        at $Proxy48.greetMeLater(Unknown Source)                                         
                         
        at org.apache.cxf.systest.ws.addressing.MAPTest$1.run(MAPTest.java:73)           
                         
        at java.lang.Thread.run(Thread.java:595)                                         
                         
Caused by: java.lang.NullPointerException                                                
                         
        at org.apache.cxf.systest.ws.addressing.HeaderVerifier.verify(HeaderVerifier.java:130)
                    
        at org.apache.cxf.systest.ws.addressing.HeaderVerifier.mediate(HeaderVerifier.java:83)
                    
        at org.apache.cxf.systest.ws.addressing.HeaderVerifier.handleMessage(HeaderVerifier.java:71)
              
        at org.apache.cxf.systest.ws.addressing.HeaderVerifier.handleMessage(HeaderVerifier.java:1)
               
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
                 
        at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:641)             
                         
        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2106)
        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1985)
       
        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1910)
                
        at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)       
                            
        at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:609)         
                            
        at 
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
                                           
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:469)                
                                                   
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:299)                
                                                   
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:251)                
                                                   
        at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)           
                                                   
        at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:123)       
                                                   
        ... 3 more                                                                       
                                                   
Tests run: 8, Failures: 0, Errors: 0, Skipped: 3, Time elapsed: 30.047 sec     


Another run:
-------------------------------------------------------
 T E S T S                                             
-------------------------------------------------------
Running org.apache.cxf.systest.ws.addressing.MAPTest   
Tests run: 8, Failures: 1, Errors: 0, Skipped: 3, Time elapsed: 13.876 sec <<< FAILURE!
testFallbackThreadPoolConfig(org.apache.cxf.systest.ws.addressing.MAPTest)  Time elapsed:
5.89 sec  <<< FAILURE!
java.lang.AssertionError: unexpected duration: 5873                                      
                      
        at org.junit.Assert.fail(Assert.java:74)                                         
                      
        at org.junit.Assert.assertTrue(Assert.java:37)                                   
                      
        at org.apache.cxf.systest.ws.addressing.MAPTest.testFallbackThreadPoolConfig(MAPTest.java:87)
          
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                   
                      
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
                      
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
               
        at java.lang.reflect.Method.invoke(Method.java:585)                              
                      
        at org.junit.internal.runners.TestMethod.invoke(TestMethod.java:59)              
                      
        at org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98)   
                      
        at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79)           
                      
        at org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87)
          
        at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77)         
                      
        at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42)             
                      
        at org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88)
            
        at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
                  
        at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44) 
                      
        at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)    
                      
        at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)      
                      
        at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)   
                      
        at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62) 
                      
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:165)
      
        at org.apache.maven.surefire.Surefire.run(Surefire.java:107)                     
                               
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                   
                               
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
                               
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                        
        at java.lang.reflect.Method.invoke(Method.java:585)                              
                               
        at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:289)
                  
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1005)
                               


Results :

Failed tests: 
  testFallbackThreadPoolConfig(org.apache.cxf.systest.ws.addressing.MAPTest)

Tests run: 640, Failures: 1, Errors: 0, Skipped: 12


Any chance you can look at it?

Dan





On Thu February 26 2009 10:10:27 am eglynn@apache.org wrote:
> Author: eglynn
> Date: Thu Feb 26 15:10:27 2009
> New Revision: 748171
>
> URL: http://svn.apache.org/viewvc?rev=748171&view=rev
> Log:
> Tightening up MAPTest.testFallbackThreadPoolConfig
>
> Modified:
>    
> cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addressing/Greet
>erImpl.java
> cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addressing/MAPTe
>st.java
>
> Modified:
> cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addressing/Greet
>erImpl.java URL:
> http://svn.apache.org/viewvc/cxf/trunk/systests/src/test/java/org/apache/cx
>f/systest/ws/addressing/GreeterImpl.java?rev=748171&r1=748170&r2=748171&view
>=diff
> ===========================================================================
>=== ---
> cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addressing/Greet
>erImpl.java (original) +++
> cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addressing/Greet
>erImpl.java Thu Feb 26 15:10:27 2009 @@ -19,6 +19,7 @@
>
>  package org.apache.cxf.systest.ws.addressing;
>
> +import java.util.Date;
>  import java.util.concurrent.Future;
>
>  import javax.annotation.Resource;
> @@ -66,7 +67,9 @@
>      }
>
>      public String greetMeLater(long delay) {
> -        System.out.println("\n\n*** GreetMeLater called with: " + delay +
> "***\n\n"); +        System.out.println("\n\n*** GreetMeLater called with:
> " + delay +                           + " at: " + new Date().toString()
> +                           + "***\n\n");
>          if (delay > 0) {
>              try {
>                  Thread.sleep(delay);
>
> Modified:
> cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addressing/MAPTe
>st.java URL:
> http://svn.apache.org/viewvc/cxf/trunk/systests/src/test/java/org/apache/cx
>f/systest/ws/addressing/MAPTest.java?rev=748171&r1=748170&r2=748171&view=dif
>f
> ===========================================================================
>=== ---
> cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addressing/MAPTe
>st.java (original) +++
> cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addressing/MAPTe
>st.java Thu Feb 26 15:10:27 2009 @@ -70,20 +70,22 @@
>      public void testFallbackThreadPoolConfig() throws Exception {
>          Runnable r = new Runnable() {
>              public void run() {
> -                greeter.greetMeLater(10 * 1000);
> +                greeter.greetMeLater(5 * 1000);
>              }
>          };
> -        Thread[] invokers = new Thread[4];
> +        Thread[] invokers = new Thread[5];
>          long start = System.currentTimeMillis();
>          for (int i = 0; i < invokers.length; i++) {
>              invokers[i] = new Thread(r);
> +            invokers[i].setDaemon(true);
>              invokers[i].start();
>          }
>          for (int i = 0; i < invokers.length; i++) {
> -            invokers[i].join();
> +            invokers[i].join(15 * 1000);
>          }
>          long end = System.currentTimeMillis();
> -        assertTrue(end - start > 20 * 1000L);
> +        assertTrue("unexpected duration: " + (end - start),
> +                   end - start > 9 * 1000L);
>      }
>
>  }

-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog

Mime
View raw message