<< Back to previous view |
[QB-2614] QB has an Issue with Error Detection
|
|
Status: | Closed |
Project: | QuickBuild |
Component/s: | None |
Affects Version/s: | 6.1.0 |
Fix Version/s: | None |
Type: | Bug | Priority: | Major |
Reporter: | Phong Trinh | Assigned To: | Robin Shen |
Resolution: | Cannot Reproduce | Votes: | 0 |
Remaining Estimate: | Unknown | Time Spent: | Unknown |
Original Estimate: | Unknown | ||
Environment: | Unix |
Description |
Hi Support Team,
It seems that QB has an issue with detecting errors. I ran build step (Build->Gradle) to compile java files. The compiler throw the following errors, but QB reported that the build was successful: 18:00:46,162 ERROR - C:\QB\workspace\1514\my-product\services\contract\src\main\java\com\controller\AbstractRestController.java:10: error: package javax.servlet.http does not exist 18:00:46,162 ERROR - import javax.servlet.http.HttpServletRequest; 18:00:46,162 ERROR - ^ 18:00:46,162 ERROR - C:\QB\workspace\1514\my-product\services\contract\src\main\java\com\controller\AbstractRestController.java:11: error: package javax.servlet.http does not exist 18:00:46,162 ERROR - import javax.servlet.http.HttpServletResponse; 18:00:46,162 ERROR - ^ 18:00:46,174 ERROR - C:\QB\workspace\1514\my-product\services\contract\src\main\java\com\controller\AbstractRestController.java:37: error: cannot find symbol 18:00:46,174 ERROR - public ErrorResponse handleException(Exception ex, HttpServletRequest request, HttpServletResponse response) { 18:00:46,174 ERROR - ^ 18:00:46,174 ERROR - symbol: class HttpServletRequest 18:00:46,174 ERROR - location: class AbstractRestController 18:00:46,174 ERROR - C:\QB\workspace\1514\my-product\services\contract\src\main\java\com\controller\AbstractRestController.java:37: error: cannot find symbol 18:00:46,174 ERROR - public ErrorResponse handleException(Exception ex, HttpServletRequest request, HttpServletResponse response) { 18:00:46,174 ERROR - ^ 18:00:46,174 ERROR - symbol: class HttpServletResponse 18:00:46,174 ERROR - location: class AbstractRestController 18:00:46,181 ERROR - C:\QB\workspace\1514\my-product\services\contract\src\main\java\com\controller\AbstractRestController.java:82: error: cannot find symbol 18:00:46,181 ERROR - protected String getBaseUri(HttpServletRequest req) { 18:00:46,181 ERROR - ^ Please look into this issue as your earliest chance. Thanks, ptrinh |
Comments |
Comment by Phong Trinh [ 04/Jan/16 11:08 PM ] |
Note: They were displayed in the log as errors, but QB reported as successful step. |
Comment by Robin Shen [ 05/Jan/16 12:52 AM ] |
QuickBuild determines whether or not a Gradle build is successful by checking return code of the gradle command. Can you please run the same command from command line, and check value of %errorlevel%? |
Comment by Phong Trinh [ 07/Jan/16 08:13 PM ] |
I got the same errors when running from command line. Can you provide 'Detect Errors' as in the 'Build> Shell/Batch Command' step for Gradle and other build steps? I think it is very helpful. |
Comment by Robin Shen [ 08/Jan/16 12:51 AM ] |
What is the value of %errorlevel% after running the gradle script from command line? |