[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Datasource behavior in transaction

2006-05-26 Thread bentins
I configured an XA Datasource working with oracle. My Application is mostly CMP 2.0 but some selects are done directly to the DB on non entity bean tables. When in transaction thal works with entity beans, if I do a select directly to the DB by doing getConnection on the Datasource will I get th

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Transaction not Active excetion

2006-05-26 Thread bentins
I have a weird situation. I get this nestedSqlException: Transaction is not active when I do a select. The weird thing is that the select is done when struts calls on a form to get some value and all I do is open a connection by doing getConnection on my datasource and then I do the select usin

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: Transaction not Active excetion

2006-05-27 Thread bentins
Problem was in my own code. I had an exception on the transaction that was not rolledback so the connection had an uncleaned transaction on it. Since my other select was running on the same thread it got the same uncleaned connection with the transaction. View the original post : http://www.jb

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Is this a Java Or JBoss bug?

2006-05-28 Thread bentins
On EJbPostCreate I get an "IndexOutOfBoundsexception: Index: 0, Size: 0" The following is the complete EjbPostCreate method code that fails: public void ejbPostCreate(StatusLocal statusLocal, Long userId) | throws javax.ejb.CreateException, ApplicationException { |

[JBoss-user] [Security & JAAS/JBoss] - Help with kerberos, Active Directory & LoginModules

2006-04-10 Thread bentins
I'm using the jcifs spnego solution (I got the info from the WIKI http://wiki.jboss.org/wiki/Wiki.jsp?page=NegotiateKerberos, and http://lists.samba.org/archive/jcifs/2004-June/003497.html on the jboss site). I configured JBoss in the following way: login-config.xml: | | |

[JBoss-user] [JBoss jBPM] - problem in FieldInstansiator

2006-07-04 Thread bentins
My project is using Java5 and we're trying to use JBpm with it. I created a Delegation to Actionhandler that accepts a HashMap as a field. The definition had; | |somekeysomeValue | | This caused an exception. After looking into the code I found that in getValue, lines 134 to 141

[JBoss-user] [JBoss jBPM] - ELParser not working for me

2006-07-05 Thread bentins
Here is what I'm trying to do: I have my own actionhandler. It recieves key-value pairs into a HashMap: Here is the configuration; | | | | someKey1 | true | | | someKey2 | #{taskInstance.variables['PathToDocument']}

[JBoss-user] [JBoss jBPM] - Re: ELParser not working for me

2006-07-05 Thread bentins
As I said I called the parser from the actionhandler delegate. I got it to work too. Had a simple spelling mistake. The proper format was | | | | | someKey1 | true | | | someKey2 | #{taskInstance.variables[PathT

[JBoss-user] [Persistence & CMP/JBoss] - problem with m..n relation and load-groups

2004-06-10 Thread bentins
The spec doesn't allow to specify that a cmr using a relation table be associated in a group. (actually because it's not a foreign-key relation) I load a bean, where the eagerload loads a group. During the same transaction I try to access the CMR field with the relation table. what I get is an e

[JBoss-user] [Persistence & CMP/JBoss] - unexplained lock in 3.2.4

2004-06-10 Thread bentins
I have my application ear file running without a problem on 3.2.2, I deployed the same ear to 3.2.3 and worked. Now to 3.2.4 (which I downloaded today) and it reaches a lock. The application starts up and on the first transaction it reaches a point where it outputs on the console debug message a

[JBoss-user] [Persistence & CMP/JBoss] - Re: problem with m..n relation and load-groups

2004-06-10 Thread bentins
another piece of info. This problem occues when I use the on-find strategy. My Jboss is 3.2.2 View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3838352#3838352 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3838352 --

[JBoss-user] [Persistence & CMP/JBoss] - Re: unexplained lock in 3.2.4

2004-06-11 Thread bentins
I used a trace on the querys using the spy driver package (i hope your familiar with it), it does no show this query ever being sent to the database View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3838462#3838462 Reply to the post : http://www.jboss.org/index.

[JBoss-user] [Persistence & CMP/JBoss] - Re: unexplained lock in 3.2.4

2004-06-11 Thread bentins
I turned on trace: here is what I have: 2004-06-11 17:43:58,978 TRACE [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] Getting connection tracked by transaction [EMAIL PROTECTED] [EMAIL PROTECTED] handles=0 lastUse=1086968627491 permit=true trackByTx=true [EMAIL PROTECTED] [EMA

[JBoss-user] [Persistence & CMP/JBoss] - Re: IllegalStateException Help!

2004-06-12 Thread bentins
Don't know if it helps but consider this explanation: When you call upon an entity with some kind of getCollection and receive a collection of locals of another bean you performed a transaction. If you have not opened a transaction outside this call context, say in a session bean, you performed

[JBoss-user] [Persistence & CMP/JBoss] - Re: unexplained lock in 3.2.4

2004-06-12 Thread bentins
Since this code works perfectly with JBoss 3.2.3 I'm at a loss. What is your suggestion? what should I explore next. More over, I'm sure that this query did not reach the database since I log all driver selects and this query doesn't show. View the original post : http://www.jboss.org/index.ht

[JBoss-user] [Persistence & CMP/JBoss] - Re: unexplained lock in 3.2.4

2004-06-12 Thread bentins
Sorry, I stand corrected. I've recheked my self, after a short while the questioned select does show on the driver log, which means it was sent to the db. I'm left with the wonder what could casue the lock, and why does it only happen with 3.2.4 View the original post : http://www.jboss.org/in

[JBoss-user] [Persistence & CMP/JBoss] - Re: unexplained lock in 3.2.4

2004-06-12 Thread bentins
OK, some progress here. It seems that I'm experiencing some kind of bean lock. Here is the description of the cycle: I start a transaction calling a session bean which retireves a collection of taskbeans for a user. It uses a finder on taskhome looking for tasks where user.id = the userid passe

[JBoss-user] [Persistence & CMP/JBoss] - Re: unexplained lock in 3.2.4

2004-06-14 Thread bentins
How do I set it up for instance per transaction? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3838625#3838625 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3838625

[JBoss-user] [Persistence & CMP/JBoss] - Two questions concerning what I see in my JBoss log.

2004-06-15 Thread bentins
1. a general question, I see throughout the log the following line, what does it mean? 2004-06-15 10:08:32,491 21130 DEBUG [org.jboss.mx.modelmbean.ModelMBeanInvoker] (main:) No persistence-manager descriptor found, null persistence will be used 2. I have an application with about 30 entity bean

[JBoss-user] [Persistence & CMP/JBoss] - Re: unexplained lock in 3.2.4

2004-06-15 Thread bentins
I used Instance Per Transaction on the beans involved in the transaction. I still get this dead lock, however a new message appears: 2004-06-15 11:17:19,195 222991 WARN [org.jboss.ejb.plugins.PerTxEntityInstanceCache] (http-0.0.0.0-8080-Processor20:) Unable to passivate due to ctx lock, id=37

[JBoss-user] [Persistence & CMP/JBoss] - Re: unexplained lock in 3.2.4

2004-06-15 Thread bentins
I have turned on the instance per transaction on userLocal, I have also turned on the trace: Here is a partial log. 2004-06-15 15:04:58,566 204304 INFO [STDOUT] (http-0.0.0.0-8080-Processor25:) 15/06/2004 15:04:58 com.matrix.framework.ip.controller.UserController getSingleNotByPrimaryKey |

[JBoss-user] [Persistence & CMP/JBoss] - Re: unexplained lock in 3.2.4

2004-06-15 Thread bentins
Here is the class header definition for xDoclet I'm using: /** | * @ejb.bean name="User" | * view-type = "local" | * jndi-name="User" | * type="CMP" | * primkey-field="id" | * schema="User" | * cmp-version="2.x" | * | * @ejb.transaction type = "Required" | *

[JBoss-user] [Persistence & CMP/JBoss] - Re: unexplained lock in 3.2.4

2004-06-16 Thread bentins
I can post the deployment descriptors no problem, what code would you like to see, it's a lot of code there is a bean factory that automatically copies from the bean to the TO using reflection, and there is the login trasaction logic. I ran it against 3.2.3 the same exact ear and it works no pro

[JBoss-user] [Persistence & CMP/JBoss] - Re: unexplained lock in 3.2.4

2004-06-17 Thread bentins
OK. I've changed the getID to getPrimaryKey(). How do you determine the tranaction state, by seeing the finaly in the log? I ask this because I see that it uses the same transaction ID (15) on all calls? If what you say on the transaction is correct it raises another question:my code opens up

[JBoss-user] [Persistence & CMP/JBoss] - Re: unexplained lock in 3.2.4

2004-06-18 Thread bentins
At the moment I have not gone through my beans and decided which will be read only,thus there are no read-only in jboss.xml, however I plan to use it when needed. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3839196#3839196 Reply to the post : http://www.jb

[JBoss-user] [Persistence & CMP/JBoss] - Re: unexplained lock in 3.2.4

2004-06-20 Thread bentins
The only unsupported I had were the getId() which were a mistake instead of using getPrimaryKey(). After fixing this in my code, I managed to pass this deadlock. I still get dead locks in other places, but I now no what to investigate.One thing is bothering me, this code runs without this prob

[JBoss-user] [Persistence & CMP/JBoss] - EJB Passivation warning

2004-07-24 Thread bentins
is it normal to get the following warning with Commit Option D? WARN [AbstractInstanceCache] Unable to passivate due to ctx lock, id=26639 When I change back to B it doesn't show up. I understand that Option D keeps the objects in cache until a certain T/O reaches, so is this warning just to te

[JBoss-user] [Persistence & CMP/JBoss] - can jboss generate a different primarykey per bean using ora

2004-08-26 Thread bentins
I have my system configured with an entity - command using oracle secuemce to generate the Primary-Key for my cmp beans. The way it is now is one sequence for all beans. I wan't to use a different sequence for each bean, can I configure Jboss to do so? Thanks Shai View the original post : h

[JBoss-user] [Persistence & CMP/JBoss] - Re: can jboss generate a different primarykey per bean using

2004-08-29 Thread bentins
It is my understanding that I need a diferent entity-command for each class I will have a difference sequence so my solution was: * @jboss.entity-command name="folder-sequence" class="" | * @jboss.entity-command-attribute name="sequence" value="FOLDER_SEQ" which created the following under fol

[JBoss-user] [Persistence & CMP/JBoss] - URJENT-ClassCastException on home

2004-08-29 Thread bentins
I have a wierd situation. I have a class that when it initializes it finds a home object for some local bean. After first deployment it works fine without any problem, however if I hot deploy, it than throws a classCastException on the home object. The program flow is that a timer checks a flag,

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - got an unexpected EJBException during finder

2006-01-13 Thread bentins
On out production site we received the following exception: javax.ejb.EJBException: Update failed. Expected one affected row: rowsAffected=0, id=10665466 | at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreEntityCommand.execute(JDBCStoreEntityCommand.java:155) | at org.jboss.ejb.plu

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - does jboss 3.2.7 support nested user transactions?

2006-01-13 Thread bentins
I have a situation where I need to control rollback between a database commit and a file system file writing. To do that I used a UserTransaction and managed the file writing and deleting accordinly on my own. 1. If there is a better solution please tell 2. I now have a slighlty addon situat

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - What should I expect when roll backing user transaction

2006-03-12 Thread bentins
I obtained a user transaction. I than go into a loop where at the begining of the iteration I begin the trasnaction and before going to the next iteration I commit. If one of the iteration fails (for whatever reason), the loop is broken and the transaction is rolled back. I would expect that

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: What should I expect when roll backing user transaction

2006-03-12 Thread bentins
MY MISTAKE It worked as it should have worked!!! Committed the good rolledback the bad View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3929597#3929597 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3929597 -