[jBPM] - Help wanted debugging jbpm 3.3
by oxbow_lakes
oxbow_lakes [http://community.jboss.org/people/oxbow_lakes] created the discussion
"Help wanted debugging jbpm 3.3"
To view the discussion, visit: http://community.jboss.org/message/627946#627946
--------------------------------------------------------------
I find myself supporting an application which I didn't write and which makes heavy use of JBPM 3.3. Occasionally it starts spewing exceptions non-stop
java.lang.NullPointerException
at org.jbpm.graph.def.GraphElement.getRuntimeActionsForEvent(GraphElement.java:310)
at org.jbpm.graph.def.GraphElement.fireAndPropagateEvent(GraphElement.java:217)
at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:157)
at org.jbpm.taskmgmt.def.Task$$EnhancerByCGLIB$$8cd382f6.fireAndPropagateEvent(<generated>)
at org.jbpm.job.Timer.execute(Timer.java:51)
at sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:157)
at org.jbpm.job.Job$$EnhancerByCGLIB$$7ab55e8c.execute(<generated>)
at be.jorambarrez.jbpm3_spring_integration.FixExceptionLengthJobExecutorThread.executeJob(FixExceptionLengthJobExecutorThread.java:164)
at be.jorambarrez.jbpm3_spring_integration.SpringJobExecutorThread.access$101(SpringJobExecutorThread.java:24)
at be.jorambarrez.jbpm3_spring_integration.SpringJobExecutorThread$2.doInTransactionWithoutResult(SpringJobExecutorThread.java:64)
at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33)
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128)
at be.jorambarrez.jbpm3_spring_integration.SpringJobExecutorThread.executeJob(SpringJobExecutorThread.java:59)
I have no source code for the GraphElement, don't know where to find it and there is not a single class in there from my application. I don't know where to start trying to get to the bottom of this. Any help greatly appreciated - is this a bug in JBPM? Was it fixed in a different version? Can anyone point me to a workaround?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/627946#627946]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 6 months
[jBPM] - Re: Event Based Gateway Split - xml parsing error
by Tihomir Surdilovic
Tihomir Surdilovic [http://community.jboss.org/people/tsurdilovic] created the discussion
"Re: Event Based Gateway Split - xml parsing error"
To view the discussion, visit: http://community.jboss.org/message/627900#627900
--------------------------------------------------------------
Yes, this is an issue because the OMG Semantic.xsd defines a specific sequence for the process element
<xsd:complexType name="tProcess">
<xsd:complexContent>
<xsd:extension base="tCallableElement">
<xsd:sequence>
<xsd:element ref="auditing" minOccurs="0" maxOccurs="1"/>
<xsd:element ref="monitoring" minOccurs="0" maxOccurs="1"/>
<xsd:element ref="property" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element ref="laneSet" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element ref="flowElement" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element ref="artifact" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element ref="resourceRole" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element ref="correlationSubscription" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="supports" type="xsd:QName" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="processType" type="tProcessType" default="None"/>
<xsd:attribute name="isClosed" type="xsd:boolean" default="false"/>
<xsd:attribute name="isExecutable" type="xsd:boolean"/>
<xsd:attribute name="definitionalCollaborationRef" type="xsd:QName" use="optional"/>
</xsd:extension>
</xsd:complexContent>
eclipse.bpmn2 on the other hand cannot follow this sequence as defined. Bypassing Semantic.xsd fixes the issue :)
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/627900#627900]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 6 months
[Javassist] - Class loader issue in javassist
by Arash Bijanzadeh
Arash Bijanzadeh [http://community.jboss.org/people/armita] created the discussion
"Class loader issue in javassist"
To view the discussion, visit: http://community.jboss.org/message/619450#619450
--------------------------------------------------------------
I am trying to get a hold on javassist for one of our companies projects. I wrote this simple class for testing
public class Main {
public void test(){
ClassPool cp = ClassPool.getDefault();
CtClass entity = cp.makeClass("Entity");
try {
entity.addField(CtField.make(" public Integer id;",entity));
entity.addField(CtField.make(" public String name;", entity));
entity.addMethod(CtNewMethod.make("public void say() { System.out.println(12222);}",entity));
Class EntityClass = entity.toClass();
entity.writeFile("/tmp");
Object e= EntityClass.newInstance();
Field name = EntityClass.getField("name");
name.set("Ooldooz", e);
System.out.println(name.get(e));
} catch (CannotCompileException e) {
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
} catch (InstantiationException e) {
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
} catch (IllegalAccessException e) {
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
} catch (NoSuchFieldException e) {
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
} catch (IOException e) {
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
}
}
public static void main(String[] args){
Main main = new Main();
main.test();
}
}
Trying to run, I get this error:
>
> Exception in thread "main" java.lang.IllegalArgumentException: Can not set java.lang.String field Entity.name to java.lang.String
> at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:146)
> at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:150)
> at sun.reflect.UnsafeFieldAccessorImpl.ensureObj(UnsafeFieldAccessorImpl.java:37)
> at sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:57)
> at java.lang.reflect.Field.set(Field.java:657)
> at Main.test(Main.java:26)
>
Can anybody help me out please?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/619450#619450]
Start a new discussion in Javassist at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 6 months