Skip to main content
Magicr
Level 6
August 25, 2026
Solved

IllegalPathException with AEM 6.6.2

  • August 25, 2026
  • 4 replies
  • 68 views

My local instance of AEM 6.6.2 (6.5 lts sp2) runs on a Windows computer. I’m using Java21. When I install a content package with DAM assets, my local file error.log will be flooded with following error message:

 java.nio.file.InvalidPathException: Illegal char <:> at index 39: /content/dam/940x530.jpg/jcr:content/jcr:lastModifiedBy
    at java.base/sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:204)

According the Internet, the method function WindowsPathParser is internal used by Java’s Path.of()

How can I fix this?

Best answer by shrutid56001193

@Magicr thanks for the details.

Since the package installs successfully and the DAM assets can be opened afterwards, so there doesn't appear to be a functional impact.

This appears to be a benign Windows-specific error in AEM Sites Eventing.

The : in:

jcr:content

jcr:lastModifiedBy

is completely valid in a JCR path. But Java's Windows Path implementation treats : as an illegal filesystem-path character, hence:

sun.nio.fs.WindowsPathParser.normalize()

The fact that the asset installs successfully and is accessible afterwards reinforces that the exception is happening while an observation event is being dispatched, not while AEM is actually persisting the asset.

And the log tells us exactly that:

org.apache.jackrabbit.oak.jcr.observation.ChangeProcessor

com.adobe.aem.sites.eventing.impl.observers.JcrListener

​ 
About the log flooding - It would be worth checking with Adobe whether this is a known issue with the Sites Eventing bundle on Windows and whether a newer/fixed bundle is available.

4 replies

Magicr
MagicrAuthor
Level 6
August 26, 2026

Here the complete Line in error.log:

2026-08-25T16:23:26.236+02:00  WARN o.a.j.o.jcr.observation.ChangeProcessor  --- [sling-oak-observation-3] {} : Error while dispatching observation events for //*[111111b]@com.adobe.aem.sites.eventing.impl.observers.JcrListener$$Lambda/0x0000022f81a978e8

java.nio.file.InvalidPathException: Illegal char <:> at index 39: /content/dam/940x530.jpg/jcr:content/jcr:lastModifiedBy
    at java.base/sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:204)

 

shrutid56001193
User Group Leader
User Group Leader
August 31, 2026

@Magicr does the package gets successfully installed and the asset opens? can you provide com.adobe.aem.sites-eventing bundle version from that SP2 instance?

https://www.shrutidamle.com/
Magicr
MagicrAuthor
Level 6
August 31, 2026

The assets can be opened successfully. The version of your requested bundle is  0.0.84.65lts-1