AEM 6.3 Content Fragment Model, Compilation Error on pathfield picker component | Community
Skip to main content
Level 2
March 27, 2018
Solved

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

  • March 27, 2018
  • 4 replies
  • 2493 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by pankaj49319

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,

4 replies

kautuk_sahni
Community Manager
Community Manager
March 28, 2018

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

Kautuk Sahni
Level 2
April 4, 2018

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,

kautuk_sahni
Community Manager
Community Manager
April 6, 2018

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.

Kautuk Sahni
pankaj49319AuthorAccepted solution
Level 2
April 6, 2018

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,