[ 
https://issues.apache.org/jira/browse/DIRMINA-503?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12570800#action_12570800
 ] 

Cameron Taggart commented on DIRMINA-503:
-----------------------------------------

When I try to build MINA (latest revision 629575), I get a test failure for 
NioFileRegionTest. 

D:\projects-svn\mina>mvn -version
Maven version: 2.0.8
Java version: 1.6.0
OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"

-------------------------------------------------------------------------------
Test set: org.apache.mina.transport.socket.nio.NioFileRegionTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.24 sec <<< 
FAILURE!
testSendLargeFile(org.apache.mina.transport.socket.nio.NioFileRegionTest)  Time 
elapsed: 0.22 sec  <<< FAILURE!
junit.framework.AssertionFailedError: Written messages should be 1 (we wrote 
one file) expected:<1> but was:<0>
        at junit.framework.Assert.fail(Assert.java:47)
        at junit.framework.Assert.failNotEquals(Assert.java:277)
        at junit.framework.Assert.assertEquals(Assert.java:64)
        at junit.framework.Assert.assertEquals(Assert.java:130)
        at 
org.apache.mina.transport.AbstractFileRegionTest.testSendLargeFile(AbstractFileRegionTest.java:93)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at junit.framework.TestCase.runTest(TestCase.java:168)
        at junit.framework.TestCase.runBare(TestCase.java:134)
        at junit.framework.TestResult$1.protect(TestResult.java:110)
        at junit.framework.TestResult.runProtected(TestResult.java:128)
        at junit.framework.TestResult.run(TestResult.java:113)
        at junit.framework.TestCase.run(TestCase.java:124)
        at junit.framework.TestSuite.runTest(TestSuite.java:232)
        at junit.framework.TestSuite.run(TestSuite.java:227)
        at 
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
        at 
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
        at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
        at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:334)
        at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:980)



> NioProcessor.transferFile needs to catch IOException on Linux
> -------------------------------------------------------------
>
>                 Key: DIRMINA-503
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-503
>             Project: MINA
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.0-M1
>         Environment: Linux 2.6.22 Sun JDK 1.6.0_03
>            Reporter: Geoff Cadien
>            Assignee: Mike Heath
>            Priority: Critical
>             Fix For: 2.0.0-M1
>
>
> Under Linux FileChannel.transferTo throws an IOException when the socket send 
> buffer is full.  This causes the sending of a FileRegion to fail.  Here is 
> the bug report http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5103988  
> Even though it is marked as fixed it continues to exist.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to