cloudsoft / winrm4j

Apache License 2.0
93 stars 53 forks source link

IllegalAccessError while executing command #74

Closed ravirajamiyer closed 7 years ago

ravirajamiyer commented 7 years ago

We are seeing the following exception thrown while involking the WinRmTool.executeCommand. Here is the code:

try { WinRmTool tool = builder.build(); tool.executeCommand(cmd) } catch(Thriwable t) { // exception thrown here }

java.lang.IllegalAccessError: tried to access field org.apache.cxf.staxutils.OverlayW3CDOMStreamWriter.isOverlaid from class org.apache.cxf.binding.soap.saaj.SAAJStreamWriter

Looks like some jar file version issue, but not sure which dependency jar file needs to be changed.

Using Winrm4j 0.5.0 version from Maven

ravirajamiyer commented 7 years ago

This is no longer an issue. The problem was with the cxf version. When replaced the 3.1.10 with 3.1.6, the problem went away.