Skip to content

Commit

Permalink
LPD-X buildREST
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ruben-pulido committed Jun 18, 2024
1 parent 053dbd9 commit 1cf0723
Show file tree
Hide file tree
Showing 10 changed files with 1,979 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/**
* SPDX-FileCopyrightText: (c) 2024 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/

package com.liferay.headless.admin.site.client.aggregation;

import java.util.HashMap;
import java.util.Map;

import javax.annotation.Generated;

/**
* @author Rubén Pulido
* @generated
*/
@Generated("")
public class Aggregation {

public Map<String, String> getAggregationTerms() {
return _aggregationTerms;
}

public void setAggregationTerms(Map<String, String> aggregationTerms) {
_aggregationTerms = aggregationTerms;
}

private Map<String, String> _aggregationTerms = new HashMap<>();

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
/**
* SPDX-FileCopyrightText: (c) 2024 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/

package com.liferay.headless.admin.site.client.aggregation;

import java.util.ArrayList;
import java.util.List;

import javax.annotation.Generated;

/**
* @author Rubén Pulido
* @generated
*/
@Generated("")
public class Facet {

public Facet() {
}

public Facet(String facetCriteria, List<FacetValue> facetValues) {
_facetCriteria = facetCriteria;
_facetValues = facetValues;
}

public String getFacetCriteria() {
return _facetCriteria;
}

public List<FacetValue> getFacetValues() {
return _facetValues;
}

public void setFacetCriteria(String facetCriteria) {
_facetCriteria = facetCriteria;
}

public void setFacetValues(List<FacetValue> facetValues) {
_facetValues = facetValues;
}

public static class FacetValue {

public FacetValue() {
}

public FacetValue(Integer numberOfOccurrences, String term) {
_numberOfOccurrences = numberOfOccurrences;
_term = term;
}

public Integer getNumberOfOccurrences() {
return _numberOfOccurrences;
}

public String getTerm() {
return _term;
}

private Integer _numberOfOccurrences;
private String _term;

}

private String _facetCriteria;
private List<FacetValue> _facetValues = new ArrayList<>();

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/**
* SPDX-FileCopyrightText: (c) 2024 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/

package com.liferay.headless.admin.site.client.function;

import javax.annotation.Generated;

/**
* @author Rubén Pulido
* @generated
*/
@FunctionalInterface
@Generated("")
public interface UnsafeSupplier<T, E extends Throwable> {

public T get() throws E;

}
Loading

0 comments on commit 1cf0723

Please sign in to comment.