<!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="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">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;">
    Query task with variables
</h3>
<span style="margin-bottom: 10px;">
    reply from <a href="http://community.jboss.org/people/tvictor">Thomas Victor</a> in <i>jBPM</i> - <a href="http://community.jboss.org/message/543909#543909">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>I tried another query </p><p>entityManager.createQuery("SELECT task.execution.variables from org.jbpm.api.task.Task task where index(task.execution.variables[0])='invoiceId' and task.execution.variables[0].l=23").getResultList()</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Which gives me no results. That is expected because there is no varialbe with value 23</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>But when I changed the value to 16 it is giving me the following error. The value 16 is actually existing in the database. Can anyone help to correct this query?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Thanks</p><p>Thomas</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><div id="_mcePaste">12:15:51,422 WARN&#160; [JDBCExceptionReporter] SQL Error: 245, SQLState: S0001</div><div id="_mcePaste">12:15:51,422 ERROR [JDBCExceptionReporter] Conversion failed when converting the varchar value 'invoiceId' to data type int.</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not execute query</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:614)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:76)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at com.imagitek.prodagioap.workflow.TaskService.getGroupTasks(TaskService.java:72)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at sun.reflect.GeneratedMethodAccessor601.invoke(Unknown Source)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at java.lang.reflect.Method.invoke(Method.java:597)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.jboss.seam.bpm.BusinessProcessInterceptor.aroundInvoke(BusinessProcessInterceptor.java:51)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.jboss.seam.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:97)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.jboss.seam.util.Work.workInTransaction(Work.java:61)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:91)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.jboss.seam.core.SynchronizationInterceptor.aroundInvoke(SynchronizationInterceptor.java:32)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at com.imagitek.prodagioap.workflow.invoice.InvoiceTaskService_$_javassist_seam_13.getGroupTasks(InvoiceTaskService_$_javassist_seam_13.java)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at sun.reflect.GeneratedMethodAccessor600.invoke(Unknown Source)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at java.lang.reflect.Method.invoke(Method.java:597)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at javax.el.BeanELResolver.getValue(BeanELResolver.java:261)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.jboss.el.parser.AstPropertySuffix.getValue(AstPropertySuffix.java:53)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.jboss.el.parser.AstValue.getValue(AstValue.java:67)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.jboss.el.parser.AstEmpty.getValue(AstEmpty.java:29)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:390)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:271)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:258)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:200)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:195)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:120)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at javax.faces.component.UIComponent.encodeAll(UIComponent.java:930)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at javax.faces.render.Renderer.encodeChildren(Renderer.java:148)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at javax.faces.component.UIComponent.encodeAll(UIComponent.java:930)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.jboss.seam.web.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:42)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at java.lang.Thread.run(Thread.java:619)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] Caused by: org.hibernate.exception.SQLGrammarException: could not execute query</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:90)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.hibernate.loader.Loader.doList(Loader.java:2235)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2129)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.hibernate.loader.Loader.list(Loader.java:2124)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:401)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:363)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1149)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:67)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;... 100 more</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: Conversion failed when converting the varchar value 'invoiceId' to data type int.</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(SQLServerException.java:196)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at com.microsoft.sqlserver.jdbc.SQLServerResultSet$FetchBuffer.nextRow(SQLServerResultSet.java:4700)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at com.microsoft.sqlserver.jdbc.SQLServerResultSet.fetchBufferNext(SQLServerResultSet.java:1683)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at com.microsoft.sqlserver.jdbc.SQLServerResultSet.next(SQLServerResultSet.java:956)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.jboss.resource.adapter.jdbc.WrappedResultSet.next(WrappedResultSet.java:1196)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.hibernate.loader.Loader.doQuery(Loader.java:720)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;at org.hibernate.loader.Loader.doList(Loader.java:2232)</div><div id="_mcePaste">12:15:51,422 ERROR [STDERR] &#160;&#160;&#160;&#160;&#160;... 108 more</div></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/543909#543909">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM at <a href="http://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>