[jira] Commented: (GERONIMO-288) NIO Network code might send unordered messages
The following comment has been added to this issue: Author: Bulent Erdemir Created: Wed, 25 Aug 2004 12:37 AM Body: I was reading through the code and it seemed to me that there might be unordered messages. I don't have an exact evidence. In fact, that's why I used *might* while reporting the problem. Therefore, let's close this issue until I find a provable test case which is not very likely to happen based on your comment of 'buffers are associated with sockets, not with events'. Regards, Bulent Erdemir - View this comment: http://issues.apache.org/jira/browse/GERONIMO-288?page=comments#action_37442 - View the issue: http://issues.apache.org/jira/browse/GERONIMO-288 Here is an overview of the issue: - Key: GERONIMO-288 Summary: NIO Network code might send unordered messages Type: Bug Status: Open Priority: Major Project: Apache Geronimo Components: core Assignee: Alan Cabrera Reporter: Bulent Erdemir Created: Tue, 24 Aug 2004 8:15 AM Updated: Wed, 25 Aug 2004 12:37 AM Description: Hi, Geronimo network code might deliver messages out of order. To be more specific, the network code tries to write a buffer and if remaining()0, registers an OP_WRITE interest in order to drain the buffer contents later (when the channel is available for write). When the server is loaded, things can get hairy and we might receive another write event which might get scheduled to run before the OP_WRITE is processed. More specifically, SocketProtocol.serviceWrite reads: long count = socketChannel.write(sendBuffer); log.trace(Wrote + count); if (sendBuffer[i].hasRemaining()) { // not all was delivered in this call setup selector // so we setup to finish sending async. log.trace(+OP_WRITE + selectionKey); selectorManager.addInterestOps(selectionKey, SelectionKey.OP_WRITE); return; } Since there's no synchronization, in a situation where the selector returns with OP_WRITE (in SelectorManager) but not yet finds the chance to process the event, another thread loaded with a read event might sneak in and call the above lines, the result of which would be sending data out of order. Regards, Bulent Erdemir - JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira
[status] build: SUCCESSFUL, test: SUCCESSFUL | Linux 2.4.26, 2004-08-25
NIGHTLY BUILD/TEST Date: Wed Aug 25 05:30:24 EDT 2004 Kernel: Linux 2.4.26 Host: beaver.codehaus.org Java: 1.4.2_04-b05, mixed mode Maven: 1.0 CHECKOUT: incubator-geronimo BUILDING: incubator-geronimo BUILD SUCCESSFUL Total time: 22 minutes 40 seconds Finished at: Wed Aug 25 05:54:32 EDT 2004
IBiblio Jars
Hi I have been asked to update the jars in IBiblio by some MX4J user. If I remember well, they were setup there for the Geronimo build, so I'd like to ask how do I update/add jars there ? Thanks, Simon
Re: IBiblio Jars
On Wed, 25 Aug 2004, Bordet, Simone wrote: I have been asked to update the jars in IBiblio by some MX4J user. If I remember well, they were setup there for the Geronimo build, so I'd like to ask how do I update/add jars there ? What is happening here ? Apache files under the apache file are distributed from an apache.org site -ONLY-. That other people have copies or mirrors is great; but we should not rely on ASF files on non ASF controlled machines for the simple reason that if we get an IP, patent or other claim (no matter how frivoulous or false) we need to be able immediately suspend access to the first point in the distribution chain if needed and NOT rely on a third party. (I.e. cease distribution). If we are talking about 3rd party files under a 3rd party license then ignore this message of course :) Dw.
Re: IBiblio Jars
On 25 Aug 2004, at 11:01, Bordet, Simone wrote: Hi I have been asked to update the jars in IBiblio by some MX4J user. If I remember well, they were setup there for the Geronimo build, so I'd like to ask how do I update/add jars there ? Send me a private email and I'll update 'em for you - preferably with the jars already having the correct names with version numbers included etc. Dirk: this is for mx4j which is not an Apache project, its just used heavily by other Apache projects like Geronimo Tomcat etc. James --- http://radio.weblogs.com/0112098/
[jira] Closed: (GERONIMO-288) NIO Network code might send unordered messages
Message: The following issue has been closed. - View the issue: http://issues.apache.org/jira/browse/GERONIMO-288 Here is an overview of the issue: - Key: GERONIMO-288 Summary: NIO Network code might send unordered messages Type: Bug Status: Closed Priority: Major Resolution: CANNOT REPRODUCE Project: Apache Geronimo Components: core Assignee: Alan Cabrera Reporter: Bulent Erdemir Created: Tue, 24 Aug 2004 8:15 AM Updated: Wed, 25 Aug 2004 4:32 AM Description: Hi, Geronimo network code might deliver messages out of order. To be more specific, the network code tries to write a buffer and if remaining()0, registers an OP_WRITE interest in order to drain the buffer contents later (when the channel is available for write). When the server is loaded, things can get hairy and we might receive another write event which might get scheduled to run before the OP_WRITE is processed. More specifically, SocketProtocol.serviceWrite reads: long count = socketChannel.write(sendBuffer); log.trace(Wrote + count); if (sendBuffer[i].hasRemaining()) { // not all was delivered in this call setup selector // so we setup to finish sending async. log.trace(+OP_WRITE + selectionKey); selectorManager.addInterestOps(selectionKey, SelectionKey.OP_WRITE); return; } Since there's no synchronization, in a situation where the selector returns with OP_WRITE (in SelectorManager) but not yet finds the chance to process the event, another thread loaded with a read event might sneak in and call the above lines, the result of which would be sending data out of order. Regards, Bulent Erdemir - JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira
Re: Dynamic classpaths
On 25/08/2004 2:45 AM, John Woolsey wrote: I am trying to deploy my bean and I need to add the jar to the classpath (I know rewrite my classloader) so that I can see classes and interfaces in the jar. Just wondering for a good spot to look for that. - thanx - JAW Hi John, I do not understand exactly what you are trying to achieve. Yet, if you are trying to deploy (Enterprise Java)bean, then you just have to package them as you were used to do it. Having said that, Geronimo is not yet able to handle Class-Path entries defined in Manifest files. Hence, if you are trying to deploy an (Enterprise Java)bean using this mechanism, then you may face some ClassNotFoundException. Could you please provide more details on your needs? FYI, Dain speaks of Geronimo's class-loading strategy there: http://www.theserverside.com/talks/videos/DainSundstrom/dsl/interview.html I think that you should check it out to understand what it buys you as an end-user. Thanks, Gianny
Re: help ! security realms
On 25/08/2004 2:43 AM, Prem kalyan wrote: hi all, I am going through the security part of geronimo and the corresponding deployment descriptor elements.I have few questions in this regard 1. What are all the different security realms supported in geronimo. 2. What values does the attribute 'realm-name' in tag realm takes. Hi Prem, I think that you should have a look to a previous thread named Security providers. Alan is describing how the security layer is implemented and covers more or less these questions. 3. What is the equivalent in geronimo for filerealm in weblogic. If you have a look in var/security of a Geronimo installation, you will see for instance a users.properties file. This guy is to Geronimo what fileRealm.properties is for WebLogic (OK, the WebLogic one does not store the password in clear). Cheers, Gianny
Re: IBiblio Jars
On Wed, 25 Aug 2004 [EMAIL PROTECTED] wrote: Dirk: this is for mx4j which is not an Apache project, its just used heavily by other Apache projects like Geronimo Tomcat etc. Good - that is what I had hoped to hear. Dw.
RE: IBiblio Jars
-Original Message- From: Dirk-Willem van Gulik [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 25, 2004 8:28 AM To: [EMAIL PROTECTED] Subject: Re: IBiblio Jars On Wed, 25 Aug 2004 [EMAIL PROTECTED] wrote: Dirk: this is for mx4j which is not an Apache project, its just used heavily by other Apache projects like Geronimo Tomcat etc. Good - that is what I had hoped to hear. Why wouldn't Simone use this? http://maven.apache.org/repository-upload.html - Visit our Internet site at http://www.reuters.com Get closer to the financial markets with Reuters Messaging - for more information and to register, visit http://www.reuters.com/messaging Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Reuters Ltd.
RE: help ! security realms
Thanks Gianny. Prem, you should also visit irc://irc.freenode.net/Geronimo. This is where the Geronimo developers hang out. Regards, Alan -Original Message- From: Gianny Damour [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 25, 2004 8:04 AM To: [EMAIL PROTECTED] Subject: Re: help ! security realms On 25/08/2004 2:43 AM, Prem kalyan wrote: hi all, I am going through the security part of geronimo and the corresponding deployment descriptor elements.I have few questions in this regard 1. What are all the different security realms supported in geronimo. 2. What values does the attribute 'realm-name' in tag realm takes. Hi Prem, I think that you should have a look to a previous thread named Security providers. Alan is describing how the security layer is implemented and covers more or less these questions. 3. What is the equivalent in geronimo for filerealm in weblogic. If you have a look in var/security of a Geronimo installation, you will see for instance a users.properties file. This guy is to Geronimo what fileRealm.properties is for WebLogic (OK, the WebLogic one does not store the password in clear). Cheers, Gianny - Visit our Internet site at http://www.reuters.com Get closer to the financial markets with Reuters Messaging - for more information and to register, visit http://www.reuters.com/messaging Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Reuters Ltd.
Re: IBiblio Jars
On 25 Aug 2004, at 13:59, Alan Cabrera wrote: -Original Message- From: Dirk-Willem van Gulik [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 25, 2004 8:28 AM To: [EMAIL PROTECTED] Subject: Re: IBiblio Jars On Wed, 25 Aug 2004 [EMAIL PROTECTED] wrote: Dirk: this is for mx4j which is not an Apache project, its just used heavily by other Apache projects like Geronimo Tomcat etc. Good - that is what I had hoped to hear. Why wouldn't Simone use this? http://maven.apache.org/repository-upload.html That looks a good idea :) I actually talked offline with Simone about maybe having an mx4j specific repository. From reading the above URL, you still need someone to OK it right? James --- http://radio.weblogs.com/0112098/
RE: IBiblio Jars
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 25, 2004 4:56 PM To: [EMAIL PROTECTED] Subject: Re: IBiblio Jars On 25 Aug 2004, at 13:59, Alan Cabrera wrote: -Original Message- From: Dirk-Willem van Gulik [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 25, 2004 8:28 AM To: [EMAIL PROTECTED] Subject: Re: IBiblio Jars On Wed, 25 Aug 2004 [EMAIL PROTECTED] wrote: Dirk: this is for mx4j which is not an Apache project, its just used heavily by other Apache projects like Geronimo Tomcat etc. Good - that is what I had hoped to hear. Why wouldn't Simone use this? http://maven.apache.org/repository-upload.html That looks a good idea :) I actually talked offline with Simone about maybe having an mx4j specific repository. From reading the above URL, you still need someone to OK it right? I can't imagine that Simone would have a problem. Regards, Alan - Visit our Internet site at http://www.reuters.com Get closer to the financial markets with Reuters Messaging - for more information and to register, visit http://www.reuters.com/messaging Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Reuters Ltd.