[jBPM] - Cycling between 2 tasks
by Jaber C. Mourad
Jaber C. Mourad [http://community.jboss.org/people/newbeewan] created the discussion
"Cycling between 2 tasks"
To view the discussion, visit: http://community.jboss.org/message/565293#565293
--------------------------------------------------------------
Hi,
I need to implement a process with a possible cycle :
task A is validate -> task B
but we want to go again to the task A form a transition from the task B...
I have created the process like that :
<start name="start1" g="119,16,48,48">
<transition name="to fill_form" to="fill_form" g="-87,-24"/>
</start>
<task name="fill_form" g="97,96,92,52" form="the_form">
<transition name="to_manager_acceptance" to="manager_acceptance" g="-137,-24"/>
</task>
<task name="manager_acceptance" g="97,96,92,52" form="acceptance_form">
<transition name="to_form_validation" to="final_validation"/>
<transition name="form_more_info" to="fill_form"/>
<transition name="form_cancel" to="cancel1"/>
</task>
Is it possible to make that ?
Regards
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/565293#565293]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 3 months
[Persistence, JBoss/CMP, Hibernate, Database] Probem with the same name for persistence unit with separate wars in JBOSS 5.1.0
by Alexander Vaysberg
Hi,
I have a problem with 2 wars (a.war and b.war), which have the
persistence jar with persistence.xml. The persistence xml for both jars
has persistence unit with same name <persistence-unit name=/"default"…
/(The Datasource for each persistence unit aren’t the same). But if I
deploy on the JBOSS AS 5.1.0 the both war, only the first war deploy on
the second I have a problem (Exception):
2010-10-01 09:51:26,477 ERROR
[org.jboss.kernel.plugins.dependency.AbstractKernelController] (main)
Error installing to Real:
name=vfszip:/usr/local/jboss-5.1.0.GA-jdk5/server/rb_std_dev/deploy/b.war
/ state=PreReal mode=Manual requiredState=Real
org.jboss.deployers.spi.DeploymentException: Error deploying:
persistence.unit:unitName=#default
at
org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
at
org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:125)
at
org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:51)
at
org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
at
org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
at
org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
at
org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
at
org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
at
org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
at
org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
at
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
In SPEC for EJB 3.0 I have read:
“*6.2.2 Persistence Unit Scope*
…
When referencing a persistence unit using the unitName annotation
element or persistence-
unit-name deployment descriptor element, the visibility scope of the
persistence unit is
determined by its point of definition. A persistence unit that is
defined at the level of an EJB-JAR,WAR,
or application client jar is scoped to that EJB-JAR, WAR, or application
jar respectively and is visible to
the components defined in that jar or war…”
What is wrong?
14 years, 3 months
[JCA] - Classcast Exception using Oracle Blobs(10g) and JBoss 4.0
by satwika C
satwika C [http://community.jboss.org/people/satwika.chandra] created the discussion
"Classcast Exception using Oracle Blobs(10g) and JBoss 4.0"
To view the discussion, visit: http://community.jboss.org/message/563449#563449
--------------------------------------------------------------
Hi all,
Im using oracle 10g and JBoss 4.
Im getting the following error :
java.lang.ClassCastException
: oracle.sql.BLOB
Conn = DBConnector.getConnection();
// Initially inserted an empty_blob() to data base
//retrieving the record and locking it.
PreparedStatement pStatement = conn.prepareStatement("Select ............... for Update")
ResultSet result = pStatement.executeQuery();
System.out.println(result.getClass().getName());
result.next();
BLOB blob =((OracleResultSet)result).getBLOB(1);
OutputStream outStream = blob.setBinaryStream(1L);
int size = blob.getBufferSize();
byte[] buffer = new byte[size];
int length = -1;
while ((length = inputStream.read(buffer)) != -1)
outStream.write(buffer, 0, length);
inputStream.close();
outStream.close();
Ive also tried casting my ResultSet obj with WrappedResultSet of org.jboss.resource.adapter package.
This is also throwing a classcastexception.
Please provide a solution.
Thanks,
Sat !
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/563449#563449]
Start a new discussion in JCA at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 3 months
[JCA] - Question for the ResourceException: Interrupted while requesting permit! Waited 0 ms
by nie feng
nie feng [http://community.jboss.org/people/niefeng] created the discussion
"Question for the ResourceException: Interrupted while requesting permit! Waited 0 ms"
To view the discussion, visit: http://community.jboss.org/message/563541#563541
--------------------------------------------------------------
Hi all,
I am observing the error +"ResourceException: Interrupted while requesting permit! Waited 0 ms"+ in the peer node in the cluster when main node (the first node started in the cluster) is crashed unexpectedly.
The detail stack trace as follow
org.jboss.util.NestedSQLException: Interrupted while requesting permit! Waited 0 ms; - nested throwable: (javax.resource.ResourceException: Interrupted while requesting permit! Waited 0 ms)
at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:95)
Caused by: javax.resource.ResourceException: Interrupted while requesting permit! Waited 0 ms
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:312)
at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:613)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:347)
at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:330)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:402)
at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:849)
at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:89)
... 154 more
I am using JBOSS 4.2.3 GA, and the cluster is consisting of 2 nodes. The DB i am using is postgres 8.4.4 and i am using a Fedora 8 box.
I have read the thread ( http://community.jboss.org/message/150841#150841 http://community.jboss.org/message/150841) and it mentioned the error is related to the transaction time out, and it suggested that to include the option <blocking-timeout-millis> in the ds.xml. I still observing such error even after such option is enable in my db ds file.
<!--DS -->
<local-tx-datasource>
<jndi-name>dbdatasource</jndi-name>
<connection-url>jdbc:postgresql://localhost:35432/myPgsql</connection-url>
<driver-class>org.postgresql.Driver</driver-class>
<user-name>postgres</user-name>
<password>XXXXX</password>
<min-pool-size>10</min-pool-size>
<max-pool-size>40</max-pool-size>
<idle-timeout-minutes>15</idle-timeout-minutes>
<blocking-timeout-millis>400000</blocking-timeout-millis>
<!-- sql to call when connection is created. Can be anything, select 1 is valid for PostgreSQL
<new-connection-sql>select 1</new-connection-sql>
-->
<!-- sql to call on an existing pooled connection when it is obtained from pool. Can be anything, select 1 is valid for PostgreSQL
<check-valid-connection-sql>select 1</check-valid-connection-sql>
-->
<!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
<metadata>
<type-mapping>PostgreSQL 7.2</type-mapping>
</metadata>
</local-tx-datasource>
Could it be my configuration is wrong? or what are the additional configuration i need to specify?
Regards
Niefeng
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/563541#563541]
Start a new discussion in JCA at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 3 months
[jBPM] - JBPM 4.4 Tomcat JNDI ProcessEngine Exception.
by Antonio Pagano
Antonio Pagano [http://community.jboss.org/people/antonio.pagano] created the discussion
"JBPM 4.4 Tomcat JNDI ProcessEngine Exception."
To view the discussion, visit: http://community.jboss.org/message/563436#563436
--------------------------------------------------------------
Hi,
I wrote a Factory for my using JBPM 4.4 ProcessEngine as a JNDI resource in Tomcat like this,
...
public class ProcessEngineFactory implements ObjectFactory {
public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment) throws Exception {
return Configuration.getProcessEngine();
}
}
Im start my Tomcat and everithing goes great, but when another application needs to find anyone of the services
inside the ProcessEngineImpl (lets say RepositoryService) , i get this exception :
...
Caused by: org.jbpm.pvm.internal.wire.WireException: couldn't set commandService to org.jbpm.pvm.internal.svc.SkipInterceptor@2e8e96cd
at org.jbpm.pvm.internal.wire.operation.FieldOperation.apply(FieldOperation.java:48)
at org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.initialize(ObjectDescriptor.java:230)
... 25 more
Caused by: org.jbpm.api.JbpmException: couldn't set 'commandService' to 'org.jbpm.pvm.internal.svc.SkipInterceptor@2e8e96cd'
at org.jbpm.pvm.internal.util.ReflectUtil.set(ReflectUtil.java:170)
at org.jbpm.pvm.internal.wire.operation.FieldOperation.apply(FieldOperation.java:46)
... 26 more
Caused by: java.lang.IllegalArgumentException: Can not set org.jbpm.pvm.internal.cmd.CommandService field org.jbpm.pvm.internal.svc.AbstractServiceImpl.commandService to org.jbpm.pvm.internal.svc.SkipInterceptor
at org.jbpm.pvm.internal.util.ReflectUtil.set(ReflectUtil.java:168)
... 27 more
...
Please any help you can give me arround this topic is great received.
Thanks in advance,
Antonio
Caused by: org.jbpm.pvm.internal.wire.WireException: couldn't set commandService to org.jbpm.pvm.internal.svc.SkipInterceptor@2e8e96cd
at org.jbpm.pvm.internal.wire.operation.FieldOperation.apply(FieldOperation.java:48)
at org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.initialize(ObjectDescriptor.java:230)
... 25 more
Caused by: org.jbpm.api.JbpmException: couldn't set 'commandService' to 'org.jbpm.pvm.internal.svc.SkipInterceptor@2e8e96cd'
at org.jbpm.pvm.internal.util.ReflectUtil.set(ReflectUtil.java:170)
at org.jbpm.pvm.internal.wire.operation.FieldOperation.apply(FieldOperation.java:46)
... 26 more
Caused by: java.lang.IllegalArgumentException: Can not set org.jbpm.pvm.internal.cmd.CommandService field org.jbpm.pvm.internal.svc.AbstractServiceImpl.commandService to org.jbpm.pvm.internal.svc.SkipInterceptor
at org.jbpm.pvm.internal.util.ReflectUtil.set(ReflectUtil.java:168)
... 27 Caused by: org.jbpm.pvm.internal.wire.WireException: couldn't set commandService to org.jbpm.pvm.internal.svc.SkipInterceptor@2e8e96cd
at org.jbpm.pvm.internal.wire.operation.FieldOperation.apply(FieldOperation.java:48)
at org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.initialize(ObjectDescriptor.java:230)
... 25 more
Caused by: org.jbpm.api.JbpmException: couldn't set 'commandService' to 'org.jbpm.pvm.internal.svc.SkipInterceptor@2e8e96cd'
at org.jbpm.pvm.internal.util.ReflectUtil.set(ReflectUtil.java:170)
at org.jbpm.pvm.internal.wire.operation.FieldOperation.apply(FieldOperation.java:46)
... 26 more
Caused by: java.lang.IllegalArgumentException: Can not set org.jbpm.pvm.internal.cmd.CommandService field org.jbpm.pvm.internal.svc.AbstractServiceImpl.commandService to org.jbpm.pvm.internal.svc.SkipInterceptor
at org.jbpm.pvm.internal.util.ReflectUtil.set(ReflectUtil.java:168)
... 27 more
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/563436#563436]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 3 months