Перед выполнением этой операции Payara 5 - Wrapping-заявление должно быть установлено в true - PullRequest
0 голосов
/ 04 июня 2018

В Payara 5 при попытке запустить

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

в двух словах: "1001 *

./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

Кто-нибудь знает, что означает это сообщение об ошибке?

Ответы [ 2 ]

0 голосов
/ 07 ноября 2018

Это также применяется в Payara 4.1.2.181, поскольку в 4.1.2.172

оно не было необходимым
0 голосов
/ 04 июня 2018

Это означает, что вы должны включить опцию "wrap-jdbc-objects" в пуле соединений, прежде чем она позволит вам установить это другое свойство.В domain.xml сделайте это

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

Существует также эквивалентная команда asadmin.

Похоже, что ограничение применяется только в Payara 5, в более ранних версиях эта ошибка не создавалась..

...