Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Breadcrumb type mismatch

Avatar

Level 3

Hi Everyone,
When migrating from 5.6.1 to 6.1, I am getting an error in breadcrumb.jsp. I don't see any issue in 5.6.1 but 6.1 it throws an error. "Type mismatch:cannot convert from Integer to long".

In the below line, 0 should be replaced by 0L.

   long endLevel = currentStyle.get("relParent", 0);

Why it didnt throw an compilation error in 5.6.1 and why in AEM 6.1 , it throws an error

 

Thanks
Yamini

1 Accepted Solution

Avatar

Correct answer by
Administrator

See this :- http://aem-docs.tostring.me/?d=/docs/de/aem/6-0/release-notes/known-issues.html

// It  was known issue got fixed in 6.0

Solution:- https://helpx.adobe.com/x-productkb/global/jsp-compilation-issues-java-8.html

// Convert "long l = conf.get("foo", 1);" to "long l = conf.get("foo", 1L);"

~kautuk

View solution in original post

2 Replies

Avatar

Correct answer by
Administrator

See this :- http://aem-docs.tostring.me/?d=/docs/de/aem/6-0/release-notes/known-issues.html

// It  was known issue got fixed in 6.0

Solution:- https://helpx.adobe.com/x-productkb/global/jsp-compilation-issues-java-8.html

// Convert "long l = conf.get("foo", 1);" to "long l = conf.get("foo", 1L);"

~kautuk