Article - CS159859

Content download fails with error “ MethodRequestHandler Exception: An exception occured while processing the request” for content recently uploaded to a file server in Windchill 10.2 M010

Modified: 07-Apr-2017   


Applies To

  • Windchill PDMLink 10.2 M010 to M010-CPS01

Description

  • When attempting to download content, the download fails with error “ MethodRequestHandler Exception: An exception occured while processing the request”.
  • The content was originally uploaded to a cache vault on a remote file server.
  • Windchill is configured for ad-hoc replication through the property setting wt.fv.master.adhocCaching=1 in <Windchill>/codebase/wt.properties.
  • The content is covered by an existing replication rule for the file server.
  • Steps to reproduce:
  1. Ensure that wt.fv.master.adhocCaching.flag=1 is set in <Windchill>\codebase\wt.properties on the master.
  2. Set the preference Vaulting and Replication > Preferred File Server to the file server.
  3. Create a new document with content; the content is uploaded to the file server cache vault.
  4. Change the preference Vaulting and Replication > Preferred File Server to the master server.
  5. Attempt to download the content of the newly created document.
  • The following stack trace is thrown in the master Method Server log:
ERROR [TP-Processor<n>] wt.servlet.ServletRequestMonitor.request <user> - <timestamp>, <session>, <user>, <client IP>, /Windchill/servlet/WindchillAuthGW/wt.content.ContentHttp/viewContent/<filename>, u8&HttpOperationItem=wt.content.ApplicationData%3A97591&ContentHolder=wt.doc.WTDocument%3A97587&originalFileName=<filename>&forceDownload=true, GET, 500, 0.2496016, 1.329353032
java.lang.NullPointerException
               at wt.httpgw.HTTPServletResponse.setStatus(HTTPServletResponse.java:215)
               at wt.content.ContentHttp.viewContent(ContentHttp.java:1064)
               at wt.content.ContentHttp.viewContent(ContentHttp.java:419)
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
               at java.lang.reflect.Method.invoke(Method.java:597)
               at wt.httpgw.HTTPServletResponse.invoke(HTTPServletResponse.java:251)
               at wt.httpgw.MethodRequestHandler.handleRequest(MethodRequestHandler.java:61)
               at wt.httpgw.HTTPGatewayServlet.serviceWithoutFilters(HTTPGatewayServlet.java:341)
               at wt.httpgw.HTTPAuthGatewayServlet.serviceWithoutFilters(HTTPAuthGatewayServlet.java:86)
               at wt.httpgw.FilterChainImpl.doFilter(FilterChainImpl.java:90)
               at wt.session.SessionContextDestroyer.doFilterInternal(SessionContextDestroyer.java:122)
               at wt.session.SessionContextDestroyer.doFilter(SessionContextDestroyer.java:162)
               at wt.httpgw.FilterChainImpl.doFilter(FilterChainImpl.java:77)
               at wt.httpgw.HTTPGatewayServlet.service(HTTPGatewayServlet.java:228)
               at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
...
 
This is a printer-friendly version of Article 159859 and may be out of date. For the latest version click CS159859