Uploaded image for project: 'Serverless logic'
  1. Serverless logic
  2. SRVLOGIC-223

[Kn CLI] Build of the sample project fails with NoSuchFileException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 1.32.0
    • 1.32.0
    • serverless-workflow
    • False
    • None
    • False

      Follow the steps of the Test 2: https://docs.google.com/document/d/14YlJukkvvIyAUBH0csOU-noBc8moxxUeqTJywnOWhxI/edit

      After the cli deploy is executed (step 10. Deploy on minikube), pod will fail with the NoSuchFileException

       INFO Configure Maven                                                                           
      INFO --> checking if .mvn/jvm.config exists.                                                   
      INFO ---> .mvn/jvm.config does not exists, memory will be calculated based on container limits.
      [INFO] Scanning for projects...                                                                
      [INFO]                                                                                         
      [INFO] ----------------< org.acme:serverless-workflow-project >----------------                
      [INFO] Building serverless-workflow-project 1.0.0-SNAPSHOT                                     
      [INFO] --------------------------------[ jar ]---------------------------------                
      [INFO]                                                                                         
      [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ serverless-workflow-project ---      
      [INFO]                                                                                         
      [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ serverless-workflow-project ---
      [INFO] Using 'UTF-8' encoding to copy filtered resources.                                      
      [INFO] Copying 12 resources                                                                    
      [INFO]                                                                                         
      [INFO] --- quarkus-maven-plugin:2.16.10.Final:generate-code (default) @ serverless-workflow-project --- 
      [WARNING] K_SINK variable is empty or doesn't exist. Please make sure that this service is a Knative Source or has a SinkBinding bound to it. 
      [INFO] ------------------------------------------------------------------------                
      [INFO] BUILD FAILURE                                                                           
      [INFO] ------------------------------------------------------------------------                
      [INFO] Total time:  9.318 s                                                                    
      [INFO] Finished at: 2024-02-13T15:07:37Z                                                       
      [INFO] ------------------------------------------------------------------------                
      [ERROR] Failed to execute goal io.quarkus.platform:quarkus-maven-plugin:2.16.10.Final:generate-code (default) on project serverless-workflow-project: Quarkus code generation phase has failed: InvocationTargetException: java.nio.file.NoSuchFileException: /home/kogito/serverless-workflow-project/src/main/resources/workflows/..2024_02_13_14_49_44.84
      [ERROR]                                                                                        
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.            
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.                         
      [ERROR]                                                                                        
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException       
      Stream closed EOF for default/service-6f4cd68d55-nfdgk (workflow)  
      

      Environment:
      Fedora 39 - amd64 linux arch
      minikube version: v1.32.0
      kn-cli 1.32.0 build

        1. screenshot-1.png
          8 kB
          Tomas David
        2. screenshot-2.png
          139 kB
          Tomas David

              rhn-support-zanini Ricardo Zanini
              tdavid@redhat.com Tomas David
              Dominik Hanak Dominik Hanak
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: