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
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
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
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 {
|
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:
|
|
|
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
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']}
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
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
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
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
--
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.
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
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
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
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
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
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
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
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
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
|
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"
| *
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
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
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
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
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
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
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
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,
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
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
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
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
-
34 matches
Mail list logo