2025-12-16

LHDN MyInvoice Error - Validation Error - After added jasperreports 7.0.3


Fixed by exclude <artifactId>jackson-dataformat-xml</artifactId>

<dependency>
<groupId>net.sf.jasperreports</groupId>
<artifactId>jasperreports-pdf</artifactId>
<version>7.0.3</version>

<exclusions>
<!-- 🚨 Breaks JSON serialization -->
<exclusion>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-xml</artifactId>
</exclusion>
</exclusions>
</dependency>




For Error: 
400 Bad Request on POST request for "https://preprod-api.myinvois.hasil.gov.my/api/v1.0/documentsubmissions": "{<EOL> "error": {<EOL> "code": "ValidationError",<EOL> "message": "JSON is not valid",<EOL> "target": "submission",<EOL> "details": [<EOL> {<EOL> "code": "ValidationError",<EOL> "target": "submission",<EOL> "message": "JSON is not valid"<EOL> }<EOL> ]<EOL> }<EOL>}"

after added jasperreports 













LHDN MyInvoice - preprod.myinvois.hasil.gov.my

 


Document Date
    - max 3 days earlier

Business activity description
    - min length 1 character
oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_21.IndustryClassificationCodeType
com.helger.xsds.ccts.cct.schemamodule.CodeType.setName(String)









LHDN MyInvoice Error - Validation Error - Business activity description is required

 

Validation Error:
- Business activity description is required (Invoice.AccountingSupplierParty.Party.IndustryClassificationCode[@Name=''])

LHDN MyInvoice Error

{
"invoiceCodeNumber": "INV000021",
"error": {
"code": "2",
"message": "Validation Error",
"target": "INV000021",
"propertyPath": null,
"details": [
{
"code": "CF701",
"message": "Business activity description is required",
"target": "BusinessActivityDescription",
"propertyPath": "Invoice.AccountingSupplierParty.Party.IndustryClassificationCode[@Name='']",
"details": null
}
],
"propertyName": null,
"errorCode": "2",
"error": "Validation Error",
"errorMs": "Validation Error",
"innerErrors": null,
"formattedErrorMessage": "Validation Error:\n- Business activity description is required (Invoice.AccountingSupplierParty.Party.IndustryClassificationCode[@Name=''])"
}
}

oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_21.IndustryClassificationCodeType
com.helger.xsds.ccts.cct.schemamodule.CodeType.setName(String)









2025-11-11

Recommended NVM for Windows Versions


Query: pls list the matrix of table of node, npm, nvm for Angular version since 8, to the latest




Gemini:

Node.js Major VersionAngular Version RangeRecommended NVM for Windows VersionRationale (Confirmed Bug Fixes/Workarounds)
Node 18, 20, 22, 24Angular v15 - v20Latest Stable Release (e.g., v1.2.2)Best for current LTS versions. Includes fixes for modern download servers (Cloudflare) and new features.
Node 12, 14, 16Angular v8 - v14v1.1.12CRITICAL for EOL versions. This specific version avoids the bug in NVM v1.2.0+ that causes the "cannot find the file specified" error when attempting to install old bundled npm versions (due to an undetected URL formatting issue in Node versions below 18.0.0).

2025-10-29

Angular SSR (working with version 18)

 

Perfect! Let’s map out Angular Material & CDK services/components and classify them for SSR safety. This will clarify why your current mocks are necessary.


SSR Safety Map for Angular Material / CDK

Service / Component Server-Safe? Notes / SSR Issue Recommendation
MatDialog ❌ Not safe Calls Overlay.create(), which touches document. Mock with MockMatDialog
MatSnackBar ❌ Not safe Similar to Dialog, uses Overlay internally. Mock with MockMatSnackBar
Overlay (CDK) ❌ Not safe Core DOM service for popups/portals. Always crashes on SSR. Must mock (MockOverlay)
MatBottomSheet ❌ Not safe Uses Overlay under the hood. Mock (MockMatBottomSheet)
MatTooltip ⚠️ Usually safe Mostly attaches to host element lazily, but Overlay internally may be used. Optional mock for default options, safe to just provide MAT_TOOLTIP_DEFAULT_OPTIONS
MatMenu ⚠️ Usually safe Uses Overlay internally. Will crash if opened on server. Guard .open() calls or mock Overlay
MatSelect ⚠️ Usually safe Overlay for dropdown panel, crash if server tries to render panel. Mock Overlay or lazy browser-only usage
MatAutocomplete ⚠️ Usually safe Overlay for dropdown panel. Same as MatSelect
MatTable ✅ Safe Purely DOM table rendering. No mock needed
MatPaginator / MatSort ✅ Safe Only logic, no Overlay/DOM issues No mock needed
MatFormField / MatInput ✅ Safe Basic input rendering No mock needed
MatCheckbox / MatRadio / MatSlideToggle ✅ Safe No Overlay, purely DOM No mock needed
MatStepper ✅ Safe Pure DOM No mock needed
CDK DragDrop ⚠️ Conditional Needs document for coordinates if used Guard with isPlatformBrowser

Summary

  • Must Mock: Dialog, SnackBar, Overlay, BottomSheet

  • Optional / Conditional: Tooltip, Menu, Select, Autocomplete, DragDrop (only if used on server)

  • Safe: Form controls, tables, steppers, checkboxes, radios, inputs


Why Angular doesn’t provide this out-of-the-box

Angular Material assumes browser usage. Server rendering is secondary, so Angular provides no default SSR-safe mocks for Overlay or related services. You must provide them yourself—or guard usage.


If you want, I can enhance your SSR mocks even further so they cover tooltips, menus, selects, and autocomplete safely, without breaking SSR.

Do you want me to do that?











2025-10-21

The package is accessible from more than one module: , java.xml

 



The package is accessible from more than one module: <unnamed>, java.xml


Eclipse
Maven

Caused by: given pom.xml dependencies conflict of packages or classes file.

mine was easy, just remove dependencies duplicated with packages or classes in JDK.


<dependency>
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
<version>1.4.01</version>
<scope>compile</scope>
</dependency>

2025-10-14

Keycloak 25.0.1 - Subject (sub)

 
Keycloak, OAuth2

25.0.1

doesn't have 
Subject (sub)
by default

required to add it manually



2025-09-04

No access to an Gitlab project.

 


if u x hv access, directly will show 404 instead of no access





2025-09-03

x 的 y 倍


Self note: https://gemini.google.com/app/17e04274f166588c


Google Referrals