简体   繁体   English

如何解决导丝升级异常

[英]How to resolve upgrade exception in guidewire

When I started the server in guidewire CC I got this error.当我在 guidewire CC 中启动服务器时,出现此错误。

com.guidewire.pl.system.exception.UpgradeException: Encryption has been removed or changed, but the OldEncryption plugin is not defined. com.guidewire.pl.system.exception.UpgradeException:加密已被删除或更改,但未定义 OldEncryption 插件。 Please see your documentation for details on encryption upgrade.有关加密升级的详细信息,请参阅您的文档。

Please help me to resolve this error.请帮我解决这个错误。

This exception happens when ClaimCenter detects that you have changed encryption schemes without properly leaving the old plugin registered.当 ClaimCenter 检测到您在没有正确注册旧插件的情况下更改了加密方案时,就会发生此异常。

You can have multiple plugins which implement the IEncryption interface.您可以拥有多个实现IEncryption接口的插件。

Lets say you're using SHA1 encryption registered through a SHA1Encryption.gwp Plugin Registry:假设您正在使用通过SHA1Encryption.gwp插件注册表注册的 SHA1 加密:

<plugin
  interface="IEncryption"
  name="SHA1Encryption">
  <plugin-gosu
    gosuclass="com.mycompany.plugins.encryption.SHA1EncryptionPluginImpl"/>
</plugin>

And configured in config.xml :并在config.xml配置:

<!-- The name of the current encryption plugin. -->
<param name="CurrentEncryptionPlugin" value="SHA1Encryption"/>

Then you decide to switch to AES encryption.然后您决定切换到 AES 加密。

You first have to create a new Plugin Registry file AESEncryption.gwp :您首先必须创建一个新的插件注册表文件AESEncryption.gwp

<plugin
  interface="IEncryption"
  name="AESEncryption">
  <plugin-gosu
    gosuclass="com.mycompany.plugins.encryption.AESEncryptionPluginImpl"/>
</plugin>

Then you have to modify the config.xml to tell ClaimCenter to use the new Plugin:然后您必须修改config.xml以告诉 ClaimCenter 使用新插件:

<!-- The name of the current encryption plugin. -->
<param name="CurrentEncryptionPlugin" value="AESEncryption"/>

Do not remove the SHA1Encryption.gwp Plugin Registry.不要删除SHA1Encryption.gwp插件注册表。

ClaimCenter keeps track of the Encryption Plugin used to encrypt each record, by NAME of the Plugin Registry file. ClaimCenter 通过插件注册表文件的名称跟踪用于加密每条记录的加密插件。 If it can't find the file, you will get this error.如果找不到该文件,您将收到此错误。

ClaimCenter is also capable of detecting that the implementation class has changed even if the plugin name hasn't (metadata change).即使插件名称未更改(元数据更改),ClaimCenter 也能够检测到实现类已更改。 In that case, it looks for a Plugin Registry named OldEncryption.gwp .在这种情况下,它会查找名为OldEncryption.gwp的插件注册表。

If it can't find the specific name, AND can't find OldEncryption.gwp , then you will get this error.如果找不到具体的名字,不能找到OldEncryption.gwp ,那么你会得到这个错误。

More information can be found in the Integration Guide from Guidewire.更多信息可以在 Guidewire 的集成指南中找到。

Sounds like the database you are connecting to is a newer or differently encrypted version that what the Guidewire application codebase you are running is expecting.听起来您要连接的数据库是更新的或不同加密的版本,这是您正在运行的 Guidewire 应用程序代码库所期望的。

What is the value of CurrentEncryptionPlugin in your config.xml file? config.xml文件中CurrentEncryptionPlugin的值是多少?

  <!-- The name of the current encryption plugin. -->
  <param name="CurrentEncryptionPlugin" value="AESEncrypter"/>

I found this was due to my not having the extensions.properties file updated to the latest number.我发现这是因为我没有将 extensions.properties 文件更新为最新的数字。 To fix:修理:

  • Hit Cntl-Shift-n按 Cntl-Shift-n
  • Search for "extension.properties"搜索“extension.properties”
  • Go into the file and change the number to the appropriate number进入文件并将数字更改为适当的数字
  • Save节省
  • Restart Guidewire Studio重启 Guidewire Studio

I was set after I did this.我做完这件事后就定了。

Easy way to pretend this type of exceptions,假装这种异常的简单方法,
change the DB path from database-confix.xmldatabase-confix.xml更改数据库路径

Open extension.property file打开extension.property文件

content of the file will be like文件的内容将类似于

version=34

increment the value of version by one, if you had made changes in any of the existing table structure如果您对任何现有表结构进行了更改,则将 version 的值加一

Restart the server重启服务器

Whenever will get this UpgradeException, the newer upgrade version number shows in console along with old version number.每当获得此 UpgradeException 时,更新的升级版本号会与旧版本号一起显示在控制台中。 You have to update the new number in the extension.property file.您必须更新 extension.property 文件中的新号码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM