Hi,

I have a problem with <s:fileUpload> control. As a database I'm using DB2 
v.8.2. When the receiving field (generated by seamgen) is a Blob type it gets 
null after a form is submitted. When the receiving field is Byte[] or byte[] 
type I get mapping exception during JBoss AS startup:


  | javax.persistence.PersistenceException: org.hibernate.HibernateException: 
Wrong column type: APPENDIX, expected: varchar(255) for bit data
  | 

When the receiving field is InputStream type I also get mapping exception 
during  JBoss AS startup:


  | javax.persistence.PersistenceException: org.hibernate.MappingException: 
Could not determine type for: java.io.InputStream, for columns: 
[org.hibernate.mapping.Column(APPENDIX)]
  | 

A form encoding and Seam Multipart servlet filter are configured as in docs and 
the DB2 (APPENDIX) field is Blob type.
How can I configure <s:fileUpload> so that it can work properly with DB2?

Thanks in advance for any help.

Best regards,
jquery


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4038145#4038145

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4038145
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to