Websphere AdminTask.ListCpendPoints(';abc(abc)';)引发异常:ADMF0007E:需要目标对象
我正在使用python脚本将应用程序部署到WebSphere 7,脚本在这一行引发异常:-Websphere AdminTask.ListCpendPoints(';abc(abc)';)引发异常:ADMF0007E:需要目标对象,websphere,jython,websphere-7,wsadmin,Websphere,Jython,Websphere 7,Wsadmin,我正在使用python脚本将应用程序部署到WebSphere 7,脚本在这一行引发异常:- AdminTask.listTCPEndPoints('abc(abc)') 如果在运行python脚本之前运行上面的命令,它就可以正常工作。它给我一个错误:参数值无效。但python脚本中的同一命令失败,出现以下错误: wsadmin>AdminTask.listTCPEndPoints('abc(abc)') WASX7015E: Exception running command: "Adm
AdminTask.listTCPEndPoints('abc(abc)')
如果在运行python脚本之前运行上面的命令,它就可以正常工作。它给我一个错误:参数值无效。但python脚本中的同一命令失败,出现以下错误:
wsadmin>AdminTask.listTCPEndPoints('abc(abc)')
WASX7015E: Exception running command: "AdminTask.listTCPEndPoints('abc(abc)')"; exception information: com.ibm.websphere.management.cmdframework.CommandValidationException: ADMF0007E: target object is required.
我可以猜python脚本中有什么东西导致了这个问题,但我不明白为什么AdminTask.listTCPEndPoints
命令无法看到传递的参数。我是WebSphere的新手,我过去只使用过它,但从未配置过它。如有任何帮助/见解,将不胜感激
谢谢
添加了交互模式选项的堆栈跟踪
wsadmin>print AdminTask.listTCPEndPoints('-interactive')
List NamedEndPoints that can be used by a TCPInboundChannel
Lists all NamedEndPoints that can be associated with a TCPInboundChannel
*TCPInboundChannel: abc(abc)
excludeDistinguished (excludeDistinguished): 0
WASX7435W: Value 0 is converted to a boolean value of false.
unusedOnly (unusedOnly): 0
WASX7435W: Value 0 is converted to a boolean value of false.
List NamedEndPoints that can be used by a TCPInboundChannel
F (Finish)
C (Cancel)
Select [F, C]: [F] F
WASX7278I: Generated command line: AdminTask.listTCPEndPoints('[-excludeDistinguished false -unusedOnly false]')
WASX7015E: Exception running command: "AdminTask.listTCPEndPoints('-interactive')"; exception information:
com.ibm.websphere.management.cmdframework.CommandValidationException: ADMF0007E: target object is required.
跟随链接。您似乎没有指定目标对象,这就是出现错误的原因
我建议使用以下命令作为启动程序
print AdminTask.listTCPEndPoints('-interactive')
注意:不要复制和粘贴命令,而是在命令行中键入它。有时命令编辑器在直接粘贴命令后不接收命令。好的,我可以修复错误。我之所以会遇到这个错误,是因为作为应用程序部署脚本的一部分,我将几个应用程序JAR复制到WebSphere的
java/jre/lib/ext
目录中,以便这些JAR在类路径中可用。在其中一个jar中,我捆绑了一个IBM类(Base64Coder.class
),它是我jar中的一个类所需要的,它正在破坏WebSphere AdminTask实用程序。当我从jar中删除Base64Coder.class
时,python脚本运行良好。我相信,它损坏WebSphere的原因是JVM中存在与IBM WebSphere安装附带的类相同的类的重复,并且出现在AppServer/runtimes/com.IBM.ws.webservices.thinclient_7.0.0.jar
中,感谢您的响应Prerak。我遵循了您提供的IBM知识中心链接,并尝试了交互模式。但我在这个选项上也犯了同样的错误。在原始问题中添加了交互模式的痕迹。关于目标对象,我正在将'abc(abc)
传递给目标对象listTCPEndPoints
。如果运行print AdminTask.listTCPEndPoints()
,则它应该抛出目标对象为required
错误。在我运行python脚本之前,带有“abc(abc)”的命令工作正常。