[JBoss Seam] - Re: Question On @Datamodel Outjection
by hasc
Hi,
i work mainly with 4 classes.
CalculationManager:
- serves the business logic for the interaction with the user
- holds a Calculation Object
Calculation:
- Entity Bean
- holds all data provided by the user
ExpressCalculator:
- executes a calculation for a passed Calculation object
- returns a BudgetOverview object
BudgetOverview:
- holds all data which should be returned to the user
Workflow:
1. every time the user starts a calculation a (long running) conversation is started and a Calculation object is created which holds all data.
2. When the user has passed all information a calculation is executed. and the response is stored in the BudgetOverview object
3. the CalculationManager gets this BudgetOverview object and outjects it to the conversation scope. Then the user is redirected to the page where the response is rendered and after that the conversation ends.
And within the BudgetOverview there is the DataModel selectitems which should also be outjected to the conversation scope.
the part of the xhtml looks like that:
<ui:define name="content">
| <h1>Budget Overview</h1>
| <div>
| <span>BuildingTyp: </span>
| <h:outputText value="#{budgetOverview.buildingType}"/><br/>
| <span>Area: </span>
| <h:outputText value="#{budgetOverview.area}"/>
| </div>
| <h:dataTable value="#{costitems}" var="item">
| ... columns
| </h:dataTable>
| </ui:define>
works fine fot the #{budgetOverview.attributes} but not for the @Datamodel
thanks for help,
hasc
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047182#4047182
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047182
18 years, 11 months
[JBoss jBPM] - Re: login to jbpm_console failed
by naseem.k
Hi Guys,
Finally I am able to login to jbpm-console page by adding records in JBPM_ID_MEMBERSHIP table for the new users I created and assigned them to a group by groupid as a foreign key.
Now I am getting exception at the time of process start.
First time when I start a new process, it works fine. There is no exception on the console. Second time when I start the same process version, exception is generated on the console saying...
anonymous wrote : 15:32:26,701 DEBUG [JbpmContext] closing JbpmContext
| 15:32:26,701 DEBUG [Services] closing service 'persistence': org.jbpm.persistence.db.DbPersistenceService@1fa2b3e
| 15:32:26,701 DEBUG [DbPersistenceService] committing hibernate transaction
| 15:32:26,717 WARN [JDBCExceptionReporter] SQL Error: 1, SQLState: 23000
| 15:32:26,717 ERROR [JDBCExceptionReporter] ORA-00001: unique constraint (RND.SYS_C0014481) violated
|
| 15:32:26,717 WARN [JDBCExceptionReporter] SQL Error: 1, SQLState: 23000
| 15:32:26,717 ERROR [JDBCExceptionReporter] ORA-00001: unique constraint (RND.SYS_C0014481) violated
|
| 15:32:26,732 ERROR [AbstractFlushingEventListener] Could not synchronize database state with session
| org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
| at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71)
| at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
| at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:249)
| at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:92)
| at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:87)
| at org.hibernate.jdbc.AbstractBatcher.prepareBatchStatement(AbstractBatcher.java:218)
| at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2106)
| at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2503)
| at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:51)
| at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:248)
| at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:232)
| at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:139)
| at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.ja
| va:297)
I got this exception only with oracle database. With hypersonic database, there was no exception.
Please help. What could be the cause?
Thanks
Naseem
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047179#4047179
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047179
18 years, 11 months
[JBoss jBPM] - Re: jbpm-bpel-1.1.Beta3 examples problem!
by itprabha
Hi gongdonghui,
Thanks for sharing the solution.
I already had jdk 1.5.0-6 installed on machine. So I just placed the jar files. Now the test cases of HelloTest are passed, but ATM and purchase order test cases are failing.
I am getting the following error message for AtmFrontEndTest-testConnect test case.
Call invocation failed with code [Server] because of: The service is not in an appropiate state for the requested operation; nested exception is: javax.xml.rpc.soap.SOAPFaultException: The service is not in an appropiate state for the requested operation
|
| java.rmi.RemoteException: Call invocation failed with code [Server] because of: The service is not in an appropiate state for the requested operation; nested exception is: javax.xml.rpc.soap.SOAPFaultException: The service is not in an appropiate state for the requested operation at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:713) at org.jboss.ws.jaxrpc.CallImpl.invoke(CallImpl.java:404) at org.jboss.ws.jaxrpc.CallProxy.invoke(CallProxy.java:148) at $Proxy3.connect(Unknown Source) at org.jbpm.bpel.tutorial.atm.AtmFrontEndTest.testConnect(AtmFrontEndTest.java:61) at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) at junit.extensions.TestSetup$1.protect(TestSetup.java:19) at junit.extensions.TestSetup.run(TestSetup.java:23)Caused by: javax.xml.rpc.soap.SOAPFaultException: The service is not in an appropiate state for the requested operation at org.jboss.ws.jaxrpc.SOAPFaultExceptionHelper.getSOAPFaultException(SOAPFaultExceptionHelper.java:100) at org.jboss.ws.binding.soap.SOAPBindingProvider.unbindResponseMessage(SOAPBindingProvider.java:486) at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:702) ... 23 more
I tried the atm terminal client as well. It also gives the same error message.
Are you able to run other test cases successfully?
Regards,
Prabhakar N
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047177#4047177
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047177
18 years, 11 months
[JBoss jBPM] - Re: Why doesn't work?
by ricardomarques
Ok here's the log:
| 10:31:20,953 DEBUG [CommandServiceBean] getting jbpm configuration resource from the environment properties
| 10:31:21,390 DEBUG [UIComponentTag] Exited encodeEnd for client-Id: _idJsp0
| 10:31:21,390 DEBUG [CommandServiceBean] couldn't find configuration property JbpmCfgResource through JNDI
| 10:31:21,390 DEBUG [CommandServiceBean] getting default jbpm configuration resource (jbpm.cfg.xml)
| 10:31:21,390 DEBUG [CommandServiceBean] handing over the command execution to the command service
| 10:31:21,390 DEBUG [JbpmContextInfo] creating jbpm context with service factories '[tx, message, scheduler, logging, persistence, authentication]'
| 10:31:21,390 DEBUG [FacesServlet] service end
| 10:31:21,890 DEBUG [JbpmContext] creating org.jbpm.JbpmContext@37c7ee
| 10:31:21,890 DEBUG [CommandServiceBean] executing org.jbpm.command.GetTaskListCommand@26fb32
| 10:31:21,890 DEBUG [DbPersistenceServiceFactory] creating persistence service
| 10:31:21,890 DEBUG [DbPersistenceService] creating hibernate session
| 10:31:21,890 DEBUG [SessionImpl] opened session at timestamp: 4832214556221440
| 10:31:21,890 DEBUG [DbPersistenceService] beginning hibernate transaction
| 10:31:21,890 DEBUG [JDBCTransaction] begin
| 10:31:21,890 DEBUG [ConnectionManager] opening JDBC connection
| 10:31:21,890 DEBUG [DriverManagerConnectionProvider] total checked-out connections: 1
| 10:31:21,890 DEBUG [DriverManagerConnectionProvider] opening new JDBC connection
| 10:31:21,906 DEBUG [DriverManagerConnectionProvider] created connection to: jdbc:mysql://localhost:3306/workflow-server, Isolation Level: 4
| 10:31:21,906 DEBUG [JDBCTransaction] current autocommit status: false
| 10:31:21,906 DEBUG [JDBCContext] after transaction begin
| 10:31:21,937 DEBUG [QueryPlanCache] located HQL query plan in cache (
|
| select ti
| from org.jbpm.taskmgmt.exe.TaskInstance as ti
| where ti.actorId = :actorId
| and ti.isSuspended != true
| and ti.isOpen = true
|
| )
| 10:31:22,390 DEBUG [QueryPlanCache] located HQL query plan in cache (
|
| select ti
| from org.jbpm.taskmgmt.exe.TaskInstance as ti
| where ti.actorId = :actorId
| and ti.isSuspended != true
| and ti.isOpen = true
|
| )
| 10:31:22,390 DEBUG [HQLQueryPlan] find:
|
| select ti
| from org.jbpm.taskmgmt.exe.TaskInstance as ti
| where ti.actorId = :actorId
| and ti.isSuspended != true
| and ti.isOpen = true
|
|
| 10:31:22,390 DEBUG [QueryParameters] named parameters: {actorId=grover}
| 10:31:22,890 DEBUG [AbstractBatcher] about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
| 10:31:22,890 DEBUG [SQL] select taskinstan0_.ID_ as ID1_27_, taskinstan0_.VERSION_ as VERSION3_27_, taskinstan0_.NAME_ as NAME4_27_, taskinstan0_.DESCRIPTION_ as DESCRIPT5_27_, taskinstan0_.ACTORID_ as ACTORID6_27_, taskinstan0_.CREATE_ as CREATE7_27_, taskinstan0_.START_ as START8_27_, taskinstan0_.END_ as END9_27_, taskinstan0_.DUEDATE_ as DUEDATE10_27_, taskinstan0_.PRIORITY_ as PRIORITY11_27_, taskinstan0_.ISCANCELLED_ as ISCANCE12_27_, taskinstan0_.ISSUSPENDED_ as ISSUSPE13_27_, taskinstan0_.ISOPEN_ as ISOPEN14_27_, taskinstan0_.ISSIGNALLING_ as ISSIGNA15_27_, taskinstan0_.ISBLOCKING_ as ISBLOCKING16_27_, taskinstan0_.TASK_ as TASK17_27_, taskinstan0_.TOKEN_ as TOKEN18_27_, taskinstan0_.PROCINST_ as PROCINST19_27_, taskinstan0_.SWIMLANINSTANCE_ as SWIMLAN20_27_, taskinstan0_.TASKMGMTINSTANCE_ as TASKMGM21_27_ from JBPM_TASKINSTANCE taskinstan0_ where taskinstan0_.ACTORID_=? and taskinstan0_.ISSUSPENDED_<>1 and taskinstan0_.ISOPEN_=1
| 10:31:23,390 DEBUG [AbstractBatcher] preparing statement
| 10:31:23,390 DEBUG [StringType] binding 'grover' to parameter: 1
| 10:31:23,390 DEBUG [AbstractBatcher] about to open ResultSet (open ResultSets: 0, globally: 0)
| 10:31:23,390 DEBUG [Loader] processing result set
| 10:31:23,390 DEBUG [Loader] done processing result set (0 rows)
| 10:31:23,390 DEBUG [AbstractBatcher] about to close ResultSet (open ResultSets: 1, globally: 1)
| 10:31:23,390 DEBUG [AbstractBatcher] about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
| 10:31:23,390 DEBUG [AbstractBatcher] closing statement
| 10:31:23,890 DEBUG [Loader] total objects hydrated: 0
| 10:31:23,890 DEBUG [StatefulPersistenceContext] initializing non-lazy collections
| 10:31:23,890 DEBUG [QueryPlanCache] located HQL query plan in cache (
|
| select distinct ti
| from org.jbpm.taskmgmt.exe.PooledActor pooledActor
| join pooledActor.taskInstances ti
| where pooledActor.actorId in ( :actorIds )
| and ti.actorId is null
| and ti.isSuspended != true
| and ti.isOpen = true
|
| )
| 10:31:23,890 DEBUG [QueryPlanCache] located HQL query plan in cache (
|
| select distinct ti
| from org.jbpm.taskmgmt.exe.PooledActor pooledActor
| join pooledActor.taskInstances ti
| where pooledActor.actorId in ( :actorIds )
| and ti.actorId is null
| and ti.isSuspended != true
| and ti.isOpen = true
|
| )
| 10:31:24,390 DEBUG [HQLQueryPlan] find:
|
| select distinct ti
| from org.jbpm.taskmgmt.exe.PooledActor pooledActor
| join pooledActor.taskInstances ti
| where pooledActor.actorId in ( :actorIds )
| and ti.actorId is null
| and ti.isSuspended != true
| and ti.isOpen = true
|
|
| 10:31:24,390 DEBUG [QueryParameters] named parameters: {actorIds=grover}
| 10:31:24,390 DEBUG [AbstractBatcher] about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
| 10:31:24,390 DEBUG [SQL] select distinct taskinstan2_.ID_ as ID1_27_, taskinstan2_.VERSION_ as VERSION3_27_, taskinstan2_.NAME_ as NAME4_27_, taskinstan2_.DESCRIPTION_ as DESCRIPT5_27_, taskinstan2_.ACTORID_ as ACTORID6_27_, taskinstan2_.CREATE_ as CREATE7_27_, taskinstan2_.START_ as START8_27_, taskinstan2_.END_ as END9_27_, taskinstan2_.DUEDATE_ as DUEDATE10_27_, taskinstan2_.PRIORITY_ as PRIORITY11_27_, taskinstan2_.ISCANCELLED_ as ISCANCE12_27_, taskinstan2_.ISSUSPENDED_ as ISSUSPE13_27_, taskinstan2_.ISOPEN_ as ISOPEN14_27_, taskinstan2_.ISSIGNALLING_ as ISSIGNA15_27_, taskinstan2_.ISBLOCKING_ as ISBLOCKING16_27_, taskinstan2_.TASK_ as TASK17_27_, taskinstan2_.TOKEN_ as TOKEN18_27_, taskinstan2_.PROCINST_ as PROCINST19_27_, taskinstan2_.SWIMLANINSTANCE_ as SWIMLAN20_27_, taskinstan2_.TASKMGMTINSTANCE_ as TASKMGM21_27_ from JBPM_POOLEDACTOR pooledacto0_ inner join JBPM_TASKACTORPOOL taskinstan1_ on pooledacto0_.ID_=taskinstan1_.POOLEDACTOR_ inner join JBPM_TASKINSTANCE taskinstan2_ on taskinstan1_.TASKINSTANCE_=taskinstan2_.ID_ where (pooledacto0_.ACTORID_ in (?)) and (taskinstan2_.ACTORID_ is null) and taskinstan2_.ISSUSPENDED_<>1 and taskinstan2_.ISOPEN_=1
| 10:31:24,890 DEBUG [AbstractBatcher] preparing statement
| 10:31:24,890 DEBUG [StringType] binding 'grover' to parameter: 1
| 10:31:24,906 DEBUG [AbstractBatcher] about to open ResultSet (open ResultSets: 0, globally: 0)
| 10:31:24,906 DEBUG [Loader] processing result set
| 10:31:24,906 DEBUG [Loader] done processing result set (0 rows)
| 10:31:24,906 DEBUG [AbstractBatcher] about to close ResultSet (open ResultSets: 1, globally: 1)
| 10:31:24,906 DEBUG [AbstractBatcher] about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
| 10:31:25,390 DEBUG [AbstractBatcher] closing statement
| 10:31:25,390 DEBUG [Loader] total objects hydrated: 0
| 10:31:25,390 DEBUG [StatefulPersistenceContext] initializing non-lazy collections
| 10:31:25,390 DEBUG [JbpmContext] closing JbpmContext
| 10:31:25,390 DEBUG [Services] closing service 'persistence': org.jbpm.persistence.db.DbPersistenceService@1e775bc
| 10:31:25,390 DEBUG [DbPersistenceService] committing hibernate transaction
| 10:31:25,390 DEBUG [JDBCTransaction] commit
| 10:31:25,390 DEBUG [SessionImpl] automatically flushing session
| 10:31:25,390 DEBUG [JDBCContext] before transaction completion
| 10:31:25,890 DEBUG [SessionImpl] before transaction completion
| 10:31:25,890 DEBUG [JDBCTransaction] committed JDBC Connection
| 10:31:25,890 DEBUG [JDBCContext] after transaction completion
| 10:31:25,890 DEBUG [ConnectionManager] aggressively releasing JDBC connection
| 10:31:25,890 DEBUG [ConnectionManager] releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
| 10:31:25,890 DEBUG [DriverManagerConnectionProvider] returning connection to pool, pool size: 1
| 10:31:25,890 DEBUG [SessionImpl] after transaction completion
| 10:31:25,890 DEBUG [DbPersistenceService] closing hibernate session
| 10:31:25,890 DEBUG [SessionImpl] closing session
| 10:31:25,890 DEBUG [ConnectionManager] connection already null in cleanup : no action
| 10:31:25,890 DEBUG [Services] closing service 'tx': org.jbpm.tx.TxService@15080e5
| 10:31:25,890 DEBUG [UIComponentTag] Exited encodeChildren for client-Id: taskList
| 10:31:26,390 DEBUG [UIComponentTag] Entered encodeEnd for client-Id: taskList
| 10:31:26,390 DEBUG [UIComponentTag] Exited encodeEnd for client-Id: taskList
| 10:31:26,390 DEBUG [FacesServlet] service end
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047171#4047171
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047171
18 years, 11 months