[GUMP@vmgump]: Project tomcat-trunk-test-apr (in module tomcat-trunk) failed

2015-01-16 Thread Bill Barker
To whom it may engage...

This is an automated request, but not an unsolicited one. For 
more information please visit http://gump.apache.org/nagged.html, 
and/or contact the folk at gene...@gump.apache.org.

Project tomcat-trunk-test-apr has an issue affecting its community integration.
This issue affects 1 projects.
The current state of this project is 'Failed', with reason 'Build Failed'.
For reference only, the following projects are affected by this:
- tomcat-trunk-test-apr :  Tomcat 9.x, a web server implementing the Java 
Servlet 4.0,
...


Full details are available at:

http://vmgump.apache.org/gump/public/tomcat-trunk/tomcat-trunk-test-apr/index.html

That said, some information snippets are provided here.

The following annotations (debug/informational/warning/error messages) were 
provided:
 -DEBUG- Dependency on commons-daemon exists, no need to add for property 
commons-daemon.native.src.tgz.
 -DEBUG- Dependency on commons-daemon exists, no need to add for property 
tomcat-native.tar.gz.
 -INFO- Failed with reason build failed
 -INFO- Project Reports in: 
/srv/gump/public/workspace/tomcat-trunk/output/logs-APR
 -INFO- Project Reports in: 
/srv/gump/public/workspace/tomcat-trunk/output/test-tmp-APR/logs



The following work was performed:
http://vmgump.apache.org/gump/public/tomcat-trunk/tomcat-trunk-test-apr/gump_work/build_tomcat-trunk_tomcat-trunk-test-apr.html
Work Name: build_tomcat-trunk_tomcat-trunk-test-apr (Type: Build)
Work ended in a state of : Failed
Elapsed: 23 mins 37 secs
Command Line: /usr/lib/jvm/java-8-oracle/bin/java -Djava.awt.headless=true 
-Dbuild.sysclasspath=only org.apache.tools.ant.Main 
-Dgump.merge=/srv/gump/public/gump/work/merge.xml 
-Djunit.jar=/srv/gump/public/workspace/junit/target/junit-4.13-SNAPSHOT.jar 
-Dobjenesis.jar=/srv/gump/public/workspace/objenesis/main/target/objenesis-2.2-SNAPSHOT.jar
 -Dtest.reports=output/logs-APR 
-Dtomcat-native.tar.gz=/srv/gump/public/workspace/apache-commons/daemon/dist/bin/commons-daemon-20150117-native-src.tar.gz
 -Dexamples.sources.skip=true 
-Djdt.jar=/srv/gump/packages/eclipse/plugins/R-4.4-201406061215/ecj-4.4.jar 
-Dtest.apr.loc=/srv/gump/public/workspace/tomcat-native/dest-20150117/lib 
-Dcommons-daemon.jar=/srv/gump/public/workspace/apache-commons/daemon/dist/commons-daemon-20150117.jar
 
-Dcommons-daemon.native.src.tgz=/srv/gump/public/workspace/apache-commons/daemon/dist/bin/commons-daemon-20150117-native-src.tar.gz
 -Dtest.temp=output/test-tmp-APR -Dtest.accesslog=true -Dexecute.test.nio=false 
-Dtest
 .openssl.path=/srv/gump/public/workspace/openssl/dest-20150117/bin/openssl 
-Dexecute.test.apr=true -Dexecute.test.nio2=false 
-Deasymock.jar=/srv/gump/public/workspace/easymock/easymock/target/easymock-3.4-SNAPSHOT.jar
 
-Dhamcrest.jar=/srv/gump/public/workspace/hamcrest/build/hamcrest-all-20150117.jar
 -Dcglib.jar=/srv/gump/packages/cglib/cglib-nodep-2.2.jar test 
[Working Directory: /srv/gump/public/workspace/tomcat-trunk]
CLASSPATH: 
/usr/lib/jvm/java-8-oracle/lib/tools.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/webapps/examples/WEB-INF/classes:/srv/gump/public/workspace/tomcat-trunk/output/testclasses:/srv/gump/public/workspace/ant/dist/lib/ant.jar:/srv/gump/public/workspace/ant/dist/lib/ant-launcher.jar:/srv/gump/public/workspace/ant/dist/lib/ant-jmf.jar:/srv/gump/public/workspace/ant/dist/lib/ant-junit.jar:/srv/gump/public/workspace/ant/dist/lib/ant-junit4.jar:/srv/gump/public/workspace/ant/dist/lib/ant-swing.jar:/srv/gump/public/workspace/ant/dist/lib/ant-apache-resolver.jar:/srv/gump/public/workspace/ant/dist/lib/ant-apache-xalan2.jar:/srv/gump/public/workspace/xml-commons/java/build/resolver.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/bin/bootstrap.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/bin/tomcat-juli.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/lib/annotations-api.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/lib/servlet-api.ja
 
r:/srv/gump/public/workspace/tomcat-trunk/output/build/lib/jsp-api.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/lib/el-api.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/lib/websocket-api.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/lib/catalina.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/lib/catalina-ant.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/lib/catalina-storeconfig.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/lib/tomcat-coyote.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/lib/jasper.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/lib/jasper-el.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/lib/catalina-tribes.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/lib/catalina-ha.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/lib/tomcat-api.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/lib/tomcat-jni.jar:/srv/gump/public/workspace/tomcat-trunk/output/bu
 
ild/lib/tom

Re: svn commit: r1652468 - /tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java

2015-01-16 Thread Mark Thomas
On 16/01/2015 17:32, r...@apache.org wrote:
> Author: remm
> Date: Fri Jan 16 17:32:18 2015
> New Revision: 1652468
> 
> URL: http://svn.apache.org/r1652468
> Log:
> - Initially after accept, do regular processing rather than awaitBytes, since 
> awaitBytes is not as light as it used to be and the bytes could be there. 
> Maybe it could be configurable.
> - Don't always fork a new thread after awaitBytes. If it didn't complete 
> inline then it is supposed to be useless.
> - This however caused problems with write notifications. Although I do 
> understand the changes that were made, a notification should not be 
> recursive, so use a new thread in that case.

The other thought I had (but haven't had time to test for performance
impact) is that the readPending semaphore is really only useful when the
previous or current read is non-blocking. A blocking read followed by a
blocking read doesn't need it.

Mark


> 
> Modified:
> tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java
> 
> Modified: tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java
> URL: 
> http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java?rev=1652468&r1=1652467&r2=1652468&view=diff
> ==
> --- tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java (original)
> +++ tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java Fri Jan 16 
> 17:32:18 2015
> @@ -461,7 +461,6 @@ public class Nio2Endpoint extends Abstra
>  return new Acceptor();
>  }
>  
> -
>  /**
>   * Process the specified connection.
>   */
> @@ -502,13 +501,8 @@ public class Nio2Endpoint extends Abstra
>  socketWrapper.reset(channel, 
> getSocketProperties().getSoTimeout());
>  
> socketWrapper.setKeepAliveLeft(Nio2Endpoint.this.getMaxKeepAliveRequests());
>  socketWrapper.setSecure(isSSLEnabled());
> -if (sslContext != null) {
> -// Use the regular processing, as the first handshake needs 
> to be done there
> -processSocket(socketWrapper, SocketStatus.OPEN_READ, true);
> -} else {
> -// Wait until some bytes are available to start the real 
> processing
> -awaitBytes(socketWrapper);
> -}
> +// Continue processing on another thread
> +processSocket(socketWrapper, SocketStatus.OPEN_READ, true);
>  } catch (Throwable t) {
>  ExceptionUtils.handleThrowable(t);
>  try {
> @@ -549,7 +543,6 @@ public class Nio2Endpoint extends Abstra
>  return true;
>  }
>  
> -
>  @Override
>  public void processSocket(SocketWrapperBase socketWrapper,
>  SocketStatus socketStatus, boolean dispatch) {
> @@ -739,13 +732,13 @@ public class Nio2Endpoint extends Abstra
>  = new CompletionHandler SocketWrapperBase>() {
>  
>  @Override
> -public synchronized void completed(Integer nBytes, 
> SocketWrapperBase attachment) {
> +public void completed(Integer nBytes, 
> SocketWrapperBase attachment) {
>  if (nBytes.intValue() < 0) {
>  failed(new ClosedChannelException(), attachment);
>  return;
>  }
>  readPending.release();
> -getEndpoint().processSocket(attachment, 
> SocketStatus.OPEN_READ, true);
> +getEndpoint().processSocket(attachment, 
> SocketStatus.OPEN_READ, Nio2Endpoint.isInline());
>  }
>  
>  @Override
> @@ -755,8 +748,6 @@ public class Nio2Endpoint extends Abstra
>  }
>  };
>  
> -
> -
>  public Nio2SocketWrapper(Nio2Channel channel, Nio2Endpoint endpoint) 
> {
>  super(channel, endpoint);
>  
> @@ -840,7 +831,7 @@ public class Nio2Endpoint extends Abstra
>  }
>  }
>  if (writeNotify && 
> nestedWriteCompletionCount.get().get() == 0) {
> -endpoint.processSocket(Nio2SocketWrapper.this, 
> SocketStatus.OPEN_WRITE, false);
> +endpoint.processSocket(Nio2SocketWrapper.this, 
> SocketStatus.OPEN_WRITE, Nio2Endpoint.isInline());
>  }
>  }
>  
> @@ -894,7 +885,7 @@ public class Nio2Endpoint extends Abstra
>  }
>  }
>  if (writeNotify && 
> nestedWriteCompletionCount.get().get() == 0) {
> -endpoint.processSocket(Nio2SocketWrapper.this, 
> SocketStatus.OPEN_WRITE, false);
> +endpoint.processSocket(Nio2SocketWrapper.this, 
> SocketStatus.OPEN_WRITE, Nio2Endpoint.isInline());
>  }
>  }
>  
> @@ -1133,7 +1124,7 @@ public class Nio2Endpoint extends Abstra
>   */
>  @Override
>

svn commit: r1652554 - /tomcat/tc8.0.x/trunk/java/org/apache/tomcat/util/bcel/classfile/FastDataInputStream.java

2015-01-16 Thread markt
Author: markt
Date: Sat Jan 17 00:54:34 2015
New Revision: 1652554

URL: http://svn.apache.org/r1652554
Log:
Drop unused (because it is buggy and fixing the bugs makes it non-fast) class

Removed:

tomcat/tc8.0.x/trunk/java/org/apache/tomcat/util/bcel/classfile/FastDataInputStream.java


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



[GUMP@vmgump]: Project tomcat-trunk-test-apr (in module tomcat-trunk) failed

2015-01-16 Thread Bill Barker
To whom it may engage...

This is an automated request, but not an unsolicited one. For 
more information please visit http://gump.apache.org/nagged.html, 
and/or contact the folk at gene...@gump.apache.org.

Project tomcat-trunk-test-apr has an issue affecting its community integration.
This issue affects 1 projects.
The current state of this project is 'Failed', with reason 'Build Failed'.
For reference only, the following projects are affected by this:
- tomcat-trunk-test-apr :  Tomcat 9.x, a web server implementing the Java 
Servlet 4.0,
...


Full details are available at:

http://vmgump.apache.org/gump/public/tomcat-trunk/tomcat-trunk-test-apr/index.html

That said, some information snippets are provided here.

The following annotations (debug/informational/warning/error messages) were 
provided:
 -DEBUG- Dependency on commons-daemon exists, no need to add for property 
commons-daemon.native.src.tgz.
 -DEBUG- Dependency on commons-daemon exists, no need to add for property 
tomcat-native.tar.gz.
 -INFO- Failed with reason build failed
 -INFO- Project Reports in: 
/srv/gump/public/workspace/tomcat-trunk/output/logs-APR
 -INFO- Project Reports in: 
/srv/gump/public/workspace/tomcat-trunk/output/test-tmp-APR/logs



The following work was performed:
http://vmgump.apache.org/gump/public/tomcat-trunk/tomcat-trunk-test-apr/gump_work/build_tomcat-trunk_tomcat-trunk-test-apr.html
Work Name: build_tomcat-trunk_tomcat-trunk-test-apr (Type: Build)
Work ended in a state of : Failed
Elapsed: 23 mins 22 secs
Command Line: /usr/lib/jvm/java-8-oracle/bin/java -Djava.awt.headless=true 
-Dbuild.sysclasspath=only org.apache.tools.ant.Main 
-Dgump.merge=/srv/gump/public/gump/work/merge.xml 
-Djunit.jar=/srv/gump/public/workspace/junit/target/junit-4.13-SNAPSHOT.jar 
-Dobjenesis.jar=/srv/gump/public/workspace/objenesis/main/target/objenesis-2.2-SNAPSHOT.jar
 -Dtest.reports=output/logs-APR 
-Dtomcat-native.tar.gz=/srv/gump/public/workspace/apache-commons/daemon/dist/bin/commons-daemon-20150116-native-src.tar.gz
 -Dexamples.sources.skip=true 
-Djdt.jar=/srv/gump/packages/eclipse/plugins/R-4.4-201406061215/ecj-4.4.jar 
-Dtest.apr.loc=/srv/gump/public/workspace/tomcat-native/dest-20150116/lib 
-Dcommons-daemon.jar=/srv/gump/public/workspace/apache-commons/daemon/dist/commons-daemon-20150116.jar
 
-Dcommons-daemon.native.src.tgz=/srv/gump/public/workspace/apache-commons/daemon/dist/bin/commons-daemon-20150116-native-src.tar.gz
 -Dtest.temp=output/test-tmp-APR -Dtest.accesslog=true -Dexecute.test.nio=false 
-Dtest
 .openssl.path=/srv/gump/public/workspace/openssl/dest-20150116/bin/openssl 
-Dexecute.test.apr=true -Dexecute.test.nio2=false 
-Deasymock.jar=/srv/gump/public/workspace/easymock/easymock/target/easymock-3.4-SNAPSHOT.jar
 
-Dhamcrest.jar=/srv/gump/public/workspace/hamcrest/build/hamcrest-all-20150116.jar
 -Dcglib.jar=/srv/gump/packages/cglib/cglib-nodep-2.2.jar test 
[Working Directory: /srv/gump/public/workspace/tomcat-trunk]
CLASSPATH: 
/usr/lib/jvm/java-8-oracle/lib/tools.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/webapps/examples/WEB-INF/classes:/srv/gump/public/workspace/tomcat-trunk/output/testclasses:/srv/gump/public/workspace/ant/dist/lib/ant.jar:/srv/gump/public/workspace/ant/dist/lib/ant-launcher.jar:/srv/gump/public/workspace/ant/dist/lib/ant-jmf.jar:/srv/gump/public/workspace/ant/dist/lib/ant-junit.jar:/srv/gump/public/workspace/ant/dist/lib/ant-junit4.jar:/srv/gump/public/workspace/ant/dist/lib/ant-swing.jar:/srv/gump/public/workspace/ant/dist/lib/ant-apache-resolver.jar:/srv/gump/public/workspace/ant/dist/lib/ant-apache-xalan2.jar:/srv/gump/public/workspace/xml-commons/java/build/resolver.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/bin/bootstrap.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/bin/tomcat-juli.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/lib/annotations-api.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/lib/servlet-api.ja
 
r:/srv/gump/public/workspace/tomcat-trunk/output/build/lib/jsp-api.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/lib/el-api.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/lib/websocket-api.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/lib/catalina.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/lib/catalina-ant.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/lib/catalina-storeconfig.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/lib/tomcat-coyote.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/lib/jasper.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/lib/jasper-el.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/lib/catalina-tribes.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/lib/catalina-ha.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/lib/tomcat-api.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/lib/tomcat-jni.jar:/srv/gump/public/workspace/tomcat-trunk

[Bug 57445] java.util.Map$Entry cannot be resolved - jsp's no longer compile under java8

2015-01-16 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=57445

Christopher Schultz  changed:

   What|Removed |Added

 Resolution|WORKSFORME  |INVALID

-- 
You are receiving this mail because:
You are the assignee for the bug.

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



svn commit: r1652468 - /tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java

2015-01-16 Thread remm
Author: remm
Date: Fri Jan 16 17:32:18 2015
New Revision: 1652468

URL: http://svn.apache.org/r1652468
Log:
- Initially after accept, do regular processing rather than awaitBytes, since 
awaitBytes is not as light as it used to be and the bytes could be there. Maybe 
it could be configurable.
- Don't always fork a new thread after awaitBytes. If it didn't complete inline 
then it is supposed to be useless.
- This however caused problems with write notifications. Although I do 
understand the changes that were made, a notification should not be recursive, 
so use a new thread in that case.

Modified:
tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java

Modified: tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java?rev=1652468&r1=1652467&r2=1652468&view=diff
==
--- tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java Fri Jan 16 
17:32:18 2015
@@ -461,7 +461,6 @@ public class Nio2Endpoint extends Abstra
 return new Acceptor();
 }
 
-
 /**
  * Process the specified connection.
  */
@@ -502,13 +501,8 @@ public class Nio2Endpoint extends Abstra
 socketWrapper.reset(channel, getSocketProperties().getSoTimeout());
 
socketWrapper.setKeepAliveLeft(Nio2Endpoint.this.getMaxKeepAliveRequests());
 socketWrapper.setSecure(isSSLEnabled());
-if (sslContext != null) {
-// Use the regular processing, as the first handshake needs to 
be done there
-processSocket(socketWrapper, SocketStatus.OPEN_READ, true);
-} else {
-// Wait until some bytes are available to start the real 
processing
-awaitBytes(socketWrapper);
-}
+// Continue processing on another thread
+processSocket(socketWrapper, SocketStatus.OPEN_READ, true);
 } catch (Throwable t) {
 ExceptionUtils.handleThrowable(t);
 try {
@@ -549,7 +543,6 @@ public class Nio2Endpoint extends Abstra
 return true;
 }
 
-
 @Override
 public void processSocket(SocketWrapperBase socketWrapper,
 SocketStatus socketStatus, boolean dispatch) {
@@ -739,13 +732,13 @@ public class Nio2Endpoint extends Abstra
 = new CompletionHandler>() {
 
 @Override
-public synchronized void completed(Integer nBytes, 
SocketWrapperBase attachment) {
+public void completed(Integer nBytes, 
SocketWrapperBase attachment) {
 if (nBytes.intValue() < 0) {
 failed(new ClosedChannelException(), attachment);
 return;
 }
 readPending.release();
-getEndpoint().processSocket(attachment, 
SocketStatus.OPEN_READ, true);
+getEndpoint().processSocket(attachment, 
SocketStatus.OPEN_READ, Nio2Endpoint.isInline());
 }
 
 @Override
@@ -755,8 +748,6 @@ public class Nio2Endpoint extends Abstra
 }
 };
 
-
-
 public Nio2SocketWrapper(Nio2Channel channel, Nio2Endpoint endpoint) {
 super(channel, endpoint);
 
@@ -840,7 +831,7 @@ public class Nio2Endpoint extends Abstra
 }
 }
 if (writeNotify && nestedWriteCompletionCount.get().get() 
== 0) {
-endpoint.processSocket(Nio2SocketWrapper.this, 
SocketStatus.OPEN_WRITE, false);
+endpoint.processSocket(Nio2SocketWrapper.this, 
SocketStatus.OPEN_WRITE, Nio2Endpoint.isInline());
 }
 }
 
@@ -894,7 +885,7 @@ public class Nio2Endpoint extends Abstra
 }
 }
 if (writeNotify && nestedWriteCompletionCount.get().get() 
== 0) {
-endpoint.processSocket(Nio2SocketWrapper.this, 
SocketStatus.OPEN_WRITE, false);
+endpoint.processSocket(Nio2SocketWrapper.this, 
SocketStatus.OPEN_WRITE, Nio2Endpoint.isInline());
 }
 }
 
@@ -1133,7 +1124,7 @@ public class Nio2Endpoint extends Abstra
  */
 @Override
 protected void writeNonBlocking(byte[] buf, int off, int len) throws 
IOException {
-// FIXME: Possible new behavior:
+// Note: Possible alternate behavior:
 // If there's non blocking abuse (like a test writing 1MB in a 
single
 // "non blocking" write), then block until the previous write is
 // done rather than continue buffering
@@ -1227,13 +1218,17 @@ public class Nio2Endpoint extends Abstra
 }
 bufferedWrites.clear();
   

svn commit: r1652443 - in /tomcat/site/trunk: ./ docs/ docs/tomcat-8.0-doc/ docs/tomcat-8.0-doc/api/ docs/tomcat-8.0-doc/api/org/apache/catalina/ docs/tomcat-8.0-doc/api/org/apache/catalina/ant/ docs/

2015-01-16 Thread markt
Author: markt
Date: Fri Jan 16 15:59:42 2015
New Revision: 1652443

URL: http://svn.apache.org/r1652443
Log:
Update site for 8.0.17 release


[This commit notification would consist of 84 parts, 
which exceeds the limit of 50 ones, so it was shortened to the summary.]

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



svn commit: r1652435 - /tomcat/tc8.0.x/trunk/webapps/docs/changelog.xml

2015-01-16 Thread markt
Author: markt
Date: Fri Jan 16 15:34:47 2015
New Revision: 1652435

URL: http://svn.apache.org/r1652435
Log:
Add release date for 8.0.17

Modified:
tomcat/tc8.0.x/trunk/webapps/docs/changelog.xml

Modified: tomcat/tc8.0.x/trunk/webapps/docs/changelog.xml
URL: 
http://svn.apache.org/viewvc/tomcat/tc8.0.x/trunk/webapps/docs/changelog.xml?rev=1652435&r1=1652434&r2=1652435&view=diff
==
--- tomcat/tc8.0.x/trunk/webapps/docs/changelog.xml (original)
+++ tomcat/tc8.0.x/trunk/webapps/docs/changelog.xml Fri Jan 16 15:34:47 2015
@@ -56,7 +56,7 @@
 
   
 
-
+
   
 
   



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



[GUMP@vmgump]: Project tomcat-tc8.0.x-test-apr (in module tomcat-8.0.x) failed

2015-01-16 Thread Bill Barker
To whom it may engage...

This is an automated request, but not an unsolicited one. For 
more information please visit http://gump.apache.org/nagged.html, 
and/or contact the folk at gene...@gump.apache.org.

Project tomcat-tc8.0.x-test-apr has an issue affecting its community 
integration.
This issue affects 1 projects.
The current state of this project is 'Failed', with reason 'Build Failed'.
For reference only, the following projects are affected by this:
- tomcat-tc8.0.x-test-apr :  Tomcat 8.x, a web server implementing the Java 
Servlet 3.1,
...


Full details are available at:

http://vmgump.apache.org/gump/public/tomcat-8.0.x/tomcat-tc8.0.x-test-apr/index.html

That said, some information snippets are provided here.

The following annotations (debug/informational/warning/error messages) were 
provided:
 -DEBUG- Dependency on commons-daemon exists, no need to add for property 
commons-daemon.native.src.tgz.
 -DEBUG- Dependency on commons-daemon exists, no need to add for property 
tomcat-native.tar.gz.
 -INFO- Failed with reason build failed
 -INFO- Project Reports in: 
/srv/gump/public/workspace/tomcat-8.0.x/output/logs-APR
 -INFO- Project Reports in: 
/srv/gump/public/workspace/tomcat-8.0.x/output/test-tmp-APR/logs



The following work was performed:
http://vmgump.apache.org/gump/public/tomcat-8.0.x/tomcat-tc8.0.x-test-apr/gump_work/build_tomcat-8.0.x_tomcat-tc8.0.x-test-apr.html
Work Name: build_tomcat-8.0.x_tomcat-tc8.0.x-test-apr (Type: Build)
Work ended in a state of : Failed
Elapsed: 27 mins 1 sec
Command Line: /usr/lib/jvm/java-8-oracle/bin/java -Djava.awt.headless=true 
-Dbuild.sysclasspath=only org.apache.tools.ant.Main 
-Dgump.merge=/srv/gump/public/gump/work/merge.xml 
-Djunit.jar=/srv/gump/public/workspace/junit/target/junit-4.13-SNAPSHOT.jar 
-Dobjenesis.jar=/srv/gump/public/workspace/objenesis/main/target/objenesis-2.2-SNAPSHOT.jar
 -Dtest.reports=output/logs-APR 
-Dtomcat-native.tar.gz=/srv/gump/public/workspace/apache-commons/daemon/dist/bin/commons-daemon-20150116-native-src.tar.gz
 -Dexamples.sources.skip=true 
-Djdt.jar=/srv/gump/packages/eclipse/plugins/R-4.4-201406061215/ecj-4.4.jar 
-Dtest.apr.loc=/srv/gump/public/workspace/tomcat-native/dest-20150116/lib 
-Dcommons-daemon.jar=/srv/gump/public/workspace/apache-commons/daemon/dist/commons-daemon-20150116.jar
 
-Dcommons-daemon.native.src.tgz=/srv/gump/public/workspace/apache-commons/daemon/dist/bin/commons-daemon-20150116-native-src.tar.gz
 -Dtest.temp=output/test-tmp-APR -Dtest.accesslog=true -Dexecute.test.nio=false 
-Dtest
 .openssl.path=/srv/gump/public/workspace/openssl/dest-20150116/bin/openssl 
-Dexecute.test.apr=true -Dexecute.test.bio=false -Dexecute.test.nio2=false 
-Deasymock.jar=/srv/gump/public/workspace/easymock/easymock/target/easymock-3.4-SNAPSHOT.jar
 
-Dhamcrest.jar=/srv/gump/public/workspace/hamcrest/build/hamcrest-all-20150116.jar
 -Dcglib.jar=/srv/gump/packages/cglib/cglib-nodep-2.2.jar test 
[Working Directory: /srv/gump/public/workspace/tomcat-8.0.x]
CLASSPATH: 
/usr/lib/jvm/java-8-oracle/lib/tools.jar:/srv/gump/public/workspace/tomcat-8.0.x/output/build/webapps/examples/WEB-INF/classes:/srv/gump/public/workspace/tomcat-8.0.x/output/testclasses:/srv/gump/public/workspace/ant/dist/lib/ant.jar:/srv/gump/public/workspace/ant/dist/lib/ant-launcher.jar:/srv/gump/public/workspace/ant/dist/lib/ant-jmf.jar:/srv/gump/public/workspace/ant/dist/lib/ant-junit.jar:/srv/gump/public/workspace/ant/dist/lib/ant-junit4.jar:/srv/gump/public/workspace/ant/dist/lib/ant-swing.jar:/srv/gump/public/workspace/ant/dist/lib/ant-apache-resolver.jar:/srv/gump/public/workspace/ant/dist/lib/ant-apache-xalan2.jar:/srv/gump/public/workspace/xml-commons/java/build/resolver.jar:/srv/gump/public/workspace/tomcat-8.0.x/output/build/bin/bootstrap.jar:/srv/gump/public/workspace/tomcat-8.0.x/output/build/bin/tomcat-juli.jar:/srv/gump/public/workspace/tomcat-8.0.x/output/build/lib/annotations-api.jar:/srv/gump/public/workspace/tomcat-8.0.x/output/build/lib/servlet-api.ja
 
r:/srv/gump/public/workspace/tomcat-8.0.x/output/build/lib/jsp-api.jar:/srv/gump/public/workspace/tomcat-8.0.x/output/build/lib/el-api.jar:/srv/gump/public/workspace/tomcat-8.0.x/output/build/lib/websocket-api.jar:/srv/gump/public/workspace/tomcat-8.0.x/output/build/lib/catalina.jar:/srv/gump/public/workspace/tomcat-8.0.x/output/build/lib/catalina-ant.jar:/srv/gump/public/workspace/tomcat-8.0.x/output/build/lib/catalina-storeconfig.jar:/srv/gump/public/workspace/tomcat-8.0.x/output/build/lib/tomcat-coyote.jar:/srv/gump/public/workspace/tomcat-8.0.x/output/build/lib/jasper.jar:/srv/gump/public/workspace/tomcat-8.0.x/output/build/lib/jasper-el.jar:/srv/gump/public/workspace/tomcat-8.0.x/output/build/lib/catalina-tribes.jar:/srv/gump/public/workspace/tomcat-8.0.x/output/build/lib/catalina-ha.jar:/srv/gump/public/workspace/tomcat-8.0.x/output/build/lib/tomcat-api.jar:/srv/gump/public/workspace/tomcat-8.0.x/output/build/lib/tomcat-jni.jar:/srv/g

Early Access builds for JDK 9 b45, JDK 8u40 b21 & JDK 7u80 b04 are available on java.net

2015-01-16 Thread Rory O'Donnell

Hi Mark/Mladen,

Now that JDK 9 Early Access build images are modular [1], there is a fresh
Early Access build for JDK 9 b45  
available on java.net.
The summary of  changes are listed here 



In addition, there are new Early Access builds for the ongoing update 
releases.


The Early Access build for JDK 8u40 b21 
 is available on java.net, with the
summary of changes listed here. 



Finally, the Early Access build for JDK 7u80 b04 
is available on java.net,
with the summary of changes listed here. 



As we enter the later phases of development for JDK 7u80 & JDK 8u40,
please log any show stoppers as soon as possible.

Rgds,Rory

[1] http://mreinhold.org/blog/jigsaw-modular-images

--
Rgds,Rory O'Donnell
Quality Engineering Manager
Oracle EMEA , Dublin, Ireland



svn commit: r1652395 - in /tomcat/trunk/java/org/apache/coyote: ./ ajp/ http11/ http11/upgrade/ spdy/

2015-01-16 Thread markt
Author: markt
Date: Fri Jan 16 12:15:12 2015
New Revision: 1652395

URL: http://svn.apache.org/r1652395
Log:
Remove unused code.

Modified:
tomcat/trunk/java/org/apache/coyote/Processor.java
tomcat/trunk/java/org/apache/coyote/ajp/AjpAprProtocol.java
tomcat/trunk/java/org/apache/coyote/ajp/AjpNio2Protocol.java
tomcat/trunk/java/org/apache/coyote/ajp/AjpNioProtocol.java
tomcat/trunk/java/org/apache/coyote/ajp/AjpProcessor.java
tomcat/trunk/java/org/apache/coyote/http11/AbstractHttp11Processor.java
tomcat/trunk/java/org/apache/coyote/http11/Http11AprProtocol.java
tomcat/trunk/java/org/apache/coyote/http11/Http11Nio2Protocol.java
tomcat/trunk/java/org/apache/coyote/http11/Http11NioProtocol.java
tomcat/trunk/java/org/apache/coyote/http11/upgrade/UpgradeProcessor.java
tomcat/trunk/java/org/apache/coyote/spdy/SpdyProcessor.java

Modified: tomcat/trunk/java/org/apache/coyote/Processor.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/Processor.java?rev=1652395&r1=1652394&r2=1652395&view=diff
==
--- tomcat/trunk/java/org/apache/coyote/Processor.java (original)
+++ tomcat/trunk/java/org/apache/coyote/Processor.java Fri Jan 16 12:15:12 2015
@@ -49,7 +49,11 @@ public interface Processor {
 
 Request getRequest();
 
-void recycle(boolean socketClosing);
+/**
+ * Recycle the processor, ready for the next request which may be on the
+ * same connection or a different connection.
+ */
+void recycle();
 
 void setSslSupport(SSLSupport sslSupport);
 

Modified: tomcat/trunk/java/org/apache/coyote/ajp/AjpAprProtocol.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/ajp/AjpAprProtocol.java?rev=1652395&r1=1652394&r2=1652395&view=diff
==
--- tomcat/trunk/java/org/apache/coyote/ajp/AjpAprProtocol.java (original)
+++ tomcat/trunk/java/org/apache/coyote/ajp/AjpAprProtocol.java Fri Jan 16 
12:15:12 2015
@@ -92,7 +92,7 @@ public class AjpAprProtocol extends Abst
 public void release(SocketWrapperBase socket,
 Processor processor, boolean isSocketClosing,
 boolean addToPoller) {
-processor.recycle(isSocketClosing);
+processor.recycle();
 recycledProcessors.push(processor);
 if (addToPoller) {
 ((AprEndpoint)getProtocol().getEndpoint()).getPoller().add(

Modified: tomcat/trunk/java/org/apache/coyote/ajp/AjpNio2Protocol.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/ajp/AjpNio2Protocol.java?rev=1652395&r1=1652394&r2=1652395&view=diff
==
--- tomcat/trunk/java/org/apache/coyote/ajp/AjpNio2Protocol.java (original)
+++ tomcat/trunk/java/org/apache/coyote/ajp/AjpNio2Protocol.java Fri Jan 16 
12:15:12 2015
@@ -87,7 +87,7 @@ public class AjpNio2Protocol extends Abs
 Processor processor =
 connections.remove(socket.getSocket());
 if (processor != null) {
-processor.recycle(true);
+processor.recycle();
 recycledProcessors.push(processor);
 }
 }
@@ -105,7 +105,7 @@ public class AjpNio2Protocol extends Abs
 "], isSocketClosing: [" + isSocketClosing +
 "], addToPoller: [" + addToPoller + "]");
 }
-processor.recycle(isSocketClosing);
+processor.recycle();
 recycledProcessors.push(processor);
 }
 

Modified: tomcat/trunk/java/org/apache/coyote/ajp/AjpNioProtocol.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/ajp/AjpNioProtocol.java?rev=1652395&r1=1652394&r2=1652395&view=diff
==
--- tomcat/trunk/java/org/apache/coyote/ajp/AjpNioProtocol.java (original)
+++ tomcat/trunk/java/org/apache/coyote/ajp/AjpNioProtocol.java Fri Jan 16 
12:15:12 2015
@@ -95,7 +95,7 @@ public class AjpNioProtocol extends Abst
 if (entry.getKey().getIOChannel()==socket) {
 it.remove();
 Processor result = entry.getValue();
-result.recycle(true);
+result.recycle();
 unregister(result);
 released = true;
 break;
@@ -115,7 +115,7 @@ public class AjpNioProtocol extends Abst
 Processor processor =
 connections.remove(socket.getSocket());
 if (processor != null) {
-processor.recycle(true);
+processor.recycle();
 recycledProcessors.push(processor);
 }
 }
@@ -128,7 +128,7 @@ public class AjpNioProtocol extends Abst
 publ

svn commit: r1652396 - in /tomcat/trunk/java/org/apache/coyote: AbstractProtocol.java ajp/AjpAprProtocol.java ajp/AjpNio2Protocol.java ajp/AjpNioProtocol.java http11/Http11AprProtocol.java http11/Http

2015-01-16 Thread markt
Author: markt
Date: Fri Jan 16 12:15:18 2015
New Revision: 1652396

URL: http://svn.apache.org/r1652396
Log:
Remove unused code.

Modified:
tomcat/trunk/java/org/apache/coyote/AbstractProtocol.java
tomcat/trunk/java/org/apache/coyote/ajp/AjpAprProtocol.java
tomcat/trunk/java/org/apache/coyote/ajp/AjpNio2Protocol.java
tomcat/trunk/java/org/apache/coyote/ajp/AjpNioProtocol.java
tomcat/trunk/java/org/apache/coyote/http11/Http11AprProtocol.java
tomcat/trunk/java/org/apache/coyote/http11/Http11Nio2Protocol.java
tomcat/trunk/java/org/apache/coyote/http11/Http11NioProtocol.java

Modified: tomcat/trunk/java/org/apache/coyote/AbstractProtocol.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/AbstractProtocol.java?rev=1652396&r1=1652395&r2=1652396&view=diff
==
--- tomcat/trunk/java/org/apache/coyote/AbstractProtocol.java (original)
+++ tomcat/trunk/java/org/apache/coyote/AbstractProtocol.java Fri Jan 16 
12:15:18 2015
@@ -673,7 +673,7 @@ public abstract class AbstractProtocol processor);
 protected abstract void longPoll(SocketWrapperBase socket,
 Processor processor);
+
+/**
+ * Expected to be used by the handler once the processor is no longer
+ * required.
+ *
+ * @param socketSocket being released (that was associated with the
+ *  processor)
+ * @param processor Processor being released (that was associated with
+ *  the socket)
+ * @param addToPoller Should the socket be added to the poller for
+ *reading
+ */
 protected abstract void release(SocketWrapperBase socket,
-Processor processor, boolean socketClosing,
-boolean addToPoller);
+Processor processor, boolean addToPoller);
 protected abstract Processor createUpgradeProcessor(
 SocketWrapperBase socket, ByteBuffer leftoverInput,
 HttpUpgradeHandler httpUpgradeHandler) throws IOException;

Modified: tomcat/trunk/java/org/apache/coyote/ajp/AjpAprProtocol.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/ajp/AjpAprProtocol.java?rev=1652396&r1=1652395&r2=1652396&view=diff
==
--- tomcat/trunk/java/org/apache/coyote/ajp/AjpAprProtocol.java (original)
+++ tomcat/trunk/java/org/apache/coyote/ajp/AjpAprProtocol.java Fri Jan 16 
12:15:18 2015
@@ -84,14 +84,9 @@ public class AjpAprProtocol extends Abst
 return log;
 }
 
-/**
- * Expected to be used by the handler once the processor is no longer
- * required.
- */
 @Override
 public void release(SocketWrapperBase socket,
-Processor processor, boolean isSocketClosing,
-boolean addToPoller) {
+Processor processor, boolean addToPoller) {
 processor.recycle();
 recycledProcessors.push(processor);
 if (addToPoller) {

Modified: tomcat/trunk/java/org/apache/coyote/ajp/AjpNio2Protocol.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/ajp/AjpNio2Protocol.java?rev=1652396&r1=1652395&r2=1652396&view=diff
==
--- tomcat/trunk/java/org/apache/coyote/ajp/AjpNio2Protocol.java (original)
+++ tomcat/trunk/java/org/apache/coyote/ajp/AjpNio2Protocol.java Fri Jan 16 
12:15:18 2015
@@ -92,17 +92,11 @@ public class AjpNio2Protocol extends Abs
 }
 }
 
-/**
- * Expected to be used by the handler once the processor is no longer
- * required.
- */
 @Override
 public void release(SocketWrapperBase socket,
-Processor processor, boolean isSocketClosing,
-boolean addToPoller) {
+Processor processor, boolean addToPoller) {
 if (getLog().isDebugEnabled()) {
 log.debug("Socket: [" + socket + "], Processor: [" + processor 
+
-"], isSocketClosing: [" + isSocketClosing +
 "], addToPoller: [" + addToPoller + "]");
 }
 processor.recycle();

Modified: tomcat/trunk/java/org/apache/coyote/ajp/AjpNioProtocol.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/ajp/AjpNioProtocol.java?rev=1652396&r1=1652395&r2=1652396&view=diff
==
--- tomcat/trunk/java/org/apache/coyote/ajp/AjpNioProtocol.java (original)
+++ tomcat/trunk/java/org/apache/coyote/ajp/AjpNioProtocol.java Fri Jan 16 
12:15:18 2015
@@ -106,6 +106,7 @@ public class AjpNioProtocol extends Abst
 socket, Boolean.valueOf(released)));
  

svn commit: r1652384 - /tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java

2015-01-16 Thread markt
Author: markt
Date: Fri Jan 16 10:53:21 2015
New Revision: 1652384

URL: http://svn.apache.org/r1652384
Log:
Streamlining
 - reduce scope of sync (in really only needs to surrond non-blocking
read and readInterest)
 - make fillReadBuffer responsible for releasing readPending semaphore
in blocking case (it already did it for non-blcoking)

Modified:
tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java

Modified: tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java?rev=1652384&r1=1652383&r2=1652384&view=diff
==
--- tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java Fri Jan 16 
10:53:21 2015
@@ -1014,38 +1014,34 @@ public class Nio2Endpoint extends Abstra
 }
 }
 
-synchronized (readCompletionHandler) {
-socketBufferHandler.configureReadBufferForRead();
+socketBufferHandler.configureReadBufferForRead();
 
-int remaining = 
socketBufferHandler.getReadBuffer().remaining();
+int remaining = socketBufferHandler.getReadBuffer().remaining();
 
-// Is there enough data in the read buffer to satisfy this 
request?
-if (remaining >= len) {
-socketBufferHandler.getReadBuffer().get(b, off, len);
-if (log.isDebugEnabled()) {
-log.debug("Socket: [" + this + "], Read from buffer: 
[" + len + "]");
-}
-readPending.release();
-return len;
+// Is there enough data in the read buffer to satisfy this request?
+if (remaining >= len) {
+socketBufferHandler.getReadBuffer().get(b, off, len);
+if (log.isDebugEnabled()) {
+log.debug("Socket: [" + this + "], Read from buffer: [" + 
len + "]");
 }
+readPending.release();
+return len;
+}
 
-// Copy what data there is in the read buffer to the byte array
-if (remaining > 0) {
-socketBufferHandler.getReadBuffer().get(b, off, remaining);
-// This may be sufficient to complete the request and we
-// don't want to trigger another read since if there is no
-// more data to read and this request takes a while to
-// process the read will timeout triggering an error.
-readPending.release();
-return remaining;
-}
+// Copy what data there is in the read buffer to the byte array
+if (remaining > 0) {
+socketBufferHandler.getReadBuffer().get(b, off, remaining);
+// This may be sufficient to complete the request and we
+// don't want to trigger another read since if there is no
+// more data to read and this request takes a while to
+// process the read will timeout triggering an error.
+readPending.release();
+return remaining;
+}
 
+synchronized (readCompletionHandler) {
 // Fill the read buffer as best we can.
 int nRead = fillReadBuffer(block);
-if (block) {
-// Just did a blocking read so release the semaphore
-readPending.release();
-}
 
 // Fill as much of the remaining byte array as possible with 
the
 // data that was just read
@@ -1091,6 +1087,9 @@ public class Nio2Endpoint extends Abstra
 /* Callers of this method must:
  * - have acquired the readPending semaphore
  * - have acquired a lock on readCompletionHandler
+ *
+ * This method will release (or arrange for the release of) the
+ * readPending semaphore once the read has completed.
  */
 private int fillReadBuffer(boolean block) throws IOException {
 socketBufferHandler.configureReadBufferForWrite();
@@ -1099,6 +1098,7 @@ public class Nio2Endpoint extends Abstra
 try {
 nRead = 
getSocket().read(socketBufferHandler.getReadBuffer()).get(
 getTimeout(), TimeUnit.MILLISECONDS).intValue();
+readPending.release();
 } catch (ExecutionException e) {
 if (e.getCause() instanceof IOException) {
 throw (IOException) e.getCause();



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

svn commit: r1652383 - /tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java

2015-01-16 Thread markt
Author: markt
Date: Fri Jan 16 10:53:17 2015
New Revision: 1652383

URL: http://svn.apache.org/r1652383
Log:
Correct a comment

Modified:
tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java

Modified: tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java?rev=1652383&r1=1652382&r2=1652383&view=diff
==
--- tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java Fri Jan 16 
10:53:17 2015
@@ -1040,9 +1040,7 @@ public class Nio2Endpoint extends Abstra
 return remaining;
 }
 
-// Fill the read buffer as best we can. Only do a blocking 
read if
-// the current read is blocking AND there wasn't any data left 
over
-// in the read buffer.
+// Fill the read buffer as best we can.
 int nRead = fillReadBuffer(block);
 if (block) {
 // Just did a blocking read so release the semaphore



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



svn commit: r1652382 - /tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java

2015-01-16 Thread markt
Author: markt
Date: Fri Jan 16 10:53:12 2015
New Revision: 1652382

URL: http://svn.apache.org/r1652382
Log:
Minor optimisation.

Modified:
tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java

Modified: tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java?rev=1652382&r1=1652381&r2=1652382&view=diff
==
--- tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java Fri Jan 16 
10:53:12 2015
@@ -1171,12 +1171,12 @@ public class Nio2Endpoint extends Abstra
 protected void doWrite(boolean block) throws IOException {
 try {
 socketBufferHandler.configureWriteBufferForRead();
-while (socketBufferHandler.getWriteBuffer().hasRemaining()) {
+do {
 if 
(getSocket().write(socketBufferHandler.getWriteBuffer()).get(getTimeout(),
 TimeUnit.MILLISECONDS).intValue() < 0) {
 throw new 
EOFException(sm.getString("iob.failedwrite"));
 }
-}
+} while (socketBufferHandler.getWriteBuffer().hasRemaining());
 } catch (ExecutionException e) {
 if (e.getCause() instanceof IOException) {
 throw (IOException) e.getCause();



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



[Bug 57445] java.util.Map$Entry cannot be resolved - jsp's no longer compile under java8

2015-01-16 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=57445

Ralf Hauser  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |WORKSFORME

--- Comment #2 from Ralf Hauser  ---
thanks, had eclipse-ecj-3.5.1.jar

now have /usr/share/java/eclipse-ecj-4.4.jar
---
and if after installing the jar there, you see

java.util.MissingResourceException: Can't find bundle for base name
org.eclipse.jdt.internal.compiler.parser.readableNames, locale en_US
   
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1564)
java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1387)
java.util.ResourceBundle.getBundle(ResourceBundle.java:845)
   
org.eclipse.jdt.internal.compiler.parser.Parser.readReadableNameTable(Parser.java:710)
org.eclipse.jdt.internal.compiler.parser.Parser.initTables(Parser.java:604)

then you better change the permissions on the file.   ;)

If you then see 

java.lang.NoClassDefFoundError: Could not initialize class
org.eclipse.jdt.internal.compiler.parser.Parser
   
org.eclipse.jdt.internal.compiler.Compiler.initializeParser(Compiler.java:681)
org.eclipse.jdt.internal.compiler.Compiler.(Compiler.java:282)

you better restart eclipse and the tomcat therein

-- 
You are receiving this mail because:
You are the assignee for the bug.

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