hello,

i'm new to ServiceMix3.0, but i was able to set up a webservice with a
consumer and provider endpoints.  it works great! however, if the
ServiceMix3.0 idles for around ~30seconds i get the following exception in
the servicemix log.  after that i'm able again to send soap client requests
with no problems.   below i've pasted my servicemix.xml and xbean.xml
definitions.  any help would be appreciated!

thanks in advance!

quique

Caused by: java.net.SocketException: Connection reset
        at java.net.SocketInputStream.read(SocketInputStream.java:168)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
        at
org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:77)
        at
org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:105)
        at
org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1115)
        at
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1373)
        at
org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1832)
        at
org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1590)
        at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:995)
        at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
        at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
        at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
        at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
        at
org.apache.servicemix.http.processors.ProviderProcessor.process(ProviderProcessor.java:153)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:410)
        at
org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:43)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:624)
        at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:169)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:177)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:227)
        at
org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java:291)
        at
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:595)
-----------------------------------------------

servicemix.xml
-----------------------------------------------
<beans xmlns:sm="http://servicemix.apache.org/config/1.0";>

  <import resource="classpath:tx.xml" />
  <import resource="classpath:jndi.xml" />
  <import resource="classpath:jmx.xml" />
  <import resource="classpath:activemq.xml" />

  <!-- the JBI container -->
  <sm:container id="jbi"
                rootDir="./data"
                useMBeanServer="true"
                createMBeanServer="true"
                installationDirPath="./install"
                deploymentDirPath="./deploy"
                dumpStats="false"
                statsInterval="3600"
                createJmxConnector="false"
                flowName="seda">

    <sm:activationSpecs>

    </sm:activationSpecs>
  </sm:container>

</beans>


------------------------------------------


xbean.xml
------------------------------------------

<beans xmlns:http="http://servicemix.apache.org/http/1.0";
       xmlns:wsn="http://servicemix.org/wsnotification";
       xmlns:ns1="http://ws.motricity.com/ondemand/services/directory";
       xmlns:myns="http://myNameSpace/servicemix/1.0";>

    <http:endpoint service="ns1:DirectoryServiceService"
        endpoint="directoryServicePEP"
        targetService="ns1:DirectoryServiceService"
        role="provider" soap="true"
        defaultMep="http://www.w3.org/2004/08/wsdl/in-out";
        locationURI="http://0.0.0.0:7001/ondemand/services/directory";
        wsdlResource="http://0.0.0.0:7001/ondemand/services/directory?wsdl";
/>

    <http:endpoint service="ns1:DirectoryService"
        endpoint="directoryServiceCEP"
        targetService="ns1:DirectoryServiceService"
        role="consumer" soap="true"
        targetInterfaceName="ns1:DirectoryService"
        locationURI="http://0.0.0.0:8192/services/DirectoryService/";
        defaultMep="http://www.w3.org/2004/08/wsdl/in-out"; />

</beans>

-- 
View this message in context: 
http://www.nabble.com/SocketException%3A-Connection-reset-tf2358710.html#a6570921
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to