Hi Michael,

A couple notes: We are in process of moving the list to
[EMAIL PROTECTED]  I subscribed you to that list and replied to your
first two emails there.  Your spam filter may have blocked them.  Let
me know if you did not get them and I will forward them two you.  If
you did get them, go ahead and respond to those two emails and we'll
go from there.

-David

On Mon, Mar 22, 2004 at 12:13:09PM -0000, Michael Forster wrote:
> I have a series of Beans set up with a Stateless SessionBean as a facade
> between the 2.
> 
> I have tried Everything I can think of to get it working I have tried using
> the Session Bean as Container and Bean and as Container I have tried
> Everything from SUPPORTS to REQUIRESNEW including NEVER and REQUIRED, All
> these setting seem to do is change the number of errors produced.
> 
> I am in total confusion and have even tried on the sessionContext telling it
> setRollbackOnly() and this doesnt help either.
> 
> The Session Bean
> 
>    public void setSessionContext( SessionContext sessionContext )
>     {
>         this.sessionContext = sessionContext;
>     }
>     //The function I am calling
>       public Collection ListCards(int CardType) throws RemoteException,
> NamingException, FinderException
>       {
>       Object bean = getContext().lookup("CardListBean");
>       CardListHome ejbHome = (CardListHome) PortableRemoteObject.narrow(bean,
> CardListHome.class);
>                       return ejbHome.findByCardType( CardType );
>       }
> 
> 
> The CardListBean is set to Required and returns a collection of objects as
> returned by the finder method
> 
> The Errors I get are as follows
> 
> 2004-03-22 12:02:58,195 ERROR [EJB Daemon [3]]
> (TransactionManagerWrapper.java:420) -
> java.lang.RuntimeException: JDBC driver failed to commit transaction.
> Invalid transaction context. No active transaction
>       at
> org.openejb.resource.SharedLocalConnectionManager$Synchronizer.afterCompleti
> on(SharedLocalConnectionManager.java:211)
>       at
> org.openejb.core.TransactionManagerWrapper$TransactionWrapper.afterCompletio
> n(TransactionManagerWrapper.java:418)
>       at
> org.openejb.ri.sp.PseudoTransactionService$MyTransaction.doAfterCompletion(P
> seudoTransactionService.java:181)
>       at
> org.openejb.ri.sp.PseudoTransactionService$MyTransaction.commit(PseudoTransa
> ctionService.java:140)
>       at
> org.openejb.ri.sp.PseudoTransactionService$MyTransactionManager.commit(Pseud
> oTransactionService.java:91)
>       at
> org.openejb.core.TransactionManagerWrapper.commit(TransactionManagerWrapper.
> java:143)
>       at
> org.openejb.core.transaction.TransactionPolicy.commitTransaction(Transaction
> Policy.java:171)
>       at
> org.openejb.core.transaction.TxRequiresNew.afterInvoke(TxRequiresNew.java:11
> 8)
>       at
> org.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java
> :343)
>       at
> org.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java
> :269)
>       at
> org.openejb.server.EjbDaemon.doEjbObject_BUSINESS_METHOD(EjbDaemon.java:695)
>       at org.openejb.server.EjbDaemon.processEjbRequest(EjbDaemon.java:534)
>       at org.openejb.server.EjbDaemon.run(EjbDaemon.java:374)
>       at java.lang.Thread.run(Thread.java:536)
> 2004-03-22 12:02:58,416 ERROR [EJB Daemon [16]]
> (TransactionManagerWrapper.java:420) -
> java.lang.RuntimeException: JDBC driver failed to commit transaction.
> Invalid transaction context. No active transaction
>       at
> org.openejb.resource.SharedLocalConnectionManager$Synchronizer.afterCompleti
> on(SharedLocalConnectionManager.java:211)
>       at
> org.openejb.core.TransactionManagerWrapper$TransactionWrapper.afterCompletio
> n(TransactionManagerWrapper.java:418)
>       at
> org.openejb.ri.sp.PseudoTransactionService$MyTransaction.doAfterCompletion(P
> seudoTransactionService.java:181)
>       at
> org.openejb.ri.sp.PseudoTransactionService$MyTransaction.commit(PseudoTransa
> ctionService.java:140)
>       at
> org.openejb.ri.sp.PseudoTransactionService$MyTransactionManager.commit(Pseud
> oTransactionService.java:91)
>       at
> org.openejb.core.TransactionManagerWrapper.commit(TransactionManagerWrapper.
> java:143)
>       at
> org.openejb.core.transaction.TransactionPolicy.commitTransaction(Transaction
> Policy.java:171)
>       at org.openejb.core.transaction.TxRequired.afterInvoke(TxRequired.java:120)
>       at
> org.openejb.alt.containers.castor_cmp11.CastorCmpEntityTxPolicy.afterInvoke(
> CastorCmpEntityTxPolicy.java:131)
>       at
> org.openejb.alt.containers.castor_cmp11.CastorCMP11_EntityContainer.business
> Method(CastorCMP11_EntityContainer.java:748)
>       at
> org.openejb.alt.containers.castor_cmp11.CastorCMP11_EntityContainer.invoke(C
> astorCMP11_EntityContainer.java:544)
>       at
> org.openejb.server.EjbDaemon.doEjbObject_BUSINESS_METHOD(EjbDaemon.java:695)
>       at org.openejb.server.EjbDaemon.processEjbRequest(EjbDaemon.java:534)
>       at org.openejb.server.EjbDaemon.run(EjbDaemon.java:374)
>       at java.lang.Thread.run(Thread.java:536)
> 
> 
> Can somebody please help me to make these work with no errors at all....
> 
> 
> Michael Forster
> 
> Ingotz International Inc.
> Tel: 07005006216
> Fax: 07005006217
> 
> This email (and any attachments) is for the addressee only. It is
> confidential and protected by copyright, any opinions/information are those
> of the author and not Ingotz International. Ingotz accepts no responsibility
> for loss or damage (including by viruses) due to it's use. Ingotz reserves
> the right to monitor emails with the lawful business practice regulations
> 2000.
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.620 / Virus Database: 399 - Release Date: 11/03/2004
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> http://OpenEJB.sf.net
> OpenEJB-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/openejb-user


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
http://OpenEJB.sf.net
OpenEJB-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/openejb-user

Reply via email to