Configuring sendToPrinter to use CIFS as a Printer Protocol sometimes results in slow print performance, and the request can even timeout:

[Transport1] ERROR [STDERR] - Connection timed out
[Transport1] ERROR [STDERR] - at Method)
[Transport1] ERROR [STDERR] - at
[Transport1] ERROR [STDERR] - at
[Transport1] ERROR [STDERR] - at
[Transport1] ERROR [STDERR] - at
[Transport1] ERROR [STDERR] - at
[Transport1] ERROR [STDERR] - at
[Transport1] ERROR [STDERR] - at
[Transport1] ERROR [STDERR] - at
[Transport1] ERROR [STDERR] - at jcifs.smb.SmbTransport.negotiate(
[Transport1] ERROR [STDERR] - at jcifs.smb.SmbTransport.doConnect(
[Transport1] ERROR [STDERR] - at
[Transport1] ERROR [STDERR] - at


To investigate the problem, the first step is to enable trace level logging on JCIFS:

  • Increase the Log Level on JCIFS by adding the “-Djcifs.util.loglevel=10“ JVM argument.
  • Enable TRACE Log Level on the component “com.adobe.printSubmitter.output.CIFSPrintJob”.

This allows us to obtain a more detailed Stack Trace showing exactely what operation is timing out:

jcifs.util.transport.TransportException: Connection timeout
at jcifs.util.transport.Transport.connect(
at jcifs.smb.SmbTransport.connect(
at jcifs.smb.SmbTree.treeConnect(
at jcifs.smb.SmbTree.send(
at jcifs.smb.SmbTransport.getDfsReferrals(
at jcifs.smb.Dfs.getTrustedDomains(
at jcifs.smb.Dfs.resolve(

As per the above Stack Trace, DFS resolution is timing out: This query is used to check if the printer actually exists on some other server in which case request is routed to that other server. The timeout indicates an issue with the Domain Controller which is either unresponsive, or too slow to respond. Passing the JVM argument "-Djcifs.smb.client.dfs.disabled=true" resolves the issue above.

In case the situation is not related to DFS resolution, indepth analysis of Stack Traces from the detailed log should indicate which JCIFS property is adequate to resolve the problem. 

For all properties available on JCIFS, please refer to this link.

Dieses Werk unterliegt den Bedingungen der Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.  Twitter™- und Facebook-Beiträge fallen nicht unter die Bedingungen der Creative Commons-Lizenz.

Rechtliche Hinweise   |   Online-Datenschutzrichtlinie