Hi,

I add the following code in org.apache.cxf.dosgi.systests.basic.BasicPublishHookTest and now the network problem is solved and there is another issue. Please see the attached files with the exceptions.

   public BasicPublishHookTest()
   {
       ProxySelector.setDefault(new TestProxySelector());
   }

private static final List<Proxy> DIRECT_PROXY_LIST = Arrays.asList(Proxy.NO_PROXY);
   private class TestProxySelector
       extends ProxySelector
   {
       private Proxy proxy;
       private List<Proxy> proxies;

       public TestProxySelector()
       {
           String proxyString = System.getProperty("env.HTTP_PROXY");
if(proxyString != null && (proxyString = proxyString.trim()).length() > 0)
           {
               int index1 = proxyString.lastIndexOf(':');
int port = Integer.parseInt(proxyString.substring(index1 + 1));
               int index2 = proxyString.indexOf("//");
               String type = proxyString.substring(0, index2 - 1);
               proxyString = proxyString.substring(index2 + 2, index1);

Proxy.Type proxyType = Proxy.Type.valueOf(type.toUpperCase()); InetSocketAddress address = new InetSocketAddress(proxyString, port);
               proxy = new Proxy(proxyType, address);
           }
       }

       @Override
       public List<Proxy> select(URI uri)
       {
           if(proxy == null)
               return DIRECT_PROXY_LIST;

           if(proxies == null)
           {
               proxies = new ArrayList<Proxy>(2);
               proxies.add(proxy);
               proxies.add(Proxy.NO_PROXY);
           }

           return proxies;
       }

       @Override
public void connectFailed(URI uri, SocketAddress address, IOException ex)
       {
           System.out.println("connectFailed(uri=" + uri +
                   ", address=" + address +
                   ", Exception=" + ex.getMessage());
       }
   }


Regards,
Miro.


Sergey Beryozkin wrote:
Hi,

Why do you think it's a proxy issue ?
org.apache.cxf.dosgi.systests.basic.BasicPublishHookTest installs a bundle during the test. The installation of this bundle should result in a service endpoint being registered with the local host address. Can you please try to rebuild the whole snapshot ? Try run this test individually and see if it works. After installing this bundle, the test waits for the endpoint by polling for its wsdl for up to 20 secs and on success it prints a message like "Waited for endpoint for 10 secs", otherwise it will now print (just added this minor change right now) "Failed to retrieve service wsdl". Try capturing the output and check for one of these messages please...

Cheers, Sergey
-------------------------------------------------------------------------------
Test set: org.apache.cxf.dosgi.systests.basic.BasicPublishHookTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 24.954 sec <<< 
FAILURE!
testBasicInvocation(org.apache.cxf.dosgi.systests.basic.BasicPublishHookTest)  
Time elapsed: 24.814 sec  <<< ERROR!
org.apache.cxf.interceptor.Fault: Response was of unexpected text/html 
ContentType.  Incoming portion of HTML stream: <!DOCTYPE HTML PUBLIC 
"-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd";>
<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; 
charset=iso-8859-1">
<TITLE>ERROR: The requested URL could not be retrieved</TITLE>
<STYLE 
type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>
</HEAD><BODY>
<H1>ERROR</H1>
<H2>The requested URL could not be retrieved</H2>
<HR noshade size="1px">
<P>
While trying to retrieve the URL:
<A HREF="http://localhost:9005/greeter";>http://localhost:9005/greeter</A>
<P>
The following error was encountered:
<UL>
<LI>
<STRONG>
Unsupported Request Method and Protocol
</STRONG>
</UL>

<P>
Squid does not support all request methods for all access protocols.
For example, you can not POST a Gopher request.
<P>Your cache administrator is <A HREF="mailto:[EMAIL PROTECTED]">[EMAIL 
PROTECTED]</A>. 

<BR clear="all">
<HR noshade size="1px">
<ADDRESS>
Generated Fri, 10 Oct 2008 12:11:15 GMT by gw.psb (squid/2.6.STABLE5)
</ADDRESS>
</BODY></HTML>

        at 
org.apache.cxf.interceptor.StaxInInterceptor.handleMessage(StaxInInterceptor.java:73)
        at 
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:221)
        at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:429)
        at 
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1989)
        at 
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1825)
        at 
org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
        at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:590)
        at 
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
        at 
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:221)
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:276)
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:222)
        at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
        at org.apache.cxf.frontend.ClientProxy.invoke(ClientProxy.java:68)
        at $Proxy18.simpleGreetMe(Unknown Source)
        at 
org.apache.cxf.dosgi.systests.basic.BasicPublishHookTest.useService(BasicPublishHookTest.java:181)
        at 
org.apache.cxf.dosgi.systests.basic.BasicPublishHookTest.testBasicInvocation(BasicPublishHookTest.java:145)
        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:597)
        at junit.framework.TestCase.runTest(TestCase.java:168)
        at 
org.springframework.osgi.test.AbstractOsgiTests.osgiRunTest(AbstractOsgiTests.java:553)
        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:597)
        at 
org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:193)
        at 
org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:178)
        at 
org.springframework.osgi.test.internal.support.OsgiJUnitTestAdapter.osgiRunTest(OsgiJUnitTestAdapter.java:76)
        at 
org.springframework.osgi.test.internal.support.OsgiJUnitService$1.protect(OsgiJUnitService.java:101)
        at junit.framework.TestResult.runProtected(TestResult.java:128)
        at 
org.springframework.osgi.test.internal.support.OsgiJUnitService.runTest(OsgiJUnitService.java:98)
        at 
org.springframework.osgi.test.internal.support.OsgiJUnitService.executeTest(OsgiJUnitService.java:71)
        at 
org.springframework.osgi.test.internal.support.OsgiJUnitService.runTest(OsgiJUnitService.java:45)
        at 
org.springframework.osgi.test.JUnitTestActivator.executeTest(JUnitTestActivator.java:73)
        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:597)
        at 
org.springframework.osgi.test.AbstractOsgiTests.invokeOSGiTestExecution(AbstractOsgiTests.java:397)
        at 
org.springframework.osgi.test.AbstractOsgiTests.runBare(AbstractOsgiTests.java:206)
        at 
org.springframework.osgi.test.AbstractOsgiTests$1.protect(AbstractOsgiTests.java:184)
        at junit.framework.TestResult.runProtected(TestResult.java:128)
        at 
org.springframework.osgi.test.AbstractOsgiTests.run(AbstractOsgiTests.java:181)
        at junit.framework.TestSuite.runTest(TestSuite.java:232)
        at junit.framework.TestSuite.run(TestSuite.java:227)
        at 
org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:35)
        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:597)
        at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:289)
        at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:993)

-------------------------------------------------------------------------------
Test set: org.apache.cxf.dosgi.systests.basic.ListenerHookServiceListenerTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 10.954 sec <<< 
FAILURE!
testBasicInvocation(org.apache.cxf.dosgi.systests.basic.ListenerHookServiceListenerTest)
  Time elapsed: 10.844 sec  <<< ERROR!
java.lang.IllegalStateException: Unexpected exception thrown
        at 
org.springframework.util.ReflectionUtils.handleUnexpectedException(ReflectionUtils.java:323)
        at 
org.springframework.util.ReflectionUtils.rethrowRuntimeException(ReflectionUtils.java:293)
        at 
org.springframework.util.ReflectionUtils.handleInvocationTargetException(ReflectionUtils.java:272)
        at 
org.springframework.util.ReflectionUtils.handleReflectionException(ReflectionUtils.java:256)
        at 
org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:196)
        at 
org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:178)
        at 
org.springframework.osgi.test.internal.support.OsgiJUnitTestAdapter.osgiRunTest(OsgiJUnitTestAdapter.java:76)
        at 
org.springframework.osgi.test.internal.support.OsgiJUnitService$1.protect(OsgiJUnitService.java:101)
        at junit.framework.TestResult.runProtected(TestResult.java:128)
        at 
org.springframework.osgi.test.internal.support.OsgiJUnitService.runTest(OsgiJUnitService.java:98)
        at 
org.springframework.osgi.test.internal.support.OsgiJUnitService.executeTest(OsgiJUnitService.java:71)
        at 
org.springframework.osgi.test.internal.support.OsgiJUnitService.runTest(OsgiJUnitService.java:45)
        at 
org.springframework.osgi.test.JUnitTestActivator.executeTest(JUnitTestActivator.java:73)
        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:597)
        at 
org.springframework.osgi.test.AbstractOsgiTests.invokeOSGiTestExecution(AbstractOsgiTests.java:397)
        at 
org.springframework.osgi.test.AbstractOsgiTests.runBare(AbstractOsgiTests.java:206)
        at 
org.springframework.osgi.test.AbstractOsgiTests$1.protect(AbstractOsgiTests.java:184)
        at junit.framework.TestResult.runProtected(TestResult.java:128)
        at 
org.springframework.osgi.test.AbstractOsgiTests.run(AbstractOsgiTests.java:181)
        at junit.framework.TestSuite.runTest(TestSuite.java:232)
        at junit.framework.TestSuite.run(TestSuite.java:227)
        at 
org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:35)
        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:597)
        at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:289)
        at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:993)
Caused by: java.util.concurrent.ExecutionException: 
java.lang.reflect.UndeclaredThrowableException
        at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
        at java.util.concurrent.FutureTask.get(FutureTask.java:83)
        at 
org.apache.cxf.dosgi.systests.basic.ListenerHookServiceListenerTest.verifyHelloResponse(ListenerHookServiceListenerTest.java:150)
        at 
org.apache.cxf.dosgi.systests.basic.ListenerHookServiceListenerTest.testBasicInvocation(ListenerHookServiceListenerTest.java:124)
        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:597)
        at junit.framework.TestCase.runTest(TestCase.java:168)
        at 
org.springframework.osgi.test.AbstractOsgiTests.osgiRunTest(AbstractOsgiTests.java:553)
        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:597)
        at 
org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:193)
        ... 30 more
Caused by: java.lang.reflect.UndeclaredThrowableException
        at $Proxy16.sayHello(Unknown Source)
        at 
org.apache.cxf.dosgi.systests.basic.ListenerHookServiceListenerTest.useService(ListenerHookServiceListenerTest.java:141)
        at 
org.apache.cxf.dosgi.systests.basic.ListenerHookServiceListenerTest.access$100(ListenerHookServiceListenerTest.java:39)
        at 
org.apache.cxf.dosgi.systests.basic.ListenerHookServiceListenerTest$1$1.call(ListenerHookServiceListenerTest.java:111)
        at 
org.apache.cxf.dosgi.systests.basic.ListenerHookServiceListenerTest$1$1.call(ListenerHookServiceListenerTest.java:109)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at 
org.apache.cxf.dosgi.systests.basic.ListenerHookServiceListenerTest$1.addingService(ListenerHookServiceListenerTest.java:113)
        at 
org.osgi.util.tracker.ServiceTracker$Tracked.trackAdding(ServiceTracker.java:1021)
        at 
org.osgi.util.tracker.ServiceTracker$Tracked.track(ServiceTracker.java:999)
        at 
org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:924)
        at 
org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:798)
        at 
org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:656)
        at 
org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:587)
        at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3707)
        at org.apache.felix.framework.Felix.access$000(Felix.java:108)
        at org.apache.felix.framework.Felix$1.serviceChanged(Felix.java:698)
        at 
org.apache.felix.framework.ServiceRegistry.fireServiceChanged(ServiceRegistry.java:601)
        at 
org.apache.felix.framework.ServiceRegistry.registerService(ServiceRegistry.java:99)
        at org.apache.felix.framework.Felix.registerService(Felix.java:2785)
        at 
org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:254)
        at 
org.apache.cxf.dosgi.dsw.hooks.AbstractClientHook.processClientDescriptions(AbstractClientHook.java:92)
        at 
org.apache.cxf.dosgi.dsw.hooks.CxfListenerHook.handleListener(CxfListenerHook.java:82)
        at 
org.apache.cxf.dosgi.dsw.hooks.CxfListenerHook.initial(CxfListenerHook.java:62)
        at org.apache.felix.framework.Felix.registerService(Felix.java:2803)
        at 
org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:254)
        at 
org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:232)
        at org.apache.cxf.dosgi.dsw.Activator.start(Activator.java:68)
        at 
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:591)
        at org.apache.felix.framework.Felix._startBundle(Felix.java:1682)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1616)
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:371)
        at 
org.apache.servicemix.kernel.testing.support.AbstractIntegrationTest.installBundle(AbstractIntegrationTest.java:117)
        at 
org.apache.cxf.dosgi.systests.basic.ListenerHookServiceListenerTest.testBasicInvocation(ListenerHookServiceListenerTest.java:123)
        ... 41 more
Caused by: java.lang.reflect.InvocationTargetException
        at 
org.apache.cxf.dosgi.dsw.handlers.ServiceInvocationHandler.invoke(ServiceInvocationHandler.java:58)
        ... 75 more
Caused by: org.osgi.framework.ServiceException: 
org.apache.cxf.interceptor.Fault: Response was of unexpected text/html 
ContentType.  Incoming portion of HTML stream: <!DOCTYPE HTML PUBLIC 
"-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd";>
<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; 
charset=iso-8859-1">
<TITLE>ERROR: The requested URL could not be retrieved</TITLE>
<STYLE 
type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>
</HEAD><BODY>
<H1>ERROR</H1>
<H2>The requested URL could not be retrieved</H2>
<HR noshade size="1px">
<P>
While trying to retrieve the URL:
<A HREF="http://localhost:9000/hello";>http://localhost:9000/hello</A>
<P>
The following error was encountered:
<UL>
<LI>
<STRONG>
Unsupported Request Method and Protocol
</STRONG>
</UL>

<P>
Squid does not support all request methods for all access protocols.
For example, you can not POST a Gopher request.
<P>Your cache administrator is <A HREF="mailto:[EMAIL PROTECTED]">[EMAIL 
PROTECTED]</A>. 

<BR clear="all">
<HR noshade size="1px">
<ADDRESS>
Generated Fri, 10 Oct 2008 12:10:48 GMT by gw.psb (squid/2.6.STABLE5)
</ADDRESS>
</BODY></HTML>

        ... 76 more
Caused by: org.apache.cxf.interceptor.Fault: Response was of unexpected 
text/html ContentType.  Incoming portion of HTML stream: <!DOCTYPE HTML PUBLIC 
"-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd";>
<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; 
charset=iso-8859-1">
<TITLE>ERROR: The requested URL could not be retrieved</TITLE>
<STYLE 
type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>
</HEAD><BODY>
<H1>ERROR</H1>
<H2>The requested URL could not be retrieved</H2>
<HR noshade size="1px">
<P>
While trying to retrieve the URL:
<A HREF="http://localhost:9000/hello";>http://localhost:9000/hello</A>
<P>
The following error was encountered:
<UL>
<LI>
<STRONG>
Unsupported Request Method and Protocol
</STRONG>
</UL>

<P>
Squid does not support all request methods for all access protocols.
For example, you can not POST a Gopher request.
<P>Your cache administrator is <A HREF="mailto:[EMAIL PROTECTED]">[EMAIL 
PROTECTED]</A>. 

<BR clear="all">
<HR noshade size="1px">
<ADDRESS>
Generated Fri, 10 Oct 2008 12:10:48 GMT by gw.psb (squid/2.6.STABLE5)
</ADDRESS>
</BODY></HTML>

        at 
org.apache.cxf.interceptor.StaxInInterceptor.handleMessage(StaxInInterceptor.java:73)
        at 
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:221)
        at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:429)
        at 
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1989)
        at 
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1825)
        at 
org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
        at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:590)
        at 
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
        at 
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:221)
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:276)
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:222)
        at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
        at org.apache.cxf.frontend.ClientProxy.invoke(ClientProxy.java:68)
        at $Proxy16.sayHello(Unknown Source)
        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:597)
        at 
org.apache.cxf.dosgi.dsw.handlers.ServiceInvocationHandler.invoke(ServiceInvocationHandler.java:46)
        ... 75 more

-------------------------------------------------------------------------------
Test set: org.apache.cxf.dosgi.systests.basic.ListenerHookSyncTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 9.751 sec <<< 
FAILURE!
testBasicInvocation(org.apache.cxf.dosgi.systests.basic.ListenerHookSyncTest)  
Time elapsed: 9.641 sec  <<< ERROR!
java.lang.reflect.UndeclaredThrowableException
        at $Proxy16.sayHello(Unknown Source)
        at 
org.apache.cxf.dosgi.systests.basic.ListenerHookSyncTest.useService(ListenerHookSyncTest.java:148)
        at 
org.apache.cxf.dosgi.systests.basic.ListenerHookSyncTest.testBasicInvocation(ListenerHookSyncTest.java:113)
        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:597)
        at junit.framework.TestCase.runTest(TestCase.java:168)
        at 
org.springframework.osgi.test.AbstractOsgiTests.osgiRunTest(AbstractOsgiTests.java:553)
        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:597)
        at 
org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:193)
        at 
org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:178)
        at 
org.springframework.osgi.test.internal.support.OsgiJUnitTestAdapter.osgiRunTest(OsgiJUnitTestAdapter.java:76)
        at 
org.springframework.osgi.test.internal.support.OsgiJUnitService$1.protect(OsgiJUnitService.java:101)
        at junit.framework.TestResult.runProtected(TestResult.java:128)
        at 
org.springframework.osgi.test.internal.support.OsgiJUnitService.runTest(OsgiJUnitService.java:98)
        at 
org.springframework.osgi.test.internal.support.OsgiJUnitService.executeTest(OsgiJUnitService.java:71)
        at 
org.springframework.osgi.test.internal.support.OsgiJUnitService.runTest(OsgiJUnitService.java:45)
        at 
org.springframework.osgi.test.JUnitTestActivator.executeTest(JUnitTestActivator.java:73)
        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:597)
        at 
org.springframework.osgi.test.AbstractOsgiTests.invokeOSGiTestExecution(AbstractOsgiTests.java:397)
        at 
org.springframework.osgi.test.AbstractOsgiTests.runBare(AbstractOsgiTests.java:206)
        at 
org.springframework.osgi.test.AbstractOsgiTests$1.protect(AbstractOsgiTests.java:184)
        at junit.framework.TestResult.runProtected(TestResult.java:128)
        at 
org.springframework.osgi.test.AbstractOsgiTests.run(AbstractOsgiTests.java:181)
        at junit.framework.TestSuite.runTest(TestSuite.java:232)
        at junit.framework.TestSuite.run(TestSuite.java:227)
        at 
org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:35)
        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:597)
        at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:289)
        at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:993)
Caused by: java.lang.reflect.InvocationTargetException
        at 
org.apache.cxf.dosgi.dsw.handlers.ServiceInvocationHandler.invoke(ServiceInvocationHandler.java:58)
        ... 44 more
Caused by: org.osgi.framework.ServiceException: 
org.apache.cxf.interceptor.Fault: Response was of unexpected text/html 
ContentType.  Incoming portion of HTML stream: <!DOCTYPE HTML PUBLIC 
"-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd";>
<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; 
charset=iso-8859-1">
<TITLE>ERROR: The requested URL could not be retrieved</TITLE>
<STYLE 
type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>
</HEAD><BODY>
<H1>ERROR</H1>
<H2>The requested URL could not be retrieved</H2>
<HR noshade size="1px">
<P>
While trying to retrieve the URL:
<A HREF="http://localhost:9000/hello";>http://localhost:9000/hello</A>
<P>
The following error was encountered:
<UL>
<LI>
<STRONG>
Unsupported Request Method and Protocol
</STRONG>
</UL>

<P>
Squid does not support all request methods for all access protocols.
For example, you can not POST a Gopher request.
<P>Your cache administrator is <A HREF="mailto:[EMAIL PROTECTED]">[EMAIL 
PROTECTED]</A>. 

<BR clear="all">
<HR noshade size="1px">
<ADDRESS>
Generated Fri, 10 Oct 2008 12:10:36 GMT by gw.psb (squid/2.6.STABLE5)
</ADDRESS>
</BODY></HTML>

        ... 45 more
Caused by: org.apache.cxf.interceptor.Fault: Response was of unexpected 
text/html ContentType.  Incoming portion of HTML stream: <!DOCTYPE HTML PUBLIC 
"-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd";>
<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; 
charset=iso-8859-1">
<TITLE>ERROR: The requested URL could not be retrieved</TITLE>
<STYLE 
type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>
</HEAD><BODY>
<H1>ERROR</H1>
<H2>The requested URL could not be retrieved</H2>
<HR noshade size="1px">
<P>
While trying to retrieve the URL:
<A HREF="http://localhost:9000/hello";>http://localhost:9000/hello</A>
<P>
The following error was encountered:
<UL>
<LI>
<STRONG>
Unsupported Request Method and Protocol
</STRONG>
</UL>

<P>
Squid does not support all request methods for all access protocols.
For example, you can not POST a Gopher request.
<P>Your cache administrator is <A HREF="mailto:[EMAIL PROTECTED]">[EMAIL 
PROTECTED]</A>. 

<BR clear="all">
<HR noshade size="1px">
<ADDRESS>
Generated Fri, 10 Oct 2008 12:10:36 GMT by gw.psb (squid/2.6.STABLE5)
</ADDRESS>
</BODY></HTML>

        at 
org.apache.cxf.interceptor.StaxInInterceptor.handleMessage(StaxInInterceptor.java:73)
        at 
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:221)
        at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:429)
        at 
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1989)
        at 
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1825)
        at 
org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
        at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:590)
        at 
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
        at 
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:221)
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:276)
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:222)
        at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
        at org.apache.cxf.frontend.ClientProxy.invoke(ClientProxy.java:68)
        at $Proxy16.sayHello(Unknown Source)
        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:597)
        at 
org.apache.cxf.dosgi.dsw.handlers.ServiceInvocationHandler.invoke(ServiceInvocationHandler.java:46)
        ... 44 more

Reply via email to