Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LPD-X REST Builder failure #552

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ruben-pulido
Copy link
Owner

master

@liferay-continuous-integration
Copy link
Collaborator

To conserve resources, the PR Tester does not automatically run for every pull.

If your code changes were already tested in another pull, reference that pull in this pull so the test results can be analyzed.

If your pull was never tested, comment "ci:test" to run the PR Tester for this pull.

… and polymorphism (oneOf) and a POST endpoint
Fails with:

> Task :apps:headless:headless-admin-site:headless-admin-site-impl:buildREST FAILED
Writing /home/rpulido/projects/liferay/p3/liferay-portal/modules/apps/headless/headless-admin-site/headless-admin-site-impl/src/main/java/com/liferay/headless/admin/site/internal/jaxrs/application/HeadlessAdminSiteApplication.java
Writing /home/rpulido/projects/liferay/p3/liferay-portal/modules/apps/headless/headless-admin-site/headless-admin-site-client/src/main/java/com/liferay/headless/admin/site/client/aggregation/Aggregation.java
Writing /home/rpulido/projects/liferay/p3/liferay-portal/modules/apps/headless/headless-admin-site/headless-admin-site-client/src/main/java/com/liferay/headless/admin/site/client/json/BaseJSONParser.java
Writing /home/rpulido/projects/liferay/p3/liferay-portal/modules/apps/headless/headless-admin-site/headless-admin-site-client/src/main/java/com/liferay/headless/admin/site/client/aggregation/Facet.java
Writing /home/rpulido/projects/liferay/p3/liferay-portal/modules/apps/headless/headless-admin-site/headless-admin-site-client/src/main/java/com/liferay/headless/admin/site/client/http/HttpInvoker.java
Writing /home/rpulido/projects/liferay/p3/liferay-portal/modules/apps/headless/headless-admin-site/headless-admin-site-client/src/main/java/com/liferay/headless/admin/site/client/pagination/Page.java
Writing /home/rpulido/projects/liferay/p3/liferay-portal/modules/apps/headless/headless-admin-site/headless-admin-site-client/src/main/java/com/liferay/headless/admin/site/client/pagination/Pagination.java
Writing /home/rpulido/projects/liferay/p3/liferay-portal/modules/apps/headless/headless-admin-site/headless-admin-site-client/src/main/java/com/liferay/headless/admin/site/client/permission/Permission.java
Writing /home/rpulido/projects/liferay/p3/liferay-portal/modules/apps/headless/headless-admin-site/headless-admin-site-client/src/main/java/com/liferay/headless/admin/site/client/problem/Problem.java
Writing /home/rpulido/projects/liferay/p3/liferay-portal/modules/apps/headless/headless-admin-site/headless-admin-site-client/src/main/java/com/liferay/headless/admin/site/client/function/UnsafeSupplier.java
Jun 04, 2024 5:48:27 PM com.liferay.portal.kernel.log.Jdk14LogImpl error
SEVERE: null
java.lang.NullPointerException
        at com.liferay.portal.tools.rest.builder.internal.freemarker.tool.java.parser.ResourceOpenAPIParser._getReturnType(ResourceOpenAPIParser.java:1333)
        at com.liferay.portal.tools.rest.builder.internal.freemarker.tool.java.parser.ResourceOpenAPIParser.lambda$getJavaMethodSignatures$1(ResourceOpenAPIParser.java:80)
        at com.liferay.portal.tools.rest.builder.internal.freemarker.tool.java.parser.ResourceOpenAPIParser._visitOperations(ResourceOpenAPIParser.java:1434)
        at com.liferay.portal.tools.rest.builder.internal.freemarker.tool.java.parser.ResourceOpenAPIParser.getJavaMethodSignatures(ResourceOpenAPIParser.java:77)
        at com.liferay.portal.tools.rest.builder.internal.freemarker.tool.FreeMarkerTool.getResourceJavaMethodSignatures(FreeMarkerTool.java:760)
        at com.liferay.portal.tools.rest.builder.RESTBuilder._fixOpenAPIOperationIds(RESTBuilder.java:1366)
        at com.liferay.portal.tools.rest.builder.RESTBuilder._checkOpenAPIYAMLFile(RESTBuilder.java:466)
        at com.liferay.portal.tools.rest.builder.RESTBuilder.build(RESTBuilder.java:201)
        at com.liferay.portal.tools.rest.builder.RESTBuilder.main(RESTBuilder.java:108)

Exception in thread "main" java.lang.RuntimeException: Error generating REST API
Error in file "rest-openapi.yaml": null
        at com.liferay.portal.tools.rest.builder.RESTBuilder.main(RESTBuilder.java:119)
Caused by: java.lang.RuntimeException: Error in file "rest-openapi.yaml": null
        at com.liferay.portal.tools.rest.builder.RESTBuilder.build(RESTBuilder.java:207)
        at com.liferay.portal.tools.rest.builder.RESTBuilder.main(RESTBuilder.java:108)

> Task :apps:headless:headless-admin-site:headless-admin-site-api:baseline SKIPPED
> Task :apps:headless:headless-admin-site:headless-admin-site-api:syncVersions

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':apps:headless:headless-admin-site:headless-admin-site-impl:buildREST'.
> Process 'command '/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.362.b09-1.fc36.x86_64/bin/java'' finished with non-zero exit value 1

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Get more help at https://help.gradle.org.

BUILD FAILED in 21s
129 actionable tasks: 73 executed, 56 up-to-date

Publishing build scan...
https://develocity.liferay.com/s/npudoakrmzez6
@ruben-pulido ruben-pulido force-pushed the inheritance-and-polimorphism-rest-builder branch from 789ea47 to 1cf0723 Compare June 18, 2024 16:53
Copy link

Please resolve conflicts so we can continue reviewing and processing.

Created by PR_Conflicts_Alert[bot]

13 similar comments
Copy link

Please resolve conflicts so we can continue reviewing and processing.

Created by PR_Conflicts_Alert[bot]

Copy link

Please resolve conflicts so we can continue reviewing and processing.

Created by PR_Conflicts_Alert[bot]

Copy link

Please resolve conflicts so we can continue reviewing and processing.

Created by PR_Conflicts_Alert[bot]

Copy link

Please resolve conflicts so we can continue reviewing and processing.

Created by PR_Conflicts_Alert[bot]

Copy link

Please resolve conflicts so we can continue reviewing and processing.

Created by PR_Conflicts_Alert[bot]

Copy link

Please resolve conflicts so we can continue reviewing and processing.

Created by PR_Conflicts_Alert[bot]

Copy link

Please resolve conflicts so we can continue reviewing and processing.

Created by PR_Conflicts_Alert[bot]

Copy link

Please resolve conflicts so we can continue reviewing and processing.

Created by PR_Conflicts_Alert[bot]

Copy link

Please resolve conflicts so we can continue reviewing and processing.

Created by PR_Conflicts_Alert[bot]

Copy link

Please resolve conflicts so we can continue reviewing and processing.

Created by PR_Conflicts_Alert[bot]

Copy link

Please resolve conflicts so we can continue reviewing and processing.

Created by PR_Conflicts_Alert[bot]

Copy link

Please resolve conflicts so we can continue reviewing and processing.

Created by PR_Conflicts_Alert[bot]

Copy link

Please resolve conflicts so we can continue reviewing and processing.

Created by PR_Conflicts_Alert[bot]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants