[
https://issues.apache.org/jira/browse/KNOX-2846?focusedWorklogId=829326&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-829326
]
ASF GitHub Bot logged work on KNOX-2846:
----------------------------------------
Author: ASF GitHub Bot
Created on: 28/Nov/22 13:47
Start Date: 28/Nov/22 13:47
Worklog Time Spent: 10m
Work Description: zeroflag commented on PR #685:
URL: https://github.com/apache/knox/pull/685#issuecomment-1329127634
> @zeroflag - Could you please explain why those ignore declarations help
here? Thanks!
My understanding is that some of those classes are included in the jdk's
rt.jar as well as some third party dependency an powermock loads them from one
location while knox loads them from a different location, causing clashes. But
it's difficult to unfold all the details. There is lot's of magic going on
inside powermock.
Issue Time Tracking
-------------------
Worklog Id: (was: 829326)
Time Spent: 50m (was: 40m)
> Fix GatewayWebsocketHandlerTest.testValidWebShellRequest
> --------------------------------------------------------
>
> Key: KNOX-2846
> URL: https://issues.apache.org/jira/browse/KNOX-2846
> Project: Apache Knox
> Issue Type: Task
> Reporter: Sandor Molnar
> Priority: Major
> Time Spent: 50m
> Remaining Estimate: 0h
>
> {{GatewayWebsocketHandlerTest.testValidWebShellRequest}} is failing in Knox's
> GH action builds on a regular basis, with these error:
> {noformat}
> 2022-11-28T09:52:06.8274578Z [ERROR]
> testValidWebShellRequest(org.apache.knox.gateway.websockets.GatewayWebsocketHandlerTest)
> Time elapsed: 0.708 s <<< ERROR!
> 2022-11-28T09:52:06.8275454Z java.lang.IllegalStateException: Unable to load
> cache item
> 2022-11-28T09:52:06.8276553Z at
> org.apache.knox.gateway.websockets.GatewayWebsocketHandlerTest.testValidWebShellRequest(GatewayWebsocketHandlerTest.java:88)
> 2022-11-28T09:52:06.8277890Z Caused by: java.lang.IllegalAccessError: class
> javax.xml.parsers.FactoryFinder (in unnamed module @0x7ccaca59) cannot access
> class jdk.xml.internal.SecuritySupport (in module java.xml) because module
> java.xml does not export jdk.xml.internal to unnamed module @0x7ccaca59
> 2022-11-28T09:52:06.8279139Z at
> org.apache.knox.gateway.websockets.GatewayWebsocketHandlerTest.testValidWebShellRequest(GatewayWebsocketHandlerTest.java:88)
> 2022-11-28T09:52:06.8284372Z {noformat}
> Action plan:
> # disable that test for now
> # RCA should be conducted and then fix the test
--
This message was sent by Atlassian Jira
(v8.20.10#820010)