[jBPM Users] - Re: jbpm 4.0 creating and running processes without persiste
by thirumalvishnu
For the above scenario I tried following
private JpdlProcessDefinition loadProcessDefinition() throws IOException {
JpdlParser jpdlParser = new JpdlParser();
Parse parse = jpdlParser.createParse();
String fileLocation ="*****.jpdl.xml";
FileInputStream inputStream = new FileInputStream(fileLocation);
parse.setInputStream(inputStream);
parse.execute();
return (JpdlProcessDefinition ) parse.getDocumentObject();
}
and from calling section had this block
ProcessDefinitionImpl processDefinition = loadProcessDefinition();
| ClientProcessInstance ci = processDefinition.createProcessInstance();
| ci.createVariable("arg", publishArgs);
| ci.createVariable("fc", fc);
| ci.start();
But I get the exception ,
org.jbpm.pvm.internal.wire.WireException: couldn't invoke method execute: couldn't create argument 1: null
at org.jbpm.jpdl.internal.activity.JavaActivity.perform(JavaActivity.java:97)
at org.jbpm.jpdl.internal.activity.JpdlAutomaticActivity.execute(JpdlAutomaticActivity.java:14)
at org.jbpm.pvm.internal.model.op.ExecuteActivity.perform(ExecuteActivity.java:60)
at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperationSync(ExecutionImpl.java:625)
at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperation(ExecutionImpl.java:585)
at org.jbpm.pvm.internal.model.ExecutionImpl.start(ExecutionImpl.java:198)
at com.test.flow.FlowController$1.run(FlowController.java:90)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: java.lang.Exception: couldn't create argument 1: null
at org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.getArgs(ObjectDescriptor.java:348)
at org.jbpm.jpdl.internal.activity.JavaActivity.perform(JavaActivity.java:79)
... 7 more
Caused by: java.lang.NullPointerException
at org.jbpm.pvm.internal.script.EnvironmentBindings.getReadContext(EnvironmentBindings.java:61)
at org.jbpm.pvm.internal.script.EnvironmentBindings.containsKey(EnvironmentBindings.java:72)
at javax.script.SimpleScriptContext.getAttribute(SimpleScriptContext.java:143)
at org.jbpm.pvm.internal.script.JuelScriptEngine.toELContext(JuelScriptEngine.java:94)
at org.jbpm.pvm.internal.script.JuelScriptEngine.parse(JuelScriptEngine.java:162)
at org.jbpm.pvm.internal.script.JuelScriptEngine.eval(JuelScriptEngine.java:62)
at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:84)
at org.jbpm.pvm.internal.script.ScriptManager.evaluate(ScriptManager.java:116)
at org.jbpm.pvm.internal.script.ScriptManager.evaluate(ScriptManager.java:108)
at org.jbpm.pvm.internal.script.ScriptManager.evaluateExpression(ScriptManager.java:80)
at org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.construct(ObjectDescriptor.java:180)
at org.jbpm.pvm.internal.wire.WireContext.construct(WireContext.java:473)
at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:452)
at org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.getArgs(ObjectDescriptor.java:343)
... 8 more
Any help on how to resolve this ....
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4252818#4252818
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4252818
15 years, 4 months
[Security] - how to enable shared httpsession between https page to http
by yramarao
Hi I have successfully configured SSL with JBOSS 4.2.0 GA, I can execute entire secure applications successfully, I have configured the application with acegi security framework.
I am getting problem while switching https page to http page during application navigation.
I have enabled the the login page as secure page and am trying to redirect non secure page after successful login, but am getting following error while redirecting https page to http page.
[org.acegisecurity.ui.ExceptionTranslationFilter] Access is denied (user is anonymous); redirecting to authentication entry point
org.acegisecurity.AccessDeniedException: Access is denied
at org.acegisecurity.vote.AffirmativeBased.decide(AffirmativeBased.java:68)
at org.acegisecurity.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:292)
at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:104)
at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.securechannel.ChannelProcessingFilter.doFilter(ChannelProcessingFilter.java:138)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:217)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:284)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149)
at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:595)
exact reason behind the error is
JBoss is not sharing HttpSession information across https page to http page. so application was redirected to login page always.
Here I can't use secure page for main page since I am using JNLP in main page this is not supported in https due to some other error in java 1.5
http://forums.sun.com/thread.jspa?threadID=778340
Could any one have idea the configuration changes for sharing httpsession information between https, http.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4252817#4252817
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4252817
15 years, 4 months