Liberty Profile Jython automation – TypeError – javax.management.remote.JMXServiceURL() – 3rd arg ca

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Liberty Profile Jython automation – TypeError – javax.management.remote.JMXServiceURL() – 3rd arg ca相关的知识,希望对你有一定的参考价值。

转载自: http://www.themiddlewareshop.com/2016/03/24/liberty-profile-jython-automation-typeerror-javax-management-remote-jmxserviceurl-3rd-arg-cant-be-coerced-to-int/

When running a Jython script to control the state of an Application Deployed to a Standalone Liberty Profile server, we get the following error: TypeError: javax.management.remote.JMXServiceURL(): 3rd arg can‘t be coerced to int

The reason for this is the line of code in the Jython script that create a connection to the Liberty Server’s JMX interface (WebSphere:service=com.ibm.websphere.application.ApplicationMBean,name=*) is a string not an int i.e. the port number was passed as string not int

The code was changed from

to

 

以上是关于Liberty Profile Jython automation – TypeError – javax.management.remote.JMXServiceURL() – 3rd arg ca的主要内容,如果未能解决你的问题,请参考以下文章

代理 IBM WAS Liberty Profile

Liberty Profile - 控制 Messages.log 的详细程度

将修订包应用到 WebSphere Liberty Profile

Websphere Liberty Profile 上 Worklight 服务器的拓扑

使用 Liberty Profile 配置 log4jdbc-log4j2

JAX-WS 和 CDI 不能在 WAS Liberty Profile 8.5.5.6 上一起工作