myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Janne Kario (JIRA)" <>
Subject [jira] Created: (MYFACES-1498) Myfaces core not 1.4 compatible
Date Mon, 20 Nov 2006 20:40:03 GMT
Myfaces core not 1.4 compatible

                 Key: MYFACES-1498
             Project: MyFaces Core
          Issue Type: Bug
          Components: General
    Affects Versions: 1.1.3
         Environment: IBM Java 1.4.2
            Reporter: Janne Kario
            Priority: Minor

I stubled upon this NoSuchMethodError and did a google search and found out that other people
on myfaces-user have had this problem too.

As described in the
problem is StringBuffer.insert call in

My guess is that myfaces-core-1.1.3 release was compiled with 1.5.0 compiler using source="1.4"
and target="1.4" switches. Can someone confirm this?
Apparently this alone is not enough to guarantee complete 1.4 compatibility.

I will recompile 1.1.4 myself with 1.4 compiler to confirm this.

There is also a workaround that can be applied in the source level. Cast the second argument
of the insert call to Object. insert(2, (Object)strBuf)

[20.11.2006 16:59:10:955 EET] 0000002f ServletWrappe E   SRVE0014E: Uncaught service() exception
root cause faces: java.lang.NoSuchMethodError: java/lang/StringBuffer.insert(ILjava/lang/CharSequence;)Ljava/lang/StringBuffer;
        at javax.faces.component._SelectItemsIterator.getPathToComponent(
        at javax.faces.component._SelectItemsIterator.getPathToComponent(
        at javax.faces.component._SelectItemsIterator.hasNext(
        at javax.faces.component._SelectItemsUtil.matchValue(
        at javax.faces.component.UISelectOne.validateValue(
        at javax.faces.component.UIInput.validate(
        at javax.faces.component.UIInput.processValidators(
        at javax.faces.component.UIComponentBase.processValidators(
        at javax.faces.component.UIForm.processValidators(
        at javax.faces.component.UIComponentBase.processValidators(
        at javax.faces.component.UIViewRoot.processValidators(
        at org.apache.myfaces.lifecycle.LifecycleImpl.processValidations(
        at org.apache.myfaces.lifecycle.LifecycleImpl.execute(
        at javax.faces.webapp.FacesServlet.service(
        at org.apache.myfaces.webapp.MyFacesServlet.service(

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message