java

Java Ossexception: The Difference Between The Request Time And The Current Time Is Too Large

## problem Description: ``` com.aliyun.oss.OSSException: The difference between the request tim…

TwoPunch created at May 18, 2022, 9:42 a.m.

Open Feign Feignexception$Methodnotallowed: Status 405 Reading Xxx#Xxx()

## Problem Description ``` feign.FeignException$MethodNotAllowed: status 405 reading UserServic…

TwoPunch created at May 18, 2022, 9:39 a.m.

Java Java.Lang.Unsupportedoperationexception: Null

## problem description: ``` java.lang.UnsupportedOperationException: null ``` ## problem…

TwoPunch created at May 18, 2022, 9:35 a.m.

Java & Mapreduce:Org.Apache.Hadoop.Io.Nativeio.Nativeio$Windows.Createdirectorywithmode0

## peoblem In the project, local files need to be copied to hdfs. Since I am lazy, I use the Jav…

TwoPunch created at March 23, 2022, 3:51 p.m.

Springmvc: War Exploded: Error During Artifact Deployment. See Server Log For Details.

## problem When starting Tomcat, the error is as follows: ``` war exploded: Error during art…

TwoPunch created at March 20, 2022, 11:40 p.m.

How To Create A New Junit5 Test (Canary Test) For A Java Project In Idea

## tool * IDEA2021.3 *javaJDK17 * JUnit5 ## purpose Mainly learn Test Driven Development…

TwoPunch created at March 20, 2022, 10:25 a.m.

Java: Convert List To String With Stream

## problem The project has requirements: java converts `List` to `String` for subsequent matchin…

TwoPunch created at March 20, 2022, 10:03 a.m.

How Does Java Functional Programming Return String To Supplier<String>?

## problem When developing a project, use the following methods: ``` static void play(String…

TwoPunch created at March 20, 2022, 10 a.m.

Wsl/Window Terminal: Java 14 Switch Expressions Unrecognized

## problem `build` succeeds in IDEA, but `automated build` fails ``` $ ./gradlew > Task…

TwoPunch created at March 20, 2022, 8:40 a.m.

Seata Causes The Insert Statement To Appear The Error Occurred While Setting Parameters

## problem I am the seata RM side, the called side, when called by the business initiator, the f…

TwoPunch created at Feb. 23, 2022, 9:21 a.m.

The Origin Server Did Not Find A Current Representation For The Target Resource Or Is Not Willing To Disclose That One Exists

## code ``` package com.chey.controller; import org.springframework.web.servlet.ModelAndView;…

TwoPunch created at Feb. 23, 2022, 9:13 a.m.

Java.Util.Concurrentmodificationexception Exception Reason And Solution

## problem Goal: I want to delete elements in the collection during the loop traversal, but I en…

TwoPunch created at Feb. 14, 2022, 7:23 a.m.

There Was An Unexpected Error (Type=Internal Server Error, Status=500)

## problem ``` Whitelabel Error Page This application has no explicit mapping for /error, so y…

TwoPunch created at Jan. 19, 2022, 5:04 p.m.

During The Execution Of Hivesql, An Error Exception: Too Many Counters: 121 Max=120 Is Reported

## problem ``` INFO : Exception: Too many counters: 121 max=120 at org.apache.tez.common.coun…

TwoPunch created at Jan. 15, 2022, 6:53 a.m.

Error [Main] Imps.Curatorframeworkimpl:566 : Background Exception Was Not Retry-Able Or Retry Gave Up

The workaround is as follows: Modify the `hbase-site.xml` file of `HBase` Original configurat…

TwoPunch created at Jan. 15, 2022, 6:48 a.m.

Eclipse Error: "The Import Xxx Cannot Be Resolved"

## Solution Try cleaning your project by going to the following menu item: **Project** > **Cl…

TwoPunch created at Jan. 8, 2022, 2:09 a.m.

Spring Boot-Integrate Redis

## Dependent import To integrate Redis in Spring Boot, the first step is to import related depen…

TwoPunch created at Jan. 3, 2022, 11:44 p.m.

Nacos Get Changed Dataid Error, Code: 403

## problem `application.properties` after modifying `nacos` permission verification ``` naco…

TwoPunch created at Jan. 3, 2022, 2:27 p.m.

I/O Error While Reading Input Message; Nested Exception Is Java.Io.Ioexception: Stream Closed

## error ![error screenshot](https://static-workflow.s3.amazonaws.com/media/content_media/TwoPun…

TwoPunch created at Dec. 31, 2021, 4:46 a.m.

Solutions For Okhttp, Retrofit, And Alibaba Cloud Storage That Are Not Compatible With Systems Below Android 5.0

## Preface When running the framework with `OkHttp` as the bottom layer on phones below `Android…

TwoPunch created at Dec. 29, 2021, 12:31 a.m.

Org.Apache.Catalina.Startup.Hostconfig.Deploywar Error Deploying Web Application Archive

Yesterday, after repacking and publishing an old project to the cloud server, an error was reported…

TwoPunch created at Dec. 28, 2021, 12:55 a.m.

Loading Class `Com.Mysql.Jdbc.Driver'. This Is Deprecated. The New Driver Class Is `Com.Mysql.Cj.Jdbc.Driver'.

abnormal: ``` Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class i…

TwoPunch created at Dec. 27, 2021, 11:43 p.m.

Elegant Method Of Springboot Global Exception Handling

SpringBoot global exception preparation ## Development preparation Environmental requirements…

TwoPunch created at Dec. 26, 2021, 11:33 p.m.
TwoPunch created at Dec. 24, 2021, 2:29 p.m.

Several Methods Of Java Double Type To Retain Two Decimal Places

The 4 methods are all rounded, for example: ``` import java.math.BigDecimal; import java.t…

TwoPunch created at Dec. 24, 2021, 2:22 p.m.

Org.Apache.Catalina.Webresources.Cache.Backgroundprocess

## error The tomcat console reports the following error: > `org.apache.catalina.webresources.…

TwoPunch created at Dec. 24, 2021, 2:19 p.m.

Error:Java: Compilation Failed: Internal Java Compiler Error

## error When using IDEA to import a new project or upgrade IDEA or create a new project, the fo…

TwoPunch created at Dec. 24, 2021, 2:14 p.m.

Error Running Webapiapplication:Command Line Is Too Long

## error ``` Error running WebApiApplication:Command line is too long. Shorten command line for…

TwoPunch created at Dec. 23, 2021, 3:16 a.m.

Solution For: Error: Java: Compilation Failed: Internal Java Compiler Error

## Problem Description Error message: ``` Error:java: Compilation failed: internal java comp…

TwoPunch created at Dec. 23, 2021, 2:53 a.m.

Io.Seata.Common.Exception.Frameworkexception: Register Error,Role:Tmrole,Err:Cost 30010 Ms

## Project scene This error occurred when integrating `seata` ## Problem Description After…

TwoPunch created at Dec. 22, 2021, 11:29 p.m.

Syntax Error, Expect [, Actual {, Pos 0, Fieldname Null

## problem ``` JSON.parseObject(decrypt, Map.class) ``` This error is reported when the Str…

TwoPunch created at Dec. 22, 2021, 11:23 p.m.

Mybatis: Error Building Sqlsession. The Error May Exist In Usermapper.Xml

## Project scene Cannot find the `xml` configuration file when maven is running ## reason …

TwoPunch created at Dec. 20, 2021, 10:18 p.m.

There Is No Passwordencoder Mapped For The Id "Null": The Simplest Solution

## problem After `SpringSecurity5.x`, when verifying the password, you need to specify the encry…

TwoPunch created at Dec. 20, 2021, 9:57 p.m.

Nested Exception Is Java.Lang.Noclassdeffounderror: Com/Fasterxml/Jackson/Databind/Exc/Invalid

## error ``` 03-Jan-2020 13:48:21.051 severe [http-nio-8082-exec-3] org.apache.catalina.core.Ap…

TwoPunch created at Dec. 16, 2021, 10:28 p.m.

Java.Sql.Sqlexception: The Server Time Zone Value ‘�Й���׼ʱ��‘ Is Unrecognized Or Represents More

## Problem Description Today, using Spring-boot to configure MySQL, the startup project throws t…

TwoPunch created at Dec. 16, 2021, 10:26 p.m.

Description: No Bean Of Type ‘Org.Apache.Shiro.Realm.Realm‘ Found.

## Problem Description When the project is all configured, we run the `Shiro` project and found …

TwoPunch created at Dec. 16, 2021, 10:21 p.m.

Failed To Load Class “Org.Slf4j.Impl.Staticloggerbinder“.

## Reason for error The following error was thrown when implementing `Shiro` authentication toda…

TwoPunch created at Dec. 16, 2021, 10:19 p.m.

Field Shiroservice In Com.Bbzd.Mes.Shiro.Auth.Authrealm Required A Bean Of Type ‘Xxxservice‘ That...

## Problem Description Writing the `service` layer today throws the following error: ``` Des…

TwoPunch created at Dec. 16, 2021, 5:32 p.m.

Action: Consider Defining A Bean Named ‘Authenticator‘ In Your Configuration.

## error description Today Springboot integrates `Shiro` and throws the following error: ``` …

TwoPunch created at Dec. 16, 2021, 5:28 p.m.

Springboot: Configuration Of Logback

## Preface To realize the function: according to different configuration files, the logback log …

TwoPunch created at Dec. 16, 2021, 5:26 p.m.

Failed To Configure A Datasource: ‘Url‘ Attribute Is Not Specified And No Embedded Datasource Could

## Problem Description SpringBoot configuration to connect to multiple databases throws the foll…

TwoPunch created at Dec. 16, 2021, 5:23 p.m.

@Setter @Getter Is Invalid When Idea Uses Lombok

## Problem Description The program can run normally The editor interface prompts that the cla…

TwoPunch created at Dec. 16, 2021, 5:19 p.m.

Caused By: Org.Springframework.Amqp.Amqpexception: No Method Found For Class [B

## Problem Description Write RabbitMQ message ![data](https://static-workflow.s3.amazonaws.co…

TwoPunch created at Dec. 16, 2021, 5:13 p.m.

Init Datasource Error, Url: Jdbc:Mysql://Localhost:3306/Test

## Problem Description Starting the project today suddenly throws the following error message: …

TwoPunch created at Dec. 16, 2021, 5:08 p.m.

Could Not Set Parameters For Mapping: Parametermapping{Property=

## probelm I used a `like` and reported an error ``` Could not set parameters for mapping: P…

TwoPunch created at Dec. 14, 2021, 1:26 p.m.

Provider Sun.Tools.Attach.Windowsattachprovider Could Not Be Instant

## reason The reason is that `attach.dll` cannot be found. ## solution Add the `jre/bin` p…

TwoPunch created at Dec. 14, 2021, 1:23 p.m.

No Implementation Found For Void Tv.Danmaku.Ijk.Media.Player.Ijkmediaplayer.Native_Profileend()

## error ``` 2020-02-10 10:16:16.364 32284-32284/com.zhuicha.aitv E/art: No implementation foun…

TwoPunch created at Dec. 14, 2021, 1:22 p.m.

Eclipse Import Project Error-"The Import Javax.Servlet Cannot Be Resolved"

## reason When the project was imported, the two jars `jsp-api.jar` and `servlet-api.jar` were n…

TwoPunch created at Dec. 14, 2021, 1:18 p.m.

Attempted To Return Null From A Method With A Primitive Return Type (Int).

## cause of the error The reason for this error is that the `sql` statement did not query the da…

TwoPunch created at Dec. 14, 2021, 1:16 p.m.

An Error Happened During Template Parsing

## error When learning springmvc, when using the `controller` layer to interact with `thymeleaf`…

TwoPunch created at Dec. 13, 2021, 2:37 p.m.

Parserexception: Syntax Error, Error In :'It 1 Limit ? ', Expect Limit, Actual Limit Pos , Line , Column , Token Limit

## error PageHelper's unsafe paging problem, resulting in  ``` ParserException: syntax error…

TwoPunch created at Dec. 12, 2021, 8:37 a.m.

[Org.Springframework.Web.Context.Contextloader] [Context Initialization Failed]

## error Error using aspect configuration transaction ``` [14:06:27:291] [WARN ] [RMI TCP Co…

TwoPunch created at Dec. 8, 2021, 2:58 p.m.

Log4j - Error Category Option "1." Not A Decimal Integer

## error ``` g4j: Setting property [conversionPattern] to [%d{dd MMM yyyy HH:mm:ss.SSS} [%p] [%…

TwoPunch created at Dec. 8, 2021, 2:32 p.m.

Log4j - Error Setfile(Null,False) Call Failed

## error ``` frank_cui log4j - ERROR setFile(null,false) call failed log4j:ERROR setFile(null…

TwoPunch created at Dec. 8, 2021, 2:23 p.m.

Jcreator Error : Invalid Path...

## error ``` jcreator Error : Invalid path...D:\Program Files (x86)\Java\...JDK... Failed t…

TwoPunch created at Dec. 6, 2021, 3:59 p.m.

Error: A Jni Error Has Occurred, Please Check Your Installation And Try Again

## Review I downloaded a piece of code, \`import\` to \`Eclipse\`, and after \`Build Path\`, I f…

TwoPunch created at Dec. 5, 2021, 7:06 p.m.

Error: Dl Failure On Line 893

## problem In the centos system, after installing `jdk-8u60-linux-i586.tar.gz`, after configurin…

TwoPunch created at Nov. 27, 2021, 2:53 p.m.

Beanshell Error: Error Invoking Bsh Method: Eval Solution

## Problem Read the contents of the CSV file in beanshell, the same code can be executed in IDEA…

TwoPunch created at Nov. 24, 2021, 5:20 p.m.

Error Starting Applicationcontext. To Display The Conditions Report Re-Run Your Application With 'Debug' Enabled.

## error After adding `swagger` to the project, the following error occurred when running the pr…

TwoPunch created at Nov. 24, 2021, 4:52 p.m.

Maven Startup Error Fatal Error Compiling: Invalid Target Release

## error The error content is as follows ``` ERROR] Failed to execute goal org.apache.maven.…

TwoPunch created at Nov. 24, 2021, 4:49 p.m.

Json Parse Error: Invalid Utf-8

Copying the project from the old workspace to the new workspace directory today prompts the followi…

TwoPunch created at Nov. 24, 2021, 2:23 p.m.

Error Querying Database. Cause: Java.Sql.Sqlexception: Row 28 Was Cut By Group_Concat()

## reason Insufficient length causes ## solution ``` ##Set size SET GLOBAL group_concat_…

TwoPunch created at Nov. 16, 2021, 2:58 p.m.

A Fatal Error Has Been Detected By The Java Runtime Environment:

## 1\. Overview of error reporting ``` # # A fatal error has been detected by the Java Runtime…

TwoPunch created at Nov. 16, 2021, 1:26 p.m.

Open Jpg Image Under Ubuntu Prompt Error Interpreting Jpeg Image File (Not A Jpeg File: Starts With 0x89 0x50)

## problem The java background received a picture in jpg format and found that it can be opened …

TwoPunch created at Nov. 12, 2021, 8:17 a.m.

Confluence Crashes Due To 'Outofmemoryerror Java Heap Space' Error

## solution Edit the `setenv.sh` file to adjust the `heap size` (the default is `1024M`) ``` …

TwoPunch created at Nov. 11, 2021, 2:39 p.m.

Error Querying Database. Cause: Java.Sql.Sqlexception: The Server Time Zone Value Xxx Is Unrecognized Or Represents More Xxxxx

Scenario of error: when testing mybatis to connect to Mysql Specific error message: ``` F:\J…

TwoPunch created at Nov. 11, 2021, 2:28 p.m.

Spring Boot: Whitelabel Error Page Solution

This article is suitable for newbies who are new to me like me. If there is something wrong, please…

TwoPunch created at Nov. 10, 2021, 1:31 p.m.

Error:Could Not Create The Java Virtual Machine Error:A Fatal Exception Has Occurred

As a newbie, this is really a headache. What I found on various platforms does not match, such as d…

TwoPunch created at Oct. 28, 2021, 3:55 p.m.

There Was An Unexpected Error (Type=Internal Server Error, Status=500).

## error ``` Whitelabel Error Page This application has no explicit mapping for /error, so you…

TwoPunch created at Oct. 28, 2021, 3:50 p.m.

Springcloud Project Web.Client.Httpservererrorexception$Internalservererror: 500 Internal Server Error

## problem In the springCloud project, the consumer module uses `RestTemplate` to call the provi…

TwoPunch created at Oct. 28, 2021, 3:40 p.m.

Error Org.Apache.Struts2.Dispatcher.Dispatcher - Dispatcher Initialization Failed

## Problem Description New eclipse project can't run jsp There are many online solutions, suc…

TwoPunch created at Oct. 26, 2021, 3:39 p.m.

Error On Line 1 Of Document : Content Is Not Allowed In Prolog. Nested Exception: Content Is Not Allowed In Prolog.

background The project uses VMware vSphere to take a snapshot before the software upgrade. ![…

TwoPunch created at Oct. 25, 2021, 2:56 p.m.

Error Querying Database. Cannot Invoke "Object.Hashcode()" Because "Key" Is Null

## error There was a problem when learning mybatis with Wbe in eclipse. ``` Error querying d…

TwoPunch created at Oct. 21, 2021, 7:56 a.m.
TwoPunch created at Oct. 17, 2021, 10:28 p.m.

Java Running Error: Error: Could Not Find Or Load Main Class

Compile HelloWorld.java to generate the bytecode file `HelloWorld.class`, and run `HelloWorld.class…

TwoPunch created at Oct. 17, 2021, 8:59 p.m.

Error:A Jni Error Has Occureed

## Java error Notebook Eslip IDE error ``` error: A JNI error has occureed ``` ## So…

TwoPunch created at Oct. 16, 2021, 7:01 a.m.

Error Creating Bean With Name

## reason and solution The class forgot to annotate: `@Repository`

TwoPunch created at Oct. 16, 2021, 6:51 a.m.

Write Java Rpc From Scratch (01) Based On Websocket Implementation

## RPC ### problem to be solved RPC mainly aims to solve two problems: * Solve the p…

TwoPunch created at Oct. 8, 2021, 2:52 p.m.

Java.Lang.Illegalstateexception: Logback Configuration Error Detected:

## solution Load order adjustment in `pom.xml` Put these at the top of the pom ``` <!-- …

TwoPunch created at Oct. 8, 2021, 1:59 p.m.

Error:Java: Compilation Failed: Internal Java Compiler Error

Code build error, all the Internet says to change the jdk version or increase the memory. I tried i…

doporos created at Oct. 1, 2021, 11:59 a.m.

Java Error Creating Bean With Name:Bean With Name Has Been Injected Into Other Beans In Its Raw

## problem ``` Caused by: org.springframework.beans.factory.BeanCurrentlyInCreationException: E…

doporos created at Sept. 30, 2021, 12:16 p.m.

The Error May Involve Defaultparametermap,The Error Occurred While Setting Parameters

I encountered an error today, running RankDao.selectById(id) directly reported the error to me, I d…

doporos created at Sept. 27, 2021, 5:05 p.m.

Solve Intellij Idea Error: Java: Invalid Source Release: 16

## error Project compilation error: ``` Error: java: invalid source release: 16 ``` ## …

doporos created at Sept. 27, 2021, 2:55 p.m.

Solve Intellij Idea Error: Java: Invalid Source Release: 1.8

Errors in the compilation of the new project are as follows: ![error screenshot](https://static-…

doporos created at Sept. 27, 2021, 2:49 p.m.

Integrate Grafana In Your Own Java Application

Grafana is a very good visualization report tool with well-designed visualization tools. Today, let…

doporos created at Sept. 20, 2021, 5:10 p.m.

Springboot Integrates Springcloud

## 1\. SpringCloud features SpringCloud focuses on providing a good out-of-the-box experience fo…

doporos created at Sept. 15, 2021, 3:57 p.m.

Several Solutions For Optimizing If-Else Code In Java

## Preface Some status of the development system, such as order status: the database storage is …

doporos created at Sept. 15, 2021, 3:29 p.m.

Cannot Call Senderror() After The Response Has Been Committed

## frame springboot+IDEA+spring security oauth2 ## background When the user logs in to obt…

doporos created at Sept. 13, 2021, 4:57 p.m.

Error Creating Document Instance. And Byte 1 Of The Utf-8 Sequence Of Bytes Is Invalid

## MyBatis related bug records For the study of MyBatis, I encountered many inexplicable bugs fr…

doporos created at Sept. 13, 2021, 4:37 p.m.

Intellij Idea Reported Could Not Autowire. No Beans Of'xxxx' Type Found

## 1\. Problem description In Idea’s spring project, I often encounter the error message “Could …

doporos created at Sept. 12, 2021, 3:07 p.m.

Error Creating Bean With Name ‘Configurationpropertiesbeans‘

## problem phenomenon When the SpringCloud system is built in IDEA, a red error is displayed whe…

doporos created at Sept. 11, 2021, 3:59 p.m.

Error 11668 --- [ Restartedmain] O.S.Boot.Springapplication : Application Run Failed

## error message ``` Error starting ApplicationContext. To display the conditions report re-run…

doporos created at Sept. 7, 2021, 3:39 p.m.

Feign.Codec.Encodeexception: Type Definition Error: [Simple Type, Class Java.Util.Collections$3]

When I saw the request, I thought of the request parameter problem, and I didn’t know where the pro…

doporos created at Sept. 7, 2021, 3:35 p.m.

Error: A Jni Error Has Occurred, Please Check Your Installation And Try Again

## error description The error appears after installing `zookeeper` and `flume`, `hbase` cannot …

doporos created at Sept. 2, 2021, 2:41 p.m.

Http Status 500 – Internal Server Error Type Exception Report Message Servlet Execution Threw An Ex

## cause of error The error occurred because `BeanUtils` has not been added to the `Servlet` …

doporos created at Sept. 2, 2021, 2:30 p.m.

Error Updating Database. Cause: Java.Sql.Sqlexception: Field 'Book_Doc_Id' Doesn't Have A Default Value

This error is reported because: 1. When the id primary key is set, it is not self-incremented …

doporos created at Sept. 1, 2021, 10:15 p.m.

Artifact Example:Web Exploded: Error During Artifact Deployment

I debugged for two hours and didn't change it, but it finally changed After running tomcat, Arti…

doporos created at Aug. 31, 2021, 4:23 p.m.

Intellij Idea Error: (24, 35) Java: Constant String Too Long

When assigning a long and long string of text to a string, idea fails to compile and an error is re…

doporos created at Aug. 25, 2021, 4:19 p.m.

Swagger3.0 (Springboot) Eliminate Basic-Error-Controller

1\. To create a new springboot project, you can quickly generate a springboot project through [http…

doporos created at Aug. 23, 2021, 12:30 p.m.

The Difference Between Error, Exception And Runtimeexception

First find out the relationship between the three of them. Both `Error` and `Exception` inherit fro…

doporos created at Aug. 18, 2021, 12:55 p.m.