|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
javax.xml.transform.TransformerException in JDK1.4.2
In my java code, I apply an xsl to an xml file. It works fine in JDK 1.4.1 but when I change JDK to 1.4.2 I got the following error javax.xml.transform.TransformerException: java.lang.ArrayIndexOutOfBoundsException: 0.
The error occurs in org.apache.xalan.transformer.TransformerImpl class. I know JDK1.4.2 bundled with xalan package. Is there any version conflict? How can I let my code using seperate xalan.jar instead of using the one in JDK? |
|
#2
|
|||
|
|||
|
Yep, there is a version conflict. You need to override the old one that comes with JDK 1.4.2. One way you can do it is to append the paths to the later versions to the boot class path:
e.g. java -Xbootclasspath/p:<path to xalan.jar, etc> Kash. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > javax.xml.transform.TransformerException in JDK1.4.2 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|