技术文章 - CS235728
在 Windchill Bulk Migrator 中加载数据失败并出现“java.lang.StringIndexOutOfBoundsException:字符串索引超出范围:-1”
已修改: 10-Oct-2022
适用于
- 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)
在 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)
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