본문 바로가기
IDE

(intelliJ ) java: Internal error in the mapping processor: java.lang.NullPointerException

by 태하팍 2022. 4. 11.
반응형

java: Internal error in the mapping processor: java.lang.NullPointerException      at org.mapstruct.ap.internal.processor.DefaultVersionInformation.createManifestUrl(DefaultVersionInformation.java:182)      at org.mapstruct.ap.internal.processor.DefaultVersionInformation.openManifest(DefaultVersionInformation.java:153)      at org.mapstruct.ap.internal.processor.DefaultVersionInformation.getLibraryName(DefaultVersionInformation.java:129)      at org.mapstruct.ap.internal.processor.DefaultVersionInformation.getCompiler(DefaultVersionInformation.java:122)      at org.mapstruct.ap.internal.processor.DefaultVersionInformation.fromProcessingEnvironment(DefaultVersionInformation.java:95)      at org.mapstruct.ap.internal.processor.DefaultModelElementProcessorContext.(DefaultModelElementProcessorContext.java:50)      at org.mapstruct.ap.MappingProcessor.processMapperElements(MappingProcessor.java:218)      at org.mapstruct.ap.MappingProcessor.process(MappingProcessor.java:156)      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.jetbrains.jps.javac.APIWrappers$1.invoke(APIWrappers.java:255)      at lombok.launch.AnnotationProcessorHider$AnnotationProcessor.process(Unknown Source)      at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:980)      at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:896)      at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1222)      at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1335)      at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1258)      at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:936)      at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.lambda$doCall$0(JavacTaskImpl.java:104)      at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.handleExceptions(JavacTaskImpl.java:147)      at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.doCall(JavacTaskImpl.java:100)      at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:94)      at org.jetbrains.jps.javac.JavacMain.compile(JavacMain.java:238)      at org.jetbrains.jps.incremental.java.JavaBuilder.lambda$compileJava$2(JavaBuilder.java:513)      at org.jetbrains.jps.incremental.java.JavaBuilder.invokeJavac(JavaBuilder.java:559)      at org.jetbrains.jps.incremental.java.JavaBuilder.compileJava(JavaBuilder.java:511)      at org.jetbrains.jps.incremental.java.JavaBuilder.compile(JavaBuilder.java:354)      at org.jetbrains.jps.incremental.java.JavaBuilder.doBuild(JavaBuilder.java:279)      at org.jetbrains.jps.incremental.java.JavaBuilder.build(JavaBuilder.java:233)      at org.jetbrains.jps.incremental.IncProjectBuilder.runModuleLevelBuilders(IncProjectBuilder.java:1485)      at org.jetbrains.jps.incremental.IncProjectBuilder.runBuildersForChunk(IncProjectBuilder.java:1123)      at org.jetbrains.jps.incremental.IncProjectBuilder.buildTargetsChunk(IncProjectBuilder.java:1268)      at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunkIfAffected(IncProjectBuilder.java:1088)      at org.jetbrains.jps.incremental.IncProjectBuilder.access$1200(IncProjectBuilder.java:69)      at org.jetbrains.jps.incremental.IncProjectBuilder$BuildParallelizer$1.run(IncProjectBuilder.java:1028)      at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:216)      at com.intellij.util.concurrency.BoundedTaskExecutor.access$200(BoundedTaskExecutor.java:27)      at com.intellij.util.concurrency.BoundedTaskExecutor$1.execute(BoundedTaskExecutor.java:195)      at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:213)      at com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:184)      at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)      at java.base/java.lang.Thread.run(Thread.java:829)  

현재 mapstruct 1.3.1.Final을 사용 중이며 해결방안으로
1) MapStruct를 1.4.1.Final or later version으로 해주거나
2) -Djps.track.ap.dependencies=false 설정으로 해결
참고 : https://github.com/mapstruct/mapstruct/issues/2215

2번째 방안을 선택하고 아래와 같이 수정.

 

반응형

'IDE' 카테고리의 다른 글

Errors running builder 'JavaScript Validator' on project  (0) 2013.10.21