[jira] Updated: (DIRMINA-748) CachedBufferAllocator does not free buffers when maxCachedBufferSize=0
[ https://issues.apache.org/jira/browse/DIRMINA-748?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] matteodg updated DIRMINA-748: - Attachment: DIRMINA-748.patch Patch file for fixing bug in core/src/main/java/org/apache/mina/core/buffer/CachedBufferAllocator.java CachedBufferAllocator does not free buffers when maxCachedBufferSize=0 -- Key: DIRMINA-748 URL: https://issues.apache.org/jira/browse/DIRMINA-748 Project: MINA Issue Type: Bug Components: Core Affects Versions: 2.0.0-RC1 Reporter: matteodg Attachments: DIRMINA-748.patch The CachedBufferAllocator created with maxCachedBufferSize=0 always allocates new buffers instead of reusing them. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Created: (DIRMINA-748) CachedBufferAllocator does not free buffers when maxCachedBufferSize=0
CachedBufferAllocator does not free buffers when maxCachedBufferSize=0 -- Key: DIRMINA-748 URL: https://issues.apache.org/jira/browse/DIRMINA-748 Project: MINA Issue Type: Bug Components: Core Affects Versions: 2.0.0-RC1 Reporter: matteodg Attachments: DIRMINA-748.patch The CachedBufferAllocator created with maxCachedBufferSize=0 always allocates new buffers instead of reusing them. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
Re: [sshd] ChannelSession NPE with a subsystem command, trying to implement sftp
I applied that patch and I was able to login and do a ls. Thanks for the quick turn around. On Fri, Nov 13, 2009 at 11:06 AM, Guillaume Nodet gno...@gmail.com wrote: I've also worked on a *very basic* and initial support for SFTP if you want to have a look at it. https://issues.apache.org/jira/browse/SSHD-55 On Thu, Nov 12, 2009 at 08:42, Guillaume Nodet gno...@gmail.com wrote: Subsystems are not really supported yet. The error you see is already reported at https://issues.apache.org/jira/browse/SSHD-48 I think. I'll fix it asap. On Wed, Nov 11, 2009 at 15:57, Kyle Miller k...@kylemiller.com wrote: I am using mina sshd version 0.2.0. I created a simple main, and sftp command factory and command and tried to connect to my daemon with my OS X command line sftp client, and a few other graphical clients and it all ends the same way. With a NPE in the ChannelSession.doWriteData line 260. After debugging through the code the SFTP commands come in with a subsystem type, when that happens the shellIn and shellOut streams in ChannelSession remain null hence the NPE. I have included the stack trace as well as my classes to demonstrate the issue. 2009-11-11 08:50:45,710 [NioProcessor-2] WARN org.apache.sshd.server.session.ServerSession - Exception caught java.lang.NullPointerException at org.apache.sshd.server.channel.ChannelSession.doWriteData(ChannelSession.java:260) at org.apache.sshd.common.channel.AbstractChannel.handleData(AbstractChannel.java:116) at org.apache.sshd.common.session.AbstractSession.channelData(AbstractSession.java:863) at org.apache.sshd.server.session.ServerSession.handleMessage(ServerSession.java:195) at org.apache.sshd.common.session.AbstractSession.decode(AbstractSession.java:490) at org.apache.sshd.common.session.AbstractSession.messageReceived(AbstractSession.java:214) at org.apache.sshd.common.AbstractSessionIoHandler.messageReceived(AbstractSessionIoHandler.java:58) at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:721) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:433) at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:47) at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:801) at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:119) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:433) at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:425) at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:603) at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:563) at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:552) at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$400(AbstractPollingIoProcessor.java:56) at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:891) at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:637) import org.apache.sshd.SshServer; import org.apache.sshd.server.keyprovider.SimpleGeneratorHostKeyProvider; import org.apache.sshd.util.BogusPasswordAuthenticator; import org.apache.sshd.util.EchoShellFactory; public class Sftpd { public static void main(String[] args) throws IOException { SshServer sshd = SshServer.setUpDefaultServer(); sshd.setKeyPairProvider(new SimpleGeneratorHostKeyProvider(hostkey.ser)); sshd.setPasswordAuthenticator(new BogusPasswordAuthenticator()); sshd.setShellFactory(new EchoShellFactory()); //sshd.setShellFactory(new ProcessShellFactory(new String[] { /bin/sh, -i, -l })); sshd.setPort(); sshd.setCommandFactory(new SftpCommandFactory()); sshd.start(); } } == import org.apache.sshd.server.CommandFactory; import org.apache.sshd.server.command.UnknownCommand; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class SftpCommandFactory implements CommandFactory { private final Logger log = LoggerFactory.getLogger(SftpCommandFactory.class); public
Build failed in Hudson: vysper-trunk-jdk1.6-ibm-u buntu » Apache Vysper Non-blocking XML parser #181
See http://hudson.zones.apache.org/hudson/job/vysper-trunk-jdk1.6-ibm-ubuntu/org.apache.vysper$nbxml/181/changes Changes: [ngn] Fix broken escaping of reserved characters in XML text -- [INFO] [INFO] Building Apache Vysper Non-blocking XML parser [INFO]task-segment: [clean, install] [INFO] [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: http://hudson.zones.apache.org/hudson/job/vysper-trunk-jdk1.6-ibm-ubuntu/org.apache.vysper$nbxml/ws/target (included: [**], excluded: []) [INFO] [remote-resources:process {execution: default}] [INFO] [resources:resources {execution: default-resources}] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory http://hudson.zones.apache.org/hudson/job/vysper-trunk-jdk1.6-ibm-ubuntu/org.apache.vysper$nbxml/ws/src/main/resources [INFO] Copying 2 resources [INFO] [compiler:compile {execution: default-compile}] [INFO] Compiling 14 source files to http://hudson.zones.apache.org/hudson/job/vysper-trunk-jdk1.6-ibm-ubuntu/org.apache.vysper$nbxml/ws/target/classes [INFO] [resources:testResources {execution: default-testResources}] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory http://hudson.zones.apache.org/hudson/job/vysper-trunk-jdk1.6-ibm-ubuntu/org.apache.vysper$nbxml/ws/src/test/resources [INFO] Copying 2 resources [INFO] [compiler:testCompile {execution: default-testCompile}] [INFO] Compiling 3 source files to http://hudson.zones.apache.org/hudson/job/vysper-trunk-jdk1.6-ibm-ubuntu/org.apache.vysper$nbxml/ws/target/test-classes [INFO] [surefire:test {execution: default-test}] [INFO] Surefire report directory: http://hudson.zones.apache.org/hudson/job/vysper-trunk-jdk1.6-ibm-ubuntu/org.apache.vysper$nbxml/ws/target/surefire-reports --- T E S T S --- Running org.apache.vysper.xmpp.xmlfragment.AttributeTestCase Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.037 sec Running org.apache.vysper.xmpp.xmlfragment.RendererTestCase Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.029 sec Running org.apache.vysper.xmpp.xmlfragment.XMLElementTestCase Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.019 sec Results : Tests run: 27, Failures: 0, Errors: 0, Skipped: 0 [HUDSON] Recording test results [INFO] [jar:jar {execution: default-jar}] [INFO] Building jar: http://hudson.zones.apache.org/hudson/job/vysper-trunk-jdk1.6-ibm-ubuntu/org.apache.vysper$nbxml/ws/target/nbxml-1.0.0-SNAPSHOT.jar [INFO] [install:install {execution: default-install}] [INFO] Installing http://hudson.zones.apache.org/hudson/job/vysper-trunk-jdk1.6-ibm-ubuntu/org.apache.vysper$nbxml/ws/target/nbxml-1.0.0-SNAPSHOT.jar to /home/hudson/.m2/repository/org/apache/vysper/nbxml/1.0.0-SNAPSHOT/nbxml-1.0.0-SNAPSHOT.jar [HUDSON] Archiving http://hudson.zones.apache.org/hudson/job/vysper-trunk-jdk1.6-ibm-ubuntu/org.apache.vysper$nbxml/ws/pom.xml to /export/home/hudson/hudson/jobs/vysper-trunk-jdk1.6-ibm-ubuntu/modules/org.apache.vysper$nbxml/builds/2009-11-17_22-06-08/archive/org.apache.vysper/nbxml/1.0.0-SNAPSHOT/pom.xml [HUDSON] Archiving http://hudson.zones.apache.org/hudson/job/vysper-trunk-jdk1.6-ibm-ubuntu/org.apache.vysper$nbxml/ws/target/nbxml-1.0.0-SNAPSHOT.jar to /export/home/hudson/hudson/jobs/vysper-trunk-jdk1.6-ibm-ubuntu/modules/org.apache.vysper$nbxml/builds/2009-11-17_22-06-08/archive/org.apache.vysper/nbxml/1.0.0-SNAPSHOT/nbxml-1.0.0-SNAPSHOT.jar [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error installing artifact: Failed to copy full contents from http://hudson.zones.apache.org/hudson/job/vysper-trunk-jdk1.6-ibm-ubuntu/org.apache.vysper$nbxml/ws/target/nbxml-1.0.0-SNAPSHOT.jar to /home/hudson/.m2/repository/org/apache/vysper/nbxml/1.0.0-SNAPSHOT/nbxml-1.0.0-SNAPSHOT.jar [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 28 seconds [INFO] Finished at: Tue Nov 17 22:06:59 UTC 2009 [INFO] Final Memory: 57M/100M [INFO] Waiting for Hudson to finish collecting data
Build failed in Hudson: vysper-trunk-jdk1.6-ibm-ubuntu #181
See http://hudson.zones.apache.org/hudson/job/vysper-trunk-jdk1.6-ibm-ubuntu/181/changes Changes: [ngn] Fix broken escaping of reserved characters in XML text -- A SCM change trigger started this job Building remotely on minerva.apache.org (Ubuntu) Updating https://svn.apache.org/repos/asf/mina/sandbox/vysper/trunk U nbxml/src/test/java/org/apache/vysper/xmpp/xmlfragment/RendererTestCase.java U nbxml/src/main/java/org/apache/vysper/xmpp/xmlfragment/Renderer.java At revision 881563 Parsing POMs ===[HUDSON REMOTING CAPACITY]===channel started Executing Maven: -B -f http://hudson.zones.apache.org/hudson/job/vysper-trunk-jdk1.6-ibm-ubuntu/ws/trunk/pom.xml clean install [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] Apache Vysper [INFO] Apache Vysper Spec compliance [INFO] Apache Vysper Non-blocking XML parser [INFO] Apache Vysper Server [INFO] Apache Vysper Core [INFO] Apache Vysper Extensions [INFO] Apache Vysper XEP-0060 Publish-Subscribe [INFO] Apache Vysper XEP-0045 Multi-user chat [INFO] [INFO] Building Apache Vysper [INFO]task-segment: [clean, install] [INFO] [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: http://hudson.zones.apache.org/hudson/job/vysper-trunk-jdk1.6-ibm-ubuntu/ws/trunk/target (included: [**], excluded: []) [INFO] Setting property: classpath.resource.loader.class = 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on = 'false'. [INFO] Setting property: resource.loader = 'classpath'. [INFO] Setting property: resource.manager.logwhenfound = 'false'. [INFO] [remote-resources:process {execution: default}] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] [install:install {execution: default-install}] [INFO] Installing http://hudson.zones.apache.org/hudson/job/vysper-trunk-jdk1.6-ibm-ubuntu/ws/trunk/pom.xml to /home/hudson/.m2/repository/org/apache/vysper/vysper-parent/1.0.0-SNAPSHOT/vysper-parent-1.0.0-SNAPSHOT.pom [HUDSON] Archiving http://hudson.zones.apache.org/hudson/job/vysper-trunk-jdk1.6-ibm-ubuntu/ws/trunk/pom.xml to /export/home/hudson/hudson/jobs/vysper-trunk-jdk1.6-ibm-ubuntu/modules/org.apache.vysper$vysper-parent/builds/2009-11-17_22-06-08/archive/org.apache.vysper/vysper-parent/1.0.0-SNAPSHOT/pom.xml [HUDSON] Archiving /home/hudson/.m2/repository/org/apache/vysper/vysper-parent/1.0.0-SNAPSHOT/vysper-parent-1.0.0-SNAPSHOT.pom to /export/home/hudson/hudson/jobs/vysper-trunk-jdk1.6-ibm-ubuntu/modules/org.apache.vysper$vysper-parent/builds/2009-11-17_22-06-08/archive/org.apache.vysper/vysper-parent/1.0.0-SNAPSHOT/vysper-parent-1.0.0-SNAPSHOT.pom [INFO] [INFO] Building Apache Vysper Spec compliance [INFO]task-segment: [clean, install] [INFO] [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: http://hudson.zones.apache.org/hudson/job/vysper-trunk-jdk1.6-ibm-ubuntu/ws/trunk/speccompliance/target (included: [**], excluded: []) [INFO] [remote-resources:process {execution: default}] [INFO] [resources:resources {execution: default-resources}] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory http://hudson.zones.apache.org/hudson/job/vysper-trunk-jdk1.6-ibm-ubuntu/ws/trunk/speccompliance/src/main/resources [INFO] Copying 2 resources [INFO] [compiler:compile {execution: default-compile}] [INFO] Compiling 3 source files to http://hudson.zones.apache.org/hudson/job/vysper-trunk-jdk1.6-ibm-ubuntu/ws/trunk/speccompliance/target/classes [INFO] [resources:testResources {execution: default-testResources}] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory http://hudson.zones.apache.org/hudson/job/vysper-trunk-jdk1.6-ibm-ubuntu/ws/trunk/speccompliance/src/test/resources [INFO] Copying 2 resources [INFO] [compiler:testCompile {execution: default-testCompile}] [INFO] No sources to compile [INFO] [surefire:test {execution: default-test}] [INFO] Surefire report directory: http://hudson.zones.apache.org/hudson/job/vysper-trunk-jdk1.6-ibm-ubuntu/ws/trunk/speccompliance/target/surefire-reports --- T E S T S --- There are no tests to run. Results : Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 [HUDSON] Recording test results [INFO] [jar:jar {execution: default-jar}] [INFO] Building jar: http://hudson.zones.apache.org/hudson/job/vysper-trunk-jdk1.6-ibm-ubuntu/ws/trunk/speccompliance/target/spec-compliance-1.0.0-SNAPSHOT.jar [INFO] [install:install
Hudson build is back to normal: vysper-trunk-jdk1.6-i bm-ubuntu » Apache Vysper Non-blocking XML parser #182
See http://hudson.zones.apache.org/hudson/job/vysper-trunk-jdk1.6-ibm-ubuntu/org.apache.vysper$nbxml/182/
Hudson build is back to normal: vysper-trunk-jdk1.6-ibm-ubuntu #182
See http://hudson.zones.apache.org/hudson/job/vysper-trunk-jdk1.6-ibm-ubuntu/182/
AHC api
I want to flesh out a new async http client. I've got my own ideas for the api and would like to check them in to solicit comments. Where would be a good place to put this? Regards, Alan
Re: AHC api
Looks like you have the right list? ;-) Jeff On Nov 17, 2009, at 7:23 PM, Alan D. Cabrera wrote: I want to flesh out a new async http client. I've got my own ideas for the api and would like to check them in to solicit comments. Where would be a good place to put this? Regards, Alan
Re: AHC api
Heh, heh. I should have been more explicit. I have a set of interfaces and would like to check them in for people to throw darts at. Regards, Alan On Nov 17, 2009, at 7:57 PM, Jeff Genender wrote: Looks like you have the right list? ;-) Jeff On Nov 17, 2009, at 7:23 PM, Alan D. Cabrera wrote: I want to flesh out a new async http client. I've got my own ideas for the api and would like to check them in to solicit comments. Where would be a good place to put this? Regards, Alan
Re: AHC api
Why not sandbox (i.e. make a place in the sandbox) the idea and send a pointer to the list? I look forward to seeing what you have! Jeff On Nov 17, 2009, at 9:00 PM, Alan D. Cabrera wrote: Heh, heh. I should have been more explicit. I have a set of interfaces and would like to check them in for people to throw darts at. Regards, Alan On Nov 17, 2009, at 7:57 PM, Jeff Genender wrote: Looks like you have the right list? ;-) Jeff On Nov 17, 2009, at 7:23 PM, Alan D. Cabrera wrote: I want to flesh out a new async http client. I've got my own ideas for the api and would like to check them in to solicit comments. Where would be a good place to put this? Regards, Alan
Re: AHC api
No Karma. :( Regards, Alan On Nov 17, 2009, at 8:29 PM, Jeff Genender wrote: Why not sandbox (i.e. make a place in the sandbox) the idea and send a pointer to the list? I look forward to seeing what you have! Jeff On Nov 17, 2009, at 9:00 PM, Alan D. Cabrera wrote: Heh, heh. I should have been more explicit. I have a set of interfaces and would like to check them in for people to throw darts at. Regards, Alan On Nov 17, 2009, at 7:57 PM, Jeff Genender wrote: Looks like you have the right list? ;-) Jeff On Nov 17, 2009, at 7:23 PM, Alan D. Cabrera wrote: I want to flesh out a new async http client. I've got my own ideas for the api and would like to check them in to solicit comments. Where would be a good place to put this? Regards, Alan
Re: AHC api
On Wed, Nov 18, 2009 at 9:59 AM, Jeff Genender jgenen...@savoirtech.com wrote: Why not sandbox (i.e. make a place in the sandbox) the idea and send a pointer to the list? I look forward to seeing what you have! Jeff On Nov 17, 2009, at 9:00 PM, Alan D. Cabrera wrote: Heh, heh. I should have been more explicit. I have a set of interfaces and would like to check them in for people to throw darts at. sandbox is the right place, but don't think Alan can put code in there? I would recommend creating a JIRA and attach the code to it, and one of the committers can add the code to sandbox like we did for protocolbuffs codecs. thanks ashish
Re: AHC api
On Nov 17, 2009, at 8:37 PM, Ashish wrote: On Wed, Nov 18, 2009 at 9:59 AM, Jeff Genender jgenen...@savoirtech.com wrote: Why not sandbox (i.e. make a place in the sandbox) the idea and send a pointer to the list? I look forward to seeing what you have! Jeff On Nov 17, 2009, at 9:00 PM, Alan D. Cabrera wrote: Heh, heh. I should have been more explicit. I have a set of interfaces and would like to check them in for people to throw darts at. sandbox is the right place, but don't think Alan can put code in there? I would recommend creating a JIRA and attach the code to it, and one of the committers can add the code to sandbox like we did for protocolbuffs codecs. Works for me. Regards, Alan
Re: AHC api
Alan D. Cabrera wrote: No Karma. :( Let's vote ! -- -- cordialement, regards, Emmanuel Lécharny www.iktek.com directory.apache.org