synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Veithen <andreas.veit...@skynet.be>
Subject Re: svn commit: r694732 - in /synapse/trunk/java/modules: core/src/main/java/org/apache/synapse/util/ transports/src/main/java/org/apache/synapse/transport/mail/
Date Sat, 13 Sep 2008 07:26:49 GMT
Asankha,


For the test failures you are seeing, probably adding a Thread.sleep  
at the end of GreenMailTestEnvironment#setUp will do the trick.

Andreas

On 13 sept. 08, at 08:39, Asankha C. Perera wrote:

> Andreas
>> 1) The change to MessageHelper seems to be related SYNAPSE-309.  
>> This should have been fixed in AXIOM. In which case is there an  
>> exception?
> Sorry I did this off the 1.2 codebase, and thus missed the change in  
> the latest Axiom snapshot
>> 2) Why do we need an action "LEAVE" for a polling transport?
> To not delete or move after processing or failure. For example, if  
> something goes wrong during processing one may want to leave that  
> mail intact on the inbox
>> 3) We already had support for multipart/mixed. It had some serious  
>> problems, but now all the unit tests for multipart/mixed that  
>> worked before no longer work. This is a big regression. Worse, this  
>> regression breaks the interoperability between MailTransportSender  
>> and MailTransportListener when transport.mail.Format is set to  
>> Multipart (I will commit unit tests for this). This needs to be  
>> corrected or reverted ASAP since now the build fails because of  
>> test failures.
> I reverted my last commit locally, and reran with the latest tests,  
> but they still fail..
>
> Tests in error:
>    
> 0025 
> :test 
> = 
> AsyncXML 
> ,data 
> = 
> UTF8 
> ,messageType 
> = 
> SOAP12 
> ,server 
> = 
> greenmail 
> ,client 
> = 
> javamail 
> ,layout 
> = 
> multipart 
> ,endpoint 
> = 
> axis 
> (org 
> .apache.synapse.transport.testkit.tests.async.XMLAsyncMessageTestCase)
>    
> 0032 
> :test 
> = 
> EchoXML 
> ,data 
> = 
> UTF8 
> ,messageType 
> = 
> POX 
> ,server 
> = 
> greenmail 
> ,client 
> = 
> javamail 
> ,layout 
> = 
> flat 
> ,endpoint 
> = 
> axis 
> (org 
> .apache 
> .synapse 
> .transport.testkit.tests.echo.XMLRequestResponseMessageTestCase)
>    
> 0034 
> :test 
> = 
> AsyncTextPlain 
> ,data 
> = 
> ASCII 
> ,client 
> = 
> java 
> .net 
> ,endpoint 
> = 
> axis 
> (org.apache.synapse.transport.testkit.tests.async.TextPlainTestCase)
>    
> 0035 
> :test 
> = 
> AsyncTextPlain 
> ,data 
> = 
> UTF8 
> ,client 
> = 
> java 
> .net 
> ,endpoint 
> = 
> axis 
> (org.apache.synapse.transport.testkit.tests.async.TextPlainTestCase)
>    
> 0036 
> :test 
> = 
> AsyncTextPlain 
> ,data 
> = 
> Latin1 
> ,client 
> = 
> java 
> .net 
> ,endpoint 
> = 
> axis 
> (org.apache.synapse.transport.testkit.tests.async.TextPlainTestCase)
>    
> 0043 
> :test 
> = 
> AsyncBinary 
> ,client 
> = 
> java 
> .net 
> ,endpoint 
> =axis(org.apache.synapse.transport.testkit.tests.async.BinaryTestCase)
>    
> 0046 
> :test 
> = 
> REST 
> ,client 
> = 
> java 
> .net 
> ,endpoint 
> =axis(org.apache.synapse.transport.testkit.tests.async.RESTTestCase)
>
> I need to look a bit into the email tests to figure out what went  
> wrong.. Have you seen this (log attached)? Anyway, I will update the  
> code to be better compliant with the latest trunk changes next week.
>
> asankha
>
> -- 
> Asankha C. Perera
>
> WSO2 - http://wso2.org
> http://esbmagic.blogspot.com
>
> -------------------------------------------------------------------------------
> Test set: org.apache.synapse.transport.mail.MailTransportListenerTest
> -------------------------------------------------------------------------------
> Tests run: 32, Failures: 0, Errors: 2, Skipped: 0, Time elapsed:  
> 11.475 sec <<< FAILURE!
> 0025 
> :test 
> = 
> AsyncXML 
> ,data 
> = 
> UTF8 
> ,messageType 
> = 
> SOAP12 
> ,server 
> = 
> greenmail 
> ,client 
> = 
> javamail 
> ,layout 
> = 
> multipart 
> ,endpoint 
> = 
> axis 
> (org 
> .apache 
> .synapse.transport.testkit.tests.async.XMLAsyncMessageTestCase)   
> Time elapsed: 0.154 sec  <<< ERROR!
> javax.mail.MessagingException: Could not connect to SMTP host:  
> localhost, port: 7025;
>  nested exception is:
> 	java.net.ConnectException: Connection refused
> 	at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java: 
> 1282)
> 	at  
> com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java: 
> 370)
> 	at javax.mail.Service.connect(Service.java:275)
> 	at javax.mail.Service.connect(Service.java:156)
> 	at javax.mail.Service.connect(Service.java:105)
> 	at javax.mail.Transport.send0(Transport.java:168)
> 	at javax.mail.Transport.send(Transport.java:98)
> 	at  
> org 
> .apache 
> .synapse.transport.mail.MailClient.sendMessage(MailClient.java:83)
> 	at  
> org 
> .apache 
> .synapse 
> .transport.mail.MailAsyncClient.sendMessage(MailAsyncClient.java:33)
> 	at  
> org 
> .apache 
> .synapse 
> .transport.mail.MailAsyncClient.sendMessage(MailAsyncClient.java:27)
> 	at  
> org 
> .apache 
> .synapse 
> .transport 
> .testkit 
> .client 
> .AsyncTestClientAdapter.sendMessage(AsyncTestClientAdapter.java:45)
> 	at  
> org 
> .apache 
> .synapse 
> .transport 
> .testkit 
> .tests.async.AsyncMessageTestCase.runTest(AsyncMessageTestCase.java: 
> 49)
> 	at junit.framework.TestCase.runBare(TestCase.java:130)
> 	at junit.framework.TestResult$1.protect(TestResult.java:106)
> 	at junit.framework.TestResult.runProtected(TestResult.java:124)
> 	at junit.framework.TestResult.run(TestResult.java:109)
> 	at junit.framework.TestCase.run(TestCase.java:120)
> 	at junit.framework.TestSuite.runTest(TestSuite.java:230)
> 	at junit.framework.TestSuite.run(TestSuite.java:225)
> 	at  
> org 
> .apache 
> .synapse 
> .transport.testkit.TransportTestSuite.run(TransportTestSuite.java:192)
> 	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:585)
> 	at  
> org 
> .apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java: 
> 213)
> 	at  
> org 
> .apache 
> .maven 
> .surefire 
> .suite 
> .AbstractDirectoryTestSuite 
> .executeTestSet(AbstractDirectoryTestSuite.java:138)
> 	at  
> org 
> .apache 
> .maven 
> .surefire 
> .suite 
> .AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java: 
> 125)
> 	at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
> 	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:585)
> 	at  
> org 
> .apache 
> .maven 
> .surefire 
> .booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
> 	at  
> org 
> .apache 
> .maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
> Caused by: java.net.ConnectException: Connection refused
> 	at java.net.PlainSocketImpl.socketConnect(Native Method)
> 	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
> 	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java: 
> 195)
> 	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
> 	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
> 	at java.net.Socket.connect(Socket.java:520)
> 	at java.net.Socket.connect(Socket.java:470)
> 	at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java: 
> 232)
> 	at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:189)
> 	at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java: 
> 1250)
> 	... 33 more
> 	... 33 more
>
> 0032 
> :test 
> = 
> EchoXML 
> ,data 
> = 
> UTF8 
> ,messageType 
> = 
> POX 
> ,server 
> = 
> greenmail 
> ,client 
> = 
> javamail 
> ,layout 
> = 
> flat 
> ,endpoint 
> = 
> axis 
> (org 
> .apache 
> .synapse 
> .transport.testkit.tests.echo.XMLRequestResponseMessageTestCase)   
> Time elapsed: 0.03 sec  <<< ERROR!
> java.lang.reflect.InvocationTargetException
> 	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:585)
> 	at org.apache.synapse.transport.testkit.tests.TestResource 
> $Initializer.execute(TestResource.java:48)
> 	at  
> org 
> .apache 
> .synapse 
> .transport.testkit.tests.TestResource.setUp(TestResource.java:154)
> 	at  
> org 
> .apache 
> .synapse 
> .transport.testkit.tests.TestResourceSet.setUp(TestResourceSet.java: 
> 152)
> 	at  
> org 
> .apache 
> .synapse 
> .transport.testkit.tests.TestResourceSet.setUp(TestResourceSet.java: 
> 133)
> 	at  
> org 
> .apache 
> .synapse 
> .transport 
> .testkit.tests.TransportTestCase.setUp(TransportTestCase.java:107)
> 	at junit.framework.TestCase.runBare(TestCase.java:128)
> 	at junit.framework.TestResult$1.protect(TestResult.java:106)
> 	at junit.framework.TestResult.runProtected(TestResult.java:124)
> 	at junit.framework.TestResult.run(TestResult.java:109)
> 	at junit.framework.TestCase.run(TestCase.java:120)
> 	at junit.framework.TestSuite.runTest(TestSuite.java:230)
> 	at junit.framework.TestSuite.run(TestSuite.java:225)
> 	at  
> org 
> .apache 
> .synapse 
> .transport.testkit.TransportTestSuite.run(TransportTestSuite.java:192)
> 	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:585)
> 	at  
> org 
> .apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java: 
> 213)
> 	at  
> org 
> .apache 
> .maven 
> .surefire 
> .suite 
> .AbstractDirectoryTestSuite 
> .executeTestSet(AbstractDirectoryTestSuite.java:138)
> 	at  
> org 
> .apache 
> .maven 
> .surefire 
> .suite 
> .AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java: 
> 125)
> 	at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
> 	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:585)
> 	at  
> org 
> .apache 
> .maven 
> .surefire 
> .booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
> 	at  
> org 
> .apache 
> .maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
> Caused by: javax.mail.MessagingException: Connect failed;
>  nested exception is:
> 	java.net.ConnectException: Connection refused
> 	at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:148)
> 	at javax.mail.Service.connect(Service.java:275)
> 	at javax.mail.Service.connect(Service.java:156)
> 	at javax.mail.Service.connect(Service.java:176)
> 	at  
> org 
> .apache 
> .synapse 
> .transport 
> .mail.MailRequestResponseClient.setUp(MailRequestResponseClient.java: 
> 54)
> 	... 31 more
> Caused by: java.net.ConnectException: Connection refused
> 	at java.net.PlainSocketImpl.socketConnect(Native Method)
> 	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
> 	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java: 
> 195)
> 	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
> 	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
> 	at java.net.Socket.connect(Socket.java:520)
> 	at java.net.Socket.connect(Socket.java:470)
> 	at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java: 
> 232)
> 	at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:189)
> 	at com.sun.mail.pop3.Protocol.<init>(Protocol.java:81)
> 	at com.sun.mail.pop3.POP3Store.getPort(POP3Store.java:201)
> 	at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:144)
> 	... 35 more
> 	... 35 more
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
> For additional commands, e-mail: dev-help@synapse.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


Mime
View raw message