0
我正在使用Barcode4j和FOP生成包含條形碼的PDF。 它完美的作品在我的Eclipse當地的環境,但部署到WebLogic和通過網絡訪問功能後,我收到以下錯誤:Barcode4j生成條形碼錯誤
ERROR: 'The first argument to the non-static Java function 'org.krysalis.barcode4j.xalan.BarcodeExt.generate(result-tree, result-tree)' is not a valid object reference.' FATAL ERROR: 'Could not compile stylesheet'
這些樣式表的部分:
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:barcode="org.krysalis.barcode4j.xalan.BarcodeExt"
extension-element-prefixes="barcode"
exclude-result-prefixes="fo">
條碼代:
<fo:instream-foreign-object>
<xsl:variable name="barcodeNumber">
<xsl:value-of select="barcodeNumber" />
</xsl:variable>
<xsl:variable name="barcode-cfg">
<barcode>
<intl2of5>
<height>18mm</height>
<module-width>0.28mm</module-width>
<human-readable><placement>none</placement>
</human-readable>
</intl2of5>
</barcode>
</xsl:variable>
<xsl:copy-of select="barcode:generate($barcode-cfg, $barcodeNumber)" />
我使用jdk 1.5.0_22,xalan-2.7.0,fop 1.1
任何幫助將不勝感激。