Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-8049

org.apache.cxf.common.util.Compiler fails to compile if a classpath entry contains spaces

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.3.2
    • 3.2.10, 3.3.3
    • Core
    • None
    • Unknown

    Description

      I'm trying to create a dynamic client using https://github.com/apache/cxf/blob/master/distribution/src/main/release/samples/wsdl_first_dynamic_client/src/main/java/demo/hw/client/ComplexClient.java as a template.

       

      When I try to debug this, I intermittently get a (javac compile) failure where 

      org.apache.cxf.common.util.Compiler.internalCompile fails because the classpath contains an entry with spaces. In my case, this entry with a space was a jar from the IntelliJ installation path - 

      /Applications/IntelliJ IDEA.app/Contents/lib/idea_rt.jar

      After spending some time debugging it, I could workaround.txt the problem by escaping the said entry from the calling code (ComplexClient.java), but maybe this should be done inside org.apache.cxf.common.util.Compiler.addArgs where the classpath is being retrieved from the system property 'java.class.path'.

       

       

      Attachments

        1. workaround.txt
          0.5 kB
          Ranjit Vadakkan

        Issue Links

          Activity

            People

              ffang Freeman Yue Fang
              rvadakkan Ranjit Vadakkan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m