Eclipse build trunk example error

2007-09-13 Thread tedc
Hi : I have followed the instrution on the forum, and I had imported the example project. I have four error listed below: Project mina-example is missing required Java project: 'mina-core' mina-example Project mina-example is missing required Java project: 'mina-filter-codec-http'

Re: Eclipse build trunk example error

2007-09-13 Thread Trustin Lee
On 9/13/07, tedc [EMAIL PROTECTED] wrote: Hi : I have followed the instrution on the forum, and I had imported the example project. I have four error listed below: Project mina-example is missing required Java project: 'mina-core' mina-example Project mina-example is missing required Java

protocol-http-{client,server} or protocol-{client,server}-http?

2007-09-13 Thread Trustin Lee
Hi community, Currently, there are two protocol implementation submodules; protocol-client-http and protocol-server-http. Their package names are respectively org.apache.mina.http.client and org.apache.mina.http.server. As you see, they have a different naming rule from the artifactId. It

Re: protocol-http-{client,server} or protocol-{client,server}-http?

2007-09-13 Thread Maarten Bosteels
Hello, On 9/13/07, Trustin Lee [EMAIL PROTECTED] wrote: Hi community, Currently, there are two protocol implementation submodules; protocol-client-http and protocol-server-http. Their package names are respectively org.apache.mina.http.client and org.apache.mina.http.server. As you see,

Re: protocol-http-{client,server} or protocol-{client,server}-http?

2007-09-13 Thread Tyronne Wickramaratne
hi Trustin On 9/13/07, Trustin Lee [EMAIL PROTECTED] wrote: Hi community, Currently, there are two protocol implementation submodules; protocol-client-http and protocol-server-http. Their package names are respectively org.apache.mina.http.client and org.apache.mina.http.server. As you

Re: tcp client - how to detect connect problems

2007-09-13 Thread Trustin Lee
On 9/11/07, HansJ [EMAIL PROTECTED] wrote: Hello Using the MINA NetCat as the example. I'm using MINA 1.1.2. I'm struggling to understand how MINA tcp clients detects connects errors, i.e. when an initial tcp connection cannot be made. I would like to separate into different scenarios:

Re: tcp client - how to detect connect problems

2007-09-13 Thread Trustin Lee
On 9/13/07, Trustin Lee [EMAIL PROTECTED] wrote: On 9/11/07, HansJ [EMAIL PROTECTED] wrote: snip/ 3. Endpoint specified by hostname or ip, port#. Problem: host reachable, but no listener on that port. I've tested this scenario. Nothing happens, no callback, nothing, the NetCat

Re: Client-server application through a proxy

2007-09-13 Thread Trustin Lee
On 9/12/07, Francesca Milan [EMAIL PROTECTED] wrote: shila ha scritto: Hi, I'm trying to write a client-server application with Mina which passes through an HTTP proxy. I know that Mina doesn't support proxy natively (also with DIRMINA-223: see

Re: slightly OT: how to write an NIO provider

2007-09-13 Thread Trustin Lee
On 9/11/07, Mark [EMAIL PROTECTED] wrote: I am interested in writing an NIO provider and wondered if anyone here has experience doing this. It would be great if we can provide an alternative NIO provider for better performance, aside from Julien's APR transport effort. I'd love to see what is

[jira] Reopened: (DIRMINA-269) stop SocketConnector.connect()

2007-09-13 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-269?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Trustin Lee reopened DIRMINA-269: - stop SocketConnector.connect() -- Key: DIRMINA-269

[jira] Updated: (DIRMINA-269) Cancellation operation for ConnectFuture

2007-09-13 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-269?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Trustin Lee updated DIRMINA-269: Component/s: Transport Core Affects Version/s: (was: 0.9.5)

[jira] Created: (DIRMINA-436) DemuxingProtocolCodecFactory doesn't reset the current MessageDecoder when NOT_OK is returned.

2007-09-13 Thread Trustin Lee (JIRA)
DemuxingProtocolCodecFactory doesn't reset the current MessageDecoder when NOT_OK is returned. -- Key: DIRMINA-436 URL: https://issues.apache.org/jira/browse/DIRMINA-436

Re: DemuxingProtocolCodecFactory.ProtocolDecoderImpl.doDecode

2007-09-13 Thread Trustin Lee
On 9/8/07, Igor Grigoryev [EMAIL PROTECTED] wrote: I'm wondering why not set currentDecoder = null before throwing exceptions here (see below) ... if( result == MessageDecoder.OK ) { currentDecoder = null; return true; }

[jira] Resolved: (DIRMINA-436) DemuxingProtocolCodecFactory doesn't reset the current MessageDecoder when NOT_OK is returned.

2007-09-13 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-436?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Trustin Lee resolved DIRMINA-436. - Resolution: Fixed 'currentDecoder = null;' has been added as you suggested. Thank you!

[jira] Created: (DIRMINA-437) AccessControlException on 127.0.01 when using Mina in an Applet

2007-09-13 Thread Trustin Lee (JIRA)
AccessControlException on 127.0.01 when using Mina in an Applet --- Key: DIRMINA-437 URL: https://issues.apache.org/jira/browse/DIRMINA-437 Project: MINA Issue Type: Bug

[jira] Resolved: (DIRMINA-437) AccessControlException on 127.0.01 when using Mina in an Applet

2007-09-13 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Trustin Lee resolved DIRMINA-437. - Resolution: Fixed SocketSessionConfigImpl was catching IOExceptions only. Catching all

Re: AccessControlException on 127.0.01 when using Mina in an Applet

2007-09-13 Thread Trustin Lee
On 9/8/07, Fady [EMAIL PROTECTED] wrote: Hello Using Mina 1.1.2 from an Applet, trying to connect to a remote server (192.168.0.6 port 1139) from which the Applet originates. I get the following exception: Caused by: java.security.AccessControlException: access denied

[jira] Commented: (DIRMINA-435) NullPointerException in IoServiceListenerSupport

2007-09-13 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12527048 ] Trustin Lee commented on DIRMINA-435: - What's really odd is that the NPE is thrown from

[jira] Commented: (DIRMINA-435) NullPointerException in IoServiceListenerSupport

2007-09-13 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12527054 ] Trustin Lee commented on DIRMINA-435: - I can't reproduce the problem due to some test problem. [EMAIL

Re: Can someone apply the patches in 2 JIRAs for http filter?

2007-09-13 Thread Trustin Lee
Once done, you need to mark the issue as 'resolved', and then Jeff could close the issue. Thanks for the quick application of patch anyway! Cheers, Trustin On 9/7/07, Mark [EMAIL PROTECTED] wrote: done... -- ..Cheers Mark On 9/6/07, Jeff Genender [EMAIL PROTECTED] wrote: DIRMINA-433

[jira] Resolved: (DIRMINA-434) Cookies need to handle domain

2007-09-13 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-434?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Trustin Lee resolved DIRMINA-434. - Resolution: Fixed Assignee: Mark Webb Cookies need to handle domain

[jira] Commented: (DIRMINA-432) IoService method for writing Object to all the managed IoSession

2007-09-13 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-432?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12527056 ] Trustin Lee commented on DIRMINA-432: - I'd prefer MessageBroadcaster. And users will want to know which peer

Re: httpclient code and Multiple Branches in One Eclipse Workspace

2007-09-13 Thread Trustin Lee
On 9/6/07, Mark [EMAIL PROTECTED] wrote: I just performed the following steps for setting up a mina development environment: http://mina.apache.org/developer-guide.html#DeveloperGuide-WorkingwithMultipleBranchesinOneEclipseWorkspace The following subprojects are not in eclipse:

Re: client doesn't stop

2007-09-13 Thread kanful
I using SocketConnector() but , use applet is also Exception ,so refresh web ,it's applet can't start with Exception con't modifyThreads.. so in the client ,I use Socket ,and then refresh web ,applet cant restart succeed; but I can't send a object to the server use mina; I set

[jira] Commented: (DIRMINA-435) NullPointerException in IoServiceListenerSupport

2007-09-13 Thread Matthew Phillips (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12527062 ] Matthew Phillips commented on DIRMINA-435: -- Sorry, it seems I've broken the tests, I'm seeing that

Error adding ExecutorFilter in Spring

2007-09-13 Thread Decebal Suiu
Mina from trunk and Spring 2.0.6 Config file for spring look like: bean id=filterThreadPoolFactory class=org.apache.mina.integration.spring.ThreadPoolExecutorFactoryBean property name=corePoolSize value=${corePoolSize}/ property name=maxPoolSize

Re: Error adding ExecutorFilter in Spring

2007-09-13 Thread Maarten Bosteels
Hi Decebal, ExecutorFilter has no constructor that takes only an Executor and Spring doesn't understand that it could use this constructor: public ExecutorFilter(Executor executor, IoEventType... eventTypes) I will add a constructor that takes only an Executor Maarten On 9/13/07, Decebal

Re: Error adding ExecutorFilter in Spring

2007-09-13 Thread Decebal Suiu
It's works, thanks. It's strange that spring doesn't understand varargs. Is it possible to have a setSessionConfig() method in SocketAcceptor? (for IoC - now I use a factory in Spring) Maarten Bosteels-4 wrote: Please run svn up and let us know if the problem is fixed. Thanks Maarten

Re: AccessControlException on 127.0.01 when using Mina in an Applet

2007-09-13 Thread Fady
Hello Trustin, Yes, your patch fixes the problem. Thank you very much for your speedy reply. Fady -- View this message in context: http://www.nabble.com/AccessControlException-on-127.0.01-when-using-Mina-in-an-Applet-tf4405512s16868.html#a12654872 Sent from the Apache MINA Support Forum

http server for Mina today.

2007-09-13 Thread Jason Ish
Hello.. We have a server application built on Mina and are in need of an embedded web server to provide a basic debugging UI as well as a web based API (rest like today, soap is in our future). What are the options today? I know we can embed Tomcat, Jetty, etc. in our app (and have done so for

socketioprocessor problems

2007-09-13 Thread schithir
I am using Apache MINA 1.0.1 and if I have multiple sessions on a single SocketIOProcessor and one of the client disconnects suddenly, the second user is not getting any messages until the first user session disconnect is detected. 1) logon 2 users with configuring socketioprocessor count=1 from

Re: http server for Mina today.

2007-09-13 Thread Mark
ASyncWeb has not been migrated in yet. There is a JIRA entry however. -- ..Cheers Mark On 9/13/07, Jason Ish [EMAIL PROTECTED] wrote: Hello.. We have a server application built on Mina and are in need of an embedded web server to provide a basic debugging UI as well as a web based API

Re: http server for Mina today.

2007-09-13 Thread Michael Grundvig
Jetty is quite simple to integrate and requires only a couple of jars. You basically point it to a webapps directly and let it handle the rest. Mike - Original Message - From: Jason Ish [EMAIL PROTECTED] To: dev@mina.apache.org Sent: Thursday, September 13, 2007 9:45 AM Subject: http

Re: [jira] Commented: (DIRMINA-269) stop SocketConnector.connect()

2007-09-13 Thread UI Implementor
Tristan, I'm in agreement with the original poster -- in fact, I found this conversation by searching for mina connect cancel, because I wanted to know how to programmatically cancel a connection without waiting for a timeout. Being able to cancel at will turns out to be extremely useful when

ProtocolCodecFilter makes IoHandler be not called

2007-09-13 Thread jamesnot007
I tried running mina's example reverser and used jmeter to send some string to it. However, I did not get any response. After debuging mina, I found the reason is because the code line : cfg.getFilterChain().addLast( codec, new ProtocolCodecFilter(new

Re: ProtocolCodecFilter makes IoHandler be not called

2007-09-13 Thread Maarten Bosteels
did you end your string with a newline or carriage return + newline ? On 9/13/07, jamesnot007 [EMAIL PROTECTED] wrote: I tried running mina's example reverser and used jmeter to send some string to it. However, I did not get any response. After debuging mina, I found the reason is because

Re: slightly OT: how to write an NIO provider

2007-09-13 Thread mat
What does that mean? Mina's NIO performance is not good enough? On 9/13/07, Trustin Lee [EMAIL PROTECTED] wrote: On 9/11/07, Mark [EMAIL PROTECTED] wrote: I am interested in writing an NIO provider and wondered if anyone here has experience doing this. It would be great if we can provide

Re: ProtocolCodecFilter makes IoHandler be not called

2007-09-13 Thread jamesnot007
Maarten Bosteels-4 wrote: did you end your string with a newline or carriage return + newline ? Have nothing to say but thanks very much. On 9/13/07, jamesnot007 [EMAIL PROTECTED] wrote: I tried running mina's example reverser and used jmeter to send some string to it. However, I

Re: slf4j logging

2007-09-13 Thread guttikonda
Hi Even i am new to Apache mina and slf4j and i am trying to create a sample test program for apache mina.I could not access this slf4j website at all.And i dont know if there is any alternative other than using that slf4j jar.Please help me. Maarten Bosteels-4 wrote: Hi kwtan, see

Re: slf4j logging

2007-09-13 Thread Maarten Bosteels
On 9/13/07, guttikonda [EMAIL PROTECTED] wrote: Hi Even i am new to Apache mina and slf4j and i am trying to create a sample test program for apache mina.I could not access this slf4j website at all.And i dont know if there is any alternative other than using that slf4j jar.Please help

Re: slightly OT: how to write an NIO provider

2007-09-13 Thread Jeanfrancois Arcand
Hi Mark, Mark wrote: I am looking to write a provider that performs NIO on a Unix Domain Socket. This would be used to communicate between JVMs on the same box and do it in a way that is faster than TCP. The GlassFish project has one if you want to take a look at:

Re: [jira] Commented: (DIRMINA-269) stop SocketConnector.connect()

2007-09-13 Thread Trustin Lee
On 9/14/07, UI Implementor [EMAIL PROTECTED] wrote: Tristan, Trustin :) I'm in agreement with the original poster -- in fact, I found this conversation by searching for mina connect cancel, because I wanted to know how to programmatically cancel a connection without waiting for a timeout.

Re: socketioprocessor problems

2007-09-13 Thread Trustin Lee
Could you please post the full thread dump when SocketIOProcessor stalls? Trustin On 9/14/07, schithir [EMAIL PROTECTED] wrote: I am using Apache MINA 1.0.1 and if I have multiple sessions on a single SocketIOProcessor and one of the client disconnects suddenly, the second user is not