[jBPM] - jbpm5 RULEFLOW VARIABLE CHANGED null
by Luis Tamayo
Luis Tamayo [http://community.jboss.org/people/luis.tamayo] created the discussion
"jbpm5 RULEFLOW VARIABLE CHANGED null"
To view the discussion, visit: http://community.jboss.org/message/624526#624526
--------------------------------------------------------------
I am getting null pointer exception when I get a process instance variable in drl file.
12:48:23,803 INFO [STDOUT] BEFORE RULEFLOW VARIABLE CHANGED personaVar=null pro
cess:Requerimiento Permiso[id=org.drools.bpmn2.RequerimientoPermiso]
12:48:23,803 INFO [STDOUT] AFTER RULEFLOW VARIABLE CHANGED personaVar=null proc
ess:Requerimiento Permiso[id=org.drools.bpmn2.RequerimientoPermiso]
12:48:23,805 INFO [STDOUT] BEFORE RULEFLOW VARIABLE CHANGED correo=null process
:Requerimiento Permiso[id=org.drools.bpmn2.RequerimientoPermiso]
12:48:23,820 INFO [STDOUT] AFTER PROCESS NODE TRIGGERED node:Solicitud Empleado
[id=2] process:Requerimiento Permiso[id=org.drools.bpmn2.RequerimientoPermiso]
12:48:23,822 INFO [STDOUT] BEFORE ACTIVATION FIRED rule:Get Information To Star
t Procedure activationId:Get Information To Start Procedure [1] declarations: $p
rocessInstance=WorkflowProcessInstance1 [processId=org.drools.bpmn2.Requerimient
oPermiso,state=1](1) ruleflow-group: envio correo
12:48:23,822 INFO [STDOUT] Notification of completed task 1
12:48:23,824 INFO [STDOUT] Notification of completed task 1
12:48:23,829 ERROR [STDERR] Exception in thread "Thread-20"
my drl file does very simple test:
import java.util.HashMap;
import com.lincoln.jbpm.model.Persona;
import java.io.*;
rule "Get Information To Start Procedure"
salience 20
ruleflow-group "envio correo"
when
//$correo: Correo()
$processInstance: WorkflowProcessInstance()
then
Persona persona = (Persona)$processInstance.getVariable("personaVar");
persona.setId( "171307" );
persona.setName( "Test" );
$processInstance.setVariable("persona",persona);
end
http://community.jboss.org/servlet/JiveServlet/showImage/2-624526-16941/j... http://community.jboss.org/servlet/JiveServlet/downloadImage/2-624526-169...
http://community.jboss.org/servlet/JiveServlet/showImage/2-624526-16942/j... http://community.jboss.org/servlet/JiveServlet/downloadImage/2-624526-169...
http://community.jboss.org/servlet/JiveServlet/showImage/2-624526-16943/j... http://community.jboss.org/servlet/JiveServlet/downloadImage/2-624526-169...
At the begn of the process I have set:
Persona persona = new Persona( "1711xxxx","Luis Tamayo" );
Correo correo = new Correo();
params.put("personaVar", persona);
params.put("correo", correo);
WorkflowProcessInstance process= (WorkflowProcessInstance)ksession.startProcess("org.drools.bpmn2.RequerimientoPermiso", params);
Whe in do Persona persona = (Persona)$processInstance.getVariable("personaVar"); persona is null.
I would like to know what I am missing??
Thanks in advance for your help.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/624526#624526]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 3 months
[JBoss Microcontainer] - Could not resolve @EJB reference: [EJB Reference: beanInterface...
by Maksym RMA
Maksym RMA [http://community.jboss.org/people/maksrma] created the discussion
"Could not resolve @EJB reference: [EJB Reference: beanInterface..."
To view the discussion, visit: http://community.jboss.org/message/624933#624933
--------------------------------------------------------------
Hello All
I have problem with Stateless EJB3 dependency injection on JBoss 6.1 with ESB 4.10
.
More details:
I have 2 ear files. EJB and local interface in one of them, and I am trying to call this EJB in other one ear.
EJB (First ear):
@Stateless
@Local (ProductCreditTypeDAOLocal.*class)*
public class ProductCreditTypeDAOBean extends BasicDAO<ProductCreditTypeEntity, Long> implements ProductCreditTypeDAOLocal#####
.....
Interface (First ear):
public interface ProductCreditTypeDAOLocal ....
Call (Second ear):
@Stateless
@Remote(EcsAdminDataDispatcher.class)
public class EcsAdminDataDispatcherBean extends EcspertEJBBase implements EcsAdminDataDispatcher {
@Resource
private SessionContext sessionContext;
@EJB
private ProductCreditTypeDAOLocal productCreditTypeDAO; --- This is problem injection!
I tryed enable EAR class loading isolation (jboss-app.xml):
<!DOCTYPE jboss-app PUBLIC
"-//JBoss//DTD J2EE Application 5.0//EN"
" http://www.jboss.org/j2ee/dtd/jboss-app_5_0.dtd http://www.jboss.org/j2ee/dtd/jboss-app_5_0.dtd">
<jboss-app>
<loader-repository>myapp:app=ejb3</loader-repository> -- How I understood, this one tell jboss server to load classes in isolated repository.
</jboss-app>
I tryed change:
@Local (ProductCreditTypeDAOLocal.*clas**s)*
*to @Remote but result is same (see next...).*
On deploy phase next exception occurs:
Error installing to Real: name=vfs:///D:/tmp/jboss-6.1.0.Final/server/efour_conf/deploy/credit/creditBL.ear state=PreReal mode=Manual requiredState=Real: org.jboss.deployers.spi.DeploymentException: Error during deploy: org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData.EcsAdminDataDispatcherBean
at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49) [:2.2.2.GA]
....
Caused by: java.lang.RuntimeException: Could not resolve @EJB reference: [EJB Reference: beanInterface 'com.cs.creditecspert.dao.local.ProductCreditTypeDAOLocal', beanName 'null', mappedName 'null', lookupName 'null', owning unit mailto:'ComponentDeploymentContext(a)8065331{org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData.EcsAdminDataDispatcherBean}' 'ComponentDeploymentContext(a)8065331{org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData.EcsAdminDataDispatcherBean}'] for environment entry: env/com.cs.creditecspert.admindispatcher.EcsAdminDataDispatcherBean/productCreditTypeDAO in unit mailto:ComponentDeploymentContext@8065331{org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData.EcsAdminDataDispatcherBean ComponentDeploymentContext(a)8065331{org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData.EcsAdminDataDispatcherBean}
at org.jboss.ejb3.jndi.deployers.resource.provider.AnnotatedEJBRefResourceProvider.provide(AnnotatedEJBRefResourceProvider.java:99) [:0.1.7]
at org.jboss.ejb3.jndi.deployers.resource.provider.AnnotatedEJBRefResourceProvider.provide(AnnotatedEJBRefResourceProvider.java:50) [:0.1.7]
As fact it works fine on jboss 4.2.3GA.
Have any ideas...?
I will be grateful for any....
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/624933#624933]
Start a new discussion in JBoss Microcontainer at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 3 months
[JBoss AOP] - Interceptor not Working in JBoss 6.0.0
by chris.schauer
chris.schauer [http://community.jboss.org/people/chris.schauer] created the discussion
"Interceptor not Working in JBoss 6.0.0"
To view the discussion, visit: http://community.jboss.org/message/624872#624872
--------------------------------------------------------------
Hi,
i am trying to get an application deployed to jboss 6.0.0. I dont know whats wrong.
JBoss start without problems.
If the Interceptor will called, i'll get the attached exceptions.
My jboss-aop.xml:
<?xml version="1.0" encoding="UTF-8"?>
<aop xmlns="urn:jboss:aop-beans:1.0">
<interceptor name="etmInterceptor" class="com.path.myproject.web.common.PerformanceMeasureInterceptorWeb" scope="PER_VM"/>>
<bind pointcut="execution(* de.company.myproject.MYPROJServletWrapper->*(..))">
<interceptor-ref name="etmInterceptor" />
</bind>
</aop>
I configured the *jboss.aop.path* para in run.bat
My Interceptor:
public class PerformanceMeasureInterceptorWeb implements Interceptor {
/** Properties. */
private static Logger log = Log.create();
@Override
public Object invoke(Invocation invocation) throws Throwable {
Object ret = null;
if (invocation instanceof MethodInvocation) {
...
try {
log.info("INTERCEPTOR invoke >>>" +pointName);
ret = method.invokeNext();
} finally {
log.info("INTERCEPTOR end <<<" +pointName);
}
}
... }
@Override
public String getName() {
return this.getClass().getSimpleName();
}
}
I use Maven for compile and Build the Application an package it to an EAR-File.
My jbossaop-plugin is configured like:
| | <plugin> |
| | <groupId>org.jboss.maven.plugins</groupId> |
| | <artifactId>maven-jbossaop-plugin</artifactId> |
| | <version>2.1.3.GA</version> |
| | <executions> |
| | <execution> |
| | <id>compile-aop</id> |
| | <phase>compile</phase> |
| | <goals> |
| | <goal>compile</goal> |
| | </goals> |
| | <configuration> |
| | <includeProjectDependency>true</includeProjectDependency> |
| | <aoppaths> |
| | <aoppath>src/main/resources/jboss-aop.xml</aoppath> |
| | </aoppaths> |
| | </configuration> |
| | </execution> |
| | </executions> |
| | </plugin> |
The very first test was succesfully. But after changing the Interceptor or refactoring i always get the attached Exceptions.
I really dont know i all things considered
Great thx for helping
Chris
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/624872#624872]
Start a new discussion in JBoss AOP at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 3 months