[JBoss Seam] - Re: exception during destroy... need help
by henrik.lindberg
It is a SFSB in Conversation scope. It's remove method does nothing.
I have two things injected
| @In(required=true, value="#{basePath}")
| private String m_basePath;
|
| @In(required=true, value="#{jws_xx}")
| private String m_jws_xx;
|
and both of these are declared in components.xml - like this
| <factory name="basePath" value="#{facesContext.externalContext.request.scheme}://#{facesContext.externalContext.request.serverName}:#{facesContext.externalContext.request.serverPort}#{facesContext.externalContext.request.contextPath}/"
| />
| <factory name="jws_xx" value="jws_1.1" />
|
And the reference to facesContext is in the "basePath". That is the only place. So, what could be referencing the facesContext at point of destruction?
Do I need to clear injected variables?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067789#4067789
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067789
18Â years, 9Â months
[JBoss jBPM] - Re: Problem deleting a process containing a subProcess
by dd974
Hi,
I've change to JBPM 3.2.GA but my problem is still there.
I have the error :
anonymous wrote :
| 3:06:03,439 ERROR [JDBCExceptionReporter] Integrity constraint violation FK_PROCIN_SPROCTKN table: JBPM_PROCESSINSTANCE in statement [delete from JBPM_TOKEN where ID_=? and VERSION_=?]
| 13:06:03,439 ERROR [AbstractFlushingEventListener] Could not synchronize database state with session
| org.hibernate.exception.ConstraintViolationException: could not delete: [org.jbpm.graph.exe.Token#11]
| at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:69)
| at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
| at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:2307)
| at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:2439)
| at org.hibernate.action.EntityDeleteAction.execute(EntityDeleteAction.java:65)
| at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:243)
| at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:227)
| at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:145)
| at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:296)
| at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
| at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:905)
| at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:345)
| at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
| at org.jbpm.persistence.db.DbPersistenceService.commit(DbPersistenceService.java:253)
| at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:211)
| at org.jbpm.svc.Services.close(Services.java:222)
| at org.jbpm.JbpmContext.close(JbpmContext.java:139)
| at com.editag.process.ProcessExecutorThread.run(ProcessExecutorThread.java:193)
| Caused by: java.sql.SQLException: Integrity constraint violation FK_PROCIN_SPROCTKN table: JBPM_PROCESSINSTANCE in statement [delete from JBPM_TOKEN where ID_=? and VERSION_=?]
| at org.hsqldb.jdbc.Util.throwError(Unknown Source)
| at org.hsqldb.jdbc.jdbcPreparedStatement.executeUpdate(Unknown Source)
| at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:227)
| at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:2293)
| ... 15 more
| 13:06:03,449 ERROR [DbPersistenceService] hibernate commit failed
| org.hibernate.exception.ConstraintViolationException: could not delete: [org.jbpm.graph.exe.Token#11]
| at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:69)
| at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
| at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:2307)
| at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:2439)
| at org.hibernate.action.EntityDeleteAction.execute(EntityDeleteAction.java:65)
| at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:243)
| at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:227)
| at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:145)
| at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:296)
| at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
| at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:905)
| at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:345)
| at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
| at org.jbpm.persistence.db.DbPersistenceService.commit(DbPersistenceService.java:253)
| at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:211)
| at org.jbpm.svc.Services.close(Services.java:222)
| at org.jbpm.JbpmContext.close(JbpmContext.java:139)
| at com.editag.process.ProcessExecutorThread.run(ProcessExecutorThread.java:193)
| Caused by: java.sql.SQLException: Integrity constraint violation FK_PROCIN_SPROCTKN table: JBPM_PROCESSINSTANCE in statement [delete from JBPM_TOKEN where ID_=? and VERSION_=?]
| at org.hsqldb.jdbc.Util.throwError(Unknown Source)
| at org.hsqldb.jdbc.jdbcPreparedStatement.executeUpdate(Unknown Source)
| at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:227)
| at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:2293)
| ... 15 more
|
|
Can anyone help me ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067783#4067783
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067783
18Â years, 9Â months
[JBoss Seam] - Re: Evaluation of action attibute in s:link
by dmitriy.lapko
It was so long conversation... I just want to check, did I understood your problem correctly.
So, do you mean that you would like to be able to dynamically generate the contents of the "action" attribute?
So, instead of writing a lot of times:
<s:link action="#{someBean.doSomeWork('value1')}" .../>
| <s:link action="#{someBean.doSomeWork('value2')} ..."/>
| ...
| <s:link action="#{someBean.doSomeWork('valueN')} ..."/>
|
you would like to be able to write:
<cycle name="some form of cycle which iterates by all possible values like 'value1', 'value2'...">
|
| <s:link action="#{someBean.doSomeWork(valueToEvaluate)}" .../>
|
| </cycle>
|
which should be transformed into previous form during rendering of the page.
Am I right? I just also had such dreams about EL and Seam before...
And to have special marks to show Seam that we need evaluate valueToEvaluate on rendering phase...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067782#4067782
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067782
18Â years, 9Â months