[jboss-user] [jBPM] - jBPM console throws com.google.gwt.http.client.RequestException

Adel Haider do-not-reply at jboss.com
Wed Sep 29 07:24:01 EDT 2010


Adel Haider [http://community.jboss.org/people/delinhos] created the discussion

"jBPM console throws com.google.gwt.http.client.RequestException"

To view the discussion, visit: http://community.jboss.org/message/563948#563948

--------------------------------------------------------------
*=== Environment ==============================*
 - *jBPM Version*: 4.4
 - *Database*: inbuilt hsqldb
 - *JDK*: 1.6
 - *Container*: jBoss
 - *Configuration*: jbpm.cfg.xml only importing files from the jbpm.jar lib itself
 - *Libraries*: using the exact versions of the libs from inside the jbpm distribution

*=== Process ==================================*
<process name="sidns" xmlns=" http://jbpm.org/4.4/jpdl http://jbpm.org/4.4/jpdl">
    <variable init-expr="#{variavel}" name="content" type="string"/>
    
    <!--<assign name='assign1' from-expr='#{variavel}' to-expr='#{content}'>
        <transition name='to start' to='start1'/>
    </assign>-->
    
    <!--<assign name='assign1' to-var='content'>
        <from><string value="java2"/></from>
        <transition name='to start' to='start1'/>
    </assign>-->
    
    <start g="9,75,48,48" name="start1">
        <transition g="-22,-20" name="to decision" to="decision1"/>
    </start>
    
    <end g="406,80,48,48" name="end1"/>
    
    <java class="pt.fccn.sidns.SIDNS" g="234,22,92,52" method="writeToFile" name="java1">
        <arg>
            <string value="file1.txt"/>
        </arg>
        <transition g="-15,-20" name="to end1" to="end1"/>
    </java>
    
    <java class="pt.fccn.sidns.SIDNS" g="237,144,92,52" method="writeToFile" name="java2">
        <arg>
            <string value="file2.txt"/>
        </arg>
      <transition g="-83,14" name="to send rectify note" to="send rectify note"/>
    </java>
    
   <decision g="109,77,48,48" name="decision1">
      <transition g="-46,-20" name="to java1" to="java1">
          <condition expr="#{content==&quot;java1&quot;}"/>
         </transition>
      <transition g="-38,3" name="to java2" to="java2">
          <condition expr="#{content==&quot;java2&quot;}"/>
      </transition>
   </decision>
   
   <mail g="379,171,115,45" name="send rectify note">
    <to addresses=" mailto:name at domain.com name at domain.com"/>
    <!--<cc groups="innerparty" users="bb"/>-->
    <!--<bcc groups="thinkpol"/>-->
    <subject>assunto</subject>
    <text>body</text>
    <!--
    <html><table><tr><td>${newspaper}</td><td>${date}</td>
      <td>reporting bb dayorder doubleplusungood
      refs unpersons rewrite fullwise upsub antefiling</td>
      </tr></table></html>
    <attachments>
      <attachment url=' http://www.george-orwell.org/1984/3.html http://www.george-orwell.org/1984/3.html' />
      <attachment resource='org/example/pic.jpg' />
      <attachment file='${user.home}/.face' />
    </attachments>
    -->
    <transition g="-45,-20" name="to end1" to="end1"/><!--language="juel"-->
  </mail>
</process>

*=== API ===================================*
Invoking through jBPM console.

*=== Stacktrace ==============================*
2010-09-28 16:37:10,479 [DEBUG] POST:  http://localhost:8080/gwt-console-server/rs/process/definition/sidns-1/new_instance http://localhost:8080/gwt-console-server/rs/process/definition/sidns-1/new_instance
2010-09-28 16:37:10,539 [ERROR] <ul><li>URL: ' http://localhost:8080/gwt-console-server/rs/process/definition/sidns-1/new_instance http://localhost:8080/gwt-console-server/rs/process/definition/sidns-1/new_instance'
<li>Action: 'org.jboss.bpm.console.client.process.StartNewInstanceAction'
<li>Exception: 'class com.google.gwt.http.client.RequestException'</ul>

HTTP 500: Unknown error
com.google.gwt.http.client.RequestException:
HTTP 500: Unknown error
    at Unknown.zP(Unknown source:0)
    at Unknown.szc(Unknown source:0)
    at Unknown.KO(Unknown source:0)
    at Unknown.pP(Unknown source:0)
    at Unknown.anonymous(Unknown source:0)
    at Unknown.HA(Unknown source:0)
    at Unknown.anonymous(Unknown source:0)
    at Unknown.anonymous(Unknown source:0)

*=== Debug logs ==============================*
16:37:10,486 INFO  [DefaultCommandService] exception while executing command org.jbpm.pvm.internal.cmd.StartProcessInstanceCmd at 167c24a
javax.el.PropertyNotFoundException: Cannot resolve identifier 'variavel'
    at de.odysseus.el.tree.impl.ast.AstIdentifier.eval(AstIdentifier.java:86)
    at de.odysseus.el.tree.impl.ast.AstEval.eval(AstEval.java:51)
    at de.odysseus.el.tree.impl.ast.AstNode.getValue(AstNode.java:28)
    at de.odysseus.el.TreeValueExpression.getValue(TreeValueExpression.java:122)
    at org.jbpm.pvm.internal.el.UelValueExpression.evaluateInScope(UelValueExpression.java:52)
    at org.jbpm.pvm.internal.model.VariableDefinitionImpl.getInitValue(VariableDefinitionImpl.java:55)
    at org.jbpm.pvm.internal.model.ScopeInstanceImpl.initializeVariables(ScopeInstanceImpl.java:84)
    at org.jbpm.pvm.internal.model.ExecutionImpl.initializeScopes(ExecutionImpl.java:237)
    at org.jbpm.pvm.internal.model.ExecutionImpl.start(ExecutionImpl.java:213)
    at org.jbpm.pvm.internal.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:60)
    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.JtaTransactionInterceptor.executeInNewTx(JtaTransactionInterceptor.java:83)
    at org.jbpm.pvm.internal.tx.JtaTransactionInterceptor.execute(JtaTransactionInterceptor.java:62)
    at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:56)
    at org.jbpm.pvm.internal.tx.JtaRetryInterceptor.executeWithRetry(JtaRetryInterceptor.java:52)
    at org.jbpm.pvm.internal.tx.JtaRetryInterceptor.execute(JtaRetryInterceptor.java:45)
    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.SkipInterceptor.execute(SkipInterceptor.java:43)
    at org.jbpm.pvm.internal.svc.ExecutionServiceImpl.startProcessInstanceById(ExecutionServiceImpl.java:51)
    at org.jbpm.integration.console.ProcessManagementImpl.newInstance(ProcessManagementImpl.java:139)
    at org.jboss.bpm.console.server.ProcessMgmtFacade.newInstance(ProcessMgmtFacade.java:204)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    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:717)
    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:525)
    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:829)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    at java.lang.Thread.run(Unknown Source)
16:37:10,491 ERROR [SynchronousDispatcher] failed to execute

*=== Problem description =========================*
When invoking any process from the jBPM console, if the process itself throws an exception at runtime (Debug logs), the console displays a window with the *Stacktrace* showed above (printscreen attached). This occurs regardless of the error that occurred within the process and the process being invoked.

NB: The problem I'm trying to report is *NOT* the exception described in the Debug log, it's the exception thrown in the console due to the error in the process.

I have been through the jBPM wiki, user forums, etc. but nothing addresses this issue concretely. What is the cause of this exception and how do I fix it?

Kind Regards,
Adel Haider
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/563948#563948]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100929/c0604a56/attachment-0001.html 


More information about the jboss-user mailing list