Discussion:
Is there a TCP connector without polling?
Hansen Gao
2012-06-15 04:43:36 UTC
Permalink
<a href="https://d37wxxhohlp07s.cloudfront.net/s3_images/751116/1.bmp?1339732162" rel="nofollow"><img alt="" src="https://d37wxxhohlp07s.cloudfront.net/s3_images/751116/1_inline.bmp?1339732162" /></a>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
David Dossot
2012-06-15 16:09:30 UTC
Permalink
No idea why it is not showing in the list. In the meantime, add a polling connector, switch to the XML view and change:
<br />
<code>
<br />
&lt;tcp:polling-connector name=&quot;&#46;&#46;&#46;
<br />
</code>
<br />
into:
<br />
<code>
<br />
&lt;tcp:connector name=&quot;&#46;&#46;&#46;
<br />
</code>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
Hansen Gao
2012-06-19 05:32:32 UTC
Permalink
Thanks for your reply, David.
<br /><br />
As you suggested, I changed my mflow file:
<br />
<code>
<br />
&lt;?xml version=&quot;1&#46;0&quot; encoding=&quot;UTF-8&quot;?&gt;
<br /><br />
&lt;mule xmlns=&quot;http:&#47;&#47;www&#46;mulesoft&#46;org&#47;schema&#47;mule&#47;core&quot; xmlns:tcp=&quot;http:&#47;&#47;www&#46;mulesoft&#46;org&#47;schema&#47;mule&#47;tcp&quot; xmlns:udp=&quot;http:&#47;&#47;www&#46;mulesoft&#46;org&#47;schema&#47;mule&#47;udp&quot; xmlns:doc=&quot;http:&#47;&#47;www&#46;mulesoft&#46;org&#47;schema&#47;mule&#47;documentation&quot; xmlns:spring=&quot;http:&#47;&#47;www&#46;springframework&#46;org&#47;schema&#47;beans&quot; xmlns:core=&quot;http:&#47;&#47;www&#46;mulesoft&#46;org&#47;schema&#47;mule&#47;core&quot; xmlns:xsi=&quot;http:&#47;&#47;www&#46;w3&#46;org&#47;2001&#47;XMLSchema-instance&quot; version=&quot;EE-3&#46;2&#46;2&quot; xsi:schemaLocation=&quot;
<br />
http:&#47;&#47;www&#46;mulesoft&#46;org&#47;schema&#47;mule&#47;tcp http:&#47;&#47;www&#46;mulesoft&#46;org&#47;schema&#47;mule&#47;tcp&#47;current&#47;mule-tcp&#46;xsd
<br />
http:&#47;&#47;www&#46;mulesoft&#46;org&#47;schema&#47;mule&#47;udp http:&#47;&#47;www&#46;mulesoft&#46;org&#47;schema&#47;mule&#47;udp&#47;current&#47;mule-udp&#46;xsd
<br />
http:&#47;&#47;www&#46;springframework&#46;org&#47;schema&#47;beans http:&#47;&#47;www&#46;springframework&#46;org&#47;schema&#47;beans&#47;spring-beans-3&#46;0&#46;xsd
<br />
http:&#47;&#47;www&#46;mulesoft&#46;org&#47;schema&#47;mule&#47;core http:&#47;&#47;www&#46;mulesoft&#46;org&#47;schema&#47;mule&#47;core&#47;current&#47;mule&#46;xsd &quot;&gt;
<br />
&lt;tcp:connector name=&quot;TCP_C_L&quot; validateConnections=&quot;false&quot; receiveBufferSize=&quot;102400&quot; sendBufferSize=&quot;102400&quot; doc:name=&quot;TCP&quot;&#47;&gt;
<br />
&lt;tcp:connector name=&quot;TCP_C_81&quot; validateConnections=&quot;false&quot; receiveBufferSize=&quot;102400&quot; sendBufferSize=&quot;102400&quot; doc:name=&quot;TCP&quot;&#47;&gt;
<br /><br />
&lt;flow name=&quot;tcpFlow1&quot; doc:name=&quot;tcpFlow1&quot;&gt;
<br />
&lt;tcp:inbound-endpoint address=&quot;tcp:&#47;&#47;localhost:3600&quot; responseTimeout=&quot;10000&quot; exchange-pattern=&quot;request-response&quot; connector-ref=&quot;TCP_C_L&quot; doc:name=&quot;TCP&quot;&#47;&gt;
<br />
&lt;tcp:outbound-endpoint host=&quot;192&#46;168&#46;140&#46;81&quot; port=&quot;3600&quot; responseTimeout=&quot;10000&quot; exchange-pattern=&quot;request-response&quot; connector-ref=&quot;TCP_C_81&quot; doc:name=&quot;TCP&quot;&#47;&gt;
<br />
&lt;&#47;flow&gt;
<br />
&lt;&#47;mule&gt;
<br /><br />
</code>
<br /><br />
But I still get the same error:
<br />
<code>
<br />
ERROR 2012-06-19 13:24:11,748 [[mytest1]&#46;TCP_C_L&#46;receiver&#46;02] org&#46;mule&#46;exception&#46;DefaultSystemExceptionStrategy: Caught exception in Exception Strategy: An error occurred while verifying your connection&#46; You may not be using a consistent protocol on your TCP transport&#46; Please read the documentation for the TCP transport, paying particular attention to the protocol parameter&#46;
<br />
java&#46;io&#46;IOException: An error occurred while verifying your connection&#46; You may not be using a consistent protocol on your TCP transport&#46; Please read the documentation for the TCP transport, paying particular attention to the protocol parameter&#46;
<br />
at org&#46;mule&#46;transport&#46;tcp&#46;protocols&#46;SafeProtocol&#46;helpUser(SafeProtocol&#46;java:110)
<br />
at org&#46;mule&#46;transport&#46;tcp&#46;protocols&#46;SafeProtocol&#46;assertSiblingSafe(SafeProtocol&#46;java:83)
<br />
at org&#46;mule&#46;transport&#46;tcp&#46;protocols&#46;SafeProtocol&#46;read(SafeProtocol&#46;java:37)
<br />
at org&#46;mule&#46;transport&#46;tcp&#46;TcpMessageReceiver$TcpWorker&#46;getNextMessage(TcpMessageReceiver&#46;java:364)
<br />
at org&#46;mule&#46;transport&#46;AbstractReceiverResourceWorker&#46;doRun(AbstractReceiverResourceWorker&#46;java:44)
<br />
at org&#46;mule&#46;transport&#46;AbstractReceiverWorker&#46;run(AbstractReceiverWorker&#46;java:63)
<br />
at org&#46;mule&#46;work&#46;WorkerContext&#46;run(WorkerContext&#46;java:310)
<br />
at java&#46;util&#46;concurrent&#46;ThreadPoolExecutor$Worker&#46;runTask(ThreadPoolExecutor&#46;java:886)
<br />
at java&#46;util&#46;concurrent&#46;ThreadPoolExecutor$Worker&#46;run(ThreadPoolExecutor&#46;java:908)
<br />
at java&#46;lang&#46;Thread&#46;run(Thread&#46;java:662)
<br />
Caused by: java&#46;io&#46;IOException: Length 189616968 exceeds limit: 26
<br />
at org&#46;mule&#46;transport&#46;tcp&#46;protocols&#46;LengthProtocol&#46;read(LengthProtocol&#46;java:75)
<br />
at org&#46;mule&#46;transport&#46;tcp&#46;protocols&#46;SafeProtocol&#46;assertSiblingSafe(SafeProtocol&#46;java:79)
<br />
&#46;&#46;&#46; 8 more
<br />
java&#46;util&#46;concurrent&#46;ThreadPoolExecutor$Worker&#46;runTask(ThreadPoolExecutor&#46;java:886)
<br />
at java&#46;util&#46;concurrent&#46;ThreadPoolExecutor$Worker&#46;run(ThreadPoolExecutor&#46;java:908)
<br />
at java&#46;lang&#46;Thread&#46;run(Thread&#46;java:662)
<br />
Caused by: java&#46;io&#46;IOException: Length 189616968 exceeds limit: 26
<br />
</code>
<br /><br />
The Length 189616968 is not right.
<br />
The limit 26 is not right either.
<br />
at org.mule.transport.tcp.protocols.LengthProtocol.read(LengthProtocol.java:75)
<br />
at org.mule.transport.tcp.protocols.SafeProtocol.assertSiblingSafe(SafeProtocol.java:79)
<br />
... 8 more

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
Hansen Gao
2012-06-19 05:59:31 UTC
Permalink
I add streaming-protocol to both connectors, and it's better now.
<br /><br />
<code>
<br />
&lt;tcp:connector name=&quot;TCP_C_L&quot; validateConnections=&quot;false&quot; receiveBufferSize=&quot;102400&quot; sendBufferSize=&quot;102400&quot; doc:name=&quot;TCP&quot;&gt;
<br />
&lt;tcp:streaming-protocol&#47;&gt;
<br />
&lt;&#47;tcp:connector&gt;
<br />
&lt;tcp:connector name=&quot;TCP_C_81&quot; validateConnections=&quot;false&quot; receiveBufferSize=&quot;102400&quot; sendBufferSize=&quot;102400&quot; doc:name=&quot;TCP&quot;&gt;
<br />
&lt;tcp:streaming-protocol&#47;&gt;
<br />
&lt;&#47;tcp:connector&gt;
<br />
</code>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
Hansen Gao
2012-06-19 13:34:32 UTC
Permalink
I tried Mule ESB 3.2 (Mule Studio) in Mac. There is No TCP connector either.
<br />
<a href="Loading Image... rel="nofollow"><img alt="" src="Loading Image... /></a>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Loading...