• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Transaction Rollback Exception

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to execute a test client on a session bean which invokes the following method in the environment listed below:

I'm receiving the following message:
<pre>
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
javax.transaction.TransactionRolledbackException: CORBA TRANSACTION_ROLLEDBACK 0 No; nested exception is:
org.omg.CORBA.TRANSACTION_ROLLEDBACK: minor code: 0 completed: No
javax.transaction.TransactionRolledbackException: CORBA TRANSACTION_ROLLEDBACK 0 No; nested exception is:
org.omg.CORBA.TRANSACTION_ROLLEDBACK: minor code: 0 completed: No
org.omg.CORBA.TRANSACTION_ROLLEDBACK: minor code: 0 completed: No
</pre>
I'm pretty sure it has to do with trying to pass back the vector "list." If I comment out the break and the following lines of code,
<pre> (String [] list = new String[vect.size()];
vect.copyInto(list);
return list;
</pre>
I get a finderexception as expected (Not the most elegant way to handle this situation, but this is how the author structured the example.)
Any ideas as to what the problem is? Also, in general, when you get CORBA exceptions, what does one do to resolve the problem? Not being familiar with CORBA, is there a reference to use?
Also, I've been testing my examples without the use of Access beans. Any comments pro or con about these?

_______________________________________________________________
Environment: Websphere Test Environment from VA4J 3.5
Machine: Windows 98 SE


[This message has been edited by Elizabeth Reynolds (edited July 17, 2001).]
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi elizabath,
The error might be when u retrieve the rows from the table
I always get this type of error ...Whatever query u are running thru EJB try to run the query directly with DB ..if it works fine and then start debuggiing your EJBs..and see where this exception is thrown...But for sure this error is with respect to your DB..there is nothing wrong with your EJb.....if u are doing logging functnality...with DB ..see that all the fields are correctly populated....
still the problem is there and then let me know where this exception is thrown....If your are using VAJ..then try to debug with that...its really helpful with that
Deepak
 
Elizabeth Reynolds
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I'm pretty sure it's not a database problem. I've run the test client against the database and a couple of test client applications against it, and they work fine.
This is the first time I've tried to deploy a session bean and the message suggests that I might have erred somewhere in the deployment, but I'm not sure.
 
dy191201
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
if tis not DB problem then did you get any errors when u were deploying..the EJBs.....I am sure some where in EJB u are calling some query which is not porperly done.....
Check the userid and password by which EJB has to access the DB....U may not have privelges for that userid and password....if all these are ok then u need to debug ur EJBs..and let me know where it thorws Exception.....
There is something wrong in your EJB...
Can u debug your EJb's theu VAJ
 
reply
    Bookmark Topic Watch Topic
  • New Topic