技术文章 - CS235728

在 Windchill Bulk Migrator 中加载数据失败并出现“java.lang.StringIndexOutOfBoundsException:字符串索引超出范围:-1”

已修改: 10-Oct-2022   


注意:本文已使用机器翻译软件翻译,以方便非英语客户阅读。但翻译内容可能包含语法错误或不准确之处。请注意, PTC对本文所含信息的翻译准确性及使用后果不承担任何责任。请在 此处 查看本文的英文原始版本以便参考。有关机器翻译的更多详情,请单击 此处
感谢您告诉我们。我们将尽快审阅此译文。

适用于

  • Windchill Bulk Migrator 4.0 M020 to 12.0

说明

  • 加载数据失败,出现“java.lang.StringIndexOutOfBoundsException:字符串索引超出范围:-1”
  • cirouter.log 中的错误
错误 postprocess.WbmMigratedInfoPostprocessor - 为 com.ptc.windchill.migration.wbm.transaction.MasterStagingRecord@120f5b61、objectType:WTPart、stgId:10 => 字符串索引超出范围报告错误:-1 java.lang.StringIndexOutOfBoundsException:字符串索引输出范围:-1 在 java.lang.String.substring(String.java:1911) 在 com.ptc.core.meta.common.DataTypesExternalizer.fromExternalFloatingPointForm(DataTypesExternalizer.java:479) 在 com.ptc.windchill.migration。 wbm.WBMLoadAttribute2.convertAttributeValue(WBMLoadAttribute2.java:379)
在 com.ptc.windchill.migration.wbm.WBMLoadAttribute2.createAttributeInfo2(WBMLoadAttribute2.java:344)

对于 URL IBA,堆栈显示
java.lang.StringIndexOutOfBoundsException:字符串索引超出范围:-1 com.ptc.core.meta.common.DataTypesExternalizer.fromExternalHyperlinkForm(DataTypesExternalizer.java:515
  • MethodServer 日志报告以下错误:
错误 [RMI TCP 连接 (53748)-10.236.130.185] com.ptc.windchill.migration.wbm.WBMLoadAttribute2 wcadmin - 无法解析 FloatingPointWithUnits 值 0|9
2022-10-07 01:40:00,411 信息 [RMI TCP 连接(53748)-10.236.130.185] wt.system.err wcadmin - wt.util.WTException:java.lang.StringIndexOutOfBoundsException:字符串索引超出范围:-1
2022-10-07 01:40:00,411 INFO [RMI TCP Connection(53748)-10.236.130.185] wt.system.err wcadmin - 嵌套异常是:java.lang.StringIndexOutOfBoundsException:字符串索引超出范围:-1
2022-10-07 01:40:00,411 信息 [RMI TCP 连接(53748)-10.236.130.185] wt.system.err wcadmin - 在 java.lang.String.substring(String.java:1967)
2022-10-07 01:40:00,411 信息 [RMI TCP 连接(53748)-10.236.130.185] wt.system.err wcadmin - 在 com.ptc.core.meta.common.DataTypesExternalizer.fromExternalFloatingPointWithUnitsForm(DataTypesExternalizer.java:462 )
2022-10-07 01:40:00,411 信息 [RMI TCP 连接 (53748)-10.236.130.185] wt.system.err wcadmin - 在 com.ptc.windchill.migration.wbm.WBMLoadAttribute2.convertAttributeValue(WBMLoadAttribute2.java:369 )
2022-10-07 01:40:00,411 信息 [RMI TCP 连接 (53748)-10.236.130.185] wt.system.err wcadmin - 在 com.ptc.windchill.migration.wbm.WBMLoadAttribute2.createAttributeInfo2(WBMLoadAttribute2.java:331 )
2022-10-07 01:40:00,411 信息 [RMI TCP 连接 (53748)-10.236.130.185] wt.system.err wcadmin - 在 com.ptc.windchill.migration.wbm.WBMLoadAttribute2.createAttribute(WBMLoadAttribute2.java:111 )
2022-10-07 01:40:00,411 信息 [RMI TCP 连接 (53748)-10.236.130.185] wt.system.err wcadmin - 在 com.ptc.windchill.migration.wbm.genericloader.GenericLoader.importIBAs(GenericLoader.java :536)
2022-10-07 01:40:00,411 信息 [RMI TCP 连接 (53748)-10.236.130.185] wt.system.err wcadmin - 在 com.ptc.windchill.migration.wbm.genericloader.GenericLoader.loadObject(GenericLoader.java :201)
2022-10-07 01:40:00,411 信息 [RMI TCP 连接 (53748)-10.236.130.185] wt.system.err wcadmin - 在 com.ptc.windchill.migration.wbm.genericloader.GenericVersionedLoader.loadIterations(GenericVersionedLoader.java :361)
这是文章 235728 的 PDF 版本,可能已过期。最新版本 CS235728