Hi,

I'm using MS SQL Server to store documents on a webapp we're doing, and am 
having strange trouble - everything works just fine until I shut down and 
restart jBOSS, then each document is prepended with a predictable, but 
destructive, string of bytes.

Basically it's like this: I upload a file (using Struts upload classes), 
then store it in a CMP entity bean as a byte[] field. When I query to get 
it back prior to shutting down jBOSS, everything works like a charm - the 
file is returned, whatever mime type was set invokes the right application, 
everything is marvelous. If I shut down jBOSS and restart, though 
(prompting a read of the database), I get a garbage string of bytes at the 
beginning of the document. That garbage string contains these characters, 
among others: "java.rmi.MarshalledObject", and "objBytes". I can't imagine 
it's a coincidence.

Anyone have any suggestions? I'm using JTurbo for JDBC, both jBOSS and MS 
SQL Server are running on Windows 2000, I'm using Tomcat (on a separate 
stack) for a servlet engine (although I strongly doubt that's related).

Any help is greatly appreciated!

Chris


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to