Re: Current unit test behaviour for trunk using Java 7 on Solaris

2012-07-13 Thread Rainer Jung

On 12.07.2012 22:59, Filip Hanik Mailing Lists wrote:

and properly fixed in 
http://svn.apache.org/viewvc?view=revisionrevision=1360929


Confirmed, no more unit test failures for trunk and Java 7 currently.

Great :)

Regards,

Rainer

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



RE: Current unit test behaviour for trunk using Java 7 on Solaris

2012-07-12 Thread Filip Hanik (mailing lists)
Fixed in 
http://svn.apache.org/viewvc?view=revisionrevision=1360917

DBCP should compile as well as JDBC-POOL with 1.7 now too

 -Original Message-
 From: Rainer Jung [mailto:rainer.j...@kippdata.de]
 Sent: Thursday, July 12, 2012 6:33 AM
 To: Tomcat Developers List
 Subject: Current unit test behaviour for trunk using Java 7 on Solaris
 
 Versions
 
 
 TC trunk r1360616 tested with Java 1.7.0_05 on Solaris 10 Sparc.
 
 Compiled everything with the same JVM version using
 
 compile.source=1.7
 compile.target=1.7
 
 except for DBCP which was compiled with Java 6.
 
 Unit test failures
 ==
 
 One test failure, namely org.apache.catalina.websocket.TestWebSocket for
 NIO:
 
 Testcase: testKey took 4.628 sec
 Testcase: testBug53339 took 0.262 sec
 Testcase: testSimple took 0.585 sec
  FAILED
 
 junit.framework.AssertionFailedError:
  at
 org.apache.catalina.websocket.TestWebSocket$WebSocketClient.readMessage(
 TestWebSocket.java:419)
  at
 org.apache.catalina.websocket.TestWebSocket$WebSocketClient.access$300(T
 estWebSocket.java:343)
  at
 org.apache.catalina.websocket.TestWebSocket.testSimple(TestWebSocket.jav
 a:99)
 
 Testcase: testNoConnection took 0.555 sec
 Testcase: testNoUpgrade took 0.425 sec
 Testcase: testDetectWrongVersion took 0.377 sec
 
 possibly due to the following exception which is not happening for BIO
 and APR (negative Timeout):
 
  [junit] 12-Jul-2012 13:19:24.329 INFO [main]
 org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler
 [http-nio-127.0.0.1-auto-2-48250]
  [junit] 12-Jul-2012 13:19:24.330 SEVERE
 [http-nio-127.0.0.1-auto-2-exec-1]
 org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process
 null
  [junit]  java.lang.IllegalArgumentException: Negative timeout
  [junit] at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:97)
  [junit] at
 org.apache.tomcat.util.net.NioSelectorPool.read(NioSelectorPool.java:267
 )
  [junit] at
 org.apache.tomcat.util.net.NioSelectorPool.read(NioSelectorPool.java:227
 )
  [junit] at
 org.apache.coyote.http11.upgrade.UpgradeNioProcessor.readSocket(UpgradeN
 ioProcessor.java:139)
  [junit] at
 org.apache.coyote.http11.upgrade.UpgradeNioProcessor.read(UpgradeNioProc
 essor.java:112)
  [junit] at
 org.apache.catalina.websocket.WsFrame.nextFrame(WsFrame.java:213)
  [junit] at
 org.apache.catalina.websocket.WsInputStream.nextFrame(WsInputStream.java
 :68)
  [junit] at
 org.apache.catalina.websocket.StreamInbound.onData(StreamInbound.java:11
 7)
  [junit] at
 org.apache.coyote.http11.upgrade.UpgradeProcessor.upgradeDispatch(Upgrad
 eProcessor.java:83)
  [junit] at
 org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(Abs
 tractProtocol.java:583)
  [junit] at
 org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.proce
 ss(Http11NioProtocol.java:223)
  [junit] at
 org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.j
 ava:1676)
  [junit] at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.jav
 a:1110)
  [junit] at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.ja
 va:603)
  [junit] at java.lang.Thread.run(Thread.java:722)
  [junit]
  [junit] 12-Jul-2012 13:19:24.381 INFO [main]
 org.apache.catalina.core.StandardService.stopInternal Stopping service
 Tomcat
 
 ...
 
  [junit] 12-Jul-2012 13:19:24.769 INFO [main]
 org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler
 [http-nio-127.0.0.1-auto-3-48253]
  [junit] 12-Jul-2012 13:19:24.795 SEVERE
 [http-nio-127.0.0.1-auto-3-exec-1]
 org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process
 null
  [junit]  java.lang.IllegalArgumentException: Negative timeout
  [junit] at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:97)
  [junit] at
 org.apache.tomcat.util.net.NioSelectorPool.read(NioSelectorPool.java:267
 )
  [junit] at
 org.apache.tomcat.util.net.NioSelectorPool.read(NioSelectorPool.java:227
 )
  [junit] at
 org.apache.coyote.http11.upgrade.UpgradeNioProcessor.readSocket(UpgradeN
 ioProcessor.java:139)
  [junit] at
 org.apache.coyote.http11.upgrade.UpgradeNioProcessor.read(UpgradeNioProc
 essor.java:98)
  [junit] at
 org.apache.catalina.websocket.WsFrame.blockingRead(WsFrame.java:149)
  [junit] at
 org.apache.catalina.websocket.WsFrame.init(WsFrame.java:66)
  [junit] at
 org.apache.catalina.websocket.WsFrame.nextFrame(WsFrame.java:215)
  [junit] at
 org.apache.catalina.websocket.WsInputStream.nextFrame(WsInputStream.java
 :68)
  [junit] at
 org.apache.catalina.websocket.WsInputStream.makePayloadDataAvailable(WsI
 nputStream.java:136)
  [junit] at
 org.apache.catalina.websocket.WsInputStream.read(WsInputStream.java:103)
  [junit] at
 

Re: Current unit test behaviour for trunk using Java 7 on Solaris

2012-07-12 Thread Filip Hanik Mailing Lists
and properly fixed in 
http://svn.apache.org/viewvc?view=revisionrevision=1360929

- Original Message -
 From: Filip Hanik (mailing lists) devli...@hanik.com
 To: Tomcat Developers List dev@tomcat.apache.org
 Sent: Thursday, July 12, 2012 2:43:55 PM
 Subject: RE: Current unit test behaviour for trunk using Java 7 on Solaris
 
 Fixed in
 http://svn.apache.org/viewvc?view=revisionrevision=1360917
 
 DBCP should compile as well as JDBC-POOL with 1.7 now too
 
  -Original Message-
  From: Rainer Jung [mailto:rainer.j...@kippdata.de]
  Sent: Thursday, July 12, 2012 6:33 AM
  To: Tomcat Developers List
  Subject: Current unit test behaviour for trunk using Java 7 on
  Solaris
  
  Versions
  
  
  TC trunk r1360616 tested with Java 1.7.0_05 on Solaris 10 Sparc.
  
  Compiled everything with the same JVM version using
  
  compile.source=1.7
  compile.target=1.7
  
  except for DBCP which was compiled with Java 6.
  
  Unit test failures
  ==
  
  One test failure, namely
  org.apache.catalina.websocket.TestWebSocket for
  NIO:
  
  Testcase: testKey took 4.628 sec
  Testcase: testBug53339 took 0.262 sec
  Testcase: testSimple took 0.585 sec
   FAILED
  
  junit.framework.AssertionFailedError:
   at
  org.apache.catalina.websocket.TestWebSocket$WebSocketClient.readMessage(
  TestWebSocket.java:419)
   at
  org.apache.catalina.websocket.TestWebSocket$WebSocketClient.access$300(T
  estWebSocket.java:343)
   at
  org.apache.catalina.websocket.TestWebSocket.testSimple(TestWebSocket.jav
  a:99)
  
  Testcase: testNoConnection took 0.555 sec
  Testcase: testNoUpgrade took 0.425 sec
  Testcase: testDetectWrongVersion took 0.377 sec
  
  possibly due to the following exception which is not happening for
  BIO
  and APR (negative Timeout):
  
   [junit] 12-Jul-2012 13:19:24.329 INFO [main]
  org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler
  [http-nio-127.0.0.1-auto-2-48250]
   [junit] 12-Jul-2012 13:19:24.330 SEVERE
  [http-nio-127.0.0.1-auto-2-exec-1]
  org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process
  null
   [junit]  java.lang.IllegalArgumentException: Negative timeout
   [junit] at
   sun.nio.ch.SelectorImpl.select(SelectorImpl.java:97)
   [junit] at
  org.apache.tomcat.util.net.NioSelectorPool.read(NioSelectorPool.java:267
  )
   [junit] at
  org.apache.tomcat.util.net.NioSelectorPool.read(NioSelectorPool.java:227
  )
   [junit] at
  org.apache.coyote.http11.upgrade.UpgradeNioProcessor.readSocket(UpgradeN
  ioProcessor.java:139)
   [junit] at
  org.apache.coyote.http11.upgrade.UpgradeNioProcessor.read(UpgradeNioProc
  essor.java:112)
   [junit] at
  org.apache.catalina.websocket.WsFrame.nextFrame(WsFrame.java:213)
   [junit] at
  org.apache.catalina.websocket.WsInputStream.nextFrame(WsInputStream.java
  :68)
   [junit] at
  org.apache.catalina.websocket.StreamInbound.onData(StreamInbound.java:11
  7)
   [junit] at
  org.apache.coyote.http11.upgrade.UpgradeProcessor.upgradeDispatch(Upgrad
  eProcessor.java:83)
   [junit] at
  org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(Abs
  tractProtocol.java:583)
   [junit] at
  org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.proce
  ss(Http11NioProtocol.java:223)
   [junit] at
  org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.j
  ava:1676)
   [junit] at
  java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.jav
  a:1110)
   [junit] at
  java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.ja
  va:603)
   [junit] at java.lang.Thread.run(Thread.java:722)
   [junit]
   [junit] 12-Jul-2012 13:19:24.381 INFO [main]
  org.apache.catalina.core.StandardService.stopInternal Stopping
  service
  Tomcat
  
  ...
  
   [junit] 12-Jul-2012 13:19:24.769 INFO [main]
  org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler
  [http-nio-127.0.0.1-auto-3-48253]
   [junit] 12-Jul-2012 13:19:24.795 SEVERE
  [http-nio-127.0.0.1-auto-3-exec-1]
  org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process
  null
   [junit]  java.lang.IllegalArgumentException: Negative timeout
   [junit] at
   sun.nio.ch.SelectorImpl.select(SelectorImpl.java:97)
   [junit] at
  org.apache.tomcat.util.net.NioSelectorPool.read(NioSelectorPool.java:267
  )
   [junit] at
  org.apache.tomcat.util.net.NioSelectorPool.read(NioSelectorPool.java:227
  )
   [junit] at
  org.apache.coyote.http11.upgrade.UpgradeNioProcessor.readSocket(UpgradeN
  ioProcessor.java:139)
   [junit] at
  org.apache.coyote.http11.upgrade.UpgradeNioProcessor.read(UpgradeNioProc
  essor.java:98)
   [junit] at
  org.apache.catalina.websocket.WsFrame.blockingRead(WsFrame.java:149)
   [junit