[jBPM] New message: "Re: JBPM4.3 should be JBPM5.0"
by Sebastian Schneider
User development,
A new message was posted in the thread "JBPM4.3 should be JBPM5.0":
http://community.jboss.org/message/523387#523387
Author : Sebastian Schneider
Profile : http://community.jboss.org/people/sebastian.s
Message:
--------------------------------------------------------------
I'd love to see more priority on some of the jPDL issues Ronald mentioned because it will still take some time to have a stable BPMN2 implementation. I was under the impression from previous discussions that especially the history issues should have a bigger priority in upcoming releases. Infact I thought this would be the case for 4.3 already but there a not even part of the planning for 4.4. Maybe they could be taken into account stronger for 4.5? The further BPMN2 implementation could also benefit from these afterwards IMHO.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/523387#523387
14 years, 11 months
[JBoss AOP] New message: "Re: Tried everything to get Interceptor working, what am I missing?"
by Nick Dodd
User development,
A new message was posted in the thread "Tried everything to get Interceptor working, what am I missing?":
http://community.jboss.org/message/523365#523365
Author : Nick Dodd
Profile : http://community.jboss.org/people/baronDodd
Message:
--------------------------------------------------------------
I have looked at the injboss example. It uses annotations which I had already given up on after several hours without any luck.
The link to the documentation is for loadtime instrumentation while I am attempting pre-compiled intstumentation. Anyhow the XML in the sample is identical to what I already had, it is the same as what is shipping with JBoss. But am I required to turn on EnableLoadtimeWeaving and edit the include / exclude elements? I tried this and I got several NullPointers and stack traces.
In chapter 8 it says to:
1. Delete jboss-aop.deployer file or directory from the existing JBoss Application Server distribution under server/<config-name>/deploy
2. From the JBoss AOP distribution, from the jboss-40-install directory copy jboss-aop.deployer/ or jboss-aop-jdk50.deployer to the JBoss Application Server distribution under server/<config-name>/deploy depending on which JDK you are running with.
I have tried this and again no difference. I had to download the same version of aop shipped with jboss 4.3.0 anyhow as otherwise there are many classes missing.
The documentation is very confusing, there are 3 ways of implementing aspects (POJO with xml, annotations or a mixture), there are 3 ways of implementing instrumentation (pre-compile, loadtime, dynamic) and different instructions on how to build/install/deploy/command line options for aop depending on which combinations of the above you used and whether you are running jboss 4/5. Arrrrrggghh!
1) If I am using annotations e.g @InterceptorDef do I still need an *-aop.xml file at all?
2) When I use the aopc ant task, obviously the aspect/interceptor classes need to be on the classpath, but do the target classes which I am intercepting also need to be on the classpath?
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/523365#523365
14 years, 11 months
[JBoss Microcontainer Development] New message: "Re: JBREFLECT - Exception processing non-public annotation"
by Ales Justin
User development,
A new message was posted in the thread "JBREFLECT - Exception processing non-public annotation":
http://community.jboss.org/message/523364#523364
Author : Ales Justin
Profile : http://community.jboss.org/people/alesj
Message:
--------------------------------------------------------------
I added this patch.
Index: src/main/java/org/jboss/reflect/plugins/introspection/ReflectMethodInfoImpl.java
===================================================================
--- src/main/java/org/jboss/reflect/plugins/introspection/ReflectMethodInfoImpl.java (revision 94787)
+++ src/main/java/org/jboss/reflect/plugins/introspection/ReflectMethodInfoImpl.java Mon Feb 01 15:03:48 CET 2010
@@ -101,12 +101,17 @@
*/
public void setMethod(Method method)
{
+ boolean isDeclaringClassPublic = true;
if (method != null)
+ {
accessCheck(Modifier.isPublic(method.getModifiers()));
+ isDeclaringClassPublic = isDeclaringClassPublic(method);
+ accessCheck(isDeclaringClassPublic);
+ }
this.method = method;
- if (isPublic() == false && method != null)
+ if (method != null && (isPublic() == false || isDeclaringClassPublic == false))
setAccessible();
}
@@ -120,13 +125,25 @@
accessCheck();
return method;
}
-
+
/**
+ * Is declaring class public.
+ *
+ * @param method the method
+ * @return if declaring class is public return true, else false
+ */
+ protected static boolean isDeclaringClassPublic(Method method)
+ {
+ Class<?> owner = method.getDeclaringClass();
+ return Modifier.isPublic(owner.getModifiers());
+ }
+
+ /**
* Check access permission.
*/
protected final void accessCheck() // final because we don't want subclasses to disable it
{
- accessCheck(isPublic());
+ accessCheck(isPublic() && (method == null || isDeclaringClassPublic(method)));
}
/**
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/523364#523364
14 years, 11 months
[jBPM] New message: "Java Activity array args...how to?"
by ciccio ciccio
User development,
A new message was posted in the thread "Java Activity array args...how to?":
http://community.jboss.org/message/523358#523358
Author : ciccio ciccio
Profile : http://community.jboss.org/people/ciccioVega
Message:
--------------------------------------------------------------
Hi, im new of forum and of JBPM, i've tried to create a HelloWorld process but i had a problem: how to pass string array to java activity method??
my process is:
<?xml version="1.0" encoding="UTF-8"?>
<process name="helloworld" xmlns="http://jbpm.org/4.3/jpdl">
<start g="13,156,48,48" name="start1">
<transition g="-55,-18" name="to request" to="request"/>
</start>
<java class="org.jbpm.helloworld.Println" continue="sync" g="163,114,75,52" method="request" name="request">
<arg>
...... (i'm missing here!!)
</arg>
<transition g="-42,-18" name="to end1" to="end1"/>
</java>
<end g="387,182,48,48" name="end1"/>
</process>
and my method is:
public void request(String[] var) {
try {
System.out.println("INIZIO");
Example example = new Example(var);
System.out.println("FINITO");
} catch (Exception e) {
System.out.println("EXCEPTION: "+e.getClass().getName());
e.printStackTrace();
}
Thanks for help.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/523358#523358
14 years, 11 months