RE: Help extending Java environment for filters -- Runtime problem.

Subject: RE: Help extending Java environment for filters -- Runtime problem.
From: Ed Nixon <ed.nixon@xxxxxxxxxxxxxxxxx>
Date: Sat, 16 Jan 1999 11:58:50 -0500
-----Original Message-----
From:	James Clark [SMTP:jjc@xxxxxxxxxx]
Sent:	Friday, January 15, 1999 10:05 PM
To:	xsl-list@xxxxxxxxxxxxxxxx
Subject:	Re: Help extending Java environment for filters

For the Regexp demo, you need to compile the Java file.  You also need
the class files for the OROMatcher regexp library.  The .java files
tells you where to get them.  Then you need to add the class files to
classpath.
<snip>
I'm compiling the Regexp.java file using JDK1.2 and either the 
OROMatcher-1.0.7, 1.1b3, or PerlTools-1.1 distributions.  No error occur at 
compile time.  However, the following run-time error occurs:

C:\xt\demo>java com.jclark.xsl.sax.Driver Regexp.xml regexp.xsl
Exception in thread "main" java.lang.ClassFormatError: 
com/oroinc/text/regex/Mal
formedPatternException (Local variable name has bad constant pool index)
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(Compiled Code)
        at java.security.SecureClassLoader.defineClass(Compiled Code)
        at java.net.URLClassLoader.defineClass(Compiled Code)
        at java.net.URLClassLoader.access$1(Compiled Code)
        at java.net.URLClassLoader$1.run(Compiled Code)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Compiled Code)
        at java.lang.ClassLoader.loadClass(Compiled Code)
        at sun.misc.Launcher$AppClassLoader.loadClass(Compiled Code)
        at java.lang.ClassLoader.loadClass(Compiled Code)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:124)
        at 
com.jclark.xsl.tr.SheetImpl$FilterParser.getFilterClass(SheetImpl.jav
a)
        at com.jclark.xsl.tr.SheetImpl$FilterParser.parse(SheetImpl.java)
        at com.jclark.xsl.tr.SheetImpl.parseArgsThenActions(Compiled Code)
        at com.jclark.xsl.tr.SheetImpl.parseActions(SheetImpl.java)
        at com.jclark.xsl.tr.SheetImpl$RuleParser.parse(SheetImpl.java)
        at com.jclark.xsl.tr.SheetImpl.parseTopLevel(Compiled Code)
        at com.jclark.xsl.tr.SheetImpl.parseSheet(Compiled Code)
        at com.jclark.xsl.tr.SheetImpl.<init>(SheetImpl.java)
        at com.jclark.xsl.tr.EngineImpl.createSheet(EngineImpl.java)
        at com.jclark.xsl.sax.Driver.main(Driver.java)

Is this a function of JDK1.2 or have I misunderstood something else about the 
procedure? I'm assuming that the regular expression is actually correct?

Thanks.			...edN


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread