I use MySQL 4.1.13 and a very basic GQM call to save() with a simple bean with byte[] property and some int properties. I haven't had time to write a test case but I will do it as soon as it happens.

On Oct 13, 2005, at 1:06 AM, Geert Bevin wrote:

Can you post your code and the version of MySQL that you're using?

On 13-okt-05, at 03:18, Keith Lea wrote:


I get this exception when restore()ing a bean with a byte[] property. How can I get around this? I use MySql. Thanks.

com.uwyn.rife.database.exceptions.RowProcessorErrorException: An error occurred while processing a resultset row. at com.uwyn.rife.database.DbRowProcessor.processRowWrapper (DbRowProcessor.java:121) at com.uwyn.rife.database.DbQueryManager.fetch (DbQueryManager.java:2931) at com.uwyn.rife.database.DbQueryManager.executeFetchFirst (DbQueryManager.java:2213) at com.uwyn.rife.database.DbQueryManager.executeFetchFirstBean (DbQueryManager.java:2308) at com.uwyn.rife.database.querymanagers.generic.AbstractGenericQueryMana ger._restore(AbstractGenericQueryManager.java:582) at com.uwyn.rife.database.querymanagers.generic.databasedrivers.generic. restore(generic.java:157) at com.heliopuce.db.ImageDatabaseHelper.getImage (ImageDatabaseHelper.java:49) at com.heliopuce.ImageElement.processElement(ImageElement.java: 57) at com.uwyn.rife.engine.ElementContext.processContext (ElementContext.java:585) at com.uwyn.rife.engine.RequestState.service(RequestState.java: 215)
    at com.uwyn.rife.engine.Gate.handleRequest(Gate.java:420)
    at com.uwyn.rife.engine.Gate.handleRequest(Gate.java:238)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.uwyn.rife.servlet.RifeFilter.doFilter(RifeFilter.java:102)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:166) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:146) at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:209) at org.apache.catalina.core.StandardPipeline $StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:433) at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:948) at org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:144) at org.apache.catalina.core.StandardPipeline $StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:433) at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:948) at org.apache.catalina.core.StandardContext.invoke (StandardContext.java:2358) at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:133) at org.apache.catalina.core.StandardPipeline $StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) at org.apache.catalina.valves.ErrorDispatcherValve.invoke (ErrorDispatcherValve.java:118) at org.apache.catalina.core.StandardPipeline $StandardPipelineValveContext.invokeNext(StandardPipeline.java:594) at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:116) at org.apache.catalina.core.StandardPipeline $StandardPipelineValveContext.invokeNext(StandardPipeline.java:594) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:433) at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:948) at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:127) at org.apache.catalina.core.StandardPipeline $StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:433) at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:948) at org.apache.coyote.tomcat4.CoyoteAdapter.service (CoyoteAdapter.java:152) at org.apache.coyote.http11.Http11Processor.process (Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.processConnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt (PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool $ControlRunnable.run(ThreadPool.java:683)
    at java.lang.Thread.run(Thread.java:613)
Caused by: java.sql.SQLException: SQLException while invoking the 'setData' method of the bean with class 'com.heliopuce.db.StoredImage' at com.uwyn.rife.database.DbBeanFetcher.processRow (DbBeanFetcher.java:253) at com.uwyn.rife.database.DbRowProcessor.processRowWrapper (DbRowProcessor.java:116)
    ... 45 more
Caused by: java.sql.SQLException: Data conversion error while obtaining the typed object. at com.uwyn.rife.database.DbBeanFetcher.processRow (DbBeanFetcher.java:168)
    ... 46 more
Caused by: com.uwyn.rife.database.exceptions.DatabaseException: Impossible to return a compatible typed object. The target type is '[B' and the result type is 'java.io.ByteArrayInputStream'. at com.uwyn.rife.database.types.databasedrivers.Common.getTypedObject (Common.java:50) at com.uwyn.rife.database.DbBeanFetcher.processRow (DbBeanFetcher.java:164)
    ... 46 more

_______________________________________________
Rife-users mailing list
[email protected]
http://www.uwyn.com/mailman/listinfo/rife-users




--
Geert Bevin                       Uwyn bvba
"Use what you need"               Avenue de Scailmont 34
http://www.uwyn.com               7170 Manage, Belgium
gbevin[remove] at uwyn dot com    Tel +32 64 84 80 03

PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


_______________________________________________
Rife-users mailing list
[email protected]
http://www.uwyn.com/mailman/listinfo/rife-users


_______________________________________________
Rife-users mailing list
[email protected]
http://www.uwyn.com/mailman/listinfo/rife-users

Reply via email to