From: Alex L. <lou...@ua...> - 2002-07-11 17:15:59
|
DS> Does your ejb-jar.xml file correctly declare the XDoclet generated class DS> as the bean implementation class? Yes, here it is <ejb-class>com.imedia.feedback.ejb.addressee.bean.AddresseeCMP</ejb-class> It inherits AddresseeEJB. DS> This could be a problem with jrocket and the proxy generation code. DS> Have you tried jrocket on your windows setup? No, Dain. I don't have even installation for windows. You make me puzzled with this thought. With IBMJava2 1.3.1 I couldn't even run JBoss on RH7.2. It's reproducible I posted exceptions and can do it again. If Jrockit is buggy, so the question about VMs rises again. We all know Sun's HotSpot has a bug too and isn't recommended. Actually, I haven't tried only Blackdown. Or should I just change the RH version? Thanks for your help, alex DS> -dain DS> Alex Loubyansky wrote: >> 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 >>>>JBo...@li... >>>>https://lists.sourceforge.net/lists/listinfo/jboss-user >>> >> -- Best regards, Alex Loubyansky |