<!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;">
    JBPM Console Server (5.2)/Hibernate/JBoss AS 7.1.1 Error
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/tcharman">Timothy Charman</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/728888#728888">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</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I get this when trying to click on a process in the JBPM console.&#160; It is obviously trying to connect to the console server database for the first time, and failing.&#160; It has retrieved the process from Guvnor successfully (apparently).&#160; Anyone have any ideas?&#160; It looks like it might have found Hibernate 4 but is coded against Hibernate 3?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Thanks</p><p><br/>Tim</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span>URL: '</span><a class="jive-link-external-small" href="http://xxx.xxx.xxx.xxx:8080/gwt-console-server/rs/process/definition/timid/instances" target="_blank">http://xxx.xxx.xxx.xxx:8080/gwt-console-server/rs/process/definition/timid/instances</a><span>'</span></p><p>Action: 'org.jboss.bpm.console.client.process.UpdateInstancesAction'</p><p>Exception: 'class com.google.gwt.http.client.RequestException'</p><p>HTTP 500:</p><p>HTTP Status 500 -</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>type Exception report</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>message</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>description The server encountered an internal error () that prevented it from fulfilling this request.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>exception</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>org.jboss.resteasy.spi.UnhandledException: java.lang.NoSuchMethodError: org.hibernate.SessionFactory.getCurrentSession()Lorg/hibernate/classic/Session;</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:340)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:214)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:190)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:540)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:502)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;javax.servlet.http.HttpServlet.service(HttpServlet.java:847)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)</p><p>root cause</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>java.lang.NoSuchMethodError: org.hibernate.SessionFactory.getCurrentSession()Lorg/hibernate/classic/Session;</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;org.jbpm.process.audit.ProcessInstanceDbLog.findActiveProcessInstances(ProcessInstanceDbLog.java:46)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;org.jbpm.integration.console.CommandDelegate.getActiveProcessInstanceLogsByProcessId(CommandDelegate.java:300)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;org.jbpm.integration.console.ProcessManagement.getProcessInstances(ProcessManagement.java:66)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;org.jboss.bpm.console.server.ProcessMgmtFacade.getInstancesJSON(ProcessMgmtFacade.java:189)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;java.lang.reflect.Method.invoke(Method.java:616)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:155)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:257)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:222)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:211)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:525)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:502)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;javax.servlet.http.HttpServlet.service(HttpServlet.java:847)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)</p><p>note The full stack trace of the root cause is available in the JBoss Web/7.0.13.Final logs.</p></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/728888#728888">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>