Configuration Payara 5-执行此操作之前,应将语句换行设置为true

Configuration Payara 5-执行此操作之前,应将语句换行设置为true,configuration,payara,asadmin,Configuration,Payara,Asadmin,在Payara 5中,我在尝试运行时得到一个“在执行此操作之前,语句包装应设置为true” "./asadmin set resources.jdbc-connection-pool.mysql_MY-DB-NAME_rootPool.max-wait-time-in-millis=604800" 简言之: ./asadmin set resources.jdbc-connection-pool.mysql_MY-DB-NAME_rootPool.max-wait-time-in-millis

在Payara 5中,我在尝试运行时得到一个“在执行此操作之前,语句包装应设置为true”

"./asadmin set resources.jdbc-connection-pool.mysql_MY-DB-NAME_rootPool.max-wait-time-in-millis=604800"
简言之:

./asadmin set resources.jdbc-connection-pool.mysql_MY-DB-NAME_rootPool.max-wait-time-in-millis=604800

Enter admin user name>  MY_ADMIN_USER
Enter admin password for user "MY_ADMIN_USER">

remote failure: Could not change the attributes: Constraints for this JdbcConnectionPool configuration have been violated: on property [  ] violation reason [ Statement Wrapping should be set to true before performing this operation ]
Constraints for this JdbcConnectionPool configuration have been violated: on property [  ] violation reason [ Statement Wrapping should be set to true before performing this operation ]
Command set failed

有人知道此错误消息的含义吗?

这意味着您必须在连接池上启用“包装jdbc对象”选项,然后才能设置此其他属性。在domain.xml中执行此操作

  <jdbc-connection-pool
        name="my-conn-pool"
        wrap-jdbc-objects="true" ...>

还有一个等效的asadmin命令


看起来该约束仅在Payara 5中强制执行,在早期版本中它没有产生此错误。

这似乎也在Payara 4.1.2.181中强制执行,因为在4.1.2.172中不需要它