Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6620635

Hitting XPATH exception for CTS test in the JSTL code on AIX using IBM JDK in FuncLoader.java

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 9.1ur1
    • Fix Version/s: 1.3.0
    • Component/s: xml
    • Labels:

      Description

      We are hitting a CTS failure for the Appserver on AIX using the IBM JDK.

      The exception that is being thrown originates in the com.sun.org.apache.xpath.internal.compiler.FuncLoader class, from function getFunction() (below).

      Is there a reason to get a "javax.xml.transform.TransformerException: Application can't install his own xpath function." or can we workaround this problem for our AIX implementation?


      com.sun.org.apache.xpath.internal.compiler.FuncLoader:

      Function getFunction() throws TransformerException
      {
       try
       {
         String className = m_funcName;
         if (className.indexOf(".") < 0) {
           className = "com.sun.org.apache.xpath.internal.functions." + className;
         }
         //hack for loading only built-in function classes.
         Function func = (Function) ObjectFactory.newInstance(
             className, ObjectFactory.findClassLoader(), true);
         //Sun's implementation use null to represent the bootstrap class loader.
         if(func.getClass().getClassLoader() == null)
             return func;
         else
             throw new TransformerException("Application can't install his own xpath function.");
       }
       catch (ObjectFactory.ConfigurationError e)
       {
         throw new TransformerException(e.getException());

        Attachments

          Activity

            People

            Assignee:
            joehw Joe Wang
            Reporter:
            duke J. Duke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: