I believe (if my memory serves me correctly) that you can see that error
when mixing versions of the JDK. For example, if you compile for JDK
1.3 but then run on JDK 1.2 you can get this error.
So the recompile advice on google probably assumes that you are
compiling and running using the same JDK level.
I believe that it's OK to compile on an older JDK and then run the byte
code on a newer one, but doing the reverse can cause issues.
I hope this helps with your problem.
-Phil
On Tue, 2003-11-11 at 01:33, Eric Simmerman wrote:
> Keelers,
>
> Iâm building an extension to an open source project based
> on Keel called Spider
> (http://www.tempeststrings.com/spider/index.shtml). The current
> version of Spider is based on a snapshot of Keelâs HEAD from about 8
> weeks ago. My extension required me to update Spider to run against
> the latest Keel HEAD, but when I did, my application broke with the
> Error stacktrace pasted below. Iâm seeing a ClassFormatError, which is
> something Iâve not run into before. I googled it and found some advice
> suggesting that I clean my build paths and recompile my classes. I did
> that for Spiderâs jars and for keel-core & keel-server, to no avail.
> As you can see from the stacktrace, Iâm attempting to use the
> KeelDirectServer to execute SpiderModel. Everything seems to work as
> expected (KeelContainer & DirectServer start up without error) until
> Fortress attempts to load my Model. Nothing in my Model has changed,
> so Iâm guessing that whatever validation is throwing the FormatError
> was not a part of the last snapshot or was not configured by default.
> Can anyone guess as to what new feature or configuration might be
> causing me this pain? My first thought was to blame proxy use since it
> appears that a BCELWrapper is involved, but I tried both <keel
> proxy-type="java"> and <keel proxy-type="none">, and neither seemed to
> make any differenceâ.
>
> Iâve been looking into this for a bit, so any thoughts or comments
> would be much appreciated.
>
>
>
> Thanks,
>
> -Eric
>
>
>
> [KeelAbstractServer] Context passed to model was
> {ComparableContext:(no items)}
>
> java.lang.ClassFormatError:
> com/tempeststrings/spider/models/SpiderModel$BCELWrapper (Repetitive
> method name/signature)
>
> at java.lang.ClassLoader.defineClass0(Native Method)
>
> at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
>
> at java.lang.ClassLoader.defineClass(ClassLoader.java:431)
>
> at
> org.apache.avalon.fortress.impl.factory.BCELWrapperGenerator$BCELClassLoader.findClass(BCELWrapperGenerator.j
>
> ava:155)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
>
> at
> org.apache.avalon.fortress.impl.factory.BCELWrapperGenerator.createWrapper(BCELWrapperGenerator.java:272)
>
> at
> org.apache.avalon.fortress.impl.factory.WrapperObjectFactory.newInstance(WrapperObjectFactory.java:94)
>
> at
> org.apache.avalon.fortress.impl.handler.AbstractComponentHandler.newComponent(AbstractComponentHandler.java:2
>
> 78)
>
> at
> org.apache.avalon.fortress.impl.handler.ThreadSafeComponentHandler.doPrepare(ThreadSafeComponentHandler.java:
>
> 72)
>
> at
> org.apache.avalon.fortress.impl.handler.AbstractComponentHandler.prepareHandler(AbstractComponentHandler.java
>
> :179)
>
> at
> org.apache.avalon.fortress.impl.handler.AbstractComponentHandler.get(AbstractComponentHandler.java:209)
>
> at
> org.apache.avalon.fortress.impl.handler.LEAwareComponentHandler.get(LEAwareComponentHandler.java:128)
>
> at
> org.apache.avalon.fortress.impl.lookup.FortressServiceManager.lookup(FortressServiceManager.java:129)
>
> at
> org.keel.core.container.KeelServiceManager.lookup(KeelServiceManager.java:63)
>
> at
> org.keel.core.container.AbstractKeelServiceable.getService(AbstractKeelServiceable.java:113)
>
> at
> org.keel.services.model.defaultmodel.DefaultModelRequest.getService(DefaultModelRequest.java:453)
>
> at
> org.keel.services.model.defaultmodel.DefaultModelRequest.execute(DefaultModelRequest.java:147)
>
> at
> org.keel.services.model.defaultmodel.DefaultModelRequest$BCELWrapper.execute(Unknown
> Source)
>
> at
> org.keel.servers.direct.KeelDirectServer.execute(KeelDirectServer.java:251)
>
> at
> org.keel.servers.direct.KeelDirectServer$MultiThreadedProcessor.run(KeelDirectServer.java:294)
>
>
>
>
>
>
http://keelframework.org/documentation
Keelgroup mailing list
[EMAIL PROTECTED]
http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com