IBM Support

webMethods Knowlegebase : pub.file:stringToFile gets java.nio.file.InvalidPathException: UNC path is missing host (1775077)

Troubleshooting


Problem

Using service pub.file:stringToFile to write to a remote drive gives error:

java.nio.file.InvalidPathException: UNC path is missing hostname: \\

com.wm.app.b2b.server.ServiceException: java.nio.file.InvalidPathException: UNC path is missing hostname: \\

at pub.file.checkPathValidity(file.java:151)

at pub.file.readerToFile(file.java:282)

at pub.file.stringToFile(file.java:991)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

The fileAccessControl.cnf file contains:

allowedWritePaths=c:\**;C:\**;D:\**;d:\**;packages\**;D:/**;d:/**;\\**

Document Location

Worldwide

[{"Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSVYEV","label":"IBM webMethods Integration"},"ARM Category":[{"code":"a8mKe00000000AQIAY","label":"webMethods Integration Server (PIE)"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Windows Server 2012"}],"Version":"9.10"},{"Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSFIWYE","label":"IBM webMethods B2B"},"ARM Category":[{"code":"a8mKe00000000AQIAY","label":"webMethods Integration Server (PIE)"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Windows Server 2012"}],"Version":"9.10"},{"Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSQG2X","label":"IBM webMethods Managed File Transfer"},"ARM Category":[{"code":"a8mKe00000000AQIAY","label":"webMethods Integration Server (PIE)"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Windows Server 2012"}],"Version":"9.10"}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
20 March 2025

UID

ibm17222180