Tagged articles

exception handling

430 articles · Page 4 of 5
Top Architect
Top Architect
Jan 14, 2022 · Backend Development

Understanding Exception Types and @Transactional Usage in Spring

This article explains Java exception classification, distinguishes checked and unchecked exceptions, and demonstrates how to configure Spring's @Transactional annotation to control rollback behavior, including examples of rollbackFor, notRollbackFor, and propagation settings, while highlighting common pitfalls with try‑catch blocks.

@TransactionalJavaSpring
0 likes · 5 min read
Understanding Exception Types and @Transactional Usage in Spring
Java Backend Technology
Java Backend Technology
Dec 16, 2021 · Backend Development

Eliminate if…else Chaos in Java 8 with Functional Interfaces

Learn how to replace repetitive if…else statements in Java by leveraging Java 8’s functional interfaces—Supplier, Consumer, Runnable, and Function—through clear examples, custom interfaces, and utility methods that streamline exception handling, branch processing, and null checks for cleaner, more maintainable code.

Functional InterfaceJavaJava8
0 likes · 6 min read
Eliminate if…else Chaos in Java 8 with Functional Interfaces
Code Ape Tech Column
Code Ape Tech Column
Dec 9, 2021 · Information Security

Customizing Exception Responses in Spring Security OAuth2

This article explains how to customize authentication and resource server exception messages in Spring Security OAuth2, covering the creation of custom translators, entry points, and filters, with step‑by‑step code examples and testing procedures for handling username/password errors, grant type errors, client credential errors, token expiration, and insufficient permissions.

AuthenticationBackendJava
0 likes · 10 min read
Customizing Exception Responses in Spring Security OAuth2
Selected Java Interview Questions
Selected Java Interview Questions
Dec 4, 2021 · Backend Development

Common Scenarios Where Spring @Transactional Does Not Take Effect

This article explains eight typical situations—such as using non‑transactional storage engines, missing Spring bean registration, non‑public methods, self‑invocation, absent transaction manager, incorrect propagation settings, swallowed exceptions, and wrong exception types—that cause the @Transactional annotation in Spring to appear ineffective, and provides practical solutions for each.

@TransactionalBackendJava
0 likes · 7 min read
Common Scenarios Where Spring @Transactional Does Not Take Effect
Liangxu Linux
Liangxu Linux
Nov 21, 2021 · Fundamentals

Why Interrupts Matter: Unraveling CPU Interrupt Mechanisms and the IDT

This article explains how CPUs receive interrupt numbers through hardware, exceptions, or the INT instruction, describes the structure and purpose of the Interrupt Descriptor Table, and details the stack operations and control‑flow steps the processor performs to handle and return from an interrupt.

CPUIDTLinux kernel
0 likes · 17 min read
Why Interrupts Matter: Unraveling CPU Interrupt Mechanisms and the IDT
Architect's Journey
Architect's Journey
Nov 12, 2021 · Backend Development

Common Feign Pitfalls and How to Solve Them

This article examines three frequent challenges when using Feign in Spring Cloud—where to place the client, whether to wrap Feign interfaces, and how to handle business exceptions—offering a detailed comparison of two call styles, a ResponseBodyAdvice‑based wrapper solution, and a custom error decoder to propagate original exceptions.

FeignResponseBodyAdviceSpring Cloud
0 likes · 13 min read
Common Feign Pitfalls and How to Solve Them
Yang Money Pot Technology Team
Yang Money Pot Technology Team
Oct 26, 2021 · Mobile Development

Encapsulating Retrofit with Kotlin Coroutines in Android: Two Approaches

This article explains how to combine Retrofit with Kotlin coroutines on Android, compares the traditional RxJava method with coroutine-based implementations, and presents two encapsulation techniques—using a DSL and leveraging CoroutineExceptionHandler—to simplify asynchronous network calls and centralize error handling.

AndroidCoroutinesDSL
0 likes · 14 min read
Encapsulating Retrofit with Kotlin Coroutines in Android: Two Approaches
Python Programming Learning Circle
Python Programming Learning Circle
Oct 23, 2021 · Backend Development

Using Loguru for Simplified and Powerful Python Logging

This article introduces the Loguru library as an elegant, concise alternative to Python's built‑in logging, demonstrating installation, basic usage, file configuration, formatting, filtering, rotation, retention, compression, serialization, and advanced exception tracing with code examples.

Loguruexception handlinglogging
0 likes · 17 min read
Using Loguru for Simplified and Powerful Python Logging
Java Architect Essentials
Java Architect Essentials
Sep 21, 2021 · Fundamentals

Coding Standards and Best Practices for Robust Software Development

This article presents a set of coding "military rules" covering topics such as avoiding magic numbers, limiting method parameters, proper resource release, specific exception handling, and precise arithmetic, followed by practical development efficiency tips and resource links for further learning.

Software Engineeringcode qualitycoding standards
0 likes · 9 min read
Coding Standards and Best Practices for Robust Software Development
NetEase Cloud Music Tech Team
NetEase Cloud Music Tech Team
Aug 16, 2021 · Fundamentals

Java and Kotlin Exception Handling Best Practices

To improve Java‑Kotlin interoperability, the article recommends treating Kotlin exceptions as unchecked while enforcing Java‑style checked‑exception discipline through lint checks, using specific custom exceptions, avoiding broad catches or throws of Throwable, logging via a Monitor, and never returning from finally blocks to reduce crashes.

Best PracticesChecked ExceptionJava
0 likes · 9 min read
Java and Kotlin Exception Handling Best Practices
macrozheng
macrozheng
Aug 4, 2021 · Backend Development

Master Global Exception Handling in Spring Boot with @ControllerAdvice

This article explains how to use Spring Boot's @ControllerAdvice and @ExceptionHandler annotations to implement clean, global exception handling, covering basic usage, controller‑specific handlers, and ordered advice for multiple handlers, with practical code examples and diagrams.

ControllerAdviceJavaSpring Boot
0 likes · 7 min read
Master Global Exception Handling in Spring Boot with @ControllerAdvice
Selected Java Interview Questions
Selected Java Interview Questions
Jul 23, 2021 · Backend Development

Global Exception Handling in Spring MVC Using @ControllerAdvice and @ExceptionHandler

This article explains why global exception handling is needed in Spring MVC, outlines its application scenarios, compares AOP with the simpler @ControllerAdvice/@ExceptionHandler approach, and provides detailed code examples for custom response objects, validation handling, and transaction rollback strategies to improve code cleanliness and maintainability.

BackendControllerAdviceJava
0 likes · 11 min read
Global Exception Handling in Spring MVC Using @ControllerAdvice and @ExceptionHandler
Programmer DD
Programmer DD
Jul 9, 2021 · Backend Development

Why Catching an Exception Doesn't Prevent Spring Transaction Rollback

This article explains why a caught javax.validation.ConstraintViolationException in a Spring @Transactional method does not stop the transaction from rolling back, and shows how to debug the flow with logs and breakpoints to understand the underlying commit process.

JPAJavaSpring
0 likes · 4 min read
Why Catching an Exception Doesn't Prevent Spring Transaction Rollback
Top Architect
Top Architect
Jul 4, 2021 · Fundamentals

Avoiding Null Checks in Java: Assertions, Exceptions, and the Null Object Pattern

This article explains how to distinguish between valid and invalid null returns in Java, recommends using assertions or exceptions for erroneous nulls, suggests returning empty collections or objects, and demonstrates the Null Object pattern with code examples to eliminate repetitive null‑pointer checks.

Best PracticesJavaNull Object pattern
0 likes · 6 min read
Avoiding Null Checks in Java: Assertions, Exceptions, and the Null Object Pattern
Programmer DD
Programmer DD
Jun 24, 2021 · Backend Development

Master Java Exception Handling: 10 Best Practices Every Developer Should Follow

This article presents ten essential Java exception‑handling best practices—including proper resource cleanup, using specific exception types, documenting throws clauses, providing clear messages, catching the most specific exceptions first, avoiding Throwable, logging wisely, and preserving original causes—to improve code readability, reliability, and maintainability.

BackendBest PracticesJava
0 likes · 10 min read
Master Java Exception Handling: 10 Best Practices Every Developer Should Follow
Top Architect
Top Architect
Jun 21, 2021 · Backend Development

Custom Global Exception Handling in Spring Boot

This article explains how to configure Spring Boot to handle default and custom exceptions globally, covering logging of error mappings, adding Fastjson and Freemarker dependencies, configuring properties, defining error entity and custom exception classes, creating an error template, implementing a @ControllerAdvice handler, and testing with sample controllers and JSON responses.

ControllerAdviceGlobal ExceptionJava
0 likes · 13 min read
Custom Global Exception Handling in Spring Boot
Code Ape Tech Column
Code Ape Tech Column
Jun 15, 2021 · Backend Development

How to Build Robust, High‑Concurrency APIs: Design, Security, and Scaling Tips

This article outlines practical guidelines for designing and implementing enterprise‑grade APIs, covering request/response definitions, unified error handling, interceptor chains, token‑based authentication, rate limiting, load balancing, clustering, caching, and strategies for achieving high concurrency and high availability.

API DesignHigh Concurrencyexception handling
0 likes · 18 min read
How to Build Robust, High‑Concurrency APIs: Design, Security, and Scaling Tips
Programmer DD
Programmer DD
Jun 5, 2021 · Backend Development

When Does @Transactional Roll Back? Mastering Spring Transaction Exceptions

This article explains Alibaba’s Java guidelines for using @Transactional, categorizes checked and unchecked exceptions, shows how Spring’s default rollback behavior works, and provides practical examples of configuring rollback rules, avoiding common pitfalls, and best practices for applying @Transactional in backend Java applications.

@TransactionalJavaSpring
0 likes · 5 min read
When Does @Transactional Roll Back? Mastering Spring Transaction Exceptions
KooFE Frontend Team
KooFE Frontend Team
May 25, 2021 · Frontend Development

Why Ignoring Exceptions Is Killing Your JavaScript Code (And How to Fix It)

This article explains why proper exception handling is essential for high‑quality JavaScript, contrasts using return codes with real exceptions, shows clean versus dirty code examples, and offers practical guidelines such as defining custom exception hierarchies, handling Promise rejections, and providing contextual error information.

JavaScriptPromisescode quality
0 likes · 10 min read
Why Ignoring Exceptions Is Killing Your JavaScript Code (And How to Fix It)
Top Architect
Top Architect
May 17, 2021 · Backend Development

Common Spring Transaction Failure Scenarios and Their Solutions

This article explains typical situations where Spring @Transactional annotations fail—such as non‑public methods, beans not managed by the container, internal method calls, non‑RuntimeException throws, caught exceptions without rethrow, incorrect propagation settings, and unsupported MyISAM storage—and provides concrete code examples and fixes to ensure proper transaction behavior.

AOPJavaSpring
0 likes · 10 min read
Common Spring Transaction Failure Scenarios and Their Solutions
Top Architect
Top Architect
May 7, 2021 · Backend Development

Common Spring Transaction Failure Scenarios and Their Solutions

This article explains typical reasons why @Transactional may not work in Spring applications—such as non‑public methods, beans not managed by the container, internal method calls, non‑RuntimeException throws, swallowed exceptions, wrong propagation settings, and unsupported MySQL storage engines—and provides concrete code examples and fixes for each case.

AOPJavaMySQL
0 likes · 11 min read
Common Spring Transaction Failure Scenarios and Their Solutions
Selected Java Interview Questions
Selected Java Interview Questions
May 4, 2021 · Backend Development

Building a Reusable Backend Base Project with Swagger, CodeGenerator, Pagination, Exception Handling, and Multi‑Environment Configuration

This article explains how to create a reusable backend foundation for new Spring Boot projects by assembling common utilities such as Swagger API documentation, MyBatis‑Plus code generation, unified response objects, pagination helpers, custom exception handling, multi‑environment Maven and Spring profiles, logback configuration, and a Jenkins pipeline.

BackendJavaMaven
0 likes · 15 min read
Building a Reusable Backend Base Project with Swagger, CodeGenerator, Pagination, Exception Handling, and Multi‑Environment Configuration
Top Architect
Top Architect
May 4, 2021 · Backend Development

Best Practices for Exception Handling in Java

This article outlines essential Java exception‑handling best practices, covering resource cleanup with finally or try‑with‑resources, declaring specific exceptions, documenting throws clauses, providing descriptive messages, catching the most specific exceptions first, avoiding catching Throwable, never ignoring or double‑logging exceptions, and correctly wrapping exceptions without losing the original cause.

Best PracticesJavacoding standards
0 likes · 11 min read
Best Practices for Exception Handling in Java
Python Programming Learning Circle
Python Programming Learning Circle
Apr 22, 2021 · Fundamentals

Advanced Class Methods and Special Member Functions in Python

This article explains Python's advanced class features—including static methods, class methods, property decorators, special dunder methods, reflection utilities, dynamic attribute manipulation, metaclass creation, and exception handling—illustrated with clear code examples and practical usage tips.

Propertyclass-methodsexception handling
0 likes · 14 min read
Advanced Class Methods and Special Member Functions in Python
Huawei Cloud Developer Alliance
Huawei Cloud Developer Alliance
Apr 22, 2021 · Backend Development

Prevent Log Injection in Log4j2: Clean Input, PatternLayout, and Custom Throwable Converter

This article explains how malicious newline characters in logged usernames can cause log injection, demonstrates a simple input‑sanitizing method, shows how to use Log4j2's %enc{%m}{CRLF} pattern and a custom ThrowablePatternConverter to ensure all log messages and exception stacks remain on a single safe line.

Securityexception handlinglog injection
0 likes · 8 min read
Prevent Log Injection in Log4j2: Clean Input, PatternLayout, and Custom Throwable Converter
Selected Java Interview Questions
Selected Java Interview Questions
Apr 14, 2021 · Backend Development

Avoiding Null Checks in Java: When to Use Assertions, Exceptions, and the Null Object Pattern

This article explains why excessive null‑checking in Java code is problematic, distinguishes valid versus invalid null returns, and presents better alternatives such as assertions, throwing exceptions, returning empty collections or objects, and applying the Null Object pattern with concrete code examples.

Best PracticesJavaNull Handling
0 likes · 6 min read
Avoiding Null Checks in Java: When to Use Assertions, Exceptions, and the Null Object Pattern
Senior Brother's Insights
Senior Brother's Insights
Apr 11, 2021 · Backend Development

Why Try-with-Resources Outperforms Try-Catch-Finally in Java

Java developers often close resources manually using try-catch-finally, but since JDK 7 the try‑with‑resources construct automates this process; this article explains the traditional pattern, demonstrates the new syntax, shows how to implement custom Closeable classes, and reveals the compiler‑generated bytecode that preserves original exceptions via addSuppressed.

CloseableJDK7Java
0 likes · 10 min read
Why Try-with-Resources Outperforms Try-Catch-Finally in Java
Java Interview Crash Guide
Java Interview Crash Guide
Apr 8, 2021 · Backend Development

Why Does @Transactional Fail? Common Pitfalls and Fixes

This article explains the main reasons why Spring's @Transactional annotation may become ineffective—including non‑public method modifiers, internal method calls, and swallowed exceptions—provides code examples, test cases, and a deep dive into the underlying proxy and AOP mechanisms.

@TransactionalAOPJava
0 likes · 13 min read
Why Does @Transactional Fail? Common Pitfalls and Fixes
Intelligent Backend & Architecture
Intelligent Backend & Architecture
Apr 7, 2021 · Fundamentals

Mastering Java Exceptions: From Basics to Best Practices

This article provides a comprehensive overview of Java's exception architecture, detailing the hierarchy of Throwable, Error, and Exception, distinguishing checked and unchecked exceptions, explaining key keywords, and offering best practices with code examples for effective error handling.

Best PracticesChecked ExceptionsJava
0 likes · 32 min read
Mastering Java Exceptions: From Basics to Best Practices
Intelligent Backend & Architecture
Intelligent Backend & Architecture
Apr 6, 2021 · Fundamentals

Master Java Exception Handling: From Basics to Best Practices

This article provides a comprehensive overview of Java's exception mechanism, covering the Throwable hierarchy, differences between Errors, Exceptions, checked and unchecked types, key keywords, practical code examples, and best‑practice guidelines for writing robust, maintainable Java code.

Best PracticesChecked ExceptionsError
0 likes · 34 min read
Master Java Exception Handling: From Basics to Best Practices
FunTester
FunTester
Feb 27, 2021 · Backend Development

A Tale of Inter‑Service Bugs and Exception Handling in Backend Development

The article recounts a real‑world scenario where two backend engineers discover that many bugs blamed on the B system actually stem from missing validation and exception handling in the A system, illustrated with pseudo‑code showing a try‑catch block that logs and returns a generic failure message.

bug tracingexception handling
0 likes · 5 min read
A Tale of Inter‑Service Bugs and Exception Handling in Backend Development
QQ Music Frontend Team
QQ Music Frontend Team
Feb 26, 2021 · Mobile Development

Mastering Flutter Exception Handling, Gray Release, and Downgrade Strategies

This article summarizes Flutter exception types—including Dart, Engine, and Framework errors—explains how to capture them with try‑catch, Zone.runZoned, and FlutterError.onError, and details comprehensive gray‑release configurations, downgrade mechanisms, and operational metrics for maintaining reliable mobile experiences.

downgradeexception handling
0 likes · 9 min read
Mastering Flutter Exception Handling, Gray Release, and Downgrade Strategies
Java Backend Technology
Java Backend Technology
Feb 6, 2021 · Backend Development

Master Java Exception Handling: 10 Best Practices Every Developer Should Follow

This article explains why exception handling in Java is challenging and presents ten practical best‑practice guidelines—including using finally or try‑with‑resources, declaring specific exceptions, documenting throws, providing clear messages, catching specific exceptions first, avoiding Throwable, logging properly, and preserving original causes—to write more robust and maintainable code.

Best PracticesJavaexception handling
0 likes · 10 min read
Master Java Exception Handling: 10 Best Practices Every Developer Should Follow
Wukong Talks Architecture
Wukong Talks Architecture
Nov 26, 2020 · Backend Development

Step-by-Step Guide to Building PassJava with Spring Cloud Alibaba, Nacos, OpenFeign, Gateway, OSS Integration, and Unified Exception Handling

This tutorial walks through setting up the PassJava project, covering microservice architecture, service discovery with Nacos, remote calls via OpenFeign, API gateway configuration, OSS file storage integration, and centralized exception handling, providing detailed code examples and configuration steps for each component.

JavaNacosOSS
0 likes · 57 min read
Step-by-Step Guide to Building PassJava with Spring Cloud Alibaba, Nacos, OpenFeign, Gateway, OSS Integration, and Unified Exception Handling
Programmer DD
Programmer DD
Nov 9, 2020 · Backend Development

How to Implement a Non‑Intrusive Unified JSON Response in Spring Boot

This tutorial explains why a unified JSON format is needed in a Spring Boot project, defines a standard {code, message, data} schema, shows how to create a Result enum and generic wrapper class, and demonstrates global handling with @ResponseResultBody, ResponseBodyAdvice, and @ExceptionHandler for clean, consistent API responses.

BackendJSON responseJava
0 likes · 14 min read
How to Implement a Non‑Intrusive Unified JSON Response in Spring Boot
Top Architect
Top Architect
Nov 1, 2020 · Backend Development

Implementing Operation and Exception Logging with Spring Boot AOP

This article demonstrates how to use Spring Boot AOP to automatically record operation and exception logs by defining log tables, adding the AOP starter dependency, creating a custom @OperLog annotation, implementing an aspect that captures request details and errors, and applying the annotation to controller methods, providing a clean, reusable logging solution for Java backend applications.

AOPJavaSpring Boot
0 likes · 11 min read
Implementing Operation and Exception Logging with Spring Boot AOP
Java Backend Technology
Java Backend Technology
Oct 31, 2020 · Backend Development

Mastering Java Exceptions and @Transactional: When Do Transactions Roll Back?

This article explains Java exception categories, distinguishing checked from unchecked exceptions, and shows how Spring's @Transactional annotation controls transaction rollbacks, including configurations for rolling back on checked exceptions, preventing rollback on unchecked ones, and best practices for applying @Transactional in backend services.

JavaSpringexception handling
0 likes · 5 min read
Mastering Java Exceptions and @Transactional: When Do Transactions Roll Back?
vivo Internet Technology
vivo Internet Technology
Oct 20, 2020 · Fundamentals

Understanding Java Try‑with‑Resources: Syntax, Bytecode, and Best Practices

The article explains Java’s try‑with‑resources feature as syntactic sugar that the compiler rewrites into a try‑finally structure with sophisticated exception handling, demonstrates the generated bytecode, clarifies AutoCloseable versus Closeable, and offers best‑practice guidelines for reliable resource management.

Best PracticesJDK 9Java
0 likes · 17 min read
Understanding Java Try‑with‑Resources: Syntax, Bytecode, and Best Practices
Programmer DD
Programmer DD
Sep 18, 2020 · Backend Development

How to Hide Try‑Catch: Elegant Exception Handling with Java Lambdas

This article explains how to replace verbose try‑catch blocks in Java with behavior‑parameterized lambda expressions and functional interfaces, providing a cleaner way to handle both runtime and checked exceptions while also demonstrating file‑reading using try‑with‑resources and lambdas.

Functional Interfaceexception handlinglambda
0 likes · 5 min read
How to Hide Try‑Catch: Elegant Exception Handling with Java Lambdas
Programmer DD
Programmer DD
Sep 17, 2020 · Backend Development

How to Implement Multi-Image Upload and Preview in Spring MVC

This guide walks through building a Spring MVC backend that accepts multiple image uploads, returns them for preview, and covers front‑end HTML, JavaScript handling, multipart configuration, and common pitfalls such as parameter naming, file size limits, and global exception handling.

JavaScriptMultipartFileSpring MVC
0 likes · 7 min read
How to Implement Multi-Image Upload and Preview in Spring MVC
Top Architect
Top Architect
Sep 11, 2020 · Backend Development

Non‑Intrusive Unified JSON Response Format with Global Handling in Spring Boot

This article demonstrates how to design a non‑intrusive, unified JSON response structure for Spring Boot applications, defines a standard Result wrapper and status enum, shows static factory methods, and explains global handling via @ResponseResultBody, @RestControllerAdvice, and centralized exception processing.

JSONJavaResponse Wrapper
0 likes · 14 min read
Non‑Intrusive Unified JSON Response Format with Global Handling in Spring Boot
Architecture Digest
Architecture Digest
Sep 10, 2020 · Fundamentals

Elegant Exception Handling in Java Using Functional Interfaces and Lambda Expressions

This article explains how to simplify Java exception handling by leveraging behavior parameterization, lambda expressions, and functional interfaces, demonstrating a clean wrapper for checked exceptions and a try‑with‑resources file‑to‑string conversion that keeps business logic free of boilerplate try‑catch blocks.

Behavior ParameterizationFunctional InterfaceJava
0 likes · 5 min read
Elegant Exception Handling in Java Using Functional Interfaces and Lambda Expressions
Top Architect
Top Architect
Sep 3, 2020 · Backend Development

Building a Robust Backend API with Spring Boot: Validation, Global Exception Handling, and Unified Response

This article demonstrates how to construct a well‑structured Spring Boot backend API by integrating request validation with Hibernate Validator, implementing global exception handling, defining custom exceptions, and standardizing responses using a unified response object and response‑body advice.

Spring BootUnified Responseexception handling
0 likes · 18 min read
Building a Robust Backend API with Spring Boot: Validation, Global Exception Handling, and Unified Response
JD Retail Technology
JD Retail Technology
Aug 19, 2020 · Backend Development

Understanding Exception Handling: Strategies and Best Practices for Different System Types

This article explains the complexities of exception handling across various backend scenarios—such as message queues, RPC services, mobile and PC clients—offering practical guidelines on when to catch, rethrow, use error codes, or employ alternatives like Java Optional to improve code clarity and system reliability.

Best PracticesJavaerror codes
0 likes · 7 min read
Understanding Exception Handling: Strategies and Best Practices for Different System Types
Programmer DD
Programmer DD
Aug 6, 2020 · Backend Development

Mastering Spring @Transactional: Exception Types and Rollback Strategies

This article explains Java exception classifications, how Spring's @Transactional handles checked and unchecked exceptions, and provides practical configurations to control transaction rollbacks, while offering best‑practice notes on annotation placement and method design.

@TransactionalSpringexception handling
0 likes · 6 min read
Mastering Spring @Transactional: Exception Types and Rollback Strategies
Architecture Digest
Architecture Digest
Aug 2, 2020 · Backend Development

Understanding Exception Types and @Transactional Usage in Spring

This article explains Java exception classification, the difference between checked and unchecked exceptions, and how to correctly configure Spring's @Transactional annotation to control rollback behavior for various exception types, including best practices for placement and method design.

BackendJavaexception handling
0 likes · 4 min read
Understanding Exception Types and @Transactional Usage in Spring
ITPUB
ITPUB
Jul 31, 2020 · Backend Development

What Java Developers Can Learn from Top StackOverflow Questions: Branch Prediction, Security, Exceptions, and More

This article reviews several of the most popular Java questions on StackOverflow, explaining branch prediction for sorted arrays, why char[] is safer than String for passwords, handling NullPointerException, deterministic random strings, historic timezone quirks, creating an uncatchable exception, and the differences between HashMap, TreeMap and LinkedHashMap, highlighting practical lessons for developers.

HashMapJavaSecurity
0 likes · 10 min read
What Java Developers Can Learn from Top StackOverflow Questions: Branch Prediction, Security, Exceptions, and More
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Jul 24, 2020 · Mobile Development

Understanding Android Java Exception Capture and Handling Mechanism

Android captures uncaught Java exceptions using Thread.UncaughtExceptionHandler, first logging details with a system LoggingHandler then terminating the app via KillApplicationHandler, converting the Throwable into an ApplicationErrorReport sent to ActivityManagerService and stored in /data/system/dropbox, while developers can view the same FATAL EXCEPTION stack trace in logcat to diagnose and fix the root cause.

AndroidJavacrash analysis
0 likes · 10 min read
Understanding Android Java Exception Capture and Handling Mechanism
Youku Technology
Youku Technology
Jul 17, 2020 · Backend Development

Defensive Programming, Exception Handling, and DRY Principle in Java

The article explains how defensive programming in Java—using guard clauses, validators, and side‑effect‑free assertions—prevents errors, outlines proper exception handling by distinguishing checked from unchecked exceptions, and reinforces the DRY principle, urging developers to abstract repeated logic after three occurrences.

DRY PrincipleJavaSoftware Engineering
0 likes · 18 min read
Defensive Programming, Exception Handling, and DRY Principle in Java
Beike Product & Technology
Beike Product & Technology
Jul 2, 2020 · Mobile Development

How the Haishen Platform Detects and Resolves iOS Crashes in Real Time

This article explains the design and implementation of the Haishen crash monitoring platform for iOS, covering its system architecture, data collection, parsing, aggregation, routing, SDK features, exception handling, stack capture, startup crash detection, and upload mechanisms to quickly expose, locate, and fix crashes.

Crash MonitoringSystem Designexception handling
0 likes · 17 min read
How the Haishen Platform Detects and Resolves iOS Crashes in Real Time
Programmer DD
Programmer DD
Jun 17, 2020 · Information Security

How One Line of Code Opened a Remote Code Execution Hole in SpringBoot

A SpringBoot project’s custom validator introduced a severe remote code execution vulnerability when a single line of code interpolated user input, illustrating the importance of rigorous input validation, internationalized error handling, and security scanning before deployment.

EL InjectionSpringBootValidator
0 likes · 13 min read
How One Line of Code Opened a Remote Code Execution Hole in SpringBoot
政采云技术
政采云技术
Jun 7, 2020 · Fundamentals

Git Exception Handling Checklist: Solutions for Common Issues

This article provides a concise, step‑by‑step checklist of common Git exceptions—including file recovery, branch deletion, commit amendment, branch renaming, commit rollback, merge reversal, and branch restoration—along with the exact commands and explanations needed to resolve each situation efficiently.

Tutorialcommand lineexception handling
0 likes · 13 min read
Git Exception Handling Checklist: Solutions for Common Issues
FunTester
FunTester
Jun 4, 2020 · Backend Development

Mastering Custom Exceptions in Java: A Step‑by‑Step Guide

This tutorial explains how to define, implement, and throw custom Java exceptions, providing complete example code, step‑by‑step creation instructions, and a practical demo that integrates the custom exception into a JSON‑processing method.

JavaProgramming Tutorialbackend development
0 likes · 4 min read
Mastering Custom Exceptions in Java: A Step‑by‑Step Guide
Programmer DD
Programmer DD
May 23, 2020 · Backend Development

Master Java Exception Handling: 9 Proven Best Practices

This article explains nine essential best‑practice guidelines for handling exceptions in Java, covering resource cleanup, specific exception types, documentation, informative messages, catch ordering, avoiding Throwable, proper logging, and exception wrapping to improve code readability and reliability.

BackendJavacoding standards
0 likes · 11 min read
Master Java Exception Handling: 9 Proven Best Practices
FunTester
FunTester
May 21, 2020 · Backend Development

Best Practices for Handling Java Exceptions: Common Mistakes and Correct Approaches

This article presents common error patterns and proper techniques for handling Java exceptions, illustrating why returning null, catching generic exceptions, swallowing Throwables, and misusing finally blocks are problematic, and provides clear, correct examples to improve exception management in Java applications.

Best PracticesJavaerror handling
0 likes · 7 min read
Best Practices for Handling Java Exceptions: Common Mistakes and Correct Approaches
Programmer DD
Programmer DD
May 20, 2020 · Backend Development

Why Does Druid Throw “Connection Holder Is Null” and How to Fix It?

This article examines recurring “connection holder is null” errors in Druid’s connection pool, explains how the holder is assigned and cleared, analyzes two real‑world cases—long‑running transactions and killed connections—and offers practical configuration recommendations to prevent the issue.

DruidJavaconnection pool
0 likes · 7 min read
Why Does Druid Throw “Connection Holder Is Null” and How to Fix It?
Java Captain
Java Captain
May 1, 2020 · Backend Development

Unified Exception Handling in Spring Boot Using Assert and Enum-based Error Codes

This article demonstrates how to replace repetitive try‑catch blocks in Java Spring applications with a unified exception handling approach that leverages @ControllerAdvice, custom Assert utilities, and enum‑based error codes to produce clean, maintainable, and internationalized error responses across controllers and services.

EnumJavaSpring
0 likes · 20 min read
Unified Exception Handling in Spring Boot Using Assert and Enum-based Error Codes
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Apr 30, 2020 · Fundamentals

Detailed Explanation of ARMv8 Exception Handling Process

The article provides a thorough walkthrough of ARMv8 exception handling, describing the four exception levels (EL0‑EL3) and their dedicated stack and status registers, distinguishing synchronous and asynchronous faults, and detailing the vector table, entry routine, ESR‑based type decoding, handling steps such as do_mem_abort, and context restoration, illustrated with a Data Abort case.

ARMv8ELRESR
0 likes · 10 min read
Detailed Explanation of ARMv8 Exception Handling Process
58 Tech
58 Tech
Apr 17, 2020 · Mobile Development

Flutter Integration in Anjuke App Using Magpie Open Source Projects

This article demonstrates how the Magpie open‑source suite can be used to migrate the Anjuke App’s “YouLiao” module to Flutter, covering project setup, hybrid engineering, module integration, UI component reuse, theme management, logging, and exception handling to improve development efficiency and cross‑platform consistency.

AndroidDartFlutter
0 likes · 19 min read
Flutter Integration in Anjuke App Using Magpie Open Source Projects
JD Retail Technology
JD Retail Technology
Apr 9, 2020 · Fundamentals

Six Common Code Review Mistakes and How to Avoid Them

This article outlines six frequent code review pitfalls—including missing change notes, overusing generic exception handling, blind trust in third‑party inputs, overly broad variable scopes, lack of staged results, and excessive logging—and offers practical recommendations to improve code quality and maintainability.

Best PracticesCode Reviewexception handling
0 likes · 5 min read
Six Common Code Review Mistakes and How to Avoid Them
Python Programming Learning Circle
Python Programming Learning Circle
Mar 21, 2020 · Fundamentals

Python Fundamentals: Standard Libraries, Data Types, Context Managers, and Common Practices

This article presents a comprehensive Python fundamentals guide covering common standard libraries, built‑in data types, the with statement, mutable vs immutable types, date handling, word counting, file deletion, custom exceptions, error handling, bug‑fix strategies, and key language feature differences between Python 2 and 3.

Data TypesPython2 vs Python3context manager
0 likes · 15 min read
Python Fundamentals: Standard Libraries, Data Types, Context Managers, and Common Practices
Qunar Tech Salon
Qunar Tech Salon
Mar 17, 2020 · Fundamentals

What I Learned from Doing 1,000 Code Reviews: Common Mistakes and Best Practices

The article shares insights from reviewing thousands of code submissions, highlighting frequent errors such as swallowing exceptions, overusing generic string types, and misusing nulls, and recommends concrete type usage, proper exception handling, Optionals, and "unlifting" techniques to improve code quality and maintainability.

Best PracticesCode ReviewJava
0 likes · 8 min read
What I Learned from Doing 1,000 Code Reviews: Common Mistakes and Best Practices
21CTO
21CTO
Feb 17, 2020 · Fundamentals

Master Java Exceptions: Types, Handling, and Best Practices

This article explains Java exceptions, classifies them into Errors and Exceptions (including RuntimeException and CheckedException), describes how to handle them with try‑catch, throw, and throws, clarifies the difference between throw and throws, and offers practical best‑practice guidelines.

Best PracticesCheckedExceptionError
0 likes · 5 min read
Master Java Exceptions: Types, Handling, and Best Practices
macrozheng
macrozheng
Feb 14, 2020 · Backend Development

How Lombok Supercharges Your Java Code and Eliminates Boilerplate

This article explains what Lombok is, how to integrate it into a Maven project, and demonstrates its most useful annotations—such as @Getter, @Setter, @Builder, @AllArgsConstructor, @NoArgsConstructor, @RequiredArgsConstructor, @NonNull, @Cleanup, and @SneakyThrows—to dramatically reduce boilerplate, simplify object creation, enforce null checks, manage resources, and streamline exception handling in Java applications.

Boilerplate ReductionBuilder PatternJava
0 likes · 8 min read
How Lombok Supercharges Your Java Code and Eliminates Boilerplate
Programmer DD
Programmer DD
Dec 12, 2019 · Backend Development

Mastering Spring Boot Validation: Annotations, Custom Rules, and Global Error Handling

This article explains how to use Bean Validation in Spring Boot to replace repetitive IF‑ELSE checks with annotation‑driven parameter checks, covers built‑in and Hibernate‑specific constraints, demonstrates custom validators, group validation, and shows how to centralize error responses with a global exception handler.

JavaSpring BootValidator
0 likes · 11 min read
Mastering Spring Boot Validation: Annotations, Custom Rules, and Global Error Handling
Programmer DD
Programmer DD
Dec 7, 2019 · Information Security

Master Spring Security Exception Handling: From Authentication to Access Denied

This article explains the different exception types in Spring Security, how HTTP status codes map to authentication and authorization failures, and provides concrete implementations of AuthenticationEntryPoint and AccessDeniedHandler that return JSON responses, along with configuration tips for integrating them into a Spring Boot application.

AuthorizationJavaSpring Security
0 likes · 8 min read
Master Spring Security Exception Handling: From Authentication to Access Denied
Java Captain
Java Captain
Oct 22, 2019 · Backend Development

Common Java Coding Pitfalls and Best‑Practice Recommendations

This article enumerates typical Java coding mistakes—such as using "where 1=1" in MyBatis, iterating Map inefficiently, neglecting Collection.isEmpty, omitting collection size hints, concatenating strings in loops, overusing List.contains, misusing static initializers, keeping redundant code, and more—while providing concise, performance‑oriented corrections with clear examples.

JavaPerformancecode optimization
0 likes · 13 min read
Common Java Coding Pitfalls and Best‑Practice Recommendations