Some dev mode conversion impacts on the guides
Closed this issue · 3 comments
evelinec commented
Just thought to list the observations from dev mode conversion for the guides.
1. The console error messages is displayed on the test results for unknown
hostname test cases. ie,
[INFO] Running it.io.openliberty.guides.inventory.InventoryEndpointIT
[INFO] [WARNING ] Interceptor for {http://client.inventory.guides.openliberty.io/}SystemClient has thrown exception, unwinding now
[INFO] Could not send Message.
[INFO] [err] The specified host is unknown.
Guides impacted:
- guide-microprofile-rest-client
- guide-microprofile-config
- guide-cdi-intro
- guide-microprofile-openapi
2. The warning messages is displayed on the test results when a service is DOWN
. ie,
[INFO] Running it.io.openliberty.guides.health.HealthIT
[INFO] [WARNING ] CWMH0052W: The class com.ibm.ws.microprofile.health.impl.HealthCheckResponseImpl implementing HealthCheckResponse in the guide-microprofile-health application in module guide-microprofile-health.war, reported a DOWN status with data Optional[{services=not available}].
Guides impacted:
- guide-microprofile-health
3. Some intermediate error messages while building the code in the start
. ie,
[INFO] [ERROR ] CWMCG5003E: The [BackedAnnotatedField] @Inject @ConfigProperty private io.openliberty.guides.system.SystemConfig.email InjectionPoint dependency was not resolved. Error: java.util.NoSuchElementException: CWMCG0015E: The property io_openliberty_guides_email was not found in the configuration.
[INFO] at com.ibm.ws.microprofile.config.impl.AbstractConfig.getValue(AbstractConfig.java:175)
[INFO] at [internal classes]
Guides impacted:
- guide-microprofile-config
4. Creating blank server.xml using touch
command:
[INFO] [AUDIT ] CWWKG0016I: Starting server configuration update.
[INFO] [ERROR ] CWWKG0014E: The configuration parser detected an XML syntax error while parsing the root of the configuration and the referenced configuration documents. Error: Premature end of file. File: file:/Users/Nimrah.Gill@ibm.com/dev-mode-testing/guide-sessions/start/target/liberty/wlp/usr/servers/defaultServer/server.xml Line: 1 Column: 1
Guides impacted:
- guide-session
tt-le commented
1. The console error messages is displayed on the test results for unknown hostname test cases.
- guide-microprofile-rest-client addressed in OpenLiberty/guide-microprofile-rest-client#138
- guide-microprofile-config addressed in OpenLiberty/guide-microprofile-config#153
- guide-cdi-intro addressed in OpenLiberty/guide-cdi-intro#157
- guide-microprofile-openapi addressed in OpenLiberty/guide-microprofile-openapi#101
2. The warning messages is displayed on the test results when a service is DOWN
.
- guide-microprofile-health addressed in OpenLiberty/guide-microprofile-health#128
3. Some intermediate error messages while building the code in the start
.
- guide-microprofile-config addressed in OpenLiberty/guide-microprofile-config#154
4. Creating blank server.xml using touch
command:
- guide-session
Status: Unable to recreate issue when following the guide. I suspect that it was caused when runningmvn liberty:dev
before creating theserver.xml
file. However, when following the guide, we are expected to create the file before runningmvn liberty:dev
gkwan-ibm commented
For 3.,
- microprofile-openapi
[ERROR ] CWWKO1659E: Failed to parse the OpenAPI document for application: guide-microprofile-openapi.
- microprofile-config
[ERROR ] CWMCG5003E: The [BackedAnnotatedField] @Inject @ConfigProperty private io.openliberty.guides.system.SystemConfig.email InjectionPoint dependency was not resolved. Error: java.util.NoSuchElementException: CWMCG0015E: The property io_openliberty_guides_email was not found in the configuration.
- bean-validation
[ERROR ] CWWKO1650E: Validation of the OpenAPI document produced the following error(s):
- jpa-intro
/Users/gkwan/tasks/CNAI/guides/master/guide-jpa-intro/start/backendServices/src/main/java/io/openliberty/guides/event/resources/EventResource.java:43: error: cannot find symbol
private EventDao eventDAO;
^
symbol: class EventDao
location: class EventResource
3 errors
gkwan-ibm commented
close
- issues were addressed