cancel
Showing results for 
Search instead for 
Did you mean: 

error: while trying to invoke the method javax.xml.transform.Transformer.

Former Member
0 Kudos

Hi All,

I am working on Version 12.1.8 Build(20), I have referred SAP notes 1294013 and placed the following files

- serializer.jar

- xalan.jar

- xercesImpl.jar

- xml-apis.jar

- xsltc.jar

in the specified path.

now when i use XSLT transformation block using IllumRowsetTableWithPageBreaks.xsl i am getting an error

[ERROR] [XSL_Transformation_0]XSLTransform error: while trying to invoke the method javax.xml.transform.Transformer.transform(javax.xml.transform.Source, javax.xml.transform.Result) of an object loaded from local variable 'processor'

please guide me.

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Hi

I saw the following case: if variables are declared in XSLT to call template within a

template such error is thrown. For example:

        <xsl:variable name="site">

            <xsl:call-template name="setValue">

                <xsl:with-param name="value"

select="sch:site/sch:site"/>

            </xsl:call-template>

        </xsl:variable>

If this is your case, please try to removed all variables and replace them with direct calls to

the template to get the value. Does it work for you as a solution?

Br, Alex.

Former Member
0 Kudos

Hi Alex,

No, the case you have explained is not applicable to me. Sharing the code snippet for your reference. This is the code due to which my XSLT gives an error, if I remove these lines of code then the XSLT works fine.

<xsl:variable name="ENERGY" select="translate(ENERGY,',','')">

     <xsl:choose>

          <xsl:when test="ENERGY= ''">

               <xsl:value-of select="0.00"/>

          </xsl:when>

          <xsl:otherwise>

               <xsl:value-of select="ENERGY"/>

          </xsl:otherwise>

     </xsl:choose>

</xsl:variable>

Also, the same XSLT works absolutely fine in 12.1 but gives error in 14.0 SP05.

Warm Regards,

Anuj

0 Kudos

Hi Sireesha,

Also got the same error. Did you ever find solution? Please share.

Regards,

Bheki

Former Member
0 Kudos

Hi All,

I am also getting the same error. Any solution for this issue?

I am working on 14.0 SP05.

Thanks & Regards

Anuj