Hi, I am trying to retrieve the Blog(Image) from an Oracle table which has a column (LOGO_IMAGE) and display it in HLayout in UI,
(For your clarification : I am trying to do the same as mentioned in the link http://forums.smartclient.com/showthread.php?p=105457#post105457 with the same table and same functionality but with hibernate,
Problem : the image could not be retrieved.
Datasource : clientlogo.ds.xml
<DataSource ID="clientlogo" tableName="CLIENT_LOGO" serverType="hibernate" showPrompt="false" qualifyColumnNames="false">
<fields>
<field name="CLIENT_ID" type="number" required="false" hidden="true" primaryKey="true" title="CLIENT_ID"/>
<field name="LOGO_IMAGE" type="imageFile" imageWidth = "120" imageHeight = "20" title = "LOGO_IMAGE" hidden ="false" canEdit ="false" showFileInline="true" />
<field name="image_date_created" hidden="true" ignore="true"/>
<field name="image_filename" type="text" hidden="true" nativeName="LOGO_FILENAME" />
<field name="image_filesize" hidden ="true" ignore="true"/>
</fields>
</DataSource>
My java code :
public void setClientLogo() {
DataSource dataSource = DataSource.get("clientlogo");
final DynamicForm viewForm = new DynamicForm();
viewForm.setDataSource(dataSource);
// the ViewFileItem uses the record from the containing form to stream the image after the main record has loaded.
ViewFileItem imageItem = new ViewFileItem("LOGO_IMAGE");
imageItem.setAttribute("editorType", "ViewFileItem");
imageItem.setRedrawOnChange(true);
imageItem.setShowTitle(false);
imageItem.setHeight(IntegerConst.HEIGHT_32);
imageItem.setWidth(IntegerConst.COL_WIDTH_145);
imageItem.setTop(0);
viewForm.setItems(imageItem);
viewForm.setHeight(IntegerConst.HEIGHT_30);
viewForm.setWidth(IntegerConst.COL_WIDTH_145);
viewForm.setFetchOperation(DataSourceProperties.GET_CLIENT_LOGO);
Criteria criteria = new Criteria(StringClientDefinitions.CLIENT_ID,"10");
viewForm.fetchData(criteria);
clientData.setClientLogoImage(viewForm);
Banner.setClientLabel(clientData.getClientLogoImage());
}
Dev Mode log :
=== 2013-06-24 16:00:34,549 [l0-2] DEBUG RPCManager - Request #1 (DSRequest) payload: {
criteria:{
CLIENT_ID:10,
download_fieldname:"LOGO_IMAGE"
},
operationConfig:{
dataSource:"clientlogo",
operationType:"viewFile"
},
appID:"builtinApplication",
operation:"clientlogo_viewFile",
oldValues:{
CLIENT_ID:10,
download_fieldname:"LOGO_IMAGE"
}
}
=== 2013-06-24 16:00:34,549 [l0-2] INFO IDACall - Performing 1 operation(s)
=== 2013-06-24 16:00:34,549 [l0-2] DEBUG DeclarativeSecurity - Processing security checks for DataSource null, field null
=== 2013-06-24 16:00:34,549 [l0-2] DEBUG DeclarativeSecurity - DataSource clientlogo is not in the pre-checked list, processing...
=== 2013-06-24 16:00:34,549 [l0-2] DEBUG AppBase - [builtinApplication.clientlogo_viewFile] No userTypes defined, allowing anyone access to all operations for this application
=== 2013-06-24 16:00:34,549 [l0-2] DEBUG AppBase - [builtinApplication.clientlogo_viewFile] No public zero-argument method named '_clientlogo_viewFile' found, performing generic datasource operation
=== 2013-06-24 16:00:34,551 [l0-2] DEBUG DeclarativeSecurity - [builtinApplication.clientlogo_viewFile] Processing security checks for DataSource null, field null
=== 2013-06-24 16:00:34,551 [l0-2] DEBUG DeclarativeSecurity - [builtinApplication.clientlogo_viewFile] DataSource clientlogo is not in the pre-checked list, processing...
=== 2013-06-24 16:00:34,551 [l0-2] DEBUG AppBase - [builtinApplication.clientlogo_viewFile, builtinApplication.null] No userTypes defined, allowing anyone access to all operations for this application
=== 2013-06-24 16:00:34,551 [l0-2] DEBUG AppBase - [builtinApplication.clientlogo_viewFile, builtinApplication.null] No public zero-argument method named '_null' found, performing generic datasource operation
=== 2013-06-24 16:00:34,552 [l0-2] INFO HibernateDataSource - [builtinApplication.clientlogo_viewFile, builtinApplication.null] Performing fetch operation with
criteria: {CLIENT_ID:10,download_fieldname:"LOGO_IMAGE"} values: {CLIENT_ID:10,download_fieldname:"LOGO_IMAGE"}
=== 2013-06-24 16:00:34,552 [l0-2] DEBUG HibernateTransaction - [builtinApplication.clientlogo_viewFile, builtinApplication.null] Started new transaction "447147409"
=== 2013-06-24 16:00:34,553 [l0-2] WARN HibernateDataSource - [builtinApplication.clientlogo_viewFile, builtinApplication.null] Field name: 'download_fieldname' specified in criteria is not defined in data source. Skipping.
=== 2013-06-24 16:00:34,553 [l0-2] INFO HibernateDataSource - [builtinApplication.clientlogo_viewFile, builtinApplication.null] Query string: select _clientlogo from clientlogo _clientlogo where _clientlogo.CLIENT_ID = :p0
=== 2013-06-24 16:00:34,660 [l0-2] DEBUG HibernateDataSource - [builtinApplication.clientlogo_viewFile, builtinApplication.null] Parameter p0: 10
Hibernate: select clientlogo0_.CLIENT_ID as CLIENT1_0_, clientlogo0_.LOGO_IMAGE as LOGO2_0_, clientlogo0_.image_date_created as image3_0_, clientlogo0_.image_filename as image4_0_, clientlogo0_.image_filesize as image5_0_ from CLIENT_LOGO clientlogo0_ where clientlogo0_.CLIENT_ID=?
=== 2013-06-24 16:00:34,696 [l0-3] DEBUG RPCManager - Content type for RPC transaction: text/plain; charset=UTF-8
=== 2013-06-24 16:00:34,697 [l0-3] DEBUG RPCManager - non-DMI response, dropExtraFields: false
=== 2013-06-24 16:00:35,229 [l0-2] WARN HibernateTransaction - [builtinApplication.clientlogo_viewFile, builtinApplication.null] Rolling back 0 database update(s)
=== 2013-06-24 16:00:35,229 [l0-2] DEBUG HibernateTransaction - [builtinApplication.clientlogo_viewFile, builtinApplication.null] Rolling back transaction "447147409"
=== 2013-06-24 16:00:35,507 [l0-2] WARN HibernateTransaction - Attempted to close session for null transaction.
=== 2013-06-24 16:00:35,508 [l0-2] WARN RequestContext - dsRequest.execute() failed:
org.hibernate.exception.SQLGrammarException: could not execute query
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:90)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
at org.hibernate.loader.Loader.doList(Loader.java:2231)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2125)
at org.hibernate.loader.Loader.list(Loader.java:2120)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:401)
at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:361)
at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1148)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)
at com.isomorphic.hibernate.HibernateDataSource.processRequest(HibernateDataSource.java:1227)
at com.isomorphic.hibernate.HibernateDataSource.executeFetch(HibernateDataSource.java:817)
at com.isomorphic.datasource.DataSource.execute(DataSource.java:1367)
at com.isomorphic.application.AppBase.executeDefaultDSOperation(AppBase.java:726)
at com.isomorphic.application.AppBase.executeAppOperation(AppBase.java:658)
at com.isomorphic.application.AppBase.execute(AppBase.java:491)
at com.isomorphic.datasource.DSRequest.execute(DSRequest.java:2033)
at com.isomorphic.hibernate.HibernateDataSource.executeDownload(HibernateDataSource.java:1942)
at com.isomorphic.datasource.DataSource.execute(DataSource.java:1393)
at com.isomorphic.application.AppBase.executeDefaultDSOperation(AppBase.java:726)
at com.isomorphic.application.AppBase.executeAppOperation(AppBase.java:658)
at com.isomorphic.application.AppBase.execute(AppBase.java:491)
at com.isomorphic.datasource.DSRequest.execute(DSRequest.java:2033)
at com.isomorphic.servlet.IDACall.handleDSRequest(IDACall.java:216)
at com.isomorphic.servlet.IDACall.processRPCTransaction(IDACall.java:173)
at com.isomorphic.servlet.IDACall.processRequest(IDACall.java:138)
at com.isomorphic.servlet.IDACall.doGet(IDACall.java:82)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at com.isomorphic.servlet.BaseServlet.service(BaseServlet.java:152)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1097)
at com.isomorphic.servlet.CompressionFilter.doFilter(CompressionFilter.java:259)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1088)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:324)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:829)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
Caused by: java.sql.SQLException: ORA-00904: "CLIENTLOGO0_"."IMAGE_FILESIZE": invalid identifier
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:745)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:219)
at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:813)
at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1049)
at oracle.jdbc.driver.T4CPreparedStatement.executeMaybeDescribe(T4CPreparedStatement.java:854)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1154)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3370)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3415)
at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:208)
at org.hibernate.loader.Loader.getResultSet(Loader.java:1808)
at org.hibernate.loader.Loader.doQuery(Loader.java:697)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259)
at org.hibernate.loader.Loader.doList(Loader.java:2228)
... 47 more
=== 2013-06-24 16:00:35,518 [l0-2] WARN RPCManager - dsResponse.getData().get("LOGO_IMAGE") returned null when we were expecting an InputStream, Byte[] or byte[]. Can't continue.
=== 2013-06-24 16:00:35,518 [l0-2] DEBUG HibernateTransaction - Closing session "447147409"
=== 2013-06-24 16:00:35,518 [l0-2] DEBUG HibernateTransaction - Removed transaction "447147409"
same error in serverlogs also..
Even though I set the filesize,data created Ignore field property as "true" Why the
Oracle Exception :" java.sql.SQLException: ORA-00904: "CLIENTLOGO0_"."IMAGE_FILESIZE": invalid identifier" is coming??
Please help me with this ..
Thanks in advance
(For your clarification : I am trying to do the same as mentioned in the link http://forums.smartclient.com/showthread.php?p=105457#post105457 with the same table and same functionality but with hibernate,
Problem : the image could not be retrieved.
Datasource : clientlogo.ds.xml
<DataSource ID="clientlogo" tableName="CLIENT_LOGO" serverType="hibernate" showPrompt="false" qualifyColumnNames="false">
<fields>
<field name="CLIENT_ID" type="number" required="false" hidden="true" primaryKey="true" title="CLIENT_ID"/>
<field name="LOGO_IMAGE" type="imageFile" imageWidth = "120" imageHeight = "20" title = "LOGO_IMAGE" hidden ="false" canEdit ="false" showFileInline="true" />
<field name="image_date_created" hidden="true" ignore="true"/>
<field name="image_filename" type="text" hidden="true" nativeName="LOGO_FILENAME" />
<field name="image_filesize" hidden ="true" ignore="true"/>
</fields>
</DataSource>
My java code :
public void setClientLogo() {
DataSource dataSource = DataSource.get("clientlogo");
final DynamicForm viewForm = new DynamicForm();
viewForm.setDataSource(dataSource);
// the ViewFileItem uses the record from the containing form to stream the image after the main record has loaded.
ViewFileItem imageItem = new ViewFileItem("LOGO_IMAGE");
imageItem.setAttribute("editorType", "ViewFileItem");
imageItem.setRedrawOnChange(true);
imageItem.setShowTitle(false);
imageItem.setHeight(IntegerConst.HEIGHT_32);
imageItem.setWidth(IntegerConst.COL_WIDTH_145);
imageItem.setTop(0);
viewForm.setItems(imageItem);
viewForm.setHeight(IntegerConst.HEIGHT_30);
viewForm.setWidth(IntegerConst.COL_WIDTH_145);
viewForm.setFetchOperation(DataSourceProperties.GET_CLIENT_LOGO);
Criteria criteria = new Criteria(StringClientDefinitions.CLIENT_ID,"10");
viewForm.fetchData(criteria);
clientData.setClientLogoImage(viewForm);
Banner.setClientLabel(clientData.getClientLogoImage());
}
Dev Mode log :
=== 2013-06-24 16:00:34,549 [l0-2] DEBUG RPCManager - Request #1 (DSRequest) payload: {
criteria:{
CLIENT_ID:10,
download_fieldname:"LOGO_IMAGE"
},
operationConfig:{
dataSource:"clientlogo",
operationType:"viewFile"
},
appID:"builtinApplication",
operation:"clientlogo_viewFile",
oldValues:{
CLIENT_ID:10,
download_fieldname:"LOGO_IMAGE"
}
}
=== 2013-06-24 16:00:34,549 [l0-2] INFO IDACall - Performing 1 operation(s)
=== 2013-06-24 16:00:34,549 [l0-2] DEBUG DeclarativeSecurity - Processing security checks for DataSource null, field null
=== 2013-06-24 16:00:34,549 [l0-2] DEBUG DeclarativeSecurity - DataSource clientlogo is not in the pre-checked list, processing...
=== 2013-06-24 16:00:34,549 [l0-2] DEBUG AppBase - [builtinApplication.clientlogo_viewFile] No userTypes defined, allowing anyone access to all operations for this application
=== 2013-06-24 16:00:34,549 [l0-2] DEBUG AppBase - [builtinApplication.clientlogo_viewFile] No public zero-argument method named '_clientlogo_viewFile' found, performing generic datasource operation
=== 2013-06-24 16:00:34,551 [l0-2] DEBUG DeclarativeSecurity - [builtinApplication.clientlogo_viewFile] Processing security checks for DataSource null, field null
=== 2013-06-24 16:00:34,551 [l0-2] DEBUG DeclarativeSecurity - [builtinApplication.clientlogo_viewFile] DataSource clientlogo is not in the pre-checked list, processing...
=== 2013-06-24 16:00:34,551 [l0-2] DEBUG AppBase - [builtinApplication.clientlogo_viewFile, builtinApplication.null] No userTypes defined, allowing anyone access to all operations for this application
=== 2013-06-24 16:00:34,551 [l0-2] DEBUG AppBase - [builtinApplication.clientlogo_viewFile, builtinApplication.null] No public zero-argument method named '_null' found, performing generic datasource operation
=== 2013-06-24 16:00:34,552 [l0-2] INFO HibernateDataSource - [builtinApplication.clientlogo_viewFile, builtinApplication.null] Performing fetch operation with
criteria: {CLIENT_ID:10,download_fieldname:"LOGO_IMAGE"} values: {CLIENT_ID:10,download_fieldname:"LOGO_IMAGE"}
=== 2013-06-24 16:00:34,552 [l0-2] DEBUG HibernateTransaction - [builtinApplication.clientlogo_viewFile, builtinApplication.null] Started new transaction "447147409"
=== 2013-06-24 16:00:34,553 [l0-2] WARN HibernateDataSource - [builtinApplication.clientlogo_viewFile, builtinApplication.null] Field name: 'download_fieldname' specified in criteria is not defined in data source. Skipping.
=== 2013-06-24 16:00:34,553 [l0-2] INFO HibernateDataSource - [builtinApplication.clientlogo_viewFile, builtinApplication.null] Query string: select _clientlogo from clientlogo _clientlogo where _clientlogo.CLIENT_ID = :p0
=== 2013-06-24 16:00:34,660 [l0-2] DEBUG HibernateDataSource - [builtinApplication.clientlogo_viewFile, builtinApplication.null] Parameter p0: 10
Hibernate: select clientlogo0_.CLIENT_ID as CLIENT1_0_, clientlogo0_.LOGO_IMAGE as LOGO2_0_, clientlogo0_.image_date_created as image3_0_, clientlogo0_.image_filename as image4_0_, clientlogo0_.image_filesize as image5_0_ from CLIENT_LOGO clientlogo0_ where clientlogo0_.CLIENT_ID=?
=== 2013-06-24 16:00:34,696 [l0-3] DEBUG RPCManager - Content type for RPC transaction: text/plain; charset=UTF-8
=== 2013-06-24 16:00:34,697 [l0-3] DEBUG RPCManager - non-DMI response, dropExtraFields: false
=== 2013-06-24 16:00:35,229 [l0-2] WARN HibernateTransaction - [builtinApplication.clientlogo_viewFile, builtinApplication.null] Rolling back 0 database update(s)
=== 2013-06-24 16:00:35,229 [l0-2] DEBUG HibernateTransaction - [builtinApplication.clientlogo_viewFile, builtinApplication.null] Rolling back transaction "447147409"
=== 2013-06-24 16:00:35,507 [l0-2] WARN HibernateTransaction - Attempted to close session for null transaction.
=== 2013-06-24 16:00:35,508 [l0-2] WARN RequestContext - dsRequest.execute() failed:
org.hibernate.exception.SQLGrammarException: could not execute query
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:90)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
at org.hibernate.loader.Loader.doList(Loader.java:2231)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2125)
at org.hibernate.loader.Loader.list(Loader.java:2120)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:401)
at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:361)
at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1148)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)
at com.isomorphic.hibernate.HibernateDataSource.processRequest(HibernateDataSource.java:1227)
at com.isomorphic.hibernate.HibernateDataSource.executeFetch(HibernateDataSource.java:817)
at com.isomorphic.datasource.DataSource.execute(DataSource.java:1367)
at com.isomorphic.application.AppBase.executeDefaultDSOperation(AppBase.java:726)
at com.isomorphic.application.AppBase.executeAppOperation(AppBase.java:658)
at com.isomorphic.application.AppBase.execute(AppBase.java:491)
at com.isomorphic.datasource.DSRequest.execute(DSRequest.java:2033)
at com.isomorphic.hibernate.HibernateDataSource.executeDownload(HibernateDataSource.java:1942)
at com.isomorphic.datasource.DataSource.execute(DataSource.java:1393)
at com.isomorphic.application.AppBase.executeDefaultDSOperation(AppBase.java:726)
at com.isomorphic.application.AppBase.executeAppOperation(AppBase.java:658)
at com.isomorphic.application.AppBase.execute(AppBase.java:491)
at com.isomorphic.datasource.DSRequest.execute(DSRequest.java:2033)
at com.isomorphic.servlet.IDACall.handleDSRequest(IDACall.java:216)
at com.isomorphic.servlet.IDACall.processRPCTransaction(IDACall.java:173)
at com.isomorphic.servlet.IDACall.processRequest(IDACall.java:138)
at com.isomorphic.servlet.IDACall.doGet(IDACall.java:82)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at com.isomorphic.servlet.BaseServlet.service(BaseServlet.java:152)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1097)
at com.isomorphic.servlet.CompressionFilter.doFilter(CompressionFilter.java:259)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1088)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:324)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:829)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
Caused by: java.sql.SQLException: ORA-00904: "CLIENTLOGO0_"."IMAGE_FILESIZE": invalid identifier
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:745)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:219)
at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:813)
at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1049)
at oracle.jdbc.driver.T4CPreparedStatement.executeMaybeDescribe(T4CPreparedStatement.java:854)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1154)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3370)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3415)
at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:208)
at org.hibernate.loader.Loader.getResultSet(Loader.java:1808)
at org.hibernate.loader.Loader.doQuery(Loader.java:697)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259)
at org.hibernate.loader.Loader.doList(Loader.java:2228)
... 47 more
=== 2013-06-24 16:00:35,518 [l0-2] WARN RPCManager - dsResponse.getData().get("LOGO_IMAGE") returned null when we were expecting an InputStream, Byte[] or byte[]. Can't continue.
=== 2013-06-24 16:00:35,518 [l0-2] DEBUG HibernateTransaction - Closing session "447147409"
=== 2013-06-24 16:00:35,518 [l0-2] DEBUG HibernateTransaction - Removed transaction "447147409"
same error in serverlogs also..
Even though I set the filesize,data created Ignore field property as "true" Why the
Oracle Exception :" java.sql.SQLException: ORA-00904: "CLIENTLOGO0_"."IMAGE_FILESIZE": invalid identifier" is coming??
Please help me with this ..
Thanks in advance
Comment