xml-commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 34252] New: - XSLT error when called JavaScript
Date Thu, 31 Mar 2005 13:47:16 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34252>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34252

           Summary: XSLT error when called JavaScript
           Product: XmlCommons
           Version: 1.x
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XmlStylebook
        AssignedTo: commons-dev@xml.apache.org
        ReportedBy: raymond.chui@noaa.gov


My OS is Redhat Linux 7.2
java -version
java version "1.4.2_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)

My classpath :

CLASSPATH=/usr/share/pgsql/rh-postgresql3.jar:
/users/tomcat/jakarta-tomcat-5.0.28/common/lib/servlet-api.jar:
/users/hads/lib/classes:/users/tomcat/jakarta-tomcat-5.0.28/webapps/nexhads/WEB-INF/classes:
/usr/local/src/XML/xalan-j_2_6_0/bin/xalan.jar:
/usr/local/src/XML/xalan-j_2_6_0/bin/bsf.jar:
/usr/local/src/XML/xalan-j_2_6_0/bin/js.jar:
/usr/local/src/XML/xalan-j_2_6_0/bin/xml-apis.jar:
/usr/local/src/XML/xalan-j_2_6_0/bin/xercesImpl.jar:
/users/apache/htdocs/hads/JFreeChart/jfreechart/jfreechart-0.9.20.jar:
/users/apache/htdocs/hads/JFreeChart/jfreechart/jcommon-0.9.5.jar:
/usr/local/lib/mail.jar:/usr/local/lib/activation.jar:.

I try to test the sample for XALAN 2.6.0, extensions JavaScript

java org.apache.xalan.xslt.Process -in 2-basicJscript.xml -xsl 2-basicJscript.xsl

I got error about java.lang.reflect.InvocationTargetException

file:///usr/local/src/XML/xalan-j_2_6_0/samples/extensions/2-basicJscript.xsl;
Line #33; Column #42; XSLT Error (javax.xml.transform.TransformerException):
java.lang.NullPointerException

Here are all error lines.

java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at
org.apache.xalan.extensions.ExtensionHandlerGeneral.<init>(ExtensionHandlerGeneral.java:293)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
        at
org.apache.xalan.extensions.ExtensionNamespaceSupport.launch(ExtensionNamespaceSupport.java:74)
        at
org.apache.xalan.extensions.ExtensionsTable.<init>(ExtensionsTable.java:118)
        at
org.apache.xalan.transformer.TransformerImpl.setExtensionsTable(TransformerImpl.java:437)
        at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1169)
        at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:668)
        at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1129)
        at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1107)
        at org.apache.xalan.xslt.Process.main(Process.java:1041)
Caused by: com.ibm.bsf.BSFException: JavaScript Error: Internal Error:
java.lang.IllegalArgumentException: Line number can not be negative
:-1
        at
com.ibm.bsf.engines.javascript.JavaScriptEngine.handleError(JavaScriptEngine.java:182)
        at
com.ibm.bsf.engines.javascript.JavaScriptEngine.eval(JavaScriptEngine.java:87)
        at com.ibm.bsf.util.BSFEngineImpl.exec(BSFEngineImpl.java:106)
        ... 17 more
javax.xml.transform.TransformerException:
java.lang.reflect.InvocationTargetException
        at
org.apache.xalan.extensions.ExtensionNamespaceSupport.launch(ExtensionNamespaceSupport.java:80)
        at
org.apache.xalan.extensions.ExtensionsTable.<init>(ExtensionsTable.java:118)
        at
org.apache.xalan.transformer.TransformerImpl.setExtensionsTable(TransformerImpl.java:437)
        at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1169)
        at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:668)
        at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1129)
        at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1107)
        at org.apache.xalan.xslt.Process.main(Process.java:1041)
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
        at
org.apache.xalan.extensions.ExtensionNamespaceSupport.launch(ExtensionNamespaceSupport.java:74)
        ... 7 more
Caused by: javax.xml.transform.TransformerException: Could not compile extension
        at
org.apache.xalan.extensions.ExtensionHandlerGeneral.<init>(ExtensionHandlerGeneral.java:300)
        ... 12 more
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at
org.apache.xalan.extensions.ExtensionHandlerGeneral.<init>(ExtensionHandlerGeneral.java:293)
        ... 12 more
Caused by: com.ibm.bsf.BSFException: JavaScript Error: Internal Error:
java.lang.IllegalArgumentException: Line number can not be negative
:-1
        at
com.ibm.bsf.engines.javascript.JavaScriptEngine.handleError(JavaScriptEngine.java:182)
        at
com.ibm.bsf.engines.javascript.JavaScriptEngine.eval(JavaScriptEngine.java:87)
        at com.ibm.bsf.util.BSFEngineImpl.exec(BSFEngineImpl.java:106)
        ... 17 more
---------
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
        at
org.apache.xalan.extensions.ExtensionNamespaceSupport.launch(ExtensionNamespaceSupport.java:74)
        at
org.apache.xalan.extensions.ExtensionsTable.<init>(ExtensionsTable.java:118)
        at
org.apache.xalan.transformer.TransformerImpl.setExtensionsTable(TransformerImpl.java:437)
        at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1169)
        at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:668)
        at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1129)
        at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1107)
        at org.apache.xalan.xslt.Process.main(Process.java:1041)
Caused by: javax.xml.transform.TransformerException: Could not compile extension
        at
org.apache.xalan.extensions.ExtensionHandlerGeneral.<init>(ExtensionHandlerGeneral.java:300)
        ... 12 more
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at
org.apache.xalan.extensions.ExtensionHandlerGeneral.<init>(ExtensionHandlerGeneral.java:293)
        ... 12 more
Caused by: com.ibm.bsf.BSFException: JavaScript Error: Internal Error:
java.lang.IllegalArgumentException: Line number can not be negative
:-1
        at
com.ibm.bsf.engines.javascript.JavaScriptEngine.handleError(JavaScriptEngine.java:182)
        at
com.ibm.bsf.engines.javascript.JavaScriptEngine.eval(JavaScriptEngine.java:87)
        at com.ibm.bsf.util.BSFEngineImpl.exec(BSFEngineImpl.java:106)
        ... 17 more
<?xml version="1.0" encoding="UTF-8"?>


file:///usr/local/src/XML/xalan-j_2_6_0/samples/extensions/2-basicJscript.xsl;
Line #33; Column #42; XSLT Error (javax.xml.transform.Trans
formerException): java.lang.NullPointerException

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Mime
View raw message