技术文章 - CS259869

导入分类 zip 文件失败并出现错误:java.lang.IllegalArgumentException:Windchill PartsLink 中格式错误

已修改: 13-Nov-2023   


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

适用于

  • Windchill PartsLink 12.0.2.0
  • Windchill PDMLink 12.0.2.0
  • Windchill PartsLink 10.0 to 11.0

说明

  • 分类 zip 文件导入失败,方法服务器日志中出现错误:
java.lang.IllegalArgumentException: MALFORMED
2017-02-27 17:10:22,030 INFO  [ajp-bio-8010-exec-1] wt.system.err wcadmin - java.lang.IllegalArgumentException: MALFORMED
2017-02-27 17:10:22,030 INFO  [ajp-bio-8010-exec-1] wt.system.err wcadmin -             at java.util.zip.ZipCoder.toString(ZipCoder.java:58)
2017-02-27 17:10:22,030 INFO  [ajp-bio-8010-exec-1] wt.system.err wcadmin -             at java.util.zip.ZipInputStream.readLOC(ZipInputStream.java:297)
2017-02-27 17:10:22,030 INFO  [ajp-bio-8010-exec-1] wt.system.err wcadmin -             at java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:121)
2017-02-27 17:10:22,030 INFO  [ajp-bio-8010-exec-1] wt.system.err wcadmin -             at wt.util.FileUtil.unzipFile(FileUtil.java:455)
2017-02-27 17:10:22,030 INFO  [ajp-bio-8010-exec-1] wt.system.err wcadmin -             at wt.util.FileUtil.unzipFile(FileUtil.java:410)
2017-02-27 17:10:22,030 INFO  [ajp-bio-8010-exec-1] wt.system.err wcadmin -             at com.ptc.windchill.csm.client.utils.CSMUtils.extractZipArchive(CSMUtils.java:353)
2017-02-27 17:10:22,030 INFO  [ajp-bio-8010-exec-1] wt.system.err wcadmin -             at com.ptc.windchill.csm.CSMCommands.importStructure(CSMCommands.java:1215)
2017-02-27 17:10:22,030 INFO  [ajp-bio-8010-exec-1] wt.system.err wcadmin -             at com.ptc.windchill.csm.CSMCommands.importClasssificationStructure(CSMCommands.java:1175)
[...]

2017-02-27 17:10:22,061 ERROR [ajp-bio-8010-exec-1] com.ptc.jca.mvc.controllers.ActionController wcadmin - java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
​[...]

Caused by: java.lang.reflect.InvocationTargetException
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              at com.ptc.core.components.forms.FormDispatcher.callWizardCommand(FormDispatcher.java:112)
              at com.ptc.core.components.forms.FormDispatcher.execute(FormDispatcher.java:98)
              ... 73 more
Caused by: java.lang.NullPointerException
              at com.ptc.windchill.csm.CSMCommands.importStructure(CSMCommands.java:1237)
              at com.ptc.windchill.csm.CSMCommands.importClasssificationStructure(CSMCommands.java:1175)
              ... 79 more
这是文章 259869 的 PDF 版本,可能已过期。最新版本 CS259869