com.test.WebClientException: Failed trying to upload file '1360084126523_missingCols1.csv' for datasource 'M-0000019b-0000-0005-0000-0000000014a6'

Jenkins JIRA | Nalin Makar | 4 years ago
  1. 0

    We have configured a job to run tests against our various environments. This job is enabled to run builds in parallel if needed. When we do run builds from this job in parallel, some of the tests fail with exceptions like the one below: {{com.test.WebClientException: Failed trying to upload file '1360084126523_missingCols1.csv' for datasource 'M-0000019b-0000-0005-0000-0000000014a6' at com.test.WebClient.uploadFileGetJson(WebClient.java:269) at com.test.dataimport.ImportTestUtil.loadAndImport(ImportTestUtil.java:198) at com.test.dataimport.ImportIncrementalTest.importIncrementalTestNeg_INCMH10(ImportIncrementalTest.java:208) Caused by: java.io.FileNotFoundException: /jenkins/workspace/QE_All_Tests%402/target/test-classes/datasets/dataimport/incremental/INCMH10/missingCols1.csv (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:106) at org.apache.http.entity.mime.content.FileBody.writeTo(FileBody.java:100) at org.apache.http.entity.mime.HttpMultipart.doWriteTo(HttpMultipart.java:206) at org.apache.http.entity.mime.HttpMultipart.writeTo(HttpMultipart.java:224) at org.apache.http.entity.mime.MultipartEntity.writeTo(MultipartEntity.java:183) at org.apache.http.entity.HttpEntityWrapper.writeTo(HttpEntityWrapper.java:96) at org.apache.http.impl.client.EntityEnclosingRequestWrapper$EntityWrapper.writeTo(EntityEnclosingRequestWrapper.java:108) at org.apache.http.impl.entity.EntitySerializer.serialize(EntitySerializer.java:120) at org.apache.http.impl.AbstractHttpClientConnection.sendRequestEntity(AbstractHttpClientConnection.java:264) at org.apache.http.impl.conn.AbstractClientConnAdapter.sendRequestEntity(AbstractClientConnAdapter.java:224) at org.apache.http.protocol.HttpRequestExecutor.doSendRequest(HttpRequestExecutor.java:255) at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:123) at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:647) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:464) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:732) at com.test.WebClient.uploadFileGetJson(WebClient.java:265) ... 36 more}} The main issue here is: {{java.io.FileNotFoundException: /jenkins/workspace/QE_All_Tests%402/target/test-classes/datasets/dataimport/incremental/INCMH10/missingCols1.csv (No such file or directory)}} This happens because the test expects the file to be present at /jenkins/workspace/QE_All_Tests%402/ where as it's actually present at /jenkins/workspace/QE_All_Tests@2/ Jenkins should consider using some character other than '@' (e.g. '_') when creating workspaces for concurrent builds.

    Jenkins JIRA | 4 years ago | Nalin Makar
    com.test.WebClientException: Failed trying to upload file '1360084126523_missingCols1.csv' for datasource 'M-0000019b-0000-0005-0000-0000000014a6'
  2. 0

    We have configured a job to run tests against our various environments. This job is enabled to run builds in parallel if needed. When we do run builds from this job in parallel, some of the tests fail with exceptions like the one below: {{com.test.WebClientException: Failed trying to upload file '1360084126523_missingCols1.csv' for datasource 'M-0000019b-0000-0005-0000-0000000014a6' at com.test.WebClient.uploadFileGetJson(WebClient.java:269) at com.test.dataimport.ImportTestUtil.loadAndImport(ImportTestUtil.java:198) at com.test.dataimport.ImportIncrementalTest.importIncrementalTestNeg_INCMH10(ImportIncrementalTest.java:208) Caused by: java.io.FileNotFoundException: /jenkins/workspace/QE_All_Tests%402/target/test-classes/datasets/dataimport/incremental/INCMH10/missingCols1.csv (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:106) at org.apache.http.entity.mime.content.FileBody.writeTo(FileBody.java:100) at org.apache.http.entity.mime.HttpMultipart.doWriteTo(HttpMultipart.java:206) at org.apache.http.entity.mime.HttpMultipart.writeTo(HttpMultipart.java:224) at org.apache.http.entity.mime.MultipartEntity.writeTo(MultipartEntity.java:183) at org.apache.http.entity.HttpEntityWrapper.writeTo(HttpEntityWrapper.java:96) at org.apache.http.impl.client.EntityEnclosingRequestWrapper$EntityWrapper.writeTo(EntityEnclosingRequestWrapper.java:108) at org.apache.http.impl.entity.EntitySerializer.serialize(EntitySerializer.java:120) at org.apache.http.impl.AbstractHttpClientConnection.sendRequestEntity(AbstractHttpClientConnection.java:264) at org.apache.http.impl.conn.AbstractClientConnAdapter.sendRequestEntity(AbstractClientConnAdapter.java:224) at org.apache.http.protocol.HttpRequestExecutor.doSendRequest(HttpRequestExecutor.java:255) at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:123) at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:647) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:464) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:732) at com.test.WebClient.uploadFileGetJson(WebClient.java:265) ... 36 more}} The main issue here is: {{java.io.FileNotFoundException: /jenkins/workspace/QE_All_Tests%402/target/test-classes/datasets/dataimport/incremental/INCMH10/missingCols1.csv (No such file or directory)}} This happens because the test expects the file to be present at /jenkins/workspace/QE_All_Tests%402/ where as it's actually present at /jenkins/workspace/QE_All_Tests@2/ Jenkins should consider using some character other than '@' (e.g. '_') when creating workspaces for concurrent builds.

    Jenkins JIRA | 4 years ago | Nalin Makar
    com.test.WebClientException: Failed trying to upload file '1360084126523_missingCols1.csv' for datasource 'M-0000019b-0000-0005-0000-0000000014a6'
  3. 0

    OpenGrok leaving too many open files. (Bugzilla #17127)

    GitHub | 4 years ago | vladak
    java.io.FileNotFoundException: /usr/local/tomcat/conf/web.xml (Too many open files)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How to typically start kestrel on windows... in simple steps.

    GitHub | 5 years ago | nutharsh
    java.io.FileNotFoundException: \etc\kestrel.conf (The system cannot find the path specified)
  6. 0

    Graph Window in Overview Tab Fails to Load

    GitHub | 5 years ago | mbastian
    java.io.FileNotFoundException: /platform/modules/* (No such file or directory)

  1. r1chjames 1 times, last 4 days ago
  2. richard77 1 times, last 1 week ago
  3. gehel 2 times, last 2 weeks ago
  4. Kialandei 100 times, last 2 weeks ago
  5. Reich 1 times, last 2 weeks ago
45 more registered users
50 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.FileNotFoundException

    /jenkins/workspace/QE_All_Tests%402/target/test-classes/datasets/dataimport/incremental/INCMH10/missingCols1.csv (No such file or directory)

    at java.io.FileInputStream.open()
  2. Java RT
    FileInputStream.<init>
    1. java.io.FileInputStream.open(Native Method)
    2. java.io.FileInputStream.<init>(FileInputStream.java:106)
    2 frames
  3. Apache HttpClient Mime
    MultipartEntity.writeTo
    1. org.apache.http.entity.mime.content.FileBody.writeTo(FileBody.java:100)
    2. org.apache.http.entity.mime.HttpMultipart.doWriteTo(HttpMultipart.java:206)
    3. org.apache.http.entity.mime.HttpMultipart.writeTo(HttpMultipart.java:224)
    4. org.apache.http.entity.mime.MultipartEntity.writeTo(MultipartEntity.java:183)
    4 frames
  4. Apache Http
    HttpEntityWrapper.writeTo
    1. org.apache.http.entity.HttpEntityWrapper.writeTo(HttpEntityWrapper.java:96)
    1 frame
  5. Apache HttpClient
    EntityEnclosingRequestWrapper$EntityWrapper.writeTo
    1. org.apache.http.impl.client.EntityEnclosingRequestWrapper$EntityWrapper.writeTo(EntityEnclosingRequestWrapper.java:108)
    1 frame
  6. Apache Http
    AbstractHttpClientConnection.sendRequestEntity
    1. org.apache.http.impl.entity.EntitySerializer.serialize(EntitySerializer.java:120)
    2. org.apache.http.impl.AbstractHttpClientConnection.sendRequestEntity(AbstractHttpClientConnection.java:264)
    2 frames
  7. Apache HttpClient
    AbstractClientConnAdapter.sendRequestEntity
    1. org.apache.http.impl.conn.AbstractClientConnAdapter.sendRequestEntity(AbstractClientConnAdapter.java:224)
    1 frame
  8. Apache Http
    HttpRequestExecutor.execute
    1. org.apache.http.protocol.HttpRequestExecutor.doSendRequest(HttpRequestExecutor.java:255)
    2. org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:123)
    2 frames
  9. Apache HttpClient
    AbstractHttpClient.execute
    1. org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:647)
    2. org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:464)
    3. org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
    4. org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)
    5. org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:732)
    5 frames
  10. com.test
    WebClient.uploadFileGetJson
    1. com.test.WebClient.uploadFileGetJson(WebClient.java:265)
    1 frame