<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Re: Integrating TaskService with jbpm-console
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/roxy1987">roxy1987</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/785124#785124">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hi Bpmn2user,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>It has been quite some time since you posted this.</p><p>I tried using the servlet you attached above to get rid of human task service related stuff. It could not connect to the task client. Below is the trace. COuld you please take a look at it and lemme know what I might have done wrong.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><ul><li><span>URL: '</span><a class="jive-link-external-small" href="http://localhost:8080/gwt-console-server/rs/tasks/krisv" target="_blank">http://localhost:8080/gwt-console-server/rs/tasks/krisv</a><span>' </span></li><li>Action: 'org.jboss.bpm.console.client.task.LoadTasksAction' </li><li>Exception: 'class com.google.gwt.http.client.RequestException'</li></ul><p>HTTP 500:</p><h1>HTTP Status 500 - java.lang.IllegalArgumentException: Could not connect task client</h1><p><hr noshade="noshade" size="1"/></p><p><strong>type</strong> Exception report</p><p><strong>message</strong> <span style="text-decoration: underline;">java.lang.IllegalArgumentException: Could not connect task client</span></p><p><strong>description</strong> <span style="text-decoration: underline;">The server encountered an internal error that prevented it from fulfilling this request.</span></p><p><strong>exception</strong> </p><pre>org.jboss.resteasy.spi.UnhandledException: java.lang.IllegalArgumentException: Could not connect task client
&#160;&#160;&#160;&#160;&#160;org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:319)
&#160;&#160;&#160;&#160;&#160;org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:230)
&#160;&#160;&#160;&#160;&#160;org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:206)
&#160;&#160;&#160;&#160;&#160;org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:360)
&#160;&#160;&#160;&#160;&#160;org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)
&#160;&#160;&#160;&#160;&#160;org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)
&#160;&#160;&#160;&#160;&#160;org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)
&#160;&#160;&#160;&#160;&#160;javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
&#160;&#160;&#160;&#160;&#160;org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
</pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>root cause</strong> </p><pre>java.lang.IllegalArgumentException: Could not connect task client
&#160;&#160;&#160;&#160;&#160;org.jbpm.integration.console.TaskManagement.connect(TaskManagement.java:66)
&#160;&#160;&#160;&#160;&#160;org.jbpm.integration.console.TaskManagement.getAssignedTasks(TaskManagement.java:179)
&#160;&#160;&#160;&#160;&#160;org.jboss.bpm.console.server.TaskListFacade.getTasksForIdRef(TaskListFacade.java:99)
&#160;&#160;&#160;&#160;&#160;sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
&#160;&#160;&#160;&#160;&#160;sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
&#160;&#160;&#160;&#160;&#160;sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
&#160;&#160;&#160;&#160;&#160;java.lang.reflect.Method.invoke(Unknown Source)
&#160;&#160;&#160;&#160;&#160;org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117)
&#160;&#160;&#160;&#160;&#160;org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260)
&#160;&#160;&#160;&#160;&#160;org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232)
&#160;&#160;&#160;&#160;&#160;org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166)
&#160;&#160;&#160;&#160;&#160;org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142)
&#160;&#160;&#160;&#160;&#160;org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)
&#160;&#160;&#160;&#160;&#160;org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)
&#160;&#160;&#160;&#160;&#160;org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)
&#160;&#160;&#160;&#160;&#160;org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)
&#160;&#160;&#160;&#160;&#160;javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
&#160;&#160;&#160;&#160;&#160;org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
</pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>note</strong> <span style="text-decoration: underline;">The full stack trace of the root cause is available in the Apache Tomcat/6.0.36 logs.</span></p><div class="mcePaste" id="_mcePaste" style="position: absolute; top: 0px; left: 0px;"></div></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/785124#785124">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>