Article - CS306447

The File.move code can't move the zip file after using NmJarReader java class to read zip file in Windchill 10.2 system

Modified: 14-May-2019   


Applies To

  • Windchill PDMLink 10.2 to 11.2

Description

  • The File.move code can't move the zip file after using NmJarReader java class to read zip file
  • Error message: 

    Caused by: java.nio.file.FileSystemException: C:\ptc\Windchill_11.0\Windchill\test.zip -> C:\ptc\Windchill_11.0\Windchill\loadFiles\Agreement.xml: The process cannot access the file because it is being used by another process.

     

    at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:86)

    at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)

    at sun.nio.fs.WindowsFileCopy.move(WindowsFileCopy.java:387)

    at sun.nio.fs.WindowsFileSystemProvider.move(WindowsFileSystemProvider.java:287)

    at java.nio.file.Files.move(Files.java:1395)

    at org.apache.jsp.netmarkets.jsp.testnmjarreader_jsp._jspService(testnmjarreader_jsp.java:202)

    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)

    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:443)

    ... 40 more
This is a printer-friendly version of Article 306447 and may be out of date. For the latest version click CS306447