Rajakumar Makapur

Greenhorn
+ Follow
since Jun 23, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Rajakumar Makapur

Hello,

I am using the WAS 6.0.2 on Linux box. Some time the application fails to get the conncetion with error 'J2CA0026E: Method addSync caught javax.transaction.RollbackException while trying to register the Resource Adapter with the Synchronization Manager for the current transaction, and threw a ResourceException.'

It also happens(not always) when the server restarted and application restarted....

The complete trace is below

Thanks and Regards,
Raja


[9/1/05 11:11:16:564 EDT] 0000002b TimeoutManage I WTRN0006W: Transaction 00000106123C0B8900000001000000A9E5DC7D8D0D8F7F717A2D1B33820C6A60D3F2C28600000106123C0B8900000001000000A9E5DC7D8D0D8F7F717A2D1B33820C6A60D3F2C28600000001 has timed out after 120 seconds.
[9/1/05 11:16:46:955 EDT] 00000026 XATransaction E J2CA0026E: Method addSync caught javax.transaction.RollbackException: Transaction rolled back
at com.ibm.ws.Transaction.JTA.TransactionImpl.registerSynchronization(TransactionImpl.java:3038)
at com.ibm.ws.Transaction.JTA.TransactionImpl.registerSynchronization(TransactionImpl.java:3017)
at com.ibm.ws.Transaction.JTA.TranManagerSet.registerSynchronization(TranManagerSet.java:483)
at com.ibm.ejs.j2c.XATransactionWrapper.addSync(XATransactionWrapper.java:288)
at com.ibm.ejs.j2c.ConnectionManager.initializeForUOW(ConnectionManager.java:1195)
at com.ibm.ejs.j2c.ConnectionManager.involveMCInTran(ConnectionManager.java:938)
at com.ibm.ejs.j2c.ConnectionManager.allocateConnection(ConnectionManager.java:571)
at com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJdbcDataSource.java:328)
at com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJdbcDataSource.java:297)
at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:59)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:72)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1463)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1004)
at com.starwood.valhalla.booking.util.HibernateHelper.<clinit>(HibernateHelper.java:53)
at com.starwood.valhalla.booking.dao.ProductDAOImpl.checkGuaranteeType(ProductDAOImpl.java:108)
at com.starwood.valhalla.booking.bo.ProductBO.validateGuaranteeType(ProductBO.java:372)
at com.starwood.valhalla.booking.bo.ProductBO.validate(ProductBO.java:356)
at com.starwood.valhalla.booking.bo.ProductBO.create(ProductBO.java:89)
at com.starwood.valhalla.booking.bo.BinderBO.create(BinderBO.java:167)
at com.starwood.valhalla.booking.bo.ItineraryBO.createBinder(ItineraryBO.java:377)
at com.starwood.valhalla.booking.bs.CreateBookingService.createBooking(CreateBookingService.java:121)
at com.starwood.valhalla.booking.facade.BookingFacadeBean.createBooking(BookingFacadeBean.java:373)
at com.starwood.valhalla.booking.facade.EJSRemoteStatelessBookingFacade_7e4054e8.createBooking(Unknown Source)
at com.starwood.valhalla.booking.facade._BookingFacade_Stub.createBooking(_BookingFacade_Stub.java:519)
at com.starwood.valhalla.booking.requestHandler.CreateBookingHandler.processRequest(CreateBookingHandler.java:70)
at com.starwood.valhalla.bknginterface.listener.BookingServlet.doPost(BookingServlet.java:96)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1212)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:629)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:80)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1657)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:77)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:421)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:367)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:94)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:548)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:601)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:934)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1021)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)
while trying to register the Resource Adapter with the Synchronization Manager for the current transaction, and threw a ResourceException.
18 years ago
Hi
I want to restrict the users to undeploy the applications which are not deployed by them.
Scenario:
I have two apllications appl1, appl2 and two users user1, user2 having Deployer role.
user1 deploys appl1 and user2 deploys appl2.Here as user1 and user2 are having Deployer role, user1 can undeploy appl2 and user2 can undeploy appl1.
Here i want restric the user1 to undeploy the appl2.
Thanks in advance for the solution.
I am using Weblogic 7.0
Regards,
Raja
[ May 06, 2003: Message edited by: Rajakumar Makapur ]
20 years ago
Its Simple.
The producer starts putting messages into the Vector for evey one second and It will go in wait only if the Vector is full that is MAX(5 in your case).
The first message is at Wed Dec 25 19:11:57 PST 2002 after each second it puts message into the Vector so the first 5 messages are
Got message: Wed Dec 25 19:11:57 PST 2002
Got message: Wed Dec 25 19:11:58 PST 2002
Got message: Wed Dec 25 19:11:59 PST 2002
Got message: Wed Dec 25 19:12:00 PST 2002
Got message: Wed Dec 25 19:12:01 PST 2002

The Consumer starts getting messages from the Vector for evey two second and It will go in wait only if the Vector is empty.
First time it reads the message and removes from the Vector and it does same after every two seconds.
Here in this case Producer puts 9 messages after the 9 secs(1 secs interval) and Consumer is consumed 4 messages after 9 secs(2 secs interval) and its in sleep mode. So still 5(MAX) message are there in Vector.
When producer comes to put 10th message at 10 secs the Vector is full thatz y it goes into wait and the 10th message is not there in output, then comes the Consumer at its 10th sec and reads the 5th message and removes it from vector and notifies the Producer. The producer will put the 10th message at 11th Sec. and again it will go into wait for next try.
So here afterwords the Producer will go into sleep mode for every alternate secs.So the messages are
Got message: Wed Dec 25 19:12:09 PST 2002
Got message: Wed Dec 25 19:12:11 PST 2002
Got message: Wed Dec 25 19:12:13 PST 2002
In this case The Consumer will probably go into wait mode only first time when it starts if and only if the Producer is not yet put the message into the Vector before the Consumer tries to read it.
Hope this will help you to understand the sample.
luv
Raja.
[ January 13, 2003: Message edited by: Rajakumar Makapur ]
Hi,
I hope you are using jdbc odbc driver.
Go for microsoft or jnet driver.
regards
Rajakumar.
Hi,

The scenario is like this.

1. Jsp will call session bean(Manager) to insert number of records.
2. The session bean(Manager) starts the transaction. And calls the Entity bean/s in loop.
3. The Session bean(Manager)commits the transaction.

I have packaged session bean and all entity beans separately. That is one jar for session bean and one for entity bean and deployed in the same application server. Here started my problem.

The problem is even though entity bean/s calling loop is not finished its iterations the method ejbRemove of sessionBean is called and the session Bean is destroyed.(within 2-3 secs)

Note : None of the Exceptions is thrown and also the return value is not coming.

Now I saw the CD bean example here session bean and entity bean are packaged together.
I did the same and surprisingly ITS WORKING FINE.

I am using JBOSS-2.4.4 on NT2000 server, SQL 2000, Microsoft driver for JDBC.

My questions are

1. IS IT REALLY NECESSARY TO PACKAGE THE SESSION AND ENTITY BEANS WHICH SHARE THE TRANSACTIONS.
OR
2. I MISSED OUT ANY SETTINGS FOR WHEN THE BEANS ARE PACKAGED SEPARATELY, IF SO WHAT IS THAT SETTING I HAVE TO DO?

Thanks in advance.

regards
Rajakumar.
:roll:
Can we have Reference of One EJB in the Other EJB?
Actualy I want to manage forien key relations.
How can I do this?
Thanks in advance.
regards
Rajakumar.
Hi,
Hope this will help u
Here the procedure takes 4 integers as parameters
CallableStatement cStmt = null;
try {

cStmt = conn.prepareCall(" { call <proc name>(?,?,?,?)}");

cStmt.setInt(1,<varname1> ;
cStmt.setInt(2,<varname2> ;
cStmt.setInt(3, <varname3> ;
cStmt.setInt(4, <varname4> ;
cStmt.executeUpdate();
}
catch(Exception e){
e.printStackTrace();
} // end of the try-catch block
finally{
try {
cStmt.close();
conn.close();
}
catch(Exception e){}
} // end of the finally block
regards
Raja
Hi
even i am getting the same problem,
are u able to solve the problem.
pls let me know.
regards
Rajakumar.
Hi
The methods read and write in BufferedInputStream will throw an exception when other end is disconnected, catch the exception, from there send message to other users.
hope it works for u
regards
Rajakumar.
22 years ago
Hi
if u start tomcat server using startup is tomcat is opening in other window. Otherwise just see the log file logs/tomcat.log
or go to server.xml and see where exactly your listener started, change to some other port and try.
regards
Rajakumar.
22 years ago
Hi
try with available() method before calling readobject().
regards
Rajakumar Makapur.
22 years ago
Hi
You try with ThreadGroup class. So that while shutting down the server, you take all threads in enumeration and stop all threads.
check out ThreadGroup class for more details.
regards
Rajakumar Makapur.
Hi nima
here problem is ur creating new socket every time when send button clicked.create socket in init method or you remove while(true){} from your processclient thread.
The code corrected i will send through mail to you.
regards
Rajakumar Makapur.