Liquibase 日志级别问题和许可证错误
Liquibase log level issues and license error
当 运行 命令时,我在社区版中遇到许可证错误:
2019-09-13 10:07:35 checking if license is installed
2019-09-13 10:07:35 Problem verifying the license.
net.java.truelicense.core.LicenseManagementException: java.io.FileNotFoundException
看起来一切正常,但这个错误确实让我有点担心。
首先,当 运行 命令时,我在让 liquibase-3.8.0 记录任何内容时遇到了一些问题,例如.\liquibase.bat更新。
我最终通过将一些 janino jar 和日志配置添加到 lib 文件夹来解决这个问题。
janino-3.1.0.jar
commons-compiler-3.1.0.jar
logback.xml
现在我得到了这样的预期日志:
2019-09-13 10:07:35 Successfully acquired change log lock
2019-09-13 10:07:36 Reading resource: file:/C:/Users/me/Downloads/liquibase-3.8.0-bin/sql/
2019-09-13 10:07:36 Reading resource: sql/me/0001_create_person_table.sql
2019-09-13 10:07:36 Reading from DATABASECHANGELOG
2019-09-13 10:07:36 Successfully released change log lock
2019-09-13 10:07:36 Liquibase: Update has been successful.
Liquibase: Update has been successful.
但是我在日志的开头也遇到了这个错误:
2019-09-13 10:07:35 checking if license is installed
2019-09-13 10:07:35 Problem verifying the license.
net.java.truelicense.core.LicenseManagementException: java.io.FileNotFoundException
at net.java.truelicense.core.BasicLicenseManager.wrap(BasicLicenseManager.java:104) ~[liquibase.jar:na]
at net.java.truelicense.core.BasicLicenseManager.verify(BasicLicenseManager.java:71) ~[liquibase.jar:na]
at liquibase.pro.license.keymgr.DaticalTrueLicenseService.licenseIsInstalled(DaticalTrueLicenseService.java:133) [liquibase.jar:na]
at liquibase.pro.license.keymgr.DaticalTrueLicenseService.getLicenseInfo(DaticalTrueLicenseService.java:89) [liquibase.jar:na]
at liquibase.integration.commandline.Main.run(Main.java:196) [liquibase.jar:na]
at liquibase.integration.commandline.Main.main(Main.java:132) [liquibase.jar:na]
Caused by: java.io.FileNotFoundException: null
at net.java.truelicense.core.io.MemoryStore.checkedData(MemoryStore.java:65) ~[liquibase.jar:na]
at net.java.truelicense.core.io.MemoryStore.input(MemoryStore.java:42) ~[liquibase.jar:na]
at net.java.truelicense.core.V2Encryption.call(V2Encryption.java:62) ~[liquibase.jar:na]
at net.java.truelicense.core.V2Encryption.call(V2Encryption.java:58) ~[liquibase.jar:na]
at net.java.truelicense.core.crypto.BasicPbeEncryption.wrap(BasicPbeEncryption.java:63) ~[liquibase.jar:na]
at net.java.truelicense.core.V2Encryption.access0(V2Encryption.java:25) ~[liquibase.jar:na]
at net.java.truelicense.core.V2Encryption.input(V2Encryption.java:58) ~[liquibase.jar:na]
at net.java.truelicense.core.V2Compression.input(V2Compression.java:48) ~[liquibase.jar:na]
at net.java.truelicense.json.codec.JsonCodec.decode(JsonCodec.java:77) ~[liquibase.jar:na]
at net.java.truelicense.core.BasicLicenseManager.decodeRepository(BasicLicenseManager.java:173) ~[liquibase.jar:na]
at net.java.truelicense.core.BasicLicenseManager.authenticate(BasicLicenseManager.java:169) ~[liquibase.jar:na]
at net.java.truelicense.core.CachingLicenseConsumerManager.authenticate(CachingLicenseConsumerManager.java:86) ~[liquibase.jar:na]
at net.java.truelicense.core.BasicLicenseManager.decodeLicense(BasicLicenseManager.java:165) ~[liquibase.jar:na]
at net.java.truelicense.core.CachingLicenseConsumerManager.validate(CachingLicenseConsumerManager.java:76) ~[liquibase.jar:na]
at net.java.truelicense.core.BasicLicenseManager.call(BasicLicenseManager.java:74) ~[liquibase.jar:na]
at net.java.truelicense.core.BasicLicenseManager.call(BasicLicenseManager.java:71) ~[liquibase.jar:na]
at net.java.truelicense.core.BasicLicenseManager.wrap(BasicLicenseManager.java:101) ~[liquibase.jar:na]
... 5 common frames omitted
这是我应该关心的事情,还是我应该忽略它?
这不是什么值得担心的事情。 Liquibase 和 Datical 最近添加了新的扩展功能作为 Liquibase Pro。此新功能需要付费商业许可证(可免费试用)。如果许可证不可用,您将看到这样的消息。
免责声明:我为 Datical 工作并编写了一些有问题的代码,并且让它像这样转储堆栈跟踪是一个将在未来版本中解决的问题。
当 运行 命令时,我在社区版中遇到许可证错误:
2019-09-13 10:07:35 checking if license is installed
2019-09-13 10:07:35 Problem verifying the license.
net.java.truelicense.core.LicenseManagementException: java.io.FileNotFoundException
看起来一切正常,但这个错误确实让我有点担心。
首先,当 运行 命令时,我在让 liquibase-3.8.0 记录任何内容时遇到了一些问题,例如.\liquibase.bat更新。
我最终通过将一些 janino jar 和日志配置添加到 lib 文件夹来解决这个问题。
janino-3.1.0.jar
commons-compiler-3.1.0.jar
logback.xml
现在我得到了这样的预期日志:
2019-09-13 10:07:35 Successfully acquired change log lock
2019-09-13 10:07:36 Reading resource: file:/C:/Users/me/Downloads/liquibase-3.8.0-bin/sql/
2019-09-13 10:07:36 Reading resource: sql/me/0001_create_person_table.sql
2019-09-13 10:07:36 Reading from DATABASECHANGELOG
2019-09-13 10:07:36 Successfully released change log lock
2019-09-13 10:07:36 Liquibase: Update has been successful.
Liquibase: Update has been successful.
但是我在日志的开头也遇到了这个错误:
2019-09-13 10:07:35 checking if license is installed
2019-09-13 10:07:35 Problem verifying the license.
net.java.truelicense.core.LicenseManagementException: java.io.FileNotFoundException
at net.java.truelicense.core.BasicLicenseManager.wrap(BasicLicenseManager.java:104) ~[liquibase.jar:na]
at net.java.truelicense.core.BasicLicenseManager.verify(BasicLicenseManager.java:71) ~[liquibase.jar:na]
at liquibase.pro.license.keymgr.DaticalTrueLicenseService.licenseIsInstalled(DaticalTrueLicenseService.java:133) [liquibase.jar:na]
at liquibase.pro.license.keymgr.DaticalTrueLicenseService.getLicenseInfo(DaticalTrueLicenseService.java:89) [liquibase.jar:na]
at liquibase.integration.commandline.Main.run(Main.java:196) [liquibase.jar:na]
at liquibase.integration.commandline.Main.main(Main.java:132) [liquibase.jar:na]
Caused by: java.io.FileNotFoundException: null
at net.java.truelicense.core.io.MemoryStore.checkedData(MemoryStore.java:65) ~[liquibase.jar:na]
at net.java.truelicense.core.io.MemoryStore.input(MemoryStore.java:42) ~[liquibase.jar:na]
at net.java.truelicense.core.V2Encryption.call(V2Encryption.java:62) ~[liquibase.jar:na]
at net.java.truelicense.core.V2Encryption.call(V2Encryption.java:58) ~[liquibase.jar:na]
at net.java.truelicense.core.crypto.BasicPbeEncryption.wrap(BasicPbeEncryption.java:63) ~[liquibase.jar:na]
at net.java.truelicense.core.V2Encryption.access0(V2Encryption.java:25) ~[liquibase.jar:na]
at net.java.truelicense.core.V2Encryption.input(V2Encryption.java:58) ~[liquibase.jar:na]
at net.java.truelicense.core.V2Compression.input(V2Compression.java:48) ~[liquibase.jar:na]
at net.java.truelicense.json.codec.JsonCodec.decode(JsonCodec.java:77) ~[liquibase.jar:na]
at net.java.truelicense.core.BasicLicenseManager.decodeRepository(BasicLicenseManager.java:173) ~[liquibase.jar:na]
at net.java.truelicense.core.BasicLicenseManager.authenticate(BasicLicenseManager.java:169) ~[liquibase.jar:na]
at net.java.truelicense.core.CachingLicenseConsumerManager.authenticate(CachingLicenseConsumerManager.java:86) ~[liquibase.jar:na]
at net.java.truelicense.core.BasicLicenseManager.decodeLicense(BasicLicenseManager.java:165) ~[liquibase.jar:na]
at net.java.truelicense.core.CachingLicenseConsumerManager.validate(CachingLicenseConsumerManager.java:76) ~[liquibase.jar:na]
at net.java.truelicense.core.BasicLicenseManager.call(BasicLicenseManager.java:74) ~[liquibase.jar:na]
at net.java.truelicense.core.BasicLicenseManager.call(BasicLicenseManager.java:71) ~[liquibase.jar:na]
at net.java.truelicense.core.BasicLicenseManager.wrap(BasicLicenseManager.java:101) ~[liquibase.jar:na]
... 5 common frames omitted
这是我应该关心的事情,还是我应该忽略它?
这不是什么值得担心的事情。 Liquibase 和 Datical 最近添加了新的扩展功能作为 Liquibase Pro。此新功能需要付费商业许可证(可免费试用)。如果许可证不可用,您将看到这样的消息。
免责声明:我为 Datical 工作并编写了一些有问题的代码,并且让它像这样转储堆栈跟踪是一个将在未来版本中解决的问题。