uCosminexus Application Server, Web Service Development Guide
The JAX-RS engine initializes the root resource class and the exception mapping provider when a Web resource included in a Web application (WAR file) is called for the first time. The corresponding sub-resource locator initializes the sub-resource class.
This sub-section describes the cases of error detection during the syntax check executed at the time of initialization.
If a fatal syntax error which leads to the non-completion of the initialization process is detected, such as in the case when no public constructor is declared in a resource class, an error message (KDJJ10006-E#) is output to the log. An HTTP response with the HTTP status code 500 is returned to the root resource class and the exception mapping provider, and java.lang.RuntimeException is thrown to the J2EE server. For details on the exceptions thrown to the J2EE server, see 13.7.4 Throwing exceptions to the J2EE server. In the sub-resource class, java.lang.RuntimeException is thrown, which can be handled with the exception mapping provider.
The error message KDJJ10006-E includes a list of detailed information (sub messages). Sub messages contain detailed error information for the respective syntax errors. Eliminate the syntax errors by referencing the sub-messages. The following are the notes on the error message KDJJ10006-E:
If a minor syntax error is detected and no critical error is detected, such as in the case when void is the return value of the resource method that receives the HTTP GET request, the warning message (KDJJ20003-W) is output to the log. If also a critical error is detected, the error message (KDJJ10006-E) is output to the log.
For details on the cases where the error message KDJJ10006-E is output to the log, see 13.7.1(1). If a fatal error occurs
If the warning message KDJJ20003-W is output to the log, the process is continued, and initialization is successfully performed except for the methods for which the minor syntax errors were detected. Revise the syntax of the methods for which the minor syntax errors were detected until the warning message KDJJ20003-W ceases to be output.
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.