Skip to content

Commit

Permalink
release 2.3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
SummerBootFramework committed Dec 4, 2023
1 parent 6894353 commit e32143f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.summerboot</groupId>
<artifactId>jexpress</artifactId>
<version>2.3.12-SNAPSHOT</version>
<version>2.3.12</version>
<packaging>jar</packaging>
<name>Summer Boot jExpress</name>
<description>Summer Boot jExpress focuses on solving non-functional and operational maintainability requirements, some of which Spring Boot has (may) not yet provided</description>
Expand Down Expand Up @@ -174,7 +174,7 @@
<!-- Commons -->
<commons-lang3.version>3.14.0</commons-lang3.version>
<commons-cli.version>1.6.0</commons-cli.version>
<commons-io.version>2.15.0</commons-io.version>
<commons-io.version>2.15.1</commons-io.version>
<!-- <commons-text.version>1.11.0</commons-text.version>-->
<!-- <owasp.encoder.version>1.2.3</owasp.encoder.version>-->
<!-- Logging -->
Expand All @@ -191,7 +191,7 @@
<netty.version>4.1.101.Final</netty.version>
<netty-tcnative.version>2.0.62.Final</netty-tcnative.version>
<!-- gRPC and protobuf -->
<grpc.version>1.59.0</grpc.version>
<grpc.version>1.59.1</grpc.version>
<guava.version>32.1.3-jre</guava.version>
<protobuf.version>3.25.1</protobuf.version>
<!-- Web JAX-RS -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import io.netty.handler.codec.http.HttpMethod;
import io.netty.handler.codec.http.HttpResponseStatus;
import jakarta.persistence.PersistenceException;
import java.io.IOException;
import java.net.http.HttpConnectTimeoutException;
import java.net.http.HttpTimeoutException;
import java.util.Collection;
Expand Down Expand Up @@ -69,7 +70,7 @@ public void onNamingException(NamingException ex, HttpMethod httptMethod, String
if (cause == null) {
cause = ex;
}
if (cause instanceof java.net.UnknownHostException) {
if (cause instanceof IOException) {// java.net.UnknownHostException
HealthMonitor.setHealthStatus(false, ex.toString(), healthInspector);
nakFatal(context, HttpResponseStatus.SERVICE_UNAVAILABLE, BootErrorCode.ACCESS_ERROR_LDAP, "LDAP " + cause.getClass().getSimpleName(), ex, cmtpCfg.getEmailToAppSupport(), httptMethod + " " + httpRequestPath);
} else {
Expand All @@ -85,7 +86,7 @@ public void onPersistenceException(PersistenceException ex, HttpMethod httptMeth
if (cause == null) {
cause = ex;
}
if (cause instanceof java.net.ConnectException) {
if (cause instanceof IOException) {// java.net.ConnectException
HealthMonitor.setHealthStatus(false, ex.toString(), healthInspector);
nakFatal(context, HttpResponseStatus.SERVICE_UNAVAILABLE, BootErrorCode.ACCESS_ERROR_DATABASE, "DB " + cause.getClass().getSimpleName(), ex, cmtpCfg.getEmailToAppSupport(), httptMethod + " " + httpRequestPath);
} else {
Expand Down

0 comments on commit e32143f

Please sign in to comment.