metro-policy: FTBFS with default Java 21

Bug #2054245 reported by Vladimir Petko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
metro-policy (Debian)
New
Unknown
metro-policy (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

The package metro-policy ftbfs with default Java 21.
The relevant part of the build log:
---------------
[INFO] Running com.sun.xml.ws.policy.privateutil.PolicyLoggerTest
Dec 04, 2023 10:35:19 AM [com.sun.xml.ws.policy.privateutil.PolicyLoggerTest] invoke
SEVERE: Test message.
java.lang.Exception
 at com.sun.xml.ws.policy.privateutil.PolicyLoggerTest.testCommonsCreateAndLogException(PolicyLoggerTest.java:246)
 at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
 at java.base/java.lang.reflect.Method.invoke(Method.java:580)
 at junit.framework.TestCase.runTest(TestCase.java:164)
 at junit.framework.TestCase.runBare(TestCase.java:130)
 at junit.framework.TestResult$1.protect(TestResult.java:106)
 at junit.framework.TestResult.runProtected(TestResult.java:124)
 at junit.framework.TestResult.run(TestResult.java:109)
 at junit.framework.TestCase.run(TestCase.java:120)
 at junit.framework.TestSuite.runTest(TestSuite.java:230)
 at junit.framework.TestSuite.run(TestSuite.java:225)
 at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
 at java.base/java.lang.reflect.Method.invoke(Method.java:580)
 at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:100)
 at org.apache.maven.surefire.junit.JUnit3Provider.executeTestSet(JUnit3Provider.java:140)
 at org.apache.maven.surefire.junit.JUnit3Provider.invoke(JUnit3Provider.java:113)
 at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
 at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
 at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
 at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)

Dec 04, 2023 10:35:19 AM [com.sun.xml.ws.policy.privateutil.PolicyLoggerTest] invoke
SEVERE: Test message.
java.lang.Exception
 at com.sun.xml.ws.policy.privateutil.PolicyLoggerTest.testCommonsCreateAndLogException(PolicyLoggerTest.java:246)
 at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
 at java.base/java.lang.reflect.Method.invoke(Method.java:580)
 at junit.framework.TestCase.runTest(TestCase.java:164)
 at junit.framework.TestCase.runBare(TestCase.java:130)
 at junit.framework.TestResult$1.protect(TestResult.java:106)
 at junit.framework.TestResult.runProtected(TestResult.java:124)
 at junit.framework.TestResult.run(TestResult.java:109)
 at junit.framework.TestCase.run(TestCase.java:120)
 at junit.framework.TestSuite.runTest(TestSuite.java:230)
 at junit.framework.TestSuite.run(TestSuite.java:225)
 at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
 at java.base/java.lang.reflect.Method.invoke(Method.java:580)
 at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:100)
 at org.apache.maven.surefire.junit.JUnit3Provider.executeTestSet(JUnit3Provider.java:140)
 at org.apache.maven.surefire.junit.JUnit3Provider.invoke(JUnit3Provider.java:113)
 at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
 at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
 at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
 at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)

Dec 04, 2023 10:35:19 AM [com.sun.xml.ws.policy.privateutil.PolicyLoggerTest] invoke
SEVERE: null
Dec 04, 2023 10:35:19 AM [com.sun.xml.ws.policy.privateutil.PolicyLoggerTest] invoke
SEVERE: Test message.
Dec 04, 2023 10:35:19 AM [com.sun.xml.ws.policy.privateutil.PolicyLoggerTest] invoke
SEVERE: null
java.lang.NullPointerException: test
 at com.sun.xml.ws.policy.privateutil.PolicyLoggerTest.testCommonsCreateAndLogException(PolicyLoggerTest.java:271)
 at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
 at java.base/java.lang.reflect.Method.invoke(Method.java:580)
 at junit.framework.TestCase.runTest(TestCase.java:164)
 at junit.framework.TestCase.runBare(TestCase.java:130)
 at junit.framework.TestResult$1.protect(TestResult.java:106)
 at junit.framework.TestResult.runProtected(TestResult.java:124)
 at junit.framework.TestResult.run(TestResult.java:109)
 at junit.framework.TestCase.run(TestCase.java:120)
 at junit.framework.TestSuite.runTest(TestSuite.java:230)
 at junit.framework.TestSuite.run(TestSuite.java:225)
 at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
 at java.base/java.lang.reflect.Method.invoke(Method.java:580)
 at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:100)
 at org.apache.maven.surefire.junit.JUnit3Provider.executeTestSet(JUnit3Provider.java:140)
 at org.apache.maven.surefire.junit.JUnit3Provider.invoke(JUnit3Provider.java:113)
 at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
 at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
 at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
 at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)

Dec 04, 2023 10:35:19 AM [com.sun.xml.ws.policy.privateutil.PolicyLoggerTest] invoke
SEVERE: Test message.
Dec 04, 2023 10:35:19 AM [com.sun.xml.ws.policy.privateutil.PolicyLoggerTest] invoke
SEVERE: null
Dec 04, 2023 10:35:19 AM [com.sun.xml.ws.policy.privateutil.PolicyLoggerTest] invoke
SEVERE: Test message.
Dec 04, 2023 10:35:19 AM [com.sun.xml.ws.policy.privateutil.PolicyLoggerTest] invoke
SEVERE: null
java.lang.NullPointerException: test
 at com.sun.xml.ws.policy.privateutil.PolicyLoggerTest.testCommonsCreateAndLogException(PolicyLoggerTest.java:297)
 at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
 at java.base/java.lang.reflect.Method.invoke(Method.java:580)
 at junit.framework.TestCase.runTest(TestCase.java:164)
 at junit.framework.TestCase.runBare(TestCase.java:130)
 at junit.framework.TestResult$1.protect(TestResult.java:106)
 at junit.framework.TestResult.runProtected(TestResult.java:124)
 at junit.framework.TestResult.run(TestResult.java:109)
 at junit.framework.TestCase.run(TestCase.java:120)
 at junit.framework.TestSuite.runTest(TestSuite.java:230)
 at junit.framework.TestSuite.run(TestSuite.java:225)
 at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
 at java.base/java.lang.reflect.Method.invoke(Method.java:580)
 at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:100)
 at org.apache.maven.surefire.junit.JUnit3Provider.executeTestSet(JUnit3Provider.java:140)
 at org.apache.maven.surefire.junit.JUnit3Provider.invoke(JUnit3Provider.java:113)
 at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
 at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
 at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
 at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)

Dec 04, 2023 10:35:19 AM [com.sun.xml.ws.policy.privateutil.PolicyLoggerTest] invoke
SEVERE: Test message.
java.lang.NullPointerException: test
 at com.sun.xml.ws.policy.privateutil.PolicyLoggerTest.testCommonsCreateAndLogException(PolicyLoggerTest.java:304)
 at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
 at java.base/java.lang.reflect.Method.invoke(Method.java:580)
 at junit.framework.TestCase.runTest(TestCase.java:164)
 at junit.framework.TestCase.runBare(TestCase.java:130)
 at junit.framework.TestResult$1.protect(TestResult.java:106)
 at junit.framework.TestResult.runProtected(TestResult.java:124)
 at junit.framework.TestResult.run(TestResult.java:109)
 at junit.framework.TestCase.run(TestCase.java:120)
 at junit.framework.TestSuite.runTest(TestSuite.java:230)
 at junit.framework.TestSuite.run(TestSuite.java:225)
 at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
 at java.base/java.lang.reflect.Method.invoke(Method.java:580)
 at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:100)
 at org.apache.maven.surefire.junit.JUnit3Provider.executeTestSet(JUnit3Provider.java:140)
 at org.apache.maven.surefire.junit.JUnit3Provider.invoke(JUnit3Provider.java:113)
 at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
 at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
 at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
 at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)

Dec 04, 2023 10:35:19 AM [com.sun.xml.ws.policy.privateutil.PolicyLoggerTest] invoke
INFO: Test
Dec 04, 2023 10:35:19 AM [com.sun.xml.ws.policy.privateutil.PolicyLoggerTest] invoke
WARNING: Test
Dec 04, 2023 10:35:19 AM [com.sun.xml.ws.policy.privateutil.PolicyLoggerTest] invoke
SEVERE: Test
[INFO] Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.014 s - in com.sun.xml.ws.policy.privateutil.PolicyLoggerTest
[INFO] Running com.sun.xml.ws.policy.privateutil.ServiceFinderTest
Dec 04, 2023 10:35:19 AM [com.sun.xml.ws.policy.privateutil.ServiceFinder] fail
SEVERE: WSP0025: com.sun.xml.ws.policy.privateutil.ServiceFinderTestInterface: WSP0024: file:/<<PKGBUILDDIR>>/target/test-classes/META-INF/services/com.sun.xml.ws.policy.privateutil.ServiceFinderTestInterface:1: WSP0067: Illegal configuration-file syntax
[INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 s - in com.sun.xml.ws.policy.privateutil.ServiceFinderTest
[INFO] Running com.sun.xml.ws.policy.privateutil.PolicyUtilsTest
Dec 04, 2023 10:35:19 AM [com.sun.xml.ws.policy.privateutil.PolicyUtils$Reflection] testReflectionInvokeFail
SEVERE: WSP0061: Method invocation failed (class=com.sun.xml.ws.policy.privateutil.PolicyUtilsTest$1, method=humv, parameters=null)
java.lang.NoSuchMethodException: com.sun.xml.ws.policy.privateutil.PolicyUtilsTest$1.humv()
 at java.base/java.lang.Class.getMethod(Class.java:2395)
 at com.sun.xml.ws.policy.privateutil.PolicyUtils$Reflection.invoke(PolicyUtils.java:333)
 at com.sun.xml.ws.policy.privateutil.PolicyUtilsTest.testReflectionInvokeFail(PolicyUtilsTest.java:280)
 at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
 at java.base/java.lang.reflect.Method.invoke(Method.java:580)
 at junit.framework.TestCase.runTest(TestCase.java:164)
 at junit.framework.TestCase.runBare(TestCase.java:130)
 at junit.framework.TestResult$1.protect(TestResult.java:106)
 at junit.framework.TestResult.runProtected(TestResult.java:124)
 at junit.framework.TestResult.run(TestResult.java:109)
 at junit.framework.TestCase.run(TestCase.java:120)
 at junit.framework.TestSuite.runTest(TestSuite.java:230)
 at junit.framework.TestSuite.run(TestSuite.java:225)
 at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
 at java.base/java.lang.reflect.Method.invoke(Method.java:580)
 at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:100)
 at org.apache.maven.surefire.junit.JUnit3Provider.executeTestSet(JUnit3Provider.java:140)
 at org.apache.maven.surefire.junit.JUnit3Provider.invoke(JUnit3Provider.java:113)
 at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
 at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
 at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
 at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)

Dec 04, 2023 10:35:19 AM [com.sun.xml.ws.policy.privateutil.PolicyUtils$Reflection] testRtf2396UnquoteCutOff
SEVERE: WSP0079: Error while unescaping 'hello%2' by RFC2396
[ERROR] Tests run: 16, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.002 s <<< FAILURE! - in com.sun.xml.ws.policy.privateutil.PolicyUtilsTest
[ERROR] testGetCallerMethodName(com.sun.xml.ws.policy.privateutil.PolicyUtilsTest) Time elapsed: 0.001 s <<< FAILURE!
junit.framework.ComparisonFailure: expected:<[testGetCallerMethodNam]e> but was:<[invok]e>
 at junit.framework.Assert.assertEquals(Assert.java:81)
 at junit.framework.Assert.assertEquals(Assert.java:87)
 at com.sun.xml.ws.policy.privateutil.PolicyUtilsTest$1TestCall.testCall(PolicyUtilsTest.java:108)
 at com.sun.xml.ws.policy.privateutil.PolicyUtilsTest.testGetCallerMethodName(PolicyUtilsTest.java:113)

[INFO] Running com.sun.xml.ws.policy.PolicyIntersectorTest
Dec 04, 2023 10:35:19 AM [com.sun.xml.ws.policy.PolicyIntersector] testIntersectNull
SEVERE: WSP0056: Input policy collection is expected not to be null nor empty collection
Dec 04, 2023 10:35:19 AM [com.sun.xml.ws.policy.PolicyIntersector] testStrictIntersectEmptyPolicyCollectionThrowsIAE
SEVERE: WSP0056: Input policy collection is expected not to be null nor empty collection
[INFO] Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.022 s - in com.sun.xml.ws.policy.PolicyIntersectorTest
[INFO] Running com.sun.xml.ws.policy.AssertionSetTest
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.014 s - in com.sun.xml.ws.policy.AssertionSetTest
[INFO] Running com.sun.xml.ws.policy.PolicyTest
[INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in com.sun.xml.ws.policy.PolicyTest
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] com.sun.xml.ws.policy.privateutil.PolicyUtilsTest#testGetCallerMethodName ComparisonFailure
[INFO]
[ERROR] Tests run: 215, Failures: 1, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.140 s
[INFO] Finished at: 2023-12-04T10:35:28Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.3:test (default-test) on project policy: There are test failures.
---------------

Related branches

Changed in metro-policy (Debian):
status: Unknown → New
Revision history for this message
Vladimir Petko (vpa1977) wrote :

piuparts install/upgrade/purge test (pass)

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package metro-policy - 2.7.2-3ubuntu1

---------------
metro-policy (2.7.2-3ubuntu1) noble; urgency=medium

  * d/p/jaa21-stack-offset.patch: apply proposed fix to resolve Java 21
    test failures (LP: #2054245).

 -- Vladimir Petko <email address hidden> Mon, 19 Feb 2024 11:01:08 +1300

Changed in metro-policy (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.