feat(templates): client-Java service starters and a Harmonia page starter (#6582) - #6617
Merged
Conversation
…rter (#6582) The four service starters (Hello World, TypeScript (API) - now "Java (API)", Database Access, HTTP Client) scaffolded @aerokit/sdk JavaScript/TypeScript; they now scaffold client Java @controller services, following the job / listener / websocket starters migrated in #6581 - package-qualified bean name, generated into {{javaPackageName}}/{{javaClassName}}.java. template-html scaffolded an AngularJS + BlimpKit page. The IDE stays AngularJS/BlimpKit, but this template scaffolds an *application* page, so it is now a standalone Harmonia (Alpine.js) page: platform webjars, a fetch call and an x-h-table, no build step. template-react is removed outright - a second UI stack has no counterpart in a one-stack platform, and the Harmonia page starter already covers "scaffold me a page". Part of #6591. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
) HttpClientFacade.parseOptions returned null for a null options document while every caller - all seven facade methods plus their async twins - dereferences the result immediately, so the client Java SDK's no-options overload (org.eclipse.dirigible.sdk.http.HttpClient.get(url), which passes null) failed with an NPE on isAuthenticationEnabled() instead of performing the request. Surfaced by the migrated HTTP Client starter. The JavaScript API never hit this because it always sends an options object. parseOptions now yields the defaults for a null or blank document. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
delchev
force-pushed
the
feat/templates-java-starters
branch
from
August 8, 2026 06:16
17fcff6 to
7cac44e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #6582. Part of the umbrella #6591 (one application stack: Harmonia UI + client Java).
What changes
service.mjs—response.println@Controller+@Getreturning the greetingservice.ts—response+security/usersdk.http.{Controller,Get}+sdk.security.User, returning a record (serialized to JSON)service.mjs—db/querysdk.db.Database.queryagainstSystemDBservice.mjs—http/clientsdk.http.HttpClientng-app,blimpKit,platform-links)fetchcall,x-h-table, no build stepThe Java starters follow the job/listener/websocket starters migrated in #6581: generated into
{{javaPackageName}}/{{javaClassName}}.javawith a package-qualified@Componentbean name, so twoprojects can scaffold the same service without colliding in the shared client container.
template-typescriptloses its TypeScript-logotemplate.svg(it would misrepresent a Java starter)and uses the
sap-icon--source-codeglyph instead; the module directories and registeredorders areunchanged, so the New-project menu keeps its shape.
A platform bug this surfaced
HttpClientFacade.parseOptionsreturnednullfor a null options document while all seven facademethods (plus their async twins) dereference the result immediately, so the SDK's no-options overload
HttpClient.get(url)failed with an NPE instead of performing the request — the JavaScript API neverhit it because it always sends an options object. Fixed in
api-httpwith unit tests(
HttpClientFacadeTest); it is the second commit here because the migrated starter is what found it.Verification (running instance, all five scaffolded through the real generation endpoint, published)
GET /services/java/demohello/demohello/Greeter→Hello World!GET /services/java/demoapi/demoapi/Api→{"message":"Hello World","user":"admin","date":…}GET /services/java/demodb/demodb/DbAccess→ theDIRIGIBLE_EXTENSIONSresult set as JSONGET /services/java/demohttp/demohttp/Fetcher→ the remote response ("statusCode": 200) — 500 before the api-http fixx-h-select, Lucide icon, live table; switching thecollection re-fetches and re-columns; clean console
mvn -T 1C clean package -P quick-buildgreen🤖 Generated with Claude Code