So,
restart from scratch...
First,      you did not change any container configuration - this is distro
config?
Second, your beans properly show up in JNDI-View?
Third,    you have <transaction-type>Container</transaction-type> in your
ejb-jar.xml?
Fourth,  you are definately missing a commit. You don't use any
UserTransaction?
Sixth,    which DB are you using, which driver?
Seventh, try two independend test cases - first only create the bean -
second only do a lookup - report what happens...
Regards,
Burkhard
----- Original Message -----
From: "Peter Shillan" <[EMAIL PROTECTED]>
To: "jboss-user" <[EMAIL PROTECTED]>
Sent: Friday, April 19, 2002 8:28 AM
Subject: [JBoss-user] Still Can't Create a Bean


> Hi there,
>
> I took the advice from yesterday when I had my simple bean creation test
running a bean with transaction attribute "Supports". I changed this to
"Required" and rebuilt everything clean and deployed my bean. Now, not only
does the bean never appear in the database, but the following exception is
thrown as soon as I call create() on MessageHome:
>
> 1)
testCreateMessageBean(client.uk.org.objectwiz.model.forum.ejb.TestClient)jun
it.framework.AssertionFailedError: java.rmi.ServerException: RemoteException
occurred in server thread; nested exception is:
> java.rmi.ServerException: do not call nextTransaction while not synched!;
nested exception is:
> java.lang.IllegalStateException: do not call nextTransaction while not
synched!
> at
client.uk.org.objectwiz.model.forum.ejb.TestClient.testCreateMessageBean(Tes
tClient.java:50)
> at
client.uk.org.objectwiz.model.forum.ejb.TestClient.main(TestClient.java:30)
>
> FAILURES!!!
> Tests run: 1,  Failures: 1,  Errors: 0
>
> The server.log file seems to indicate all is well. Not only does the
server output show no errors but the server.log says:
>
> 2002-04-19 14:21:33,454 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.forum/Message]
Create: pk=10
> 2002-04-19 14:21:33,455 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.forum/Message]
Executing SQL: SELECT COUNT(*) FROM MESSAGE WHERE id=?
> 2002-04-19 14:21:33,533 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.forum/Message]
Executing SQL: INSERT INTO MESSAGE (id, parent, children, subject, text)
VALUES (?, ?, ?, ?, ?)2002-04-19 14:21:33,542 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.forum/Message]
Create: Rows affected = 1
> 2002-04-19 14:24:51,210 DEBUG
[org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy] Resized cache for
bean forum/Message: old capacity = 1000000, new capacity = 50
> 2002-04-19 14:25:48,080 DEBUG
[org.jboss.resource.connectionmanager.IdleRemover] run: IdleRemover
notifying pools, interval: 450000
>
> This looks OK to me and seems to indicate the bean is created so why do I
get the first exception? Any thoughts?
>
> Thanks folks,
>
> Peter.
>
> ________________________________________________________________________
>
> E-mail is an informal method of communication and may be subject to data
corruption, interception and unauthorised amendment for which Digital
Bridges Ltd will accept no liability. Therefore, it will normally be
inappropriate to rely on information contained on e-mail without obtaining
written confirmation.
>
> This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.
>
> ________________________________________________________________________
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to