[JBoss Cache Users] - Cache does not release locked nodes on transaction rollback
by feutche
Hello, can you advise please on another issue I've got with JBoss-Cache (3.2) used with Atomicos tx server.
When transaction server calls rollback on jta timeout, locks aren't released, probably because invocation context is not set on atomicos thread
Here's the scenario:
1. transaction started (by Spring transaction proxy)
2. processing is done, cache updated
3. precommit called - cacheloader writes updates to a database, it takes some time
4. during precommit phase rollback called by atomicos on timeout
5. locks are not released during rollback, because:
rollback is called from atomicos thread
lockManager.unlock(fqn, owner) is called with right owner (global transaction to be rolled back) but owner is not used in MVCCLockManager
invocationContextContainer is empty, so OwnableReentrantLock tries current thread as the owner, causing IllegalMonitorException
6. UnexpectedRollbackException is thrown on commit attempt, no other command issued to rollback so no locks released
Thanks
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4256907#4256907
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4256907
16 years, 7 months
[JBoss Web Services Users] - Cannot Access Secure EJB3 Web Service
by skerstetter
I have a web service that worked fine in AS 4.2.1GA, but since porting to 5.1.0GA, I have been unable to access it if it is secure. If I remove authMethod=BASIC setting of the WebContext, I can access the ejb, but it is not secure.
I am using the native stack, version 3.2.0GA.
Here is my interface definition (simplified):
| @WebService
| @SOAPBinding(style = SOAPBinding.Style.RPC)
| public interface Inquiry {
|
| String echo(@WebParam(name="echoText", mode=Mode.IN) String echoText);
|
Here is my EJB3 definition:
| @WebService(endpointInterface="com.foo.Inquiry")
| @WebContext(contextRoot="check-inquiry", /* SEK TODO: not working */ authMethod="BASIC" /**/, secureWSDLAccess=false)
| @Stateless
| @SecurityDomain("my-security-domain")
| @TransactionAttribute(TransactionAttributeType.SUPPORTS) //we do not require a transaction. we do not perform any updates.
| @Interceptors({PerformanceProfiler.class, ExceptionLogger.class})
| public class InquiryImpl extends BasePersistentContextHolder implements Inquiry {
|
| @Override
| public String echo(final String echoText) {
| getLog().debug("echo=[" + echoText+ "]");
| return echoText;
| }
|
Here is my jax-rpc client code:
| private Inquiry getService(final String username, final String password, final boolean withAuth) throws MalformedURLException, ServiceException {
| Stub stub = (Stub) new InquiryService_Impl().getInquiryPort();
| stub._setProperty(javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY, "http://localhost:8080/check-inquiry/InquiryImpl?wsdl");
|
|
| if (withAuth) {
| stub._setProperty(javax.xml.rpc.Stub.USERNAME_PROPERTY, username);
| stub._setProperty(javax.xml.rpc.Stub.PASSWORD_PROPERTY, password);
| }
|
| return (Inquiry) stub;
| }
|
Let's see, I've got the custom security domain configured in conf/login-config.xml. I've read through the documentation and tried a number of things with other configuration files, like jboss-wsse-server.xml in META-INF. Nothing has worked. I am deploying as an ejb-jar file inside of an ear file.
I'm hoping that someone can see some inconsistency in this all that I have missed.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4256905#4256905
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4256905
16 years, 7 months
[jBPM Users] - Re: jbpm 4.1 - Task assignment
by makarandk502
Hi,
Mistake from my part. New process definition with end-state is attached below. Still same error is coming.
After starting a process through jbpm console when I login as "peter" in jbpm-console, immediately I get the exception pasted in my previous message.
I could see that there is some issue with respect to fork to n tasks with taskforms in user forum discussions before but error was not the same which i have reported.
Please help me in this regard
| <?xml version="1.0" encoding="UTF-8"?>
|
| <process name="SubProcessFill" xmlns="http://jbpm.org/4.0/jpdl">
| <start g="214,171,31,24" name="start1">
| <transition g="-43,-18" name="to fork1" to="fork1"/>
| </start>
| <fork g="215,273,44,34" name="fork1">
| <transition g="-44,-18" name="to task1" to="task1"/>
| <transition g="-44,-18" name="to task2" to="task2"/>
| <transition g="-44,-18" name="to task3" to="task3"/>
| </fork>
| <task assignee="peter" form="tcs/com/java/giveAppDetails.ftl" g="101,379,66,29" name="task1">
| <transition g="-41,-18" name="to join1" to="join1"/>
| </task>
| <task assignee="peter" form="tcs/com/java/giveAppDetails.ftl" g="222,378,47,27" name="task2">
| <transition g="-41,-18" name="to join1" to="join1"/>
| </task>
| <task assignee="peter" form="tcs/com/java/giveAppDetails.ftl" g="342,378,63,26" name="task3">
| <transition g="-41,-18" name="to join1" to="join1"/>
| </task>
| <join g="227,465,39,35" name="join1">
| <transition g="-42,-18" name="to end1" to="end1"/>
| </join>
| <end g="229,555,31,26" name="end1"/>
| </process>
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4256894#4256894
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4256894
16 years, 7 months