[jboss-user] [JBoss jBPM] - Re: ProcessClassloader question
Sarish, there seems to be something wrong here. Can you please create a JIRA issue? If you could give your code the shape of a unit test (that did not require EJBs) that would be great. In particular, the ProcessClassLoader follows the delegation model, meaning that long.class should be resolved by the parent loader and never passed to the ProcessClassLoader. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4243074#4243074 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4243074 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: ProcessClassloader question
hi all, was this issue resolved? if so please identify the solution as i also am having some issue. thanks -lp View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241050#4241050 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241050 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: ProcessClassloader question
Sarish, You might be right in your conclusion. Can you check if the small fix you propose in the jBPM FildeDefinition.java fixes it for you? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231772#4231772 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231772 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: ProcessClassloader question
Have put entire stack trace here? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231768#4231768 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231768 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: ProcessClassloader question
Hi all, Appreciate your help till now, Does the code i pasted above help in explaining the problem clearly!!. I think FileDefinition.java needs a fix(prevent nullpointer and return null), so that ProcessClassLoader can throw a ClassNotfoundException. Please comment!! Sarish View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231701#4231701 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231701 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: ProcessClassloader question
Thanks for your responses. See details below, apologies for delayed response as it took some time to simplify the code. Note: 1. The handler classes are not packaged in the par file. 2. Process is running on jboss 5.0.1. 3. If i switch the method parameter from "long" to "Long", there is no exception. The exception comes only for Native type. I can not take this workaround, as EJB is external and can not be modified by me. Simplified code below Process definition | | | | | | | | | | | | | | | | | | | | Action Handler | | /** | * @author s | * | */ | public class MyHandler implements | ActionHandler { | private static final long serialVersionUID = 1L; | | public void execute(ExecutionContext context) throws Exception { | try { | InitialContext ctx = new InitialContext(); | RBACServiceI object = (RBACServiceI) ctx.lookup("ps2/RBACService/local"); | | RBACServiceI service = (RBACServiceI) object; | service.getRolesBySystemId(263L); | } catch (Exception e) { | // TODO Auto-generated catch block | e.printStackTrace(); | } | } | | } | EJB being invoked | @Local | public interface RBACServiceI { | | /** | * THis method fetches roles by system id. | * @param systemid The system id | * @return List of roles | */ | public List getRolesBySystemId(long systemid); | | | | } | | | @Stateless | public class RBACService implements RBACServiceI { | | private RBACDLService service = null; | | public List getRolesBySystemId(long systemid){ | return service.getRoleBySystemId(systemid); | } | | | | | } | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231166#4231166 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231166 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: ProcessClassloader question
and what appserver View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231024#4231024 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231024 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: ProcessClassloader question
I guess the action handler class is referring classes which are not present in classpath. but surprised to see that searching for classes/long.class file... can you please put your action handler class code? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4230977#4230977 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4230977 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: ProcessClassloader question
long is not a class but a primitive datatype. So therefore I was surprised to see that. Because of the very limited amount of information you gave, I thought you were using 'long' as an actionhandler or somthing. That would be really weird, but that is what the stacktrace suggests. And even now you give way to little info. The getRolesBySystemId is not a method in jBPM 3 (at least my search dit not return anything) So it is hard for us to help View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4230683#4230683 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4230683 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: ProcessClassloader question
Hi, thanks for your response.. I did not understand, was that a question for me? or surprised at the stacktrace? This was the method i was trying to invoke. public List getRoleBySystemId(long systemid); View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4230672#4230672 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4230672 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: ProcessClassloader question
"long" as a class??? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4230662#4230662 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4230662 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user