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

DynamicClientFactory createClient fails for Simple Rpc Service (java.lang.IllegalStateException: no source files )

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6.13, 2.7.11, 3.0
    • Fix Version/s: 2.6.15, 2.7.12, 3.0.1
    • Component/s: Simple Frontend
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      When there is no source files generated for the types (e.g., the service is an RPC styled service using primitive types), the client generation code is resoling the following error:

      Fails after DynamicClientFactory.java Line#369.

      INFO: Created classes:
      java.lang.IllegalStateException: no source files
      at com.sun.tools.javac.main.Main.error(Main.java:173)
      at com.sun.tools.javac.main.Main.compile(Main.java:397)
      at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:132)
      at org.apache.cxf.common.util.Compiler.internalJava6Compile(Compiler.java:232)
      at org.apache.cxf.common.util.Compiler.useJava6Compiler(Compiler.java:194)
      at org.apache.cxf.common.util.Compiler.compileFiles(Compiler.java:144)
      at org.apache.cxf.common.util.Compiler.compileFiles(Compiler.java:139)
      at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.compileJavaSrc(DynamicClientFactory.java:611)
      at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:370)
      at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:241)
      at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:234)
      at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:189)
      at org.voxeo.eval.cxfclient.SimpleRpcLiteralClientTest.testName(SimpleRpcLiteralClientTest.java:46)

      Reported in
      http://cxf.547215.n5.nabble.com/DynamicClientFactory-createClient-fails-for-SimpleRpc-Service-tt5744628.html#a5744697

        Attachments

          Activity

            People

            • Assignee:
              ay Akitoshi Yoshida
              Reporter:
              ay Akitoshi Yoshida
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: