2

I have imported WLSTModule in Jython and calling:

servers = wls.ls("/Clusters/SOA_Cluster/Servers", returnMap='true', returnType='c')

having imported wlstModule as wls

This however throws an error of

File "/tmp/wlst_module26609970055824621399.py", line 197, in ls
File "/tmp/wlst_module11719639529486505305.py", line 664, in _getList
NameError: String

Having gone looked at the underlying line which is String(child).startsWith("d").

I don't think you can actually do a String cast like that?

Jon
  • 11,356
  • 5
  • 40
  • 74
IanWatson
  • 1,649
  • 2
  • 27
  • 49

0 Answers0