Revision history [back]

click to hide/show revision 1
initial version

answered 2022-05-04 12:17:11 +0800

hawk gravatar image hawk

http://hawkphoenix.blogsp... ZK Team

WpdExtendlet$WpdLoader.getRealPath() is to get real path of a wpd request like /web/_zv2021081016/js/zul.utl.wpd. The related code is:

final int j = path.lastIndexOf(".wpd"); 
return path.substring(0, j).replace('.', '/') + "/zk" + path.substring(j);

If the path is to request a WPD, then j should be larger than -1. Please open a browser developer tool > Network tab to check which request failed. Because the exception should cause the request to fail like: image description

Normally, getting a wpd file should not fail.

WpdExtendlet$WpdLoader.getRealPath() is to get real path of a wpd request like /web/_zv2021081016/js/zul.utl.wpd. The related code is:

final int j = path.lastIndexOf(".wpd"); 
return path.substring(0, j).replace('.', '/') + "/zk" + path.substring(j);

If the path is to request a WPD, then j should be larger than -1. Normally, getting a wpd file should not fail.

Please open a browser developer tool > Network tab to check which request failed. Because the exception should cause the request to fail like: image description

Normally, getting a wpd file should not fail.

WpdExtendlet$WpdLoader.getRealPath() is to get real path of a wpd file request like /web/_zv2021081016/js/zul.utl.wpd. The related code is:

final int j = path.lastIndexOf(".wpd"); 
return path.substring(0, j).replace('.', '/') + "/zk" + path.substring(j);

If the path is to request a WPD, then j j should be larger than -1. Normally, getting a wpd file should not fail.

Please open a browser developer tool > Network tab to check which request failed. Because the exception should cause the request to fail like: image description

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More