Hello Dear Larry,
THANKS a lot for MOST IMPORTANT
interesting Link.
I RESPECT YOU!
Your friend Gerd, Germany
Gerd Schlamann
->(I'm a Software-Developer too :-) )
Am Steingraben 24
98617 Meiningen
GERMANY
e-mail:
Gerd.Schlamann@t-online.de
Have a nice, SUNNY and successful
week, Larry
Yours Gerd
Larry Freeman schrieb:
Download the latest version of the Java AVK for the
Enterprise with the
new installation wizard and portability features for testing web
services.
http://java.sun.com/j2ee/avk/
Features:
o Web Services tests
o Static tests for Web Services endpoints
o Dynamic checking for both EJB and Servlet based Web Services
o Installation Wizard for installing the Java AVK for the Enterprise
and
updating the Sun Java System Application Server
o Validation of J2EE archives (EAR, JAR, and WAR files)
o Ability to partition the testsuites to run a subset of the entire
suite
o Ability to scan source code for use of proprietary APIs
o Support for component libraries
===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in
the body
of the message "signoff J2EE-INTEREST". For general help, send
email to
listserv@java.sun.com and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff J2EE-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
From owner-j2ee-interest@java.sun.com Fri, 30 Apr 2004 01:00:18
Return-path:
Envelope-to: java@JUNLU.COM
Delivery-date: Fri, 30 Apr 2004 00:59:21 -0400
Received: from [192.18.99.108] (helo=swjscmail2.java.sun.com)
by mx.perfora.net with esmtp (Exim 3.35 #1)
id 1BJQ7M-0005BJ-00
for java@JUNLU.COM; Fri, 30 Apr 2004 00:59:20 -0400
Received: from swjscmail1 (swjscmail1.Sun.COM [192.18.99.107])
by swjscmail2.java.sun.com (Postfix) with ESMTP
id EDBA9215F5; Thu, 29 Apr 2004 22:53:13 -0600 (MDT)
Received: from JAVA.SUN.COM by JAVA.SUN.COM (LISTSERV-TCP/IP release 1.8e) with
spool id 28245690 for J2EE-INTEREST@JAVA.SUN.COM; Thu, 29 Apr 2004
22:48:57 -0600
X-Original-To: J2EE-INTEREST@JAVA.SUN.COM
Delivered-To: J2EE-INTEREST@JAVA.SUN.COM
Received: from mbpha1.patni.com (unknown [203.197.50.11]) by
swjscmail1.java.sun.com (Postfix) with ESMTP id 3D9054839 for
; Thu, 29 Apr 2004 22:48:55 -0600 (MDT)
Received: from mbpavgw.patni.com (mbpavgw.patni.com [192.168.24.9]) by
mbpha1.patni.com (8.11.6/8.11.6) with SMTP id i3U4c2w15692 for
; Fri, 30 Apr 2004 10:08:03 +0530
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook CWS, Build 9.0.6604 (9.0.2911.0)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462.0000
Importance: Normal
Message-ID: <001e01c42e70$0931a5c0$7a91a8c0@patni.com>
Date: Fri, 30 Apr 2004 10:30:18 +0530
Reply-To: uthiresh.narayanan@patni.com
Sender: "A mailing list for Java(tm) 2 Platform, Enterprise Edition"
From: Uthiresh
Subject: 2 phase commit error in EJB transactions.
To: J2EE-INTEREST@JAVA.SUN.COM
In-Reply-To: <4023ADEE.7060904@alayon.com>
Precedence: list
Hi,
I have a scenario where a client calls a method on a SLSB which makes a DB
update, and then it publishes a message on a topic.
I am using bean managed transactions, beginning the tran at the start of the
EJB method and committing it in the end.
In case of any exceptions, rollback is called. The onMesage method of the
MDB which listens to the topic has a transaction attribute of NotSupported.
My dev environment is WSAD 5.1 with oracle 9i.
Now when I run this , all the operations go on as expected with the message
being published, but when I commit the transaction, a RollBackException is
thrown.
The stack trace is given below.
[4/29/04 17:20:48:342 IST] cd7703c RegisteredRes E WTRN0063E: An illegal
attempt to commit a one phase capable resource with existing two phase
capable resources has occurred.
[17:20:48,374] ERROR -
[uk.co.isesolutions.apps.bdvs.core.session.ManageStatisticsBean.updateManage
Statistics(ManageStatisticsBean.java:139)] Exception occured in
ManageStatisticsBean.updateManageStatistics.
javax.transaction.RollbackException
at
com.ibm.ws.Transaction.JTA.TransactionImpl.commit(TransactionImpl.java:1076)
at
com.ibm.ws.Transaction.JTA.TranManagerImpl.commit(TranManagerImpl.java:150)
at
com.ibm.ws.Transaction.JTA.TranManagerSet.commit(TranManagerSet.java:182)
at
com.ibm.ws.Transaction.JTA.UserTransactionImpl.commit(UserTransactionImpl.ja
va:262)
at
com.ibm.ejs.container.UserTransactionWrapper.commit(UserTransactionWrapper.j
ava:239)
at
uk.co.isesolutions.apps.bdvs.core.session.ManageStatisticsBean.updateManageS
tatistics(ManageStatisticsBean.java:109)
at
uk.co.isesolutions.apps.bdvs.core.session.EJSRemoteStatelessManageStatistics
_aa42c741.updateManageStatistics(EJSRemoteStatelessManageStatistics_aa42c741
.java:22)
at
uk.co.isesolutions.apps.bdvs.core.session._ManageStatistics_Stub.updateManag
eStatistics(_ManageStatistics_Stub.java:263)
at
uk.co.isesolutions.apps.bdvs.web.admin.biz.StatisticsDelegate.updateManageSt
atistics(StatisticsDelegate.java:35)
at
uk.co.isesolutions.apps.bdvs.web.admin.biz.BDVSStatisticsHandler.updateStati
sticsConfig(BDVSStatisticsHandler.java:165)
at
uk.co.isesolutions.apps.bdvs.web.admin.biz.BDVSStatisticsHandler.execute(BDV
SStatisticsHandler.java:98)
at
uk.co.isesolutions.apps.bdvs.web.admin.biz.BDVSStatisticsHandler.processRequ
est(BDVSStatisticsHandler.java:51)
at
uk.co.isesolutions.apps.bdvs.web.admin.biz.ControllerServlet.processRequest(
ControllerServlet.java:168)
at
uk.co.isesolutions.apps.bdvs.web.admin.biz.ControllerServlet.doPost(Controll
erServlet.java:69)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServle
tInstance.java:110)
at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecy
cleServlet.java:174)
at
com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServ
let.java:313)
at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecyc
leServlet.java:116)
at
com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java
:283)
at
com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidSer
vletReferenceState.java:42)
at
com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletIns
tanceReference.java:40)
at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(
WebAppRequestDispatcher.java:974)
at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppReques
tDispatcher.java:555)
at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequest
Dispatcher.java:200)
at
com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
at
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker
.java:276)
at
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(C
achedInvocation.java:71)
at
com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletReq
uestProcessor.java:182)
at
com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListene
r.java:334)
at
com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.jav
a:56)
at
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)
[17:20:48,374] ERROR -
[uk.co.isesolutions.apps.bdvs.core.session.ManageStatisticsBean.updateManage
Statistics(ManageStatisticsBean.java:146)] Exception occured while roll
back of transaction
javax.transaction.RollbackException
at
com.ibm.ws.Transaction.JTA.TransactionImpl.commit(TransactionImpl.java:1076)
at
com.ibm.ws.Transaction.JTA.TranManagerImpl.commit(TranManagerImpl.java:150)
at
com.ibm.ws.Transaction.JTA.TranManagerSet.commit(TranManagerSet.java:182)
at
com.ibm.ws.Transaction.JTA.UserTransactionImpl.commit(UserTransactionImpl.ja
va:262)
at
com.ibm.ejs.container.UserTransactionWrapper.commit(UserTransactionWrapper.j
ava:239)
at
uk.co.isesolutions.apps.bdvs.core.session.ManageStatisticsBean.updateManageS
tatistics(ManageStatisticsBean.java:109)
at
uk.co.isesolutions.apps.bdvs.core.session.EJSRemoteStatelessManageStatistics
_aa42c741.updateManageStatistics(EJSRemoteStatelessManageStatistics_aa42c741
.java:22)
at
uk.co.isesolutions.apps.bdvs.core.session._ManageStatistics_Stub.updateManag
eStatistics(_ManageStatistics_Stub.java:263)
at
uk.co.isesolutions.apps.bdvs.web.admin.biz.StatisticsDelegate.updateManageSt
atistics(StatisticsDelegate.java:35)
at
uk.co.isesolutions.apps.bdvs.web.admin.biz.BDVSStatisticsHandler.updateStati
sticsConfig(BDVSStatisticsHandler.java:165)
at
uk.co.isesolutions.apps.bdvs.web.admin.biz.BDVSStatisticsHandler.execute(BDV
SStatisticsHandler.java:98)
at
uk.co.isesolutions.apps.bdvs.web.admin.biz.BDVSStatisticsHandler.processRequ
est(BDVSStatisticsHandler.java:51)
at
uk.co.isesolutions.apps.bdvs.web.admin.biz.ControllerServlet.processRequest(
ControllerServlet.java:168)
at
uk.co.isesolutions.apps.bdvs.web.admin.biz.ControllerServlet.doPost(Controll
erServlet.java:69)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServle
tInstance.java:110)
at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecy
cleServlet.java:174)
at
com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServ
let.java:313)
at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecyc
leServlet.java:116)
at
com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java
:283)
at
com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidSer
vletReferenceState.java:42)
at
com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletIns
tanceReference.java:40)
at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(
WebAppRequestDispatcher.java:974)
at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppReques
tDispatcher.java:555)
at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequest
Dispatcher.java:200)
at
com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
at
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker
.java:276)
at
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(C
achedInvocation.java:71)
at
com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletReq
uestProcessor.java:182)
at
com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListene
r.java:334)
at
com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.jav
a:56)
at
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)
[17:20:48,530] ERROR -
[uk.co.isesolutions.apps.bdvs.web.admin.biz.BDVSStatisticsHandler.processReq
uest(BDVSStatisticsHandler.java:55)] BDVSAdminException has occured.
GVSAdminException
at
uk.co.isesolutions.apps.bdvs.core.session.ManageStatisticsBean.updateManageS
tatistics(ManageStatisticsBean.java:148)
at
uk.co.isesolutions.apps.bdvs.core.session.EJSRemoteStatelessManageStatistics
_aa42c741.updateManageStatistics(EJSRemoteStatelessManageStatistics_aa42c741
.java:22)
at
uk.co.isesolutions.apps.bdvs.core.session._ManageStatistics_Stub.updateManag
eStatistics(_ManageStatistics_Stub.java:263)
at
uk.co.isesolutions.apps.bdvs.web.admin.biz.StatisticsDelegate.updateManageSt
atistics(StatisticsDelegate.java:35)
at
uk.co.isesolutions.apps.bdvs.web.admin.biz.BDVSStatisticsHandler.updateStati
sticsConfig(BDVSStatisticsHandler.java:165)
at
uk.co.isesolutions.apps.bdvs.web.admin.biz.BDVSStatisticsHandler.execute(BDV
SStatisticsHandler.java:98)
at
uk.co.isesolutions.apps.bdvs.web.admin.biz.BDVSStatisticsHandler.processRequ
est(BDVSStatisticsHandler.java:51)
at
uk.co.isesolutions.apps.bdvs.web.admin.biz.ControllerServlet.processRequest(
ControllerServlet.java:168)
at
uk.co.isesolutions.apps.bdvs.web.admin.biz.ControllerServlet.doPost(Controll
erServlet.java:69)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServle
tInstance.java:110)
at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecy
cleServlet.java:174)
at
com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServ
let.java:313)
at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecyc
leServlet.java:116)
at
com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java
:283)
at
com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidSer
vletReferenceState.java:42)
at
com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletIns
tanceReference.java:40)
at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(
WebAppRequestDispatcher.java:974)
at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppReques
tDispatcher.java:555)
at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequest
Dispatcher.java:200)
at
com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
at
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker
.java:276)
at
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(C
achedInvocation.java:71)
at
com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletReq
uestProcessor.java:182)
at
com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListene
r.java:334)
at
com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.jav
a:56)
at
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)
I googled and found that using container managed transaction with JMS has
some known problems with the 2pc protocol.
So I am using the bean managed transaction.
Now is there some problem with the transaction manager of JMS or am I doing
something wrong.
TIA,
uthiresh
===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff J2EE-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".