java.lang.NoSuchMethodError: java.lang.String.isEmpty()Z

Splash Forums PrettyFaces Users java.lang.NoSuchMethodError: java.lang.String.isEmpty()Z

This topic contains 2 replies, has 3 voices, and was last updated by  Lincoln Baxter III 11 years, 6 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #17749


    I am trying to upgrade my application to JSF 2.

    Also I have prettyfaces jars for jsf2 : ocpsoft-pretty-faces-2.0.4.jar.

    I am using jre 1.6

    But still I get following exception when trying to access page with following rule:


    <url-mapping id=”testDetails”>

    <pattern> /test/#{testDetailsAction.strTestId}/#{testDetailsAction.strTestUrl}</pattern>

    <query-param name=”commentsPage”>#{testDetailsAction.strCommentsPage}</query-param>

    <query-param name=”action”>#{testDetailsAction.action}</query-param>

    <view-id> /WEB-INF/jsp/candidate/testDetails.faces</view-id>



    Caused by: java.lang.NoSuchMethodError: java.lang.String.isEmpty()Z

    at com.ocpsoft.pretty.config.mapping.QueryParameter.hasValidators(

    at com.ocpsoft.pretty.faces.beans.ParameterValidator.validateQueryParams(

    at com.ocpsoft.pretty.faces.beans.ParameterValidator.validateParameters(

    at com.ocpsoft.pretty.PrettyContext.validateParameters(

    at com.ocpsoft.pretty.faces.event.PrettyPhaseListener.afterPhase(

    at com.sun.faces.lifecycle.Phase.handleAfterPhase(

    at com.sun.faces.lifecycle.Phase.doPhase(

    at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(

    at com.sun.faces.lifecycle.LifecycleImpl.execute(

    at javax.faces.webapp.FacesServlet.service(

    Please help me how to get rid of this exception?




    Are absolutely sure that your application runs with a Java 6 JRE? The isEmpty() method was added in Java 6. So this error looks like you are using an older JRE. Take a look here:


    Yeah, this sounds like an issue where the runtime environment is not 1.6 compatible.

Viewing 3 posts - 1 through 3 (of 3 total)

The forum ‘PrettyFaces Users’ is closed to new topics and replies.

Comments are closed.