gavin wrote:
This is an incredibly wierd one....
can I see the Hibernate debug log, including the net.sf.hibernate.type category .... TIA
Here is the relevant piece of debug log:
DEBUG HttpProcessor[8080][4] net.sf.hibernate.impl.SessionImpl - find: FROM net.bookingasp.workflow.WorkflowProject workflow_project, net.bookingasp.workflow.WorkflowUserPool workflow_user_pool WHERE workflow_user_pool.project = workflow_project
DEBUG HttpProcessor[8080][4] net.sf.hibernate.impl.SessionImpl - parameters: 1
DEBUG HttpProcessor[8080][4] net.sf.hibernate.hql.QueryTranslator - compiling query
DEBUG HttpProcessor[8080][4] net.sf.hibernate.impl.SessionImpl - flushing session
DEBUG HttpProcessor[8080][4] net.sf.hibernate.impl.SessionImpl - Flushing entities and processing referenced collections
DEBUG HttpProcessor[8080][4] net.sf.hibernate.impl.SessionImpl - Processing unreferenced collections
DEBUG HttpProcessor[8080][4] net.sf.hibernate.impl.SessionImpl - Scheduling collection removes/(re)creates/updates
DEBUG HttpProcessor[8080][4] net.sf.hibernate.impl.SessionImpl - Flushed: 0 insertions, 0 updates, 0 deletions to 1 objects
DEBUG HttpProcessor[8080][4] net.sf.hibernate.impl.SessionImpl - Flushed: 0 (re)creations, 0 updates, 0 removals to 0 collections
DEBUG HttpProcessor[8080][4] net.sf.hibernate.impl.SessionImpl - Dont need to execute flush
DEBUG HttpProcessor[8080][4] net.sf.hibernate.hql.QueryTranslator - HQL: FROM net.bookingasp.workflow.WorkflowProject workflow_project, net.bookingasp.workflow.WorkflowUserPool workflow_user_pool WHERE workflow_user_pool.project = workflow_project
DEBUG HttpProcessor[8080][4] net.sf.hibernate.hql.QueryTranslator - SQL: select workflow0_.workflow_project_id as workflow_project_id0_, workflow1_.workflow_user_pool_id as workflow_user_pool_id1_, workflow0_.workflow_project_title as workflow2_0_, workflow0_.last_update_datetime as last_upd3_0_, workflow0_.last_update_by_user_id as last_upd4_0_, workflow0_.workflow_owner_user_id as workflow5_0_, workflow0_.workflow_creation_datetime as workflow6_0_, workflow0_.workflow_resp_user_id as workflow7_0_, workflow1_.workflow_project_id as workflow2_1_, workflow1_.workflow_owner_user_id as workflow3_1_, workflow1_.workflow_user_id as workflow4_1_ from workflow_project workflow0_, workflow_user_pool workflow1_ where (workflow1_.workflow_project_id=workflow0_.workflow_project_id )
DEBUG HttpProcessor[8080][4] net.sf.hibernate.impl.BatcherImpl - about to open: 0 open PreparedStatements, 0 open ResultSets
DEBUG HttpProcessor[8080][4] net.sf.hibernate.impl.SessionFactoryImpl - prepared statement get: select workflow0_.workflow_project_id as workflow_project_id0_, workflow1_.workflow_user_pool_id as workflow_user_pool_id1_, workflow0_.workflow_project_title as workflow2_0_, workflow0_.last_update_datetime as last_upd3_0_, workflow0_.last_update_by_user_id as last_upd4_0_, workflow0_.workflow_owner_user_id as workflow5_0_, workflow0_.workflow_creation_datetime as workflow6_0_, workflow0_.workflow_resp_user_id as workflow7_0_, workflow1_.workflow_project_id as workflow2_1_, workflow1_.workflow_owner_user_id as workflow3_1_, workflow1_.workflow_user_id as workflow4_1_ from workflow_project workflow0_, workflow_user_pool workflow1_ where (workflow1_.workflow_project_id=workflow0_.workflow_project_id )
DEBUG HttpProcessor[8080][4] net.sf.hibernate.ps.PreparedStatementCache - preparing statement: select workflow0_.workflow_project_id as workflow_project_id0_, workflow1_.workflow_user_pool_id as workflow_user_pool_id1_, workflow0_.workflow_project_title as workflow2_0_, workflow0_.last_update_datetime as last_upd3_0_, workflow0_.last_update_by_user_id as last_upd4_0_, workflow0_.workflow_owner_user_id as workflow5_0_, workflow0_.workflow_creation_datetime as workflow6_0_, workflow0_.workflow_resp_user_id as workflow7_0_, workflow1_.workflow_project_id as workflow2_1_, workflow1_.workflow_owner_user_id as workflow3_1_, workflow1_.workflow_user_id as workflow4_1_ from workflow_project workflow0_, workflow_user_pool workflow1_ where (workflow1_.workflow_project_id=workflow0_.workflow_project_id )
DEBUG HttpProcessor[8080][4] net.sf.hibernate.type.StringType - binding '1' to parameter: 1
DEBUG HttpProcessor[8080][4] net.sf.hibernate.util.JDBCExceptionReporter - SQL Exception
com.sap.dbtech.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: Column index 1 was not found.
at com.sap.dbtech.jdbc.CallableStatementSapDB.findColInfo(CallableStatementSapDB.java:740)
at com.sap.dbtech.jdbc.CallableStatementSapDB.setString(CallableStatementSapDB.java:1883)
at net.sf.hibernate.type.StringType.set(StringType.java:22)
at net.sf.hibernate.type.NullableType.nullSafeSet(NullableType.java:46)
at net.sf.hibernate.type.NullableType.nullSafeSet(NullableType.java:31)
at net.sf.hibernate.loader.Loader.prepareQueryStatement(Loader.java:494)
at net.sf.hibernate.loader.Loader.doFind(Loader.java:136)
at net.sf.hibernate.loader.Loader.find(Loader.java:620)
at net.sf.hibernate.hql.QueryTranslator.find(QueryTranslator.java:928)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1343)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1322)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1318)
at net.bookingasp.UserProjectsList.<init>(UserProjectsList.java:72)
at net.bookingasp.LogonAction.execute(LogonAction.java:166)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at net.bookingasp.ActionServlet.process(ActionServlet.java:34)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:534)
WARN HttpProcessor[8080][4] net.sf.hibernate.util.JDBCExceptionReporter - SQL Error: -1, SQLState:
ERROR HttpProcessor[8080][4] net.sf.hibernate.util.JDBCExceptionReporter - SAP DBTech JDBC: Column index 1 was not found.
DEBUG HttpProcessor[8080][4] net.sf.hibernate.impl.BatcherImpl - done closing: 0 open PreparedStatements, 0 open ResultSets
DEBUG HttpProcessor[8080][4] net.sf.hibernate.ps.PreparedStatementCache - recaching
DEBUG HttpProcessor[8080][4] net.sf.hibernate.ps.PreparedStatementCache - total checked-out statements: 0
DEBUG HttpProcessor[8080][4] net.sf.hibernate.ps.PreparedStatementCache - checked out: []
ERROR HttpProcessor[8080][4] net.sf.hibernate.util.JDBCExceptionReporter - Could not execute query
com.sap.dbtech.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: Column index 1 was not found.
at com.sap.dbtech.jdbc.CallableStatementSapDB.findColInfo(CallableStatementSapDB.java:740)
at com.sap.dbtech.jdbc.CallableStatementSapDB.setString(CallableStatementSapDB.java:1883)
at net.sf.hibernate.type.StringType.set(StringType.java:22)
at net.sf.hibernate.type.NullableType.nullSafeSet(NullableType.java:46)
at net.sf.hibernate.type.NullableType.nullSafeSet(NullableType.java:31)
at net.sf.hibernate.loader.Loader.prepareQueryStatement(Loader.java:494)
at net.sf.hibernate.loader.Loader.doFind(Loader.java:136)
at net.sf.hibernate.loader.Loader.find(Loader.java:620)
at net.sf.hibernate.hql.QueryTranslator.find(QueryTranslator.java:928)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1343)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1322)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1318)
at net.bookingasp.UserProjectsList.<init>(UserProjectsList.java:72)
at net.bookingasp.LogonAction.execute(LogonAction.java:166)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at net.bookingasp.ActionServlet.process(ActionServlet.java:34)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:534)