[JBoss jBPM] - java.lang.ClassCastException
by Wash
Hi there,
>From a simple Process deployment, we are encountering several problem with a class. Following the code and the config file below.
<?xml version="1.0" encoding="UTF-8"?>
|
| <process-definition
| xmlns="" name="MyApp">
|
| <swimlane name="swimlane1">
| <assignment class="mypackage.MyActionHandler"></assignment>
| </swimlane>
|
|
| <start-state name="start-state1">
| <transition to="task-node1"></transition>
| </start-state>
|
| <task-node name="task-node1">
| <task name="javaCall" signalling="false" priority="highest">
| <action class="mypackages.MyActionHandler"></action>
| <assignment></assignment>
| <controller class="mypackage.MyActionHandler">
| null
| </controller>
| </task>
| <transition to="end-state1"></transition>
| </task-node>
|
| <end-state name="end-state1"></end-state>
|
| </process-definition>
| package mypackage.process;
|
| import org.jbpm.graph.def.ActionHandler;
| import org.jbpm.graph.exe.ExecutionContext;
|
| public class MyActionHandler implements ActionHandler {
|
| private static final long serialVersionUID = 1L;
|
| String swimlaneName;
|
| public void execute(ExecutionContext executionContext) {
| System.out.println("ErnieErnieErnieErnieErnieErnieErnieErnieErnie(a)jboss.com");
| }
|
| }
|
| <May 21, 2007 6:39:15 PM CEST> <Notice> <Stdout> <000000> <ERROR [[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'] (ProcessBean.java:161) - Failed to start process: mypackage.MyActionHandler
| java.lang.ClassCastException: mypackage.MyActionHandler
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047315#4047315
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047315
18 years, 11 months
[JBoss Seam] - problem with session timeout and ajax calls
by henrik.lindberg
Hi,
I have problems when a session time out has occurred and the user has been staring at the same form for some time, and then invokes an ajax function on the page. When using links/functions that are normal seam links the user is prompted to login again (as these pages requires login) and the user is then taken back to the page they were on....
But, with the ajax call however - there seems to be some missing checks - instead of being redirected, there are exceptions that required things can not be injected - like the entity manager...
| Caused by: org.jboss.seam.RequiredException: In attribute requires non-null value: searchService.entityManager
| at org.jboss.seam.Component.getValueToInject(Component.java:1919)
| at org.jboss.seam.Component.injectAttributes(Component.java:1368)
| at org.jboss.seam.Component.inject(Component.java:1195)
| at org.jboss.seam.interceptors.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
| at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
| at org.jboss.seam.interceptors.SecurityInterceptor.aroundInvoke(SecurityInterceptor.java:37)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
| at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
| at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:151)
| at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:87)
| at com.cloudsmith.cssite.app.SearchService_$$_javassist_87.getSearchPattern(SearchService_$$_javassist_87.java)
|
Anything I can do about it? What should I check?
Any hints appreciated.
Can I somehow specify that ajax calls must check that the user is logged in (that a session exists)?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047313#4047313
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047313
18 years, 11 months
[JBoss Seam] - Re: Test EJB3/Seam from eclipse
by jfrankman
I am having one more issue. Any ideas or explanations are appreciated. I can now get the entitymanager from inside eclipse. I can call the EntityManager's persist and find methods directly in my test case but I cannot successfully call my service and DAO layer classes. I am trying to test a service layer class, but since I am injecting the dao into the service (see code snippet below), when I run the test from Eclipse the DAO used by the service class is null. I would have thought that the embedded container would have injected this in for me.
My ecllipse project was created by seam-gen and I do have a source folder: "embedded-ejb/conf" in my project. I have not modified any of the config files. Is there anything else I need to do to get the embedded container to work inside eclipse such as modifying the embedded container config files or adding any jars to the classpath? If not, am I barking up the wrong tree? Is it possible to test the service and dao layers using the embedded container?
@Stateless
| @Name("clientService")
| public class ClientServiceImpl implements ClientService
| {
| @In(create=true) private ClientDAO clientDao;
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047304#4047304
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047304
18 years, 11 months