Tag Archives: intellectual idea

[Solved] IDEA Error: Error running ‘Application‘: Command line is too long

Error running ‘application’ in idea: command line is too long Shorten command line for Application or also for Spring Boot default configuration

Problem background solution 1 (current project settings) solution 2 (global settings)

Lyric: I can’t go to a good school

Command line is too long. Shorten command line for Application or also for Spring Boot default configuration)

Problem background

When idea starts the project, it suddenly reports an error

Error running 'Application':
Command line is too long.Shorten command line for Application or also for Spring Boot default configuration.

Solution:

Method 1 (current project settings)

1 click Edit configurations

in the run drop-down box of the current project. 2 Click environment, select the short command line drop-down box, select classpath file or jar manifest, and click OK to confirm

Method 2 (global setting)

1. Since scheme 1 is the current project setting and other projects are not opened, you can set the global. Click file → new projects settings → run configuration templates for new projects

2. Click springboot project. Other projects are the same as scheme 1

IDEA Error: lombok.extern.slf4j is not exist [How to Solve]

Idea reports an error Lombok extern. Slf4j is not exist no solution exists

Problem background solution summary Lyric: maltose wine

Problem background

When you start the idea project, you suddenly report an error Lombok extern. It’s been a long time since I found that the version of 4fj is compatible with Maven

Solution

1 file → setting

2 build → build tools → maven → runner, check delegate ide build and click OK

[Solved] Maven Multi-Project Compile Error: The POM for xxx is invalid

Reference address: the POM for XXX is invalid

Compilation warning:

[WARNING] The POM for com.gtcom:output-common:jar:1.0.0-SNAPSHOT is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details

Solution:

If there is no remote warehouse, select install on the parent project. If there is a remote warehouse, select deploy on the parent project.

Error message:

D:\Java\jdk-11.0.13\bin\java.exe -Dmaven.multiModuleProjectDirectory=D:\IdeaProjects\gtcom-output\output-backstage "-Dmaven.home=D:\JetBrains\IntelliJ IDEA 2021.3\plugins\maven\lib\maven3" "-Dclassworlds.conf=D:\JetBrains\IntelliJ IDEA 2021.3\plugins\maven\lib\maven3\bin\m2.conf" "-Dmaven.ext.class.path=D:\JetBrains\IntelliJ IDEA 2021.3\plugins\maven\lib\maven-event-listener.jar" "-javaagent:D:\JetBrains\IntelliJ IDEA 2021.3\lib\idea_rt.jar=61663:D:\JetBrains\IntelliJ IDEA 2021.3\bin" -Dfile.encoding=UTF-8 -classpath "D:\JetBrains\IntelliJ IDEA 2021.3\plugins\maven\lib\maven3\boot\plexus-classworlds-2.6.0.jar;D:\JetBrains\IntelliJ IDEA 2021.3\plugins\maven\lib\maven3\boot\plexus-classworlds.license" org.codehaus.classworlds.Launcher -Didea.version=2021.3 -DskipTests=true compile
[INFO] Scanning for projects...
[INFO] 
[INFO] ---------------------< com.gtcom:output-backstage >---------------------
[INFO] Building output-backstage 1.0.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The POM for com.gtcom:output-common:jar:1.0.0-SNAPSHOT is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ output-backstage ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] Copying 4 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ output-backstage ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 56 source files to D:\IdeaProjects\gtcom-output\output-backstage\target\classes
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  2.074 s
[INFO] Finished at: 2022-01-20T19:57:55+08:00
[INFO] ------------------------------------------------------------------------
---------------------------------------------------
constituent[0]: file:/D:/JetBrains/IntelliJ%20IDEA%202021.3/plugins/maven/lib/maven3/conf/logging/
constituent[1]: file:/D:/JetBrains/IntelliJ%20IDEA%202021.3/plugins/maven/lib/maven3/lib/cdi-api-1.0.jar
constituent[2]: file:/D:/JetBrains/IntelliJ%20IDEA%202021.3/plugins/maven/lib/maven3/lib/commons-cli-1.4.jar
constituent[3]: file:/D:/JetBrains/IntelliJ%20IDEA%202021.3/plugins/maven/lib/maven3/lib/commons-io-2.5.jar
constituent[4]: file:/D:/JetBrains/IntelliJ%20IDEA%202021.3/plugins/maven/lib/maven3/lib/commons-lang3-3.8.1.jar
constituent[5]: file:/D:/JetBrains/IntelliJ%20IDEA%202021.3/plugins/maven/lib/maven3/lib/guava-25.1-android.jar
constituent[6]: file:/D:/JetBrains/IntelliJ%20IDEA%202021.3/plugins/maven/lib/maven3/lib/guice-4.2.1-no_aop.jar
constituent[7]: file:/D:/JetBrains/IntelliJ%20IDEA%202021.3/plugins/maven/lib/maven3/lib/jansi-1.17.1.jar
constituent[8]: file:/D:/JetBrains/IntelliJ%20IDEA%202021.3/plugins/maven/lib/maven3/lib/javax.inject-1.jar
constituent[9]: file:/D:/JetBrains/IntelliJ%20IDEA%202021.3/plugins/maven/lib/maven3/lib/jcl-over-slf4j-1.7.29.jar
constituent[10]: file:/D:/JetBrains/IntelliJ%20IDEA%202021.3/plugins/maven/lib/maven3/lib/jsoup-1.12.1.jar
constituent[11]: file:/D:/JetBrains/IntelliJ%20IDEA%202021.3/plugins/maven/lib/maven3/lib/jsr250-api-1.0.jar
constituent[12]: file:/D:/JetBrains/IntelliJ%20IDEA%202021.3/plugins/maven/lib/maven3/lib/maven-artifact-3.8.1.jar
constituent[13]: file:/D:/JetBrains/IntelliJ%20IDEA%202021.3/plugins/maven/lib/maven3/lib/maven-builder-support-3.8.1.jar
constituent[14]: file:/D:/JetBrains/IntelliJ%20IDEA%202021.3/plugins/maven/lib/maven3/lib/maven-compat-3.8.1.jar
constituent[15]: file:/D:/JetBrains/IntelliJ%20IDEA%202021.3/plugins/maven/lib/maven3/lib/maven-core-3.8.1.jar
constituent[16]: file:/D:/JetBrains/IntelliJ%20IDEA%202021.3/plugins/maven/lib/maven3/lib/maven-embedder-3.8.1.jar
constituent[17]: file:/D:/JetBrains/IntelliJ%20IDEA%202021.3/plugins/maven/lib/maven3/lib/maven-model-3.8.1.jar
constituent[18]: file:/D:/JetBrains/IntelliJ%20IDEA%202021.3/plugins/maven/lib/maven3/lib/maven-model-builder-3.8.1.jar
constituent[19]: file:/D:/JetBrains/IntelliJ%20IDEA%202021.3/plugins/maven/lib/maven3/lib/maven-plugin-api-3.8.1.jar
constituent[20]: file:/D:/JetBrains/IntelliJ%20IDEA%202021.3/plugins/maven/lib/maven3/lib/maven-repository-metadata-3.8.1.jar
constituent[21]: file:/D:/JetBrains/IntelliJ%20IDEA%202021.3/plugins/maven/lib/maven3/lib/maven-resolver-api-1.6.2.jar
constituent[22]: file:/D:/JetBrains/IntelliJ%20IDEA%202021.3/plugins/maven/lib/maven3/lib/maven-resolver-connector-basic-1.6.2.jar
constituent[23]: file:/D:/JetBrains/IntelliJ%20IDEA%202021.3/plugins/maven/lib/maven3/lib/maven-resolver-impl-1.6.2.jar
constituent[24]: file:/D:/JetBrains/IntelliJ%20IDEA%202021.3/plugins/maven/lib/maven3/lib/maven-resolver-provider-3.8.1.jar
constituent[25]: file:/D:/JetBrains/IntelliJ%20IDEA%202021.3/plugins/maven/lib/maven3/lib/maven-resolver-spi-1.6.2.jar
constituent[26]: file:/D:/JetBrains/IntelliJ%20IDEA%202021.3/plugins/maven/lib/maven3/lib/maven-resolver-transport-wagon-1.6.2.jar
constituent[27]: file:/D:/JetBrains/IntelliJ%20IDEA%202021.3/plugins/maven/lib/maven3/lib/maven-resolver-util-1.6.2.jar
constituent[28]: file:/D:/JetBrains/IntelliJ%20IDEA%202021.3/plugins/maven/lib/maven3/lib/maven-settings-3.8.1.jar
constituent[29]: file:/D:/JetBrains/IntelliJ%20IDEA%202021.3/plugins/maven/lib/maven3/lib/maven-settings-builder-3.8.1.jar
constituent[30]: file:/D:/JetBrains/IntelliJ%20IDEA%202021.3/plugins/maven/lib/maven3/lib/maven-shared-utils-3.2.1.jar
constituent[31]: file:/D:/JetBrains/IntelliJ%20IDEA%202021.3/plugins/maven/lib/maven3/lib/maven-slf4j-provider-3.8.1.jar
constituent[32]: file:/D:/JetBrains/IntelliJ%20IDEA%202021.3/plugins/maven/lib/maven3/lib/org.eclipse.sisu.inject-0.3.4.jar
constituent[33]: file:/D:/JetBrains/IntelliJ%20IDEA%202021.3/plugins/maven/lib/maven3/lib/org.eclipse.sisu.plexus-0.3.4.jar
constituent[34]: file:/D:/JetBrains/IntelliJ%20IDEA%202021.3/plugins/maven/lib/maven3/lib/plexus-cipher-1.7.jar
constituent[35]: file:/D:/JetBrains/IntelliJ%20IDEA%202021.3/plugins/maven/lib/maven3/lib/plexus-component-annotations-2.1.0.jar
constituent[36]: file:/D:/JetBrains/IntelliJ%20IDEA%202021.3/plugins/maven/lib/maven3/lib/plexus-interpolation-1.25.jar
constituent[37]: file:/D:/JetBrains/IntelliJ%20IDEA%202021.3/plugins/maven/lib/maven3/lib/plexus-sec-dispatcher-1.4.jar
constituent[38]: file:/D:/JetBrains/IntelliJ%20IDEA%202021.3/plugins/maven/lib/maven3/lib/plexus-utils-3.2.1.jar
constituent[39]: file:/D:/JetBrains/IntelliJ%20IDEA%202021.3/plugins/maven/lib/maven3/lib/slf4j-api-1.7.29.jar
constituent[40]: file:/D:/JetBrains/IntelliJ%20IDEA%202021.3/plugins/maven/lib/maven3/lib/wagon-file-3.4.3.jar
constituent[41]: file:/D:/JetBrains/IntelliJ%20IDEA%202021.3/plugins/maven/lib/maven3/lib/wagon-http-3.4.3-shaded.jar
constituent[42]: file:/D:/JetBrains/IntelliJ%20IDEA%202021.3/plugins/maven/lib/maven3/lib/wagon-provider-api-3.4.3.jar
---------------------------------------------------
Exception in thread "main" java.lang.AssertionError
	at jdk.compiler/com.sun.tools.javac.util.Assert.error(Assert.java:155)
	at jdk.compiler/com.sun.tools.javac.util.Assert.check(Assert.java:46)
	at jdk.compiler/com.sun.tools.javac.comp.Modules.enter(Modules.java:247)
	at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.readSourceFile(JavaCompiler.java:837)
	at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment$ImplicitCompleter.complete(JavacProcessingEnvironment.java:1535)
	at jdk.compiler/com.sun.tools.javac.code.Symbol.complete(Symbol.java:642)
	at jdk.compiler/com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:1326)
	at jdk.compiler/com.sun.tools.javac.code.Type$ClassType.complete(Type.java:1140)
	at jdk.compiler/com.sun.tools.javac.code.Type$ClassType.getTypeArguments(Type.java:1066)
	at jdk.compiler/com.sun.tools.javac.code.Printer.visitClassType(Printer.java:237)
	at jdk.compiler/com.sun.tools.javac.code.Printer.visitClassType(Printer.java:52)
	at jdk.compiler/com.sun.tools.javac.code.Type$ClassType.accept(Type.java:993)
	at jdk.compiler/com.sun.tools.javac.code.Printer.visit(Printer.java:136)
	at jdk.compiler/com.sun.tools.javac.util.AbstractDiagnosticFormatter.formatArgument(AbstractDiagnosticFormatter.java:199)
	at jdk.compiler/com.sun.tools.javac.util.AbstractDiagnosticFormatter.formatArguments(AbstractDiagnosticFormatter.java:167)
	at jdk.compiler/com.sun.tools.javac.util.BasicDiagnosticFormatter.formatMessage(BasicDiagnosticFormatter.java:111)
	at jdk.compiler/com.sun.tools.javac.util.BasicDiagnosticFormatter.formatMessage(BasicDiagnosticFormatter.java:67)
	at jdk.compiler/com.sun.tools.javac.util.AbstractDiagnosticFormatter.formatArgument(AbstractDiagnosticFormatter.java:185)
	at jdk.compiler/com.sun.tools.javac.util.AbstractDiagnosticFormatter.formatArguments(AbstractDiagnosticFormatter.java:167)
	at jdk.compiler/com.sun.tools.javac.util.BasicDiagnosticFormatter.formatMessage(BasicDiagnosticFormatter.java:111)
	at jdk.compiler/com.sun.tools.javac.util.BasicDiagnosticFormatter.formatMessage(BasicDiagnosticFormatter.java:67)
	at jdk.compiler/com.sun.tools.javac.util.JCDiagnostic.getMessage(JCDiagnostic.java:788)
	at jdk.compiler/com.sun.tools.javac.api.ClientCodeWrapper$DiagnosticSourceUnwrapper.getMessage(ClientCodeWrapper.java:799)
	at org.codehaus.plexus.compiler.javac.JavaxToolsCompiler.compileInProcess(JavaxToolsCompiler.java:149)
	at org.codehaus.plexus.compiler.javac.JavacCompiler.performCompile(JavacCompiler.java:169)
	at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:785)
	at org.apache.maven.plugin.compiler.CompilerMojo.execute(CompilerMojo.java:129)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:957)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:289)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:193)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347)
	at org.codehaus.classworlds.Launcher.main(Launcher.java:47)

The process has ended, exit code 1

Springboot2.6.X configurate swagger error [How to Solve]

org.springframework.context.ApplicationContextException: Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException
	at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:181)
	at org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:54)
	at org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:356)
	at java.lang.Iterable.forEach(Iterable.java:75)

Modify YML file

spring:
  mvc:
    pathmatch:
      matching-strategy: ant_path_matcher

[Solved] IDEA error: sun.security.pkcs not found

Abnormal scene

When Java 8 switches to Java 11, there is an error and sun is not found security 。

Problem analysis

Jar package and source code are available. The probability is due to the security policy in the new JDK.

Solution:

In the compiler’s settings -> Build,Execution -> Compiler-> Disable in Java compiler:

Use ‘–release’ option for cross-compilation

Then rebuild

If there is no exception after build, check it again.

[Solved] IDEA try-with-resources Error: AutoCloseable

IDEA try-with-resources error: AutoCloseable

try (HttpPost post = new HttpPost(url)){
    ...
}catch(... | ... ){
}

Editor tip: incompatible types: try with resources is not applicable to variable types

Reason: the httppost used does not implement closeable and is not supported. The compiler automatically helps us complete close(), which is not available in httppost. If you want to test the writing method, you can use: closeablehttpclient, bufferedinputstream and so on. Finally, decompile it.

try (CloseableHttpClient client =HttpClients.createDefault();){
...
}...

serviceimpl inherits generic public impl startup error: ClassCastException (Mybatis-plus version Issue)

Project scenario:

Mybatis plus version: 3.4.3
create abstract general services for service classes and service implementation classes
eg:

service port: service extends AbstracService<T>
service: serviceimpl extends  AbstracServiceImpl<M,T> implements service 
Abstract Common Service Interface: AbstracService<T extends xxBaseEntity> extends IService<T>
Abstract Common Service Interface Implementation: AbstracServiceImpl<M extends BaseMapper<T>,T extends xxBaseEntity> extends ServiceImpl<M, T> implements AbstracService<T>

Problem Description.
Startup error message:
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [cn.xx.xx.xx.service.impl.ServiceImpl]: Constructor threw exception; nested exception is java.lang.ClassCastException: sun.reflect.generics.reflectiveObjects.TypeVariableImpl cannot be cast to java.lang.Class
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:224)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1326)
… 157 common frames omitted
Caused by: java.lang.ClassCastException: sun.reflect.generics.reflectiveObjects.TypeVariableImpl cannot be cast to java.lang.Class
at com.baomidou.mybatisplus.extension.service.impl.ServiceImpl.currentModelClass(ServiceImpl.java:88)
at com.baomidou.mybatisplus.extension.service.impl.ServiceImpl.(ServiceImpl.java:62)
at cn.lztl.assp.mall.service.impl.AbstractPromotionsServiceImpl.(AbstractPromotionsServiceImpl.java:38)
at cn.lztl.assp.mall.service.impl.ServiceImpl.(SeckillServiceImpl.java:51)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:211)
… 159 common frames omitted


Solution:
Update mybatis-plus version to version 3.4.3.2 or later.
Introduce dependency com.baomidou.mybatisplus.extension section must be version 3.4.3.2 onwards

[Solved] ### Error building SqlSession. ### The error may exist in com/atguigu/dao/SysUserMapper.xml ### Caus

Error building SqlSession.
The error may exist in com/atguigu/dao/SysUserMapper.xml
Cause: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: java.io.IOException: Could not find resource com/atguigu/dao/SysUserMapper.xml

In POM.XML:

<build>
    <!--Configure resources in build, to prevent our resource export from failing-->
    <resources>
        <resource>
            <directory>src/main/resources</directory>
            <includes>
                <include>**/*.properties</include>
                <include>**/*.xml</include>
            </includes>
            <filtering>true</filtering>
        </resource>
        <resource>
            <directory>src/main/java</directory>
            <includes>
                <include>**/*.properties</include>
                <include>**/*.xml</include>
            </includes>
            <filtering>true</filtering>
        </resource></resources>
</build>

[Solved] IDEA Startup Error: java: Internal error in the mapping processor

1. Error information

java: Internal error in the mapping processor: java.lang.NullPointerException  at org.mapstruct.ap.internal.processor.DefaultVersionInformation.createManifestUrl(DefaultVersionInformation.java:180)      at org.mapstruct.ap.internal.processor.DefaultVersionInformation.openManifest(DefaultVersionInformation.java:151)  at org.mapstruct.ap.internal.processor.DefaultVersionInformation.getLibraryName(DefaultVersionInformation.java:127)    at org.mapstruct.ap.internal.processor.DefaultVersionInformation.getCompiler(DefaultVersionInformation.java:120)    at org.mapstruct.ap.internal.processor.DefaultVersionInformation.fromProcessingEnvironment(DefaultVersionInformation.java:98)  at org.mapstruct.ap.internal.processor.DefaultModelElementProcessorContext.<init>(DefaultModelElementProcessorContext.java:59)      at org.mapstruct.ap.MappingProcessor.processMapperElements(MappingProcessor.java:222)  at org.mapstruct.ap.MappingProcessor.process(MappingProcessor.java:162)    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)    at java.lang.reflect.Method.invoke(Method.java:498)    at org.jetbrains.jps.javac.APIWrappers$1.invoke(APIWrappers.java:255)  at org.mapstruct.ap.MappingProcessor.process(Unknown Source)    at com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:794)    at com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:705)  at com.sun.tools.javac.processing.JavacProcessingEnvironment.access$1800(JavacProcessingEnvironment.java:91)    at com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1035)    at com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1176)    at com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1170)    at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:856)    at com.sun.tools.javac.main.Main.compile(Main.java:523)    at com.sun.tools.javac.api.JavacTaskImpl.doCall(JavacTaskImpl.java:129)    at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:138)  at org.jetbrains.jps.javac.JavacMain.compile(JavacMain.java:231)    at org.jetbrains.jps.incremental.java.JavaBuilder.lambda$compileJava$2(JavaBuilder.java:514)    at org.jetbrains.jps.incremental.java.JavaBuilder.invokeJavac(JavaBuilder.java:560)    at org.jetbrains.jps.incremental.java.JavaBuilder.compileJava(JavaBuilder.java:512)    at org.jetbrains.jps.incremental.java.JavaBuilder.compile(JavaBuilder.java:355)    at org.jetbrains.jps.incremental.java.JavaBuilder.doBuild(JavaBuilder.java:280)    at org.jetbrains.jps.incremental.java.JavaBuilder.build(JavaBuilder.java:234)  at org.jetbrains.jps.incremental.IncProjectBuilder.runModuleLevelBuilders(IncProjectBuilder.java:1464)      at org.jetbrains.jps.incremental.IncProjectBuilder.runBuildersForChunk(IncProjectBuilder.java:1101)    at org.jetbrains.jps.incremental.IncProjectBuilder.buildTargetsChunk(IncProjectBuilder.java:1247)  at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunkIfAffected(IncProjectBuilder.java:1066)    at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunks(IncProjectBuilder.java:832)      at org.jetbrains.jps.incremental.IncProjectBuilder.runBuild(IncProjectBuilder.java:419)    at org.jetbrains.jps.incremental.IncProjectBuilder.build(IncProjectBuilder.java:183)    at org.jetbrains.jps.cmdline.BuildRunner.runBuild(BuildRunner.java:132)    at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:301)  at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:132)    at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler.lambda$channelRead0$0(BuildMain.java:219)  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)      at java.lang.Thread.run(Thread.java:748)

2. Solutions

1. Set File→settings→Compiler’s User-local build process VM options (overrides Shared options) option to set -Djps.track.ap.dependencies=false, select apply

2. modify the version of mapstruct-processor in pom.xml and upgrade it to 1.4.1.Final or higher

Both methods can be tried, I was successful in the first method