[jBPM] - error on serialization object
by r ana
r ana [http://community.jboss.org/people/amy3k] created the discussion
"error on serialization object"
To view the discussion, visit: http://community.jboss.org/message/540711#540711
--------------------------------------------------------------
hello,
i new to jbpm and i have a little (but for me is big and urgent problem)
i have 2 web service - one is for "core"(WScomponents) and the second one is for creating a JBPM workflow(WSprincipal) that manage an application
in WS principal i appeal one method from WScomponents that return a list of a custom object named "folder" (=> List<folder>), this list i've tried to put this in a jbpm variable like this:
<java g="270,290,92,52" method="getAllFolders" name="getAllFolders" *var="folders"*>
<arg><object expr="#{pathID}"/></arg>
<arg><object expr="#{username}"/></arg>
<transition g="-62,-35" name="to preluareVar" to="preluareVar"/>
</java>
but in the method getAllFolders i've get an error like this:
*org.jbpm.pvm.internal.wire.WireException: couldn't invoke method getAllFolders: couldn't serialize '[wscomponents.Folder@129e910]'*
at org.jbpm.jpdl.internal.activity.JavaActivity.perform(JavaActivity.java:97)
at org.jbpm.jpdl.internal.activity.JpdlAutomaticActivity.execute(JpdlAutomaticActivity.java:15)
at org.jbpm.pvm.internal.model.op.ExecuteActivity.perform(ExecuteActivity.java:60)
at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperationSync(ExecutionImpl.java:637)
at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperation(ExecutionImpl.java:597)
at org.jbpm.pvm.internal.model.ExecutionImpl.start(ExecutionImpl.java:201)
at org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd.execute(StartProcessInstanceInLatestCmd.java:65)
at org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd.execute(StartProcessInstanceInLatestCmd.java:38)
at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
at org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:54)
at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:46)
at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55)
at org.jbpm.pvm.internal.svc.ExecutionServiceImpl.startProcessInstanceByKey(ExecutionServiceImpl.java:78)
at workflow.PrincipalProcess.start(PrincipalProcess.java:57)
at workflow.principalWS.launch(principalWS.java:22) .....and more
any help/suggestion is appreciated!!
10x,
a.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/540711#540711]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 5 months
Re: [jboss-user] [EJB 3.0] - NPE in StateslessContainer at line 396
by Nagin Kothari
Nagin Kothari [http://community.jboss.org/people/nagin.kothari] replied to the discussion
"NPE in StateslessContainer at line 396"
To view the discussion, visit: http://community.jboss.org/message/540699#540699
--------------------------------------------------------------
authentiacteUser is mtheod of Statless Session bean UserService.
here is excerpt from my code
@Remote
**public
**
*
*interface* UserService{
User authenticateUser ()
*throws* ApplicationException;
}
@Stateless
**public
**
*
*class* UserServiceBean *implements* UserService {
**public
**
** User authenticateUser() *throws* ApplicationException {
System.
+out+.println(" in UserServiceBean: authenticateUser");
}
I am calling this method from servlet client as follows :
UserService service = (UserService) BeanLocator.+getBean+(
"UserServiceBean/remote");
getBean method in Beanlocater class looks into JNDI and provides the proxy for stateless bean UserServiceBean.
This code works fine in jboss 4.3.2, but not in jbosss 6.0M2
looking into source code of StatlessContainer at line 396
MethodInfo info = advisor.getMethodInfo(methodHash);
Method unadvisedMethod = info.getMethod();
looks loke info is null, but why? I am not able to understand.
*
*
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/540699#540699]
Start a new discussion in EJB 3.0 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 5 months