技术文章 - CS134765

在 Windchill PDMlink 中创建某些对象时返回错误“java.lang.NumberFormatException: For input string: “A””

已修改: 25-Feb-2025   


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

适用于

  • Windchill PDMLink 10.1 to 12.0
  • Windchill Bulk Migrator 4.0
  • Windchill PDMLink 10.1 to 12.1

说明

  • 某些族表的检出添加到工作区失败
  • 将系列配置为整数后无法创建文档
  • 某些对象的 WBM 加载失败
  • wt.properties中,设置了以下属性:
    • wt.series.HarvardSeries.level.1=wt.series.IntegerSeries
  • 方法服务器日志中报告了以下错误:
    •  wt.util.WTRuntimeException: java.lang.NumberFormatException: For input string: "A"; nested exception is:
       java.lang.NumberFormatException: For input string: "A"
       at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
       at java.lang.Integer.parseInt(Integer.java:449)
       at java.lang.Integer.valueOf(Integer.java:554)
       at wt.series.IntegerSeries.getIntegerValue(IntegerSeries.java:333)
       at wt.series.IntegerSeries.equals(IntegerSeries.java:270)
       at wt.series.HarvardSeries.lessThan(HarvardSeries.java:397)
       at wt.epm.familytable.EPMFamilyTableHelper.shouldReplace(EPMFamilyTableHelper.java:647)
       at wt.epm.familytable.EPMFamilyTableHelper.getLatestFamilyTable(EPMFamilyTableHelper.java:624)
      ...
      

    • 对于 WBM:
       Nested exception is: wt.util.WTRuntimeException: java.lang.NumberFormatException: For input string: "A"; nested exception is:
           java.lang.NumberFormatException: For input string: "A"
           at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
           at java.lang.Integer.parseInt(Integer.java:492)
           at java.lang.Integer.valueOf(Integer.java:582)
           at wt.series.IntegerSeries.getIntegerValue(IntegerSeries.java:333)
           at wt.series.IntegerSeries.equals(IntegerSeries.java:270)
           at wt.series.HarvardSeries.equals(HarvardSeries.java:349)
           at wt.series.SeriesSortCache$2.compare(SeriesSortCache.java:245)
           at wt.series.SeriesSortCache$2.compare(SeriesSortCache.java:243)
           at java.util.TreeMap.getEntryUsingComparator(TreeMap.java:369)
           at java.util.TreeMap.getEntry(TreeMap.java:340)
           at java.util.TreeMap.containsKey(TreeMap.java:227)
           at java.util.Collections$SynchronizedMap.containsKey(Collections.java:2031)
           at wt.series.SeriesSortCache.assignSortId(SeriesSortCache.java:267)
           at wt.series.SeriesSortCache.ensureSortIdFor(SeriesSortCache.java:281)
      ...
      
    • 创建文档时出错
       com.ptc.windchill.enterprise.doc.forms.CreateDocFormProcessor <username>- wt.util.WTRuntimeException: java.lang.NumberFormatException: For input string: "B"; nested exception is: java.lang.NumberFormatException: For input string: "B" wt.util.WTException: wt.util.WTRuntimeException: java.lang.NumberFormatException: For input string: "B"; nested exception is: java.lang.NumberFormatException: For input string: "B" Nested exception is: wt.util.WTRuntimeException: java.lang.NumberFormatException: For input string: "B"; nested exception is: java.lang.NumberFormatException: For input string: "B" at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.base/java.lang.Integer.parseInt(Integer.java:652) at java.base/java.lang.Integer.valueOf(Integer.java:983) at wt.series.IntegerSeries.getIntegerValue(IntegerSeries.java:333) at wt.series.IntegerSeries.equals(IntegerSeries.java:270) at wt.series.HarvardSeries.equals(HarvardSeries.java:338) at wt.series.SeriesSortCache$2.compare(SeriesSortCache.java:246) at wt.series.SeriesSortCache$2.compare(SeriesSortCache.java:244) at java.base/java.util.TreeMap.getEntryUsingComparator(TreeMap.java:374) at java.base/java.util.TreeMap.getEntry(TreeMap.java:343) at java.base/java.util.TreeMap.containsKey(TreeMap.java:231) at java.base/java.util.Collections$SynchronizedMap.containsKey(Collections.java:2588) at wt.series.SeriesSortCache.assignSortId(SeriesSortCache.java:268) at wt.series.SeriesSortCache.ensureSortIdFor(SeriesSortCache.java:282) at wt.series.StandardSeriesService$2.notifyVetoableMultiObjectEvent(StandardSeriesService.java:439) at wt.events.StandardKeyedEventBranch.intDispatchEvent(StandardKeyedEventBranch.java:306) at wt.events.StandardKeyedEventBranch.dispatchVetoableEvent(StandardKeyedEventBranch.java:255) at wt.events.StandardKeyedEventDispatcher.intDispatchEvent(StandardKeyedEventDispatcher.java:304) at wt.events.StandardKeyedEventDispatcher.dispatchVetoableEvent(StandardKeyedEventDispatcher.java:228) at wt.services.StandardManagerService.intDispatchVetoableEvent(StandardManagerService.java:410) at wt.services.StandardManagerService.dispatchVetoableEvent(StandardManagerService.java:303) at wt.fc.StandardPersistenceManager.dispatchVetoableEvent(StandardPersistenceManager.java:2972) at wt.fc.StandardPersistenceManager.dispatchVetoableEvent(StandardPersistenceManager.java:2952) at wt.fc.StandardPersistenceManager.store(StandardPersistenceManager.java:1429) at wt.fc.StandardPersistenceManager.store(StandardPersistenceManager.java:534) at jdk.internal.reflect.GeneratedMethodAccessor632.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566)
这是文章 134765 的 PDF 版本,可能已过期。最新版本 CS134765