Hello Dain,

getAddresseeValue() reads AddresseeValue object. It's really neither cmp
nor cmr field. Just bulk read method.
I have entity bean AddresseeEJB that really declares this method as
abstract. But then XDoclet does its job and generates AddresseeCMP
that extends AddresseeEJB and implements public getAddresseeValue().
ejb-jar.xml declares AddresseeCMP bean. Everything looks like to be
correct.
Note, this same code runs fine under windoz.

Thanks for your reply.

alex


Thursday, July 11, 2002, 6:17:58 PM, you wrote:

DS> This means that you have an abstract method 'getAddresseeValue', and 
DS> there is not a cmp-field or cmr-field named 'addresseeValue' declared in 
DS> the ejb-jar.xml file.

DS> -dain

DS> Alex Loubyansky wrote:
>>   Hi guys,
>> 
>> I met a problem and have no ideas about the cause. There is a simple ear
>> with ejb-jar and war in it. I run JBoss-3.0.1RC1 with Jetty. DBMS is MySQL.
>> Now, everything works fine under Win2K with Sun's JDK 1.3.1_01.
>> After recompiling and deploying the app under RH7.2 with JRockit 1.3.1
>> running the same JBoss-3.0.1RC1(compiled and run with JRockit 1.3.1), using
>> the same MySQL db I get the following exceptions.
>> This happens when I try to fetch entities from the db and invoke get methods
>> on them. I can create entities successfully.
>> Here the exception goes:
>> 
>> DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.Addressee]
>> Executing SQL: SELECT email,name FROM Addressee WHERE (email=?) OR (email=?)
>> ERROR [org.jboss.ejb.plugins.LogInterceptor] TransactionRolledbackException,
>> causedBy:
>> javax.ejb.EJBException: Method is not a known CMP field accessor, CMR field
>> accessor, or ejbSelect method: methodName=getAddresseeValue
>>       at
>> org.jboss.ejb.plugins.cmp.bridge.EntityBridgeInvocationHandler.invoke(Compil
>> ed Code)@16197ad0
>>       at org.jboss.proxy.compiler.Runtime.invoke(Compiled Code)@16197a40
>>       at
>> com.imedia.feedback.ejb.addressee.bean.AddresseeCMP$Proxy.getAddresseeValue(
>> Compiled Code)@159b00a0
>>       at java.lang.reflect.Method.invoke(Native Method)@13ee04de
>>       at org.jboss.ejb.EntityContainer$ContainerInterceptor.invoke(Compiled
>> Code)@16197580
>>       at org.jboss.ejb.plugins.cmp.jdbc.JDBCRelationInterceptor.invoke(Compiled
>> Code)@16196d80
>>       at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(Compiled
>> Code)@16192410
>>       at
>> org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(Comp
>> iled Code)@146b9360
>>       at org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(Compiled
>> Code)@16191000
>>       at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(Compiled
>> Code)@15f1f730
>>       at org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(Compiled
>> Code)@15f1f6f0
>>       at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(Compiled
>> Code)@15f164a0
>>       at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(Compiled
>> Code)@15f14cb0
>>       at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(Compiled Code)@15f18960
>>       at org.jboss.ejb.plugins.SecurityInterceptor.invoke(Compiled Code)@15f188c0
>>       at org.jboss.ejb.plugins.LogInterceptor.invoke(Compiled Code)@15f184a0
>>       at org.jboss.ejb.EntityContainer.invoke(Compiled Code)@15f1f6b0
>>       at org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invoke(Compiled
>> Code)@15f1f4a0
>>       at org.jboss.ejb.plugins.local.EntityProxy.invoke(Compiled Code)@15f1f1d0
>>       at $Proxy189.getAddresseeValue(Compiled Code)@16012dc0
>>       at
>> com.imedia.feedback.web.commands.FetchAddresseesCommand.justDoIt(Compiled
>> Code)@16495520
>>       at com.imedia.feedback.web.commands.FetchAddresseesCommand.execute(Compiled
>> Code)@164954e0
>>       at
>> com.imedia.patterns.command.ejb.bean.CommandServerEJB.executeCommand(Compile
>> d Code)@16012790
>>       at java.lang.reflect.Method.invoke(Native Method)@13ee04de
>>       at
>> org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(Compiled
>> Code)@15f195b0
>>       at
>> org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(Comp
>> iled Code)@146b9360
>>       at
>> org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(Compiled
>> Code)@15f18b60
>>       at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(Compiled
>> Code)@15f164a0
>>       at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(Compiled
>> Code)@15f14cb0
>>       at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(Compiled Code)@15f18960
>>       at org.jboss.ejb.plugins.SecurityInterceptor.invoke(Compiled Code)@15f188c0
>>       at org.jboss.ejb.plugins.LogInterceptor.invoke(Compiled Code)@15f184a0
>> 
>> Any ideas? TIA!
>> 
>> alex
>> 
>> 
>> 
>> -------------------------------------------------------
>> This sf.net email is sponsored by:ThinkGeek
>> PC Mods, Computing goodies, cases & more
>> http://thinkgeek.com/sf
>> _______________________________________________
>> JBoss-user mailing list
>> [EMAIL PROTECTED]
>> https://lists.sourceforge.net/lists/listinfo/jboss-user

-- 
Best regards,
 Alex Loubyansky




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
PC Mods, Computing goodies, cases & more
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to