How to config for Maven Test Complie Failures?

I’m building Maven project from open source project using mvn install with jdk-17 and Manen 3.9.6.
The commend line display

[ERROR] Failures:
[ERROR]   TestPathArgoUML.testPath6:108 Cannot find ID: "actionPerformed(java.awt.event.ActionEvent)" in "org.argouml.ui.ActionExportXMI".
[ERROR]   TestPathArgoUML.testPath8:130 Cannot find ID: "isValidDropTarget(javax.swing.tree.TreePath, javax.swing.tree.TreePath)" in "org.argouml.ui.DnDNavigatorTree$ArgoDropTargetListener".
[ERROR]   TopLevelEntityTest.testClassMemberIsTopLevelEntity2:74
[ERROR] Errors:
[ERROR]   FieldAccess.testFieldAccess:42 NullPointer Cannot invoke "padl.kernel.IMethod.doesContainConstituentWithID(char[])" because "method" is null
[ERROR] Tests run: 14, Failures: 3, Errors: 1, Skipped: 0

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.2.5:test (default-test) on project padl-creator-classfile: There are test failures.
[ERROR]
[ERROR] Please refer to C:ptidej-Ptidej-5.3.3PADL Creator ClassFiletargetsurefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.

The following is part of error message in surefire-report.

  <properties>
    <property name="java.specification.version" value="17"/>
    <property name="sun.cpu.isalist" value="amd64"/>
    <property name="sun.jnu.encoding" value="MS950"/>
    <property name="java.class.path" value="C:ptidej-Ptidej-5.3.3PADL Creator ClassFiletargettest-classes;C:ptidej-Ptidej-5.3.3PADL Creator ClassFiletargetclasses;C:ptidej-Ptidej-5.3.3CPLtargetcpl-core-1.0.0.jar;C:UsersUserName.m2repositorycomibmtoadcfparse1.0cfparse-1.0.jar;C:UsersUserName.m2repositorycommons-iocommons-io2.13.0commons-io-2.13.0.jar;C:UsersUserName.m2repositoryorgapachebcelbcel6.7.0bcel-6.7.0.jar;C:ptidej-Ptidej-5.3.3PADLtargetpadl-core-1.0.0.jar;C:UsersUserName.m2repositoryorgapachecommonscommons-lang33.12.0commons-lang3-3.12.0.jar;C:UsersUserName.m2repositoryjunitjunit4.13.2junit-4.13.2.jar;C:UsersUserName.m2repositoryorghamcresthamcrest-core1.3hamcrest-core-1.3.jar;"/>
    <property name="java.vm.vendor" value="Oracle Corporation"/>
    <property name="sun.arch.data.model" value="64"/>
    <property name="user.variant" value=""/>
    <property name="java.vendor.url" value="https://java.oracle.com/"/>
    <property name="user.timezone" value="Asia/Taipei"/>
    <property name="os.name" value="Windows 10"/>
    <property name="java.vm.specification.version" value="17"/>
    <property name="sun.java.launcher" value="SUN_STANDARD"/>
    <property name="user.country" value="TW"/>
    <property name="sun.boot.library.path" value="C:Program FilesJavajdk-17bin"/>
    <property name="sun.java.command" value="C:UsersUserNameAppDataLocalTempsurefire12208449174613595047surefirebooter-20240511224448644_3.jar C:UsersUserNameAppDataLocalTempsurefire12208449174613595047 2024-05-11T22-44-48_515-jvmRun1 surefire-20240511224448644_1tmp surefire_0-20240511224448644_2tmp"/>
    <property name="jdk.debug" value="release"/>
    <property name="surefire.test.class.path" value="C:ptidej-Ptidej-5.3.3PADL Creator ClassFiletargettest-classes;C:ptidej-Ptidej-5.3.3PADL Creator ClassFiletargetclasses;C:ptidej-Ptidej-5.3.3CPLtargetcpl-core-1.0.0.jar;C:UsersUserName.m2repositorycomibmtoadcfparse1.0cfparse-1.0.jar;C:UsersUserName.m2repositorycommons-iocommons-io2.13.0commons-io-2.13.0.jar;C:UsersUserName.m2repositoryorgapachebcelbcel6.7.0bcel-6.7.0.jar;C:ptidej-Ptidej-5.3.3PADLtargetpadl-core-1.0.0.jar;C:UsersUserName.m2repositoryorgapachecommonscommons-lang33.12.0commons-lang3-3.12.0.jar;C:UsersUserName.m2repositoryjunitjunit4.13.2junit-4.13.2.jar;C:UsersUserName.m2repositoryorghamcresthamcrest-core1.3hamcrest-core-1.3.jar;"/>
    <property name="sun.cpu.endian" value="little"/>
    <property name="user.home" value="C:UsersUserName"/>
    <property name="user.language" value="zh"/>
    <property name="java.specification.vendor" value="Oracle Corporation"/>
    <property name="java.version.date" value="2024-04-16"/>
    <property name="java.home" value="C:Program FilesJavajdk-17"/>
    <property name="file.separator" value=""/>
    <property name="basedir" value="C:ptidej-Ptidej-5.3.3PADL Creator ClassFile"/>
    <property name="java.vm.compressedOopsMode" value="Zero based"/>
    <property name="line.separator" value="
"/>
    <property name="java.vm.specification.vendor" value="Oracle Corporation"/>
    <property name="java.specification.name" value="Java Platform API Specification"/>
    <property name="surefire.real.class.path" value="C:UsersUserNameAppDataLocalTempsurefire12208449174613595047surefirebooter-20240511224448644_3.jar"/>
    <property name="user.script" value=""/>
    <property name="sun.management.compiler" value="HotSpot 64-Bit Tiered Compilers"/>
    <property name="java.runtime.version" value="17.0.11+7-LTS-207"/>
    <property name="user.name" value="UserName"/>
    <property name="path.separator" value=";"/>
    <property name="os.version" value="10.0"/>
    <property name="java.runtime.name" value="Java(TM) SE Runtime Environment"/>
    <property name="file.encoding" value="windows-1252"/>
    <property name="java.vm.name" value="Java HotSpot(TM) 64-Bit Server VM"/>
    <property name="localRepository" value="C:UsersUserName.m2repository"/>
    <property name="java.vendor.url.bug" value="https://bugreport.java.com/bugreport/"/>
    <property name="java.io.tmpdir" value="C:UsersUserNameAppDataLocalTemp"/>
    <property name="java.version" value="17.0.11"/>
    <property name="user.dir" value="C:ptidej-Ptidej-5.3.3PADL Creator ClassFile"/>
    <property name="os.arch" value="amd64"/>
    <property name="java.vm.specification.name" value="Java Virtual Machine Specification"/>
    <property name="sun.os.patch.level" value=""/>
    <property name="native.encoding" value="MS950"/>
    <property name="java.library.path" value="C:Program FilesJavajdk-17bin;C:WINDOWSSunJavabin;C:WINDOWSsystem32;C:WINDOWS;C:toolcmdervendorconemu-maximus5ConEmuScripts;C:toolcmdervendorconemu-maximus5;C:toolcmdervendorconemu-maximus5ConEmu;C:Program FilesJavajdk-17bin;C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSSystem32Wbem;C:UsersUserNameAppDataLocalProgramsPythonPython39;C:UsersUserNameAppDataLocalProgramsPythonPython39Scripts;C:UsersUserNameAppDataLocalProgramsPythonPython311;C:UsersUserNameAppDataLocalProgramsPythonPython311Scripts;C:WINDOWSSystem32WindowsPowerShellv1.0;C:WINDOWSSystem32OpenSSH;C:Program Files (x86)Microsoft SQL Server150DTSBinn;C:Program FilesAzure Data Studiobin;C:Program FilesGitcmd;C:UsersUserNameAppDataLocalProgramsPythonPython27;C:UsersUserNameAppDataLocalProgramsPythonPython27Scripts;C:Program Filesnodejs;C:Program FilesDockerDockerresourcesbin;C:apache-maven-3.9.6bin;C:UsersUserNameAppDataLocalProgramsPythonPython39;C:UsersUserNameAppDataLocalProgramsPythonPython39Scripts;C:UsersUserNameAppDataLocalProgramsPythonPython311Scripts;C:UsersUserNameAppDataLocalProgramsPythonPython311;C:UsersUserNameAppDataLocalMicrosoftWindowsApps;C:UsersUserNameAppDataLocalProgramsMicrosoft VS Codebin;C:UsersUserNameAppDataLocalJetBrainsToolboxscripts;C:Program FilesAzure Data Studiobin;C:UsersUserNameAppDataLocalGitHubDesktopbin;C:UsersUserNameAppDataRoamingnpm;C:Program FilesGitmingw64bin;C:Program FilesGitusrbin;C:toolcmdervendorbin;C:toolcmder;."/>
    <property name="java.vm.info" value="mixed mode, sharing"/>
    <property name="java.vendor" value="Oracle Corporation"/>
    <property name="java.vm.version" value="17.0.11+7-LTS-207"/>
    <property name="sun.io.unicode.encoding" value="UnicodeLittle"/>
    <property name="java.class.version" value="61.0"/>
  </properties>
  <testcase name="testPath1" classname="padl.creator.classfile.test.path.TestPathArgoUML" time="6.694">
<system-out><![CDATA[Loading class files in: ../PADL Creator ClassFile Tests/rsc/ArgoUML-0.15.6.jar
]]></system-out>
    <system-err><![CDATA[util.lang.ConcreteReceiverGuard reports a runtime deprecation: calling method "padl.kernel.impl.CodeLevelModel.create()" from class "padl.creator.classfile.test.path.TestPathArgoUML"
Please use the methods in "padl.generator.helper.ModelGenerator" to obtain code-level models.
java.lang.reflect.InvocationTargetException
    at jdk.internal.reflect.GeneratedMethodAccessor12.invoke(Unknown Source)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:568)
    at padl.creator.classfile.AbstractClassFileCreator.createElements(AbstractClassFileCreator.java:439)
    at padl.creator.classfile.AbstractClassFileCreator.create(AbstractClassFileCreator.java:257)
    at padl.creator.classfile.CompleteClassFileCreator.create(CompleteClassFileCreator.java:24)
    at padl.kernel.impl.CodeLevelModel.create(CodeLevelModel.java:41)
    at padl.creator.classfile.test.path.TestPathArgoUML.setUp(TestPathArgoUML.java:39)
    at junit.framework.TestCase.runBare(TestCase.java:140)
    at junit.framework.TestResult$1.protect(TestResult.java:122)
    at junit.framework.TestResult.runProtected(TestResult.java:142)
    at junit.framework.TestResult.run(TestResult.java:125)
    at junit.framework.TestCase.run(TestCase.java:130)
    at junit.framework.TestSuite.runTest(TestSuite.java:241)
    at junit.framework.TestSuite.run(TestSuite.java:236)
    at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
    at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
    at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
    at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
    at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
    at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:385)
    at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
    at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:507)
    at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:495)
Caused by: java.lang.NullPointerException: Cannot invoke "padl.kernel.IOperation.getIteratorOnConstituents(java.lang.Class)" because "aMethod" is null
    at padl.creator.classfile.relationship.RelationshipAnalyzer.analyseParameters(RelationshipAnalyzer.java:691)
    at padl.creator.classfile.relationship.RelationshipAnalyzer.analyseLightMethodInvocations(RelationshipAnalyzer.java:658)
    at padl.creator.classfile.relationship.RelationshipAnalyzer.addMethodInvocations(RelationshipAnalyzer.java:293)
    at padl.creator.classfile.relationship.RelationshipAnalyzer.recogniseRelationship(RelationshipAnalyzer.java:222)
    at padl.creator.classfile.AbstractClassFileCreator.recognizeRelationship(AbstractClassFileCreator.java:1195)
    at padl.creator.classfile.CompleteClassFileCreator.recognizeRelationship(CompleteClassFileCreator.java:24)
    ... 24 more

There are many error messages about NullPointerException that java methods cannot be invoked.I suspect the encoding of java class file isn’t compatible with maven compiler.

This is the encoding information.
Environment Variable: JAVA_TOOL_OPTIONS -Dfile.encoding="windows-1252"

Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae)
Maven home: C:apache-maven-3.9.6
Java version: 17.0.11, vendor: Oracle Corporation, runtime: C:Program FilesJavajdk-17
Default locale: zh_TW, platform encoding: windows-1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

pom.xml:

<properties>
    <maven.compiler.source>17</maven.compiler.source>
    <maven.compiler.target>17</maven.compiler.target>
    <project.build.sourceEncoding>windows-1252</project.build.sourceEncoding>
</properties>

I’ve configured all the encoding options.

New contributor

xuan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật