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

AEM 6.3 Content Fragment Model, Compilation Error on pathfield picker component

Avatar

Level 2

While Setting up Content Fragment Model in AEM 6.3 and using the content reference Model, I am getting below Java exception in Error log.

I tried to follow following article,

Compilation and classloading errors in custom application

Still getting the issue, has someone come across this issue, please share your thoughts.

  1. 26.03.2018 23:23:37.951 *ERROR* [10.27.135.180 [1522121017938] GET /mnt/overlay/granite/ui/content/coral/foundation/form/pathfield/picker.html HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught SlingException
  • org.apache.sling.scripting.java.impl.ServletWrapper$CompilerException: Compilation errors in /libs/granite/ui/components/coral/foundation/form/pathfield/datasources/children/children.java:

Line 114, column 4844 : The method evaluate(Object) of type new Predicate(){} must override a superclass method

Line 132, column 5667 : The method compare(Resource, Resource) of type new Comparator<Resource>(){} must override a superclass method

Line 164, column 6736 : The method transform(Object) of type new Transformer(){} must override a superclass method

Line 191, column 7631 : The method evaluate(Object) of type children.FolderPredicate must override a superclass method

Line 208, column 8089 : The method evaluate(Object) of type children.HierarchyPredicate must override a superclass method

Line 225, column 8553 : The method evaluate(Object) of type children.NoSystemPredicate must override a superclass method

Line 242, column 9064 : The method evaluate(Object) of type children.HierarchyNotFilePredicate must override a superclass method

Line 282, column 10387 : The method transform(Object) of type new Transformer(){} must override a superclass method

1 Accepted Solution

Avatar

Correct answer by
Level 2

This Issue is resolved.

Root Cause: "Apache Sling Java Script Handler" was configured with Source & Target VM with 1.5 which was causing compilation of inline java file against Java 1.5 and throwing the Error. After updating values to auto compilation errors are not there.

Thank you,

View solution in original post

4 Replies

Avatar

Administrator

It can be caused by :

  • Missing OSGi bundles
  • Stopped OSGi bundles
  • Corrupt compiled jsp class files

Here is the KB article for this:- Compilation and classloading errors in custom application

Avatar

Level 2

Hi Kautak,

I already went through the article as I mentioned in question and verified the areas as per article but issue did not get resolved,

Avatar

Administrator

Can you please check this:

Go to crx/de

2) Comment out the @override annotations in children.java [1] on lines 91 and 127

in

Line 114, column 4844 : The method evaluate(Object) of type new Predicate(){} must override a superclass method

Line 132, column 5667 : The method compare(Resource, Resource) of type new Comparator<Resource>(){} must override a superclass method

Line 164, column 6736 : The method transform(Object) of type new Transformer(){} must override a superclass method

Line 191, column 7631 : The method evaluate(Object) of type children.FolderPredicate must override a superclass method

Line 208, column 8089 : The method evaluate(Object) of type children.HierarchyPredicate must override a superclass method

Line 225, column 8553 : The method evaluate(Object) of type children.NoSystemPredicate must override a superclass method

Line 242, column 9064 : The method evaluate(Object) of type children.HierarchyNotFilePredicate must override a superclass method

Line 282, column 10387 : The method transform(Object) of type new Transformer(){} must override a superclass method

3) Save

This could be a bug in 6.3. Please create a support ticket after trying out.

Avatar

Correct answer by
Level 2

This Issue is resolved.

Root Cause: "Apache Sling Java Script Handler" was configured with Source & Target VM with 1.5 which was causing compilation of inline java file against Java 1.5 and throwing the Error. After updating values to auto compilation errors are not there.

Thank you,