IBM Support

Replace Tokens results in "java.io.FileNotFoundException" error

Troubleshooting


Problem

Attempts to run a step that does a Replace Tokens in IBM UrbanCode Deploy results in the error "java.io.FileNotFoundException:(No such device or address)".

Symptom

When running a step that does a Replace Tokens, you receive the following error in your step output:

java.io.FileNotFoundException:<socket>(No such device or address)
    at
org.apache.tools.ant.taskdefs.Replace.processFile(Replace.java:709)
    at org.apache.tools.ant.taskdefs.Replace.execute(Replace.java:547)
    at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1
06)
    at groovy.util.AntBuilder.performTask(AntBuilder.java:260)
    at groovy.util.AntBuilder.nodeCompleted(AntBuilder.java:220)
    at
groovy.util.BuilderSupport.doInvokeMethod(BuilderSupport.java:147)
    at groovy.util.AntBuilder.doInvokeMethod(AntBuilder.java:170)
    at groovy.util.BuilderSupport.invokeMethod(BuilderSupport.java:64)
    at
org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClas
sSite.java:45)
    at
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteA
rray.java:42)
    at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallS
ite.java:108)
    at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallS
ite.java:116)
    at replace_tokens.run(replace_tokens.groovy:95)
    at
groovy.lang.GroovyShell.runScriptOrMainOrTestOrRunnable(GroovyShell.java
:266)
    at groovy.lang.GroovyShell.run(GroovyShell.java:229)
    at groovy.lang.GroovyShell.run(GroovyShell.java:159)
    at groovy.ui.GroovyMain.processOnce(GroovyMain.java:550)
    at groovy.ui.GroovyMain.run(GroovyMain.java:337)
    at groovy.ui.GroovyMain.process(GroovyMain.java:323)
    at groovy.ui.GroovyMain.processArgs(GroovyMain.java:120)
    at groovy.ui.GroovyMain.main(GroovyMain.java:100)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at
org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:10
8)
    at
org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:130)
Caused by: java.io.FileNotFoundException:<socket>
(No
such device or address)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(Unknown Source)
    at java.io.FileReader.<init>(Unknown Source)
    at
org.apache.tools.ant.taskdefs.Replace$FileInput.<init>(Replace.java:369)
    at
org.apache.tools.ant.taskdefs.Replace.processFile(Replace.java:672)
    ... 31 more
Error replacing tokens!

[{"Product":{"code":"SS4GSP","label":"IBM UrbanCode Deploy"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"General Information","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF022","label":"OS X"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"6.1.1.4","Edition":"","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]

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:
17 June 2018

UID

swg21969500