[JBoss jBPM] - Problem with 2
by djcye
Hi,
i tried to include two Forms with a decision over transations. the first works fine, but when the second one is reached and someone claims the task> and tries to view it an unexpected exception is raised. i also tried to rename "outcome" to "outcome2" in task1.ftl but that didnt help..
Process:
| <?xml version="1.0" encoding="UTF-8"?>
|
| <process name="mailprocess" xmlns="http://jbpm.org/4.0/jpdl">
| <start g="220,16,48,48" name="start">
| <transition to="verify_request"/>
| </start>
| <task candidate-users="peter,mary" form="email/verify_request.ftl" g="181,96,126,52" name="verify_request">
| <transition g="-44,-17" name="reject" to="task1"/>
| <transition name="accept" to="vacation_accepted" g="-2,-42"/>
| </task>
| <task candidate-users="peter,mary" form="email/task1.ftl" g="155,187,92,52" name="task1">
| <transition name="ja" to="vacation_rejected" g="-40,-13"/>
| <transition name="nein" to="end1" g="-42,-18"/>
| </task>
| <end g="125,307,48,48" name="vacation_rejected"/>
| <end g="343,252,48,48" name="vacation_accepted"/>
| <end name="end1" g="240,303,48,48"/>
| </process>
form task1.ftl and verify_request.ftl are identical:
| <html>
| <body>
| <form action="${form.action}" method="POST" enctype="multipart/form-data">
|
| <#list outcome.values as transition>
| <input type="submit" name="outcome" value="${transition}">
| </#list>
|
| </form>
| </body>
| </html>
Exception:
Expression outcome is undefined on line 7, column 8 in email/task1.ftl.
| The problematic instruction:
| ----------
| ==> list outcome.values as transition [on line 7, column 1 in email/task1.ftl]
| ----------
|
| Java backtrace for programmers:
| ----------
| freemarker.core.InvalidReferenceException: Expression outcome2 is undefined on line 7, column 8 in email/task1.ftl.
| at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
| at freemarker.core.TemplateObject.invalidTypeException(TemplateObject.java:134)
| at freemarker.core.Dot._getAsTemplateModel(Dot.java:78)
| at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
| at freemarker.core.IteratorBlock.accept(IteratorBlock.java:94)
| at freemarker.core.Environment.visit(Environment.java:209)
| at freemarker.core.MixedContent.accept(MixedContent.java:92)
| at freemarker.core.Environment.visit(Environment.java:209)
| at freemarker.core.Environment.process(Environment.java:189)
| at freemarker.template.Template.process(Template.java:237)
| at org.jbpm.integration.console.forms.AbstractFormDispatcher.processTemplate(AbstractFormDispatcher.java:116)
| at org.jbpm.integration.console.forms.TaskFormDispatcher.provideForm(TaskFormDispatcher.java:161)
| at org.jbpm.integration.console.forms.FormDispatcherComposite.provideForm(FormDispatcherComposite.java:65)
| at sun.reflect.GeneratedMethodAccessor323.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.bpm.console.server.util.InvocationProxy.invoke(InvocationProxy.java:64)
| at $Proxy205.provideForm(Unknown Source)
| at org.jboss.bpm.console.server.FormProcessingFacade.provideForm(FormProcessingFacade.java:181)
| at org.jboss.bpm.console.server.FormProcessingFacade.renderTaskUI(FormProcessingFacade.java:120)
| at sun.reflect.GeneratedMethodAccessor325.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117)
| at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260)
| at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232)
| at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166)
| at org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142)
| at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)
| at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)
| at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)
| at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
| 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:235)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
| at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
| at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
| at java.lang.Thread.run(Thread.java:595)
| 2009-08-01 13:39:01,890 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/gwt-console-server].[Resteasy]] (http-127.0.0.1-8080-1) Servlet.service() for servlet Resteasy threw exception
| org.jboss.resteasy.spi.UnhandledException: java.lang.RuntimeException: Unexpected invocation exception: null
| at org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:319)
| at org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:230)
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247393#4247393
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247393
15 years, 7 months
[Microcontainer] - Re: Info required about jboss-classloading.xml
by jaikiran
As Ales mentions, although its recommended to use jboss-classloading.xml in AS5, using jboss-app.xml should perfectly work fine too.
anonymous wrote :
| I've been working on migration from jboss as4 to jboss as5 and hit the as5 specific classloading problem with my ejb's where the third party jars referenced by ejbs are not loaded because they are also found in the server's top level lib directory and the server is loading those (example trove.jar) rather than ones that are part of the application.
Where exactly are those jars placed? You can place such thirdparty jars in EAR/lib folder and use the jboss-app.xml to isolate/scope the classloaders (as you did in AS-4.x).
anonymous wrote : I know we had some issues, dunno how much Jaikiran tested it.
>From what i tested, the jboss-app.xml works perfect. It's only the usage of jboss-web.xml for classloading configuration which seems to be running into issues (for some users) and which i need to test a bit more to come to a conclusion :)
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247387#4247387
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247387
15 years, 7 months