I guess it may not be the problem of expired transaction. Would it be
because the transaction attribute setting for the beans. I believe a closer
investigation is needed to find out what is going on. I wonder if you are
using JRun 3.0 SP2a. Maybe you can try 3.1 instead. Quite many things
changed especially in the EJB area.
-----Original Message-----
From: Mark Phelps [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 24, 2001 6:05 PM
To: JRun-Talk
Subject: RE: Invalid or expired transaction
I still get the same error. See the stack trace below. I put the line in
local.properties under the <JRun RootDir>\servers\default directory and
restarted the server. I notice that the exception occurs in a call from the
first EJB to a second EJB. I call executeSQLForTree() in
PercentSchbyMajorBean which then calls getCurrentLevel in an EJB called
GenericTreeBean.
javax.transaction.InvalidTransactionException: Invalid or expired
transaction
at
allaire.ejipt._LocalCaller._processTransaction(allaire/ejipt/_LocalCaller.ja
va:360)
at
allaire.ejipt._SessionObject._invoke(allaire/ejipt/_SessionObject.java:172)
at
allaire.ejipt._CallableObject.call(allaire/ejipt/_CallableObject.java:81)
at
allaire.ejipt._CallableStub._call(allaire/ejipt/_CallableStub.java:183)
at
edu.byu.dss.GenericTreeObject_Stub.getCurrentLevel(C:/progra~1/allaire/jrun/
servers/default/deploy/src/edu/byu/dss/GenericTreeObject_Stub.java:817)
at
edu.byu.dss.IndicatorDefinition.getCurrentLevel(IndicatorDefinition.java:264
8)
at
edu.byu.dss.PercentSchbyMajorBean.getValuesForNodeBySubCategory(PercentSchby
MajorBean.java:669)
at
edu.byu.dss.PercentSchbyMajorBean.getValuesForNodeBySubCategory(PercentSchby
MajorBean.java:681)
at
edu.byu.dss.PercentSchbyMajorBean.getValuesBySubCategory(PercentSchbyMajorBe
an.java:644)
at
edu.byu.dss.PercentSchbyMajorBean.executeSQLForTree(PercentSchbyMajorBean.ja
va:348)
at
edu.byu.dss.PercentSchbyMajorBean.executeSQL(PercentSchbyMajorBean.java:200)
at java.lang.reflect.Method.invoke(Native Method)
at
allaire.ejipt._BeanMethod._invoke(allaire/ejipt/_BeanMethod.java:130)
at
allaire.ejipt._SessionObject._invoke(allaire/ejipt/_SessionObject.java:147)
at
allaire.ejipt._CallableObject.call(allaire/ejipt/_CallableObject.java:81)
at
allaire.ejipt._CallableStub._call(allaire/ejipt/_CallableStub.java:173)
at
edu.byu.dss.PercentSchbyMajorObject_Stub.executeSQL(C:/progra~1/allaire/jrun
/servers/default/deploy/src/edu/byu/dss/PercentSchbyMajorObject_Stub.java:46
6)
at
edu.byu.dsstags.LoadReportTag.processNormalReport(LoadReportTag.java:235)
at edu.byu.dsstags.LoadReportTag.doStartTag(LoadReportTag.java:169)
at
jrun__JSP__StandardGeneratedReport2ejsp20._jspService(jrun__JSP__StandardGen
eratedReport2ejsp20.java:96)
at
allaire.jrun.jsp.HttpJSPServlet.service(../jsp/HttpJSPServlet.java:40)
at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1013)
at
allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:925)
at
allaire.jrun.servlet.JRunNamedDispatcher.forward(../servlet/JRunNamedDispatc
her.java:34)
at allaire.jrun.jsp.JSPServlet.service(../jsp/JSPServlet.java:175)
at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1013)
at
allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:925)
at
allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunRequestDis
patcher.java:88)
at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1131)
at
allaire.jrun.servlet.JvmContext.dispatch(../servlet/JvmContext.java:330)
at allaire.jrun.http.WebEndpoint.run(../http/WebEndpoint.java:107)
at allaire.jrun.ThreadPool.run(../ThreadPool.java:272)
at allaire.jrun.WorkerThread.run(../WorkerThread.java:75)
-----Original Message-----
From: John Zhao [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 24, 2001 2:30 PM
To: JRun-Talk
Subject: RE: Invalid or expired transaction
Yes, it should be in local.properties file as other ejipt configure
properties.
-----Original Message-----
From: Mark Phelps [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 24, 2001 4:18 PM
To: JRun-Talk
Subject: RE: Invalid or expired transaction
So you are saying that I should put a line in a config file that says:
ejipt.defaultTranscationTimeout = <Some larger value>
Is that correct? Which config file should this setting go in?
-----Original Message-----
From: John Zhao [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 24, 2001 1:52 PM
To: JRun-Talk
Subject: RE: Invalid or expired transaction
How about try this one,
DEFAULT_TRANSACTION_TIMEOUT
public static final java.lang.String DEFAULT_TRANSACTION_TIMEOUT
The name of the property for specifying the default transaction timeout in
seconds. The value sets the maximum expiration time for a transaction. If
not specified, the property defaults to 120 (2 minutes).
Example: ejipt.defaultTransactionTimeout=30
The value of this constant is "ejipt.defaultTransactionTimeout".
Please check JRun JavaDoc.
-----Original Message-----
From: Mark Phelps [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 24, 2001 3:22 PM
To: JRun-Talk
Subject: Invalid or expired transaction
I am getting an exception with the message "Invalid or expired transaction",
when I execute a method on one of my EJBs. It appears to be caused by a
transaction timeout. It only happens when the method takes longer than 2-3
minutes to execute. I can work around the problem by configuring that EJB
to not support transactions but I would rather not do that.
Is there any way to control how long a transaction runs before it times out?
How?
Thanks
Mark Phelps
Software Technology Group
[EMAIL PROTECTED]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists