[JBoss Seam] - Manager.switchConversation via Ajax4JSF actionListener doesn
by objectbay
Hi all,
I'm using Seam 1.2.1 GA on JBoss 4.0.5.
I have a conversation list dropdown in my facelet view, like this:
<h:selectOneMenu id="conversations" class="navlist"
| value="#{switcher.conversationIdOrOutcome}" >
| <f:selectItems value="#{switcher.selectItems}"/>
| <a:support event="onchange"
| onsubmit="showLoading('NavForm:conversations')"
| oncomplete="hideLoading();"
| actionListener="#{switcher.select}"
| reRender="navlists" />
| </h:selectOneMenu>
Switching conversations with a:support doesn't work in a stable manner. In particular, the ce.lock() call in the following code snippet (from org.jboss.seam.core.Manager) returns false (tryLock times out) under circumstances I don't really understand:
public boolean switchConversation(String id)
| {
| ConversationEntry ce = ConversationEntries.instance().getConversationEntry(id);
| if (ce!=null)
| {
| if ( ce.lock() )
| {
| unlockConversation();
| setCurrentConversationId(id);
| setCurrentConversationIdStack( ce.getConversationIdStack() );
| setLongRunningConversation(true);
| return true;
| }
| else
| {
| return false; // <-- times out (sometimes, not always), conversation not switched
| }
| }
| else
| {
| return false;
| }
| }
What does the call to ce.lock() really mean? And can anybody explain why this would fail?
Is there a problem with calling switcher.select() from an a:support? And is that in any way related to http://jira.jboss.org/jira/browse/JBSEAM-1832?
thanks,
Karl
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4120106#4120106
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4120106
18 years, 5 months
[JBoss jBPM] - Signal Error
by MattOwens
Could anyone please explain why this code throws the following exception: "closed JbpmContext in different order then they were created... check your try-finally's around JbpmContexts blocks".
Code:
public JbpmProcessInstance(JbpmProcessDefinition processDef, bpmProcessInstanceVar var)
{
beginSessionTransaction();
try
{
ProcessDefinition processDefinition = jbpmContext.getGraphSession().loadProcessDefinition(processDef.getId());
// create a new process instance to run
processInstance = new ProcessInstance (processDefinition);
if(var!=null)
addProcessInstanceVar(var);
processInstance.signal();
}
catch (Exception e)
{
log.error(e.getMessage());
throw new JBPMException(e.getMessage(),e);
}
finally
{
commitAndCloseSession();
}
}
The error is thrown on the signal() line. I have tried to find a reason for this for a number of days and as a result of not being able to am now loooking at other workflow solutions. could someeone please point me in the direction of an explaination so i can continue using JBPM?
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4120100#4120100
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4120100
18 years, 5 months
[Installation, Configuration & DEPLOYMENT] - DeploymentException
by lovelyliatroim
Hi Folks,
Im currently using JBoss AS 5.0 Beta3 and Im having a bit of a problem.
I have an ear file and inside the ear file i have a jar file. Inside the jar file in the meta-inf directory i have 2 service descriptor files.(Now maybe you cant do this but i would assume you can). Now when it comes to deployment i get the following exception
| 15:04:00,052 ERROR [AbstractKernelController] Error installing to Parse: name=vfsfile:/C:/jboss/jboss-5.0.0.Beta3/server/default/deploy/cmds.ear/ state=Not Installed mode=Manual requiredState=Parse
| org.jboss.deployers.spi.DeploymentException: Only one file is allowed, found=[FileHandler(a)20948677[path=cmds.ear/cmds-cache.jar/META-INF/cmdsNonPersistentCache-service.xml context=file:/C:/jboss/jboss-5.0.0.Beta3/server/default/deploy/ real=file:/C:/jboss/jboss-5.0.0.Beta3/server/default/deploy/cmds.ear/cmds-cache.jar/META-INF/cmdsNonPersistentCache-service.xml], FileHandler(a)31313958[path=cmds.ear/cmds-cache.jar/META-INF/cmdsPersistentCache-service.xml context=file:/C:/jboss/jboss-5.0.0.Beta3/server/default/deploy/ real=file:/C:/jboss/jboss-5.0.0.Beta3/server/default/deploy/cmds.ear/cmds-cache.jar/META-INF/cmdsPersistentCache-service.xml]]
| at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:108)
| at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:225)
| at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:199)
| at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:162)
| at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:853)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:906)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:794)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:622)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:411)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:498)
| at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:506)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:245)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:131)
| at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:408)
| at org.jboss.Main.boot(Main.java:208)
| at org.jboss.Main$1.run(Main.java:534)
| at java.lang.Thread.run(Thread.java:595)
|
Now it obviously doesnt like 2 service files inside this directory. My question is then is how do i package and deploy my services then?? The 2 services i have are for JBoss Cache, one for a persistent cache and the other not. I would like to keep them packaged together if possible, any work around??
I also seen this http://jira.jboss.org/jira/browse/JBMICROCONT-184 , maybe its related??.
Cheers,
LL
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4120098#4120098
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4120098
18 years, 5 months