Shiny Angel

Greenhorn
+ Follow
since Oct 14, 2008
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 Shiny Angel

Hi,

I am using rich:calendar control. Here I have a requirement in which a user should be allowed to manually input the date. I have given enableManualInput = "false". So in the control, the user can not enter his own input. Is there any way the user himself can turn off the calendar control and enter manual input?

Consider the default date in the calendar control is current date say Mar 09, 2010. If the user wants to enter a date of year 2070, he has to click the nextyear control nearly 60 times, there he demands for an option to enter manual input. So by default the calendar control should have enableManualInput = "false" and the user should be allowed to change it to manual.

Thanks,
Sri.
9 years ago
JSF
Hi All,

I am getting the following error logged in the SystemOut.log file.

[12/04/08 15:45:51:229 GMT] 00000071 XATransaction E J2CA0026E: Method addSync caught javax.transaction.RollbackException: Transaction rolled back
at com.ibm.ws.Transaction.JTA.TransactionImpl.registerSynchronization(TransactionImpl.java(Compiled Code))
at com.ibm.ws.Transaction.JTA.TransactionImpl.registerSynchronization(TransactionImpl.java(Inlined Compiled Code))
at com.ibm.ws.Transaction.JTA.TranManagerSet.registerSynchronization(TranManagerSet.java(Compiled Code))
at com.ibm.ejs.j2c.XATransactionWrapper.addSync(XATransactionWrapper.java(Compiled Code))
at com.ibm.ejs.j2c.ConnectionManager.initializeForUOW(ConnectionManager.java(Compiled Code))
at com.ibm.ejs.j2c.ConnectionManager.involveMCInTran(ConnectionManager.java(Compiled Code))
at com.ibm.ejs.j2c.ConnectionManager.allocateConnection(ConnectionManager.java(Compiled Code))
at com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJdbcDataSource.java(Compiled Code))
at com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJdbcDataSource.java(Compiled Code))
at com.ibm.icm.ci.Datastore$DataSource.getConnection(Datastore.java(Compiled Code))
at com.ibm.icm.ts.tss.ls.BaseDBImpl$ConnectionWrapper.getConnection(BaseDBImpl.java(Compiled Code))
at com.ibm.icm.ts.tss.ls.BaseDBImpl.removeExpiredIndexClaims(BaseDBImpl.java(Compiled Code))
at com.ibm.icm.ts.tss.ls.LibraryServerImpl.removeExpiredIndexClaims(LibraryServerImpl.java(Compiled Code))
at com.ibm.icm.ts.tss.ls.LibraryServerImpl.state(LibraryServerImpl.java(Compiled Code))
at com.ibm.icm.ts.tss.app.Janitor.cleanupLibraryServer(Janitor.java(Compiled Code))
at com.ibm.icm.ts.tss.app.JanitorService.cleanupLibraryServer(JanitorService.java(Inlined Compiled Code))
at com.ibm.icm.ts.tss.app.JanitorService.access$000(JanitorService.java(Inlined Compiled Code))
at com.ibm.icm.ts.tss.app.JanitorService$Notifiee.onEvent(JanitorService.java(Compiled Code))
at com.ibm.icm.ts.act.ActivityImpl$ManagerImpl$ActivityRunner.runActivity(ActivityImpl.java(Compiled Code))
at com.ibm.icm.ts.act.ActivityImpl$ManagerImpl$ActivityRunner.run(ActivityImpl.java(Compiled Code))
at com.ibm.hrl.workmanager.RunnableWrapper.run(RunnableWrapper.java:44)
at com.ibm.hrl.workmanager.impl.was.WasWork.run(WasWork.java:75)
at com.ibm.ws.asynchbeans.J2EEContext$RunProxy.run(J2EEContext.java:258)
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code))
at javax.security.auth.Subject.doAs(Subject.java:477)
at com.ibm.websphere.security.auth.WSSubject.doAs(WSSubject.java:118)
at com.ibm.ws.asynchbeans.J2EEContext$DoAsProxy.run(J2EEContext.java:325)
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code))
at com.ibm.ws.asynchbeans.J2EEContext.run(J2EEContext.java:709)
at com.ibm.ws.asynchbeans.WorkWithExecutionContextImpl.go(WorkWithExecutionContextImpl.java:218)
at com.ibm.ws.asynchbeans.ABWorkItemImpl.run(ABWorkItemImpl.java:154)
at java.lang.Thread.run(Thread.java:570)
while trying to register the Resource Adapter with the Synchronization Manager for the current transaction, and threw a ResourceException.
[12/04/08 15:45:51:247 GMT] 00000071 JCRCFLLoggerI E com.ibm.icm.ts.tss.JCRCFLLoggerImpl com.ibm.icm.ts.tss.ls.LibraryServerImpl.removeExpiredIndexClaims [java.lang.ThreadGroup[name=icmciWorkManager: icmjcrear,maxpri=10]]: Error removing expired index claims from the database. java.sql.SQLException: ConnectionWrapper.getConnection()
at com.ibm.icm.ts.tss.ls.BaseDBImpl$ConnectionWrapper.getConnection(BaseDBImpl.java(Compiled Code))
at com.ibm.icm.ts.tss.ls.BaseDBImpl.removeExpiredIndexClaims(BaseDBImpl.java(Compiled Code))
at com.ibm.icm.ts.tss.ls.LibraryServerImpl.removeExpiredIndexClaims(LibraryServerImpl.java(Compiled Code))
at com.ibm.icm.ts.tss.ls.LibraryServerImpl.state(LibraryServerImpl.java(Compiled Code))
at com.ibm.icm.ts.tss.app.Janitor.cleanupLibraryServer(Janitor.java(Compiled Code))
at com.ibm.icm.ts.tss.app.JanitorService.cleanupLibraryServer(JanitorService.java(Inlined Compiled Code))
at com.ibm.icm.ts.tss.app.JanitorService.access$000(JanitorService.java(Inlined Compiled Code))
at com.ibm.icm.ts.tss.app.JanitorService$Notifiee.onEvent(JanitorService.java(Compiled Code))
at com.ibm.icm.ts.act.ActivityImpl$ManagerImpl$ActivityRunner.runActivity(ActivityImpl.java(Compiled Code))
at com.ibm.icm.ts.act.ActivityImpl$ManagerImpl$ActivityRunner.run(ActivityImpl.java(Compiled Code))
at com.ibm.hrl.workmanager.RunnableWrapper.run(RunnableWrapper.java:44)
at com.ibm.hrl.workmanager.impl.was.WasWork.run(WasWork.java:75)
at com.ibm.ws.asynchbeans.J2EEContext$RunProxy.run(J2EEContext.java:258)
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code))
at javax.security.auth.Subject.doAs(Subject.java:477)
at com.ibm.websphere.security.auth.WSSubject.doAs(WSSubject.java:118)
at com.ibm.ws.asynchbeans.J2EEContext$DoAsProxy.run(J2EEContext.java:325)
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code))
at com.ibm.ws.asynchbeans.J2EEContext.run(J2EEContext.java:709)
at com.ibm.ws.asynchbeans.WorkWithExecutionContextImpl.go(WorkWithExecutionContextImpl.java:218)
at com.ibm.ws.asynchbeans.ABWorkItemImpl.run(ABWorkItemImpl.java:154)
at java.lang.Thread.run(Thread.java:570)
Caused by: java.sql.SQLException: addSync: caught Exception
at com.ibm.ws.rsadapter.AdapterUtil.toSQLException(AdapterUtil.java(Compiled Code))
at com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJdbcDataSource.java(Compiled Code))
at com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJdbcDataSource.java(Compiled Code))
at com.ibm.icm.ci.Datastore$DataSource.getConnection(Datastore.java(Compiled Code))
... 24 more
Caused by: javax.resource.ResourceException: addSync: caught Exception
at com.ibm.ejs.j2c.XATransactionWrapper.addSync(XATransactionWrapper.java(Compiled Code))
at com.ibm.ejs.j2c.ConnectionManager.initializeForUOW(ConnectionManager.java(Compiled Code))
at com.ibm.ejs.j2c.ConnectionManager.involveMCInTran(ConnectionManager.java(Compiled Code))
at com.ibm.ejs.j2c.ConnectionManager.allocateConnection(ConnectionManager.java(Compiled Code))
... 27 more
Caused by: javax.transaction.RollbackException: Transaction rolled back
at com.ibm.ws.Transaction.JTA.TransactionImpl.registerSynchronization(TransactionImpl.java(Compiled Code))
at com.ibm.ws.Transaction.JTA.TransactionImpl.registerSynchronization(TransactionImpl.java(Inlined Compiled Code))
at com.ibm.ws.Transaction.JTA.TranManagerSet.registerSynchronization(TranManagerSet.java(Compiled Code))
... 31 more

[12/04/08 15:45:51:258 GMT] 00000071 JCRCFLLoggerI E com.ibm.icm.ts.tss.JCRCFLLoggerImpl com.ibm.icm.ts.tss.app.Janitor.cleanupLibraryServer [java.lang.ThreadGroup[name=icmciWorkManager: icmjcrear,maxpri=10]]: Error getting the library server. com.ibm.icm.ts.tss.ls.DatabaseException: Error removing expired index claims from the database.
at com.ibm.icm.ts.tss.ls.LibraryServerImpl.removeExpiredIndexClaims(LibraryServerImpl.java(Compiled Code))
at com.ibm.icm.ts.tss.ls.LibraryServerImpl.state(LibraryServerImpl.java(Compiled Code))
at com.ibm.icm.ts.tss.app.Janitor.cleanupLibraryServer(Janitor.java(Compiled Code))
at com.ibm.icm.ts.tss.app.JanitorService.cleanupLibraryServer(JanitorService.java(Inlined Compiled Code))
at com.ibm.icm.ts.tss.app.JanitorService.access$000(JanitorService.java(Inlined Compiled Code))
at com.ibm.icm.ts.tss.app.JanitorService$Notifiee.onEvent(JanitorService.java(Compiled Code))
at com.ibm.icm.ts.act.ActivityImpl$ManagerImpl$ActivityRunner.runActivity(ActivityImpl.java(Compiled Code))
at com.ibm.icm.ts.act.ActivityImpl$ManagerImpl$ActivityRunner.run(ActivityImpl.java(Compiled Code))
at com.ibm.hrl.workmanager.RunnableWrapper.run(RunnableWrapper.java:44)
at com.ibm.hrl.workmanager.impl.was.WasWork.run(WasWork.java:75)
at com.ibm.ws.asynchbeans.J2EEContext$RunProxy.run(J2EEContext.java:258)
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code))
at javax.security.auth.Subject.doAs(Subject.java:477)
at com.ibm.websphere.security.auth.WSSubject.doAs(WSSubject.java:118)
at com.ibm.ws.asynchbeans.J2EEContext$DoAsProxy.run(J2EEContext.java:325)
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code))
at com.ibm.ws.asynchbeans.J2EEContext.run(J2EEContext.java:709)
at com.ibm.ws.asynchbeans.WorkWithExecutionContextImpl.go(WorkWithExecutionContextImpl.java:218)
at com.ibm.ws.asynchbeans.ABWorkItemImpl.run(ABWorkItemImpl.java:154)
at java.lang.Thread.run(Thread.java:570)
Caused by: java.sql.SQLException: ConnectionWrapper.getConnection()
at com.ibm.icm.ts.tss.ls.BaseDBImpl$ConnectionWrapper.getConnection(BaseDBImpl.java(Compiled Code))
at com.ibm.icm.ts.tss.ls.BaseDBImpl.removeExpiredIndexClaims(BaseDBImpl.java(Compiled Code))
... 22 more
Caused by: java.sql.SQLException: addSync: caught Exception
at com.ibm.ws.rsadapter.AdapterUtil.toSQLException(AdapterUtil.java(Compiled Code))
at com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJdbcDataSource.java(Compiled Code))
at com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJdbcDataSource.java(Compiled Code))
at com.ibm.icm.ci.Datastore$DataSource.getConnection(Datastore.java(Compiled Code))
... 24 more
Caused by: javax.resource.ResourceException: addSync: caught Exception
at com.ibm.ejs.j2c.XATransactionWrapper.addSync(XATransactionWrapper.java(Compiled Code))
at com.ibm.ejs.j2c.ConnectionManager.initializeForUOW(ConnectionManager.java(Compiled Code))
at com.ibm.ejs.j2c.ConnectionManager.involveMCInTran(ConnectionManager.java(Compiled Code))
at com.ibm.ejs.j2c.ConnectionManager.allocateConnection(ConnectionManager.java(Compiled Code))
... 27 more
Caused by: javax.transaction.RollbackException: Transaction rolled back
at com.ibm.ws.Transaction.JTA.TransactionImpl.registerSynchronization(TransactionImpl.java(Compiled Code))
at com.ibm.ws.Transaction.JTA.TransactionImpl.registerSynchronization(TransactionImpl.java(Inlined Compiled Code))
at com.ibm.ws.Transaction.JTA.TranManagerSet.registerSynchronization(TranManagerSet.java(Compiled Code))
... 31 more

I actually want to know when this error " while trying to register the Resource Adapter with the Synchronization Manager for the current transaction, and threw a ResourceException." will occur and what is the solution for resolving it..

Looking forward for help.

Thanks,
Shri Devi
10 years ago
Hi All,

Thank you for your replies. It helped me solving my problem and understand what my mistake was.

Special thanks for Joanne Neal

@ CR

I have updated now with my complete name.
10 years ago
Hi,

I have problem getting system time inside while loop. The first time it picks the sys time. But in the second iteration, even if the sys time changes, the hour and minute integers are having the same value only. Could somebody help, why the consecutive iterations fail to reassign the values??

Below is my code:

int g = 1;
int hour = 0;
int minute = 0;
GregorianCalendar calendar = new GregorianCalendar ( ) ;
while(true)
{
System.out.println("hr :: "+hour);
System.out.println("min :: "+minute);
System.out.println("in :: "+g);
hour = calendar.get ( GregorianCalendar.HOUR_OF_DAY ) ;
minute = calendar.get ( GregorianCalendar.MINUTE ) ;
System.out.println("::SysTime::"+hour);
System.out.println("::SysTime::"+minute);
if (hour == 17 && minute == 44)
{
System.out.println("Inside if");
t.interrupt();
break;
}
g++;
}

Thanks,
Shiny.
10 years ago