]
Denis Golovin updated JBIDE-15248:
----------------------------------
Fix Version/s: 1.0.0-LOCUS
Saxon plugin in locus causes runtime exceptions in Teiid Designer
-----------------------------------------------------------------
Key: JBIDE-15248
URL:
https://issues.jboss.org/browse/JBIDE-15248
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: locus
Affects Versions: 4.1.0.CR1
Reporter: Paul Richardson
Fix For: 1.0.0-LOCUS
Plugins dependent on the saxon-he plugin compile but error traces occur at runtime:
{code}
!ENTRY org.eclipse.ui.workbench 4 2 2013-07-17 16:06:41.584
!MESSAGE Problems occurred when invoking code from plug-in:
"org.eclipse.ui.workbench".
!STACK 0
java.lang.ExceptionInInitializerError
at
org.teiid.query.xquery.saxon.SaxonXQueryExpression.<init>(SaxonXQueryExpression.java:184)
at org.teiid.query.sql.lang.XMLTable.compileXqueryExpression(XMLTable.java:115)
at
org.teiid.query.resolver.command.SimpleQueryResolver$QueryResolverVisitor.visit(SimpleQueryResolver.java:317)
at org.teiid.query.sql.lang.XMLTable.acceptVisitor(XMLTable.java:160)
<snip>
Caused by: java.lang.RuntimeException: Failed to load configuration defined in
edition.properties
at net.sf.saxon.Configuration.<clinit>(Configuration.java:322)
... 35 more
Caused by: java.lang.ClassNotFoundException: com.saxonica.config.JavaPlatformPE cannot be
found by org.jboss.tools.locus.sf.saxon_9.2.1.5j-Final-v20130717-1426
at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:171)
at net.sf.saxon.Configuration.<clinit>(Configuration.java:301)
{code}
This is due to the revision (571) used to solve
[
JBIDE-15209|https://issues.jboss.org/browse/JBIDE-15209]. It would seem that just prior
to an open source release, the saxon project updates saxon's edition.properties file
to the following:
{code:title=edition.properties}
config=net.sf.saxon.Configuration
platform=net.sf.saxon.java.JavaPlatform
{code}
This allows saxon to use open-source elements of its codebase rather than presumably
defer to proprietary Saxonica code.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: