[ 
https://issues.apache.org/jira/browse/SLING-11597?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17609326#comment-17609326
 ] 

Carsten Ziegeler commented on SLING-11597:
------------------------------------------

Starting with Engine 2.12.0 ServletRequest.getServletContext is used in some 
places - this method has been added in servlet 3.0 which is since a long time a 
prerequisite for Sling.
However, Sling's junit scriptable is not implementing these methods. (It also 
does not use request/response wrapper but implements those interfaces by hand, 
which is causing for trouble)

> AbstractMethodError with Sling Engine 2.12.0
> --------------------------------------------
>
>                 Key: SLING-11597
>                 URL: https://issues.apache.org/jira/browse/SLING-11597
>             Project: Sling
>          Issue Type: Bug
>    Affects Versions: JUnit Scriptable Tests Provider 1.0.12
>            Reporter: Carsten Ziegeler
>            Priority: Blocker
>             Fix For: JUnit Scriptable Tests Provider 1.0.14
>
>
> 26.09.2022 08:14:55.762 *ERROR* [qtp736626945-45] 
> org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught 
> Throwable
> java.lang.AbstractMethodError: Receiver class 
> org.apache.sling.junit.scriptable.HttpRequest does not define or inherit an 
> implementation of the resolved method 'abstract javax.servlet.ServletContext 
> getServletContext()' of interface javax.servlet.ServletRequest.
>         at 
> javax.servlet.ServletRequestWrapper.getServletContext(ServletRequestWrapper.java:370)
>  [org.apache.felix.http.servlet-api:1.1.4]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to