You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Vinod Panicker <vi...@gmail.com> on 2005/03/15 11:13:55 UTC

[mina] Test failing

Hi,

Been trying to build mina, but the ConnecterTest is failing.  I tried
changing the port in Abstract Test to use "12345".  It shows up
correctly in the output, but the tests still fail.  Here's the report
-

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

Testsuite: org.apache.mina.examples.echoserver.ConnectorTest
Tests run: 2, Failures: 0, Errors: 2, Time elapsed: 0.109 sec

Testcase: testTCP(org.apache.mina.examples.echoserver.ConnectorTest):	Caused
an ERROR
Cannot assign requested address: no further information
java.net.BindException: Cannot assign requested address: no further information
	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:525)
	at org.apache.mina.io.socket.SocketConnector.processSessions(SocketConnector.java:153)
	at org.apache.mina.io.socket.SocketConnector.access$900(SocketConnector.java:46)
	at org.apache.mina.io.socket.SocketConnector$Worker.run(SocketConnector.java:246)


Testcase: testUDP(org.apache.mina.examples.echoserver.ConnectorTest):	Caused
an ERROR
Cannot assign requested address: connect
java.net.BindException: Cannot assign requested address: connect
	at sun.nio.ch.Net.connect(Native Method)
	at sun.nio.ch.DatagramChannelImpl.connect(DatagramChannelImpl.java:530)
	at org.apache.mina.io.datagram.DatagramConnector.connect(DatagramConnector.java:92)
	at org.apache.mina.examples.echoserver.ConnectorTest.testTCP0(ConnectorTest.java:59)
	at org.apache.mina.examples.echoserver.ConnectorTest.testUDP(ConnectorTest.java:111)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:185)
	at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
	at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
	at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
	at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:88)
	at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
	at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
	at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:79)
	at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:110)
	at com.werken.werkz.Goal.fire(Goal.java:639)
	at com.werken.werkz.Goal.attain(Goal.java:575)
	at com.werken.werkz.Goal.attainPrecursors(Goal.java:488)
	at com.werken.werkz.Goal.attain(Goal.java:573)
	at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:671)
	at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
	at org.apache.maven.cli.App.doMain(App.java:488)
	at org.apache.maven.cli.App.main(App.java:1239)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at com.werken.forehead.Forehead.run(Forehead.java:551)
	at com.werken.forehead.Forehead.main(Forehead.java:581)


Regards,
Vinod.

[mina] Thread pool filters

Posted by Jan Andersson <ja...@minq.se>.
Are there any recommendations regarding sizes to use for thread pool
filters in Mina? I use both IoThreadPoolFilter and 
ProtocolThreadPoolFilter.

I understand that this is dependent on my own implementation, how
much work it is to decode/encode messages, what your server actually
do etc. I also assume that using SSL would be a factor here.

But, still, from a general perspective and how NIO and the thread pool
filters are implemented; Are there any guide lines or recommendations?

/Janne