[JBoss Portal] - Re: cms - big file upload problem - mysql
by k3nnymusic
Error starts with:
13:51:52,854 ERROR [STDERR] javax.transaction.xa.XAException
| 13:51:52,854 ERROR [STDERR] at org.apache.jackrabbit.core.TransactionContext.commit(TransactionContext.java:182)
| 13:51:52,885 ERROR [STDERR] at org.apache.jackrabbit.core.XASessionImpl.commit(XASessionImpl.java:315)
| 13:51:52,885 ERROR [STDERR] at org.jboss.portal.cms.impl.jcr.JCRCMS.execute(JCRCMS.java:448)
| 13:51:52,885 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor301.invoke(Unknown Source)
| 13:51:52,885 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 13:51:52,885 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
| 13:51:52,885 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| 13:51:52,885 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 13:51:52,885 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| 13:51:52,885 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| 13:51:52,885 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| 13:51:52,885 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| 13:51:52,885 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| 13:51:52,916 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 13:51:52,916 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| 13:51:52,916 ERROR [STDERR] at $Proxy123.execute(Unknown Source)
| 13:51:52,916 ERROR [STDERR] at org.jboss.portal.core.portlet.cms.admin.CMSAdminPortlet.internalProcessAction(CMSAdminPortlet.java:455)
| 13:51:52,916 ERROR [STDERR] at org.jboss.portal.core.portlet.cms.admin.CMSAdminPortlet.processAction(CMSAdminPortlet.java:354)
| 13:51:52,916 ERROR [STDERR] at org.jboss.portlet.JBossPortlet.processAction(JBossPortlet.java:361)
| 13:51:52,916 ERROR [STDERR] at org.jboss.portal.portlet.container.PortletContainer.invokeAction(PortletContainer.java:493)
| 13:51:52,916 ERROR [STDERR] at org.jboss.portal.portlet.container.PortletContainer.dispatch(PortletContainer.java:429)
| 13:51:52,916 ERROR [STDERR] at org.jboss.portal.portlet.container.PortletContainerInvoker$1.dispatch(PortletContainerInvoker.java:144)
| 13:51:52,916 ERROR [STDERR] at org.jboss.portal.portlet.invocation.PortletInvocation.dispatch(PortletInvocation.java:223)
| 13:51:52,916 ERROR [STDERR] at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:141)
| 13:51:52,916 ERROR [STDERR] at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.org$jboss$portal$core$aspects$portlet$TransactionInterceptor$inv
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4085434#4085434
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4085434
18 years, 10 months
[JBoss Seam] - h:selectManyListbox and s:convertEntity don't do the job
by wise_guybg
Hi,
A colleague today showed me a problem with a page in our application (Seam 2.0.0.B1). When a user opens an Exam he previously created for editing, there is a list (SelectManyListbox) of providers he can select from. Saving the form without modifying the selected (two) items, results in a delete sql for the selected items and two insert SQLs that have exactly the same values.
What is causing this, in my opinion, is the fact that after submit exam.setProviderList() is called with an Arrays$ArrayList and the PersistentBag that was previously set for the Exam entity is left unassigned.
Here is the code for the selectManyListbox :
<h:selectManyListbox id="providerList" value="#{exam.providerList}" styleClass="field" required="true">
| <s:selectItems value="#{providers}" var="p" label="#{p.name}"/>
| <s:convertEntity />
| </h:selectManyListbox>
I thought convertEntity should do the job but it is only used to convert the entities contained in the list as stated here:
http://java.sun.com/javaee/javaserverfaces/1.2/docs/api/javax/faces/compo...
My solution for the problem would be to create a getter/setter in the ExamAction session bean. The setter would update exam.getProviderList() so that it ends up with the same elements as the passed providerList (which is an Arrays$ArrayList). This solution though seems not seamless. Shouldn't this feature be built-in for the framework?
There is a wiki page about the entityConverter but the example on selectManyListbox and Factory is really vague. It's not in the source code provided:
http://wiki.jboss.org/wiki/Wiki.jsp?page=SeamEntityConverter
Thanks in advance for your comments.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4085430#4085430
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4085430
18 years, 10 months
[JBoss jBPM] - Problem with timers (org.jbpm.JbpmException: couldn't execut
by e2rd
Hi,
I have some problem with timers.
In my process definition I have a timer in some state:
<state name="watering">
| <timer name="timer_eb"
| duedate="2 minutes"
| transition="overdose" >
| <action class='com.comarch.oss.core.controller.UIControllerHandler' />
| </timer>
| ...
| </state>
I expect that timer will fire 2 minutes after state enter and defined transition and action will execute.
But nothing happens.
Instead of that in server.log file I found:
2007-09-17 13:16:26,250 DEBUG [org.jboss.ejb.txtimer.TimerImpl] run: [id=1,target=[target=jboss.j2ee:service=EJB3,ear=oss-enterprise.ear,jar=jbpm-enterprise.jar,name=TimerServiceBean],remaining=0,periode=0,active]
2007-09-17 13:16:26,250 DEBUG [org.jboss.ejb.txtimer.TimerImpl] setTimerState: in_timeout
2007-09-17 13:16:26,250 DEBUG [org.jbpm.scheduler.ejbtimer.TimerServiceBean] ejb timer [id=1,target=[target=jboss.j2ee:service=EJB3,ear=oss-enterprise.ear,jar=jbpm-enterprise.jar,name=TimerServiceBean],remaining=0,periode=0,in_timeout] fires
2007-09-17 13:16:26,250 ERROR [org.jbpm.scheduler.ejbtimer.TimerServiceBean] org.jbpm.JbpmException: couldn't execute timer
2007-09-17 13:16:26,250 ERROR [org.jboss.ejb.txtimer.TimerImpl] Error invoking ejbTimeout: javax.ejb.EJBException: org.jbpm.JbpmException: couldn't execute timer
2007-09-17 13:16:26,250 DEBUG [org.jboss.ejb.txtimer.TimerImpl] Timer was not registered with Tx, resetting state: [id=1,target=[target=jboss.j2ee:service=EJB3,ear=oss-enterprise.ear,jar=jbpm-enterprise.jar,name=TimerServiceBean],remaining=0,periode=0,in_timeout]
2007-09-17 13:16:26,250 DEBUG [org.jboss.ejb.txtimer.TimerImpl] setTimerState: expired
2007-09-17 13:16:26,250 DEBUG [org.jboss.ejb.txtimer.TimerImpl] killTimer: [id=1,target=[target=jboss.j2ee:service=EJB3,ear=oss-enterprise.ear,jar=jbpm-enterprise.jar,name=TimerServiceBean],remaining=0,periode=0,expired]
2007-09-17 13:17:44,703 DEBUG [org.jboss.resource.connectionmanager.IdleRemover] run: IdleRemover notifying pools, interval: 450000
Earlier my timer is properly created, started and activated:
2007-09-17 13:14:26,234 DEBUG [org.jbpm.graph.def.GraphElement] executing action 'CreateTimerAction(e8cc94)'
2007-09-17 13:14:26,234 DEBUG [org.jbpm.graph.exe.Token] token[7705] is locked by token[7705]
2007-09-17 13:14:26,250 DEBUG [org.jbpm.graph.def.GraphElement] event 'timer-create' on 'State(watering)' for 'Token(/)'
2007-09-17 13:14:26,250 DEBUG [org.jbpm.scheduler.ejbtimer.EjbSchedulerService] creating timer timer(timer_eb,13:16:26,250)
2007-09-17 13:14:26,265 DEBUG [org.jbpm.scheduler.ejbtimer.TimerServiceBean] creating timer timer(timer_eb,13:16:26,250) in the ejb timer service
2007-09-17 13:14:26,312 DEBUG [org.jboss.ejb.txtimer.TimerImpl] setTimerState: created
2007-09-17 13:14:26,328 DEBUG [org.jboss.ejb.txtimer.TimerImpl] setTimerState: started_in_tx
2007-09-17 13:14:26,875 DEBUG [org.hibernate.pretty.Printer] org.jbpm.scheduler.def.CreateTimerAction{repeat=null, actionExpression=null, dueDate=2 minutes, timerAction=org.jbpm.graph.def.Action#7652, referencedAction=null, id=7651, isAsync=false, processDefinition=null, isPropagationAllowed=true, timerName=timer_eb, event=org.jbpm.graph.def.Event#7650, actionDelegation=null, transitionName=overdose, name=null}
2007-09-17 13:14:26,953 DEBUG [org.jboss.ejb.txtimer.TimerImpl] commit: [id=1,target=[target=jboss.j2ee:service=EJB3,ear=oss-enterprise.ear,jar=jbpm-enterprise.jar,name=TimerServiceBean],remaining=119297,periode=0,started_in_tx]
2007-09-17 13:14:26,953 DEBUG [org.jboss.ejb.txtimer.TimerImpl] setTimerState: active
What does that error (org.jbpm.JbpmException: couldn't execute timer) stand for?
How to resolve it?
Best Regards,
e2rd
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4085429#4085429
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4085429
18 years, 10 months