[jBPM] - Strange Exception
by C. Mourad Jaber
C. Mourad Jaber [http://community.jboss.org/people/newbeewan2] created the discussion
"Strange Exception"
To view the discussion, visit: http://community.jboss.org/message/541755#541755
--------------------------------------------------------------
Hi,
I'm trying to use an assignement handler and I have a strange exception :
2010-05-07 11:07:16,113 [INFO ] org.jbpm.pvm.internal.svc.DefaultCommandService - exception while executing command org.jbpm.pvm.internal.cmd.StartProcessInstanceCmd@48da5bc0
java.lang.NumberFormatException: For input string: "java.vm.version"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Long.parseLong(Long.java:438)
at java.lang.Long.valueOf(Long.java:535)
at org.jbpm.pvm.internal.repository.RepositorySessionImpl.validateRepositoryCache(RepositorySessionImpl.java:208)
at org.jbpm.pvm.internal.repository.RepositorySessionImpl.findProcessDefinitionById(RepositorySessionImpl.java:177)
at org.jbpm.pvm.internal.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:53)
at org.jbpm.pvm.internal.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:37)
at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
at org.jbpm.pvm.internal.tx.SpringCommandCallback.doInTransaction(SpringCommandCallback.java:45)
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130)
at org.jbpm.pvm.internal.tx.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:55)
at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(EnvironmentInterceptor.java:53)
at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:40)
at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55)
at org.jbpm.pvm.internal.svc.ExecutionServiceImpl.startProcessInstanceById(ExecutionServiceImpl.java:50)
It happen when I'm starting a process by Id but it works well when starting process by key.
I'm using jbpm 4.3 with spring.
Regards
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/541755#541755]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 8 months
Re: [jboss-user] [EJB 3.0] - security declarations in ejb-jar.xml ignored?
by Daniel Lechner
Daniel Lechner [http://community.jboss.org/people/daniell] replied to the discussion
"security declarations in ejb-jar.xml ignored?"
To view the discussion, visit: http://community.jboss.org/message/541742#541742
--------------------------------------------------------------
Ok - now I found out some interesting things:
The DAO object I want to protect extends another class.
1. If I add some method name in the ejb-jar.xml file, the access to this method is restricted as expected. No matter if this method is defined in the DAO class itself or inherited from some base class.
2. If I add the @RolesAllowed annotation to the DAO class, the access to every method (implemented and inherited ones) is restricted.
3. If I try to restrict the access by writing a * as method-name in the ejb-jar.xml file, only methods which are declared in the DAO class are taken into consideration. Methods from any base class can be accessed without restritcions!
I thought (and read in many books and articles) that @RolesAllowed on class level has the same meaning than using the * as method-name in the ejb-jar.xml, but obviously it has not. Is there something else I have to configure to get the desired behaviour (I don't want to use the annotations, but exclusively the xml-configuration)?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/541742#541742]
Start a new discussion in EJB 3.0 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 8 months