History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-2614
Type: Bug Bug
Status: Closed Closed
Resolution: Cannot Reproduce
Priority: Major Major
Assignee: Robin Shen
Reporter: Phong Trinh
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
QuickBuild

QB has an Issue with Error Detection

Created: 04/Jan/16 11:02 PM   Updated: 01/Dec/16 09:17 AM
Component/s: None
Affects Version/s: 6.1.0
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Environment: Unix


 Description  « Hide
 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

 All   Comments   Work Log   Change History      Sort Order:
Phong Trinh [04/Jan/16 11:08 PM]
Note: They were displayed in the log as errors, but QB reported as successful step.

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%?

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.

Robin Shen [08/Jan/16 12:51 AM]
What is the value of %errorlevel% after running the gradle script from command line?