Re: org.apache.bcel.classfile.ClassFormatException: Invalid method signature...

"Juozas Baliuka" <[email protected]>
Newsgroups gmane.comp.jakarta.bcel.devel
Message-ID <019a01c329b4$f34d7e20$a901a8c0@juozas>
Are you sure this generator is thread safe ?

----- Original Message -----
From: "Neeme Praks" <[email protected]>
To: "bcel-dev" <[email protected]>
Sent: Tuesday, June 03, 2003 9:54 AM
Subject: org.apache.bcel.classfile.ClassFormatException: Invalid method
signature...


> Does anyone have any idea, under what circumstances the following error
> could happen?
>
> Unable to create new instance
> org.apache.bcel.classfile.ClassFormatException: Invalid method
> signature:
>
java/lang/Long;Ljava/lang/Long;Lcom/inpoc/srv/parameters/ServiceParameters;)
V
>         at
> org.apache.bcel.classfile.Utility.typeOfSignature(Utility.java:1024)
>         at org.apache.bcel.generic.Type.getType(Type.java:158)
>         at org.apache.bcel.generic.Type.getArgumentTypes(Type.java:220)
>         at
> org.apache.bcel.classfile.Method.getArgumentTypes(Method.java:226)
>         at
>
org.apache.avalon.fortress.impl.factory.BCELCodeGenerator.createImplementati
on(BCELCodeGenerator.java:521)
>         at
>
org.apache.avalon.fortress.impl.factory.BCELWrapperGenerator.buildWrapper(BC
ELWrapperGenerator.java:360)
>         at
>
org.apache.avalon.fortress.impl.factory.BCELWrapperGenerator.createWrapper(B
CELWrapperGenerator.java:262)
>         at
>
org.apache.avalon.fortress.impl.factory.WrapperObjectFactory.newInstance(Wra
pperObjectFactory.java:94)
>         at
>
org.apache.avalon.fortress.impl.handler.AbstractComponentHandler.newComponen
t(AbstractComponentHandler.java:278)
>         at
>
org.apache.avalon.fortress.impl.handler.ThreadSafeComponentHandler.doPrepare
(ThreadSafeComponentHandler.java:72)
>         at
>
org.apache.avalon.fortress.impl.handler.AbstractComponentHandler.prepareHand
ler(AbstractComponentHandler.java:179)
>         at
>
org.apache.avalon.fortress.impl.handler.AbstractComponentHandler.get(Abstrac
tComponentHandler.java:209)
>         at
>
org.apache.avalon.fortress.impl.handler.LEAwareComponentHandler.get(LEAwareC
omponentHandler.java:128)
>         at
>
org.apache.avalon.fortress.impl.lookup.FortressServiceManager.lookup(Fortres
sServiceManager.java:129)
>
> The actual signature should be:
>
(Lcom/inpoc/srv/messages/RequestMessage;Ljava/lang/Long;Ljava/lang/Long;Lcom
/inpoc/srv/parameters/ServiceParameters;)V
> And the error is not really 100% reproduceable, sometimes it shows up,
> sometimes not...
>
> Using JDK 1.3.x under Linux for running and JDK 1.4.x under Windows for
> compiling...
>
> Rgds,
> Neeme
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.