Uploaded image for project: 'Pentaho Data Integration - Kettle'
  1. Pentaho Data Integration - Kettle
  2. PDI-10860

CreateProcess error=206, The filename or extension is too long

    XMLWordPrintable

    Details

    • Notice:
      When an issue is open, the "Fix Version/s" field conveys a target, not necessarily a commitment. When an issue is closed, the "Fix Version/s" field conveys the version that the issue was fixed in.
    • Operating System/s:
      Windows 7

      Description

      When using fork=true - on win there is too long classpath value for command line.

      As a workaround fork=false can be used.

        <target name="compile.compile" depends="init">
          <javac destdir="${classes.dir}"
                 debug="${javac.debug}"
                 deprecation="${javac.deprecation}"
                 fork="false"
                 memorymaximumsize="${javac.maxmemory}"
                 source="${javac.source}"
                 target="${javac.target}">
            <classpath>
              <path refid="classpath" />
            </classpath>
            <src path="${src.dir}" />
            <compilerarg value="${javac.xlint}" />
          </javac>
        </target>
      

      but, we may find another decision, for example - try to create a pathing jar or other.

      see console output below:

      BUILD FAILED
      ...\pentaho-kettle-master\build.xml:973: The following error occurred while executing this line:
      
      ...\pentaho-kettle-master\build.xml:975: The following error occurred while executing this line:
      
      ...\git\pentaho-kettle-master\plugins\kettle-gpload-plugin\build-res\subfloor.xml:1160: Error running c:\Program Files\Java\jdk1.7.0_25\bin\javac.exe compiler
              at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:508)
              at org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java:61)
              at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1153)
              at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:930)
              at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
              at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
              at org.apache.tools.ant.Task.perform(Task.java:348)
              at org.apache.tools.ant.Target.execute(Target.java:435)
              at org.apache.tools.ant.Target.performTasks(Target.java:456)
              at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
              at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
              at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
              at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:440)
              at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
              at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
              at org.apache.tools.ant.Task.perform(Task.java:348)
              at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
              at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
              at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
              at org.apache.tools.ant.Task.perform(Task.java:348)
              at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:396)
              at net.sf.antcontrib.logic.ForTask.doSequentialIteration(ForTask.java:259)
              at net.sf.antcontrib.logic.ForTask.doToken(ForTask.java:268)
              at net.sf.antcontrib.logic.ForTask.doTheTasks(ForTask.java:299)
              at net.sf.antcontrib.logic.ForTask.execute(ForTask.java:244)
              at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
              at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
              at org.apache.tools.ant.Task.perform(Task.java:348)
              at org.apache.tools.ant.Target.execute(Target.java:435)
              at org.apache.tools.ant.Target.performTasks(Target.java:456)
              at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
              at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
              at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
              at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
              at org.apache.tools.ant.Main.runBuild(Main.java:851)
              at org.apache.tools.ant.Main.startAnt(Main.java:235)
              at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
              at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
      Caused by: java.io.IOException: Cannot run program "c:\Program Files\Java\jdk1.7.0_25\bin\javac.exe" (in directory "{wrkdir}\pentaho-kettle-master\plugins\kettle-gpload-plugin"): CreateProcess error=206, The filename or extension is too long
              at java.lang.ProcessBuilder.start(ProcessBuilder.java:1041)
              at java.lang.Runtime.exec(Runtime.java:617)
              at org.apache.tools.ant.taskdefs.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:41)
              at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:428)
              at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:442)
              at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:505)
              ... 49 more
      Caused by: java.io.IOException: CreateProcess error=206, The filename or extension is too long
              at java.lang.ProcessImpl.create(Native Method)
              at java.lang.ProcessImpl.<init>(ProcessImpl.java:376)
              at java.lang.ProcessImpl.start(ProcessImpl.java:136)
              at java.lang.ProcessBuilder.start(ProcessBuilder.java:1022)
              ... 54 more
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dzmitry_by Dzmitry Prakapenka (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated: