When trying to run a transformation with the integrated Xalan-J 2.7 I get an error with the text.
An internal error occurred during: "Launching confirmation-mail-test".
String index out of range: -1
Log output is:
!ENTRY com.orangevolt.eclipse.xslt 1 0 2007-10-22 12:55:39.897
!MESSAGE xsltlauncher-classpath preparation : directory lib doesnt exist in plugin/fragment path update@../../../Users/kristoffer/Documents/Eclipse/ExpansionPoints/Random3rdParty/eclipse/plugins/com.orangevolt.eclipse.xslt.docbook_1.0.7/ - try to use 'lib' assuming its an absolute path.
!ENTRY com.orangevolt.eclipse.xslt 1 0 2007-10-22 12:55:39.897
!MESSAGE xsltlauncher-classpath preparation : Cannot find/read path /Applications/Development/Eclipse - JEE/Eclipse.app/Contents/MacOS/lib for checking xslt transformer jars.
!ENTRY com.orangevolt.eclipse.xslt 1 0 2007-10-22 12:55:39.897
!MESSAGE xsltlauncher-classpath preparation : directory lib doesnt exist in plugin/fragment path update@../../../Users/kristoffer/Documents/Eclipse/ExpansionPoints/Random3rdParty/eclipse/plugins/com.orangevolt.eclipse.xslt.xul_1.0.7/ - try to use 'lib' assuming its an absolute path.
!ENTRY com.orangevolt.eclipse.xslt 1 0 2007-10-22 12:55:39.898
!MESSAGE xsltlauncher-classpath preparation : Cannot find/read path /Applications/Development/Eclipse - JEE/Eclipse.app/Contents/MacOS/lib for checking xslt transformer jars.
!ENTRY com.orangevolt.eclipse.xslt 1 0 2007-10-22 12:55:39.898
!MESSAGE xsltlauncher-classpath preparation : directory lib doesnt exist in plugin/fragment path update@../../../Users/kristoffer/Documents/Eclipse/ExpansionPoints/Random3rdParty/eclipse/plugins/com.orangevolt.eclipse.xslt.docbook_1.0.7/ - try to use 'lib' assuming its an absolute path.
!ENTRY com.orangevolt.eclipse.xslt 1 0 2007-10-22 12:55:39.898
!MESSAGE xsltlauncher-classpath preparation : Cannot find/read path /Applications/Development/Eclipse - JEE/Eclipse.app/Contents/MacOS/lib for checking xslt transformer jars.
!ENTRY com.orangevolt.eclipse.xslt 1 0 2007-10-22 12:55:39.899
!MESSAGE xsltlauncher-classpath preparation : directory lib doesnt exist in plugin/fragment path update@../../../Users/kristoffer/Documents/Eclipse/ExpansionPoints/Random3rdParty/eclipse/plugins/com.orangevolt.eclipse.xslt.xul_1.0.7/ - try to use 'lib' assuming its an absolute path.
!ENTRY com.orangevolt.eclipse.xslt 1 0 2007-10-22 12:55:39.899
!MESSAGE xsltlauncher-classpath preparation : Cannot find/read path /Applications/Development/Eclipse - JEE/Eclipse.app/Contents/MacOS/lib for checking xslt transformer jars.
!ENTRY org.eclipse.core.jobs 4 2 2007-10-22 12:55:39.899
!MESSAGE An internal error occurred during: "Launching confirmation-mail-test".
!STACK 0
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1768)
at com.orangevolt.xslt.launch.XSLTLaunchConfigurationDelegate.evaluateTransformerClasspath(XSLTLaunchConfigurationDelegate.java:402)
at com.orangevolt.xslt.launch.XSLTLaunchConfigurationDelegate.computeClasspath(XSLTLaunchConfigurationDelegate.java:193)
at com.orangevolt.xslt.launch.XSLTLaunchConfigurationDelegate.launch(XSLTLaunchConfigurationDelegate.java:111)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:766)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:608)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:899)
at org.eclipse.debug.internal.ui.DebugUIPlugin$7.run(DebugUIPlugin.java:1102)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Logged In: NO
i have the same bug!
Logged In: NO
Here the same problem
Logged In: NO
Workaround for Eclipse 3.3 is to install the old 1.5a plugin, and to manually edit the configuration files in your project's .metadata directory.
Logged In: NO
I have the same bug. Could someone explain the workaround? What do I have to change in the project? And how do I have to install the old version? I tried to install the old version, but got a similar error like the one reported here:
http://sourceforge.net/tracker/index.php?func=detail&aid=1778549&group_id=135141&atid=731970
still not solved. I have this error, too.
Still happens in eclipse 3.4
It seems there is a bug in plugin.xml inside com.orangevolt.eclipse.xslt_1.0.7.jar when defining classpath for xalan-j transformer. The solution is to open up that jar file, extract out plugin.xml, search for classpath until then you will find following line:
<transformer
class="org.apache.xalan.processor.TransformerFactoryImpl"
classpath="lib/xalan-2.7.jar,lib/sourcestyle-*.jar,serializer.jar"
name="Apache Xalan-J 2.7">
Change this line by adding lib/ in front of serializer.jar, so this line becomes:
<transformer
class="org.apache.xalan.processor.TransformerFactoryImpl"
classpath="lib/xalan-2.7.jar,lib/sourcestyle-*.jar,lib/serializer.jar"
name="Apache Xalan-J 2.7">
put plugin.xml back into the jar file. Check it has been correctly updated.
Clean existing workspace by using -clean switch when starting eclipse, now choose transformer to use xalan-j 2.7, it should work