[JBoss Seam] - Re: IllegalStateException: could not acquire lock on @Synchr
by asookazian
when I removed *only* the breakpoint for the Seam remoting method, it works fine. Code for Seam remoting method below...
public void setNoteData(Integer rowIndex, String colName, String siteId, String employeeNumber, Boolean icomsAccountApproved, Boolean securityLevelApproved, Boolean adjustmentLimitApproved){
|
| log.info("in setNoteData: rowIndex = " + rowIndex);
| log.info("in setNoteData: colName = " + colName);
| log.info("in setNoteData: siteId = " + siteId);
| log.info("in setNoteData: employeeNumber = " + employeeNumber);
| log.info("in setNoteData: icomsAccountApproved = " + icomsAccountApproved);
| log.info("in setNoteData: securityLevelApproved = " + securityLevelApproved);
| log.info("in setNoteData: adjustmentLimitApproved " + adjustmentLimitApproved);
|
| setRowIndex(rowIndex);
| setColName(colName);
| setSiteId(siteId);
| setEmployeeNumber(employeeNumber);
| setIcomsAccountApproved(icomsAccountApproved);
| setSecurityLevelApproved(securityLevelApproved);
| setAdjustmentLimitApproved(adjustmentLimitApproved);
|
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109411#4109411
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109411
18 years, 4 months
[JBossCache] - Re: ClusteredCacheLoader + LOCAL CacheMode
by bstansberry@jboss.com
How about this?
| for(int i = 0; i <noOfItems;i++) {
| Quote quote1 = new Quote(nodeName+requestCounter,"EWX","EUR");
| String path = "/quotes/"+quote1.getTreePath();
| cache.getInvocationContext().getOptionOverrides().setCacheModeLocal(true);
| cache.put(Fqn.fromString(path), "quote", quote1);
| requestCounter++;
| }
|
If that works, we may have got a problem with setting an Option before using Node.addChild(Object name). The convenience API via the Cache interface provides a workaround as above, but it would be much better if this worked:
| for(int i = 0; i <noOfItems;i++){
| Quote quote1 = new Quote(nodeName+requestCounter,"EWX","EUR");
| String path = "/quotes/"+quote1.getTreePath();
| TNode root = cache.getRoot();
| cache.getInvocationContext().getOptionOverrides().setCacheModeLocal(true);
| TNode child = root.addChild(path);
| cache.getInvocationContext().getOptionOverrides().setCacheModeLocal(true);
| child.put("quote", quote1);
| requestCounter++;
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109402#4109402
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109402
18 years, 4 months