File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Oracle/OAS and the fly likes error: 'not in streaming mode' Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Oracle/OAS
Reply Bookmark "error: Watch "error: New topic
Author

error: 'not in streaming mode'

Lars Vegas
Greenhorn

Joined: Dec 04, 2001
Posts: 27
hi there,
i have a big problem with my 8i database. i run a java application which is connected to 8i. sometimes, NOT always, i get an exception 'not in streaming mode'. i have no idea why this happens. but when it happens i have to start my server again.
any help appreciated.
thanx, lars
Lars Vegas
Greenhorn

Joined: Dec 04, 2001
Posts: 27
by the way, this message comes along withborland. "com.borland.dx.dataset.DataSetException: I/O-Exception: Not in Streaming-Mode". but maybe someone in here can help me anyway because it has to to with the access from borland to oracle.
Beksy Kurian
Ranch Hand

Joined: Jul 11, 2001
Posts: 254
Lars,
1) Are you using the proper JDBC driver? Use classes12.zip with 8i.
2) Are you accessing long columns? Are you using resultset.getBytes() method? Have you tried changing the long columns to blobs?
3) Are you getting the resultset out of order?

4) Is the connection getting hosed? Is the application multiple threaded? Are you using connection pooling?

If one of the threads closes the connection and the other one is trying to insert a long value, this error may occur. Also, once you start reading from or writing to a stream, you have to finish it before doing any other operations on that connection.
Try synchronizing the connection object before the 'stream' code.
Regards
Beksy
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 16624

Hey Lars. Is Lars Vegas your real name?
That's pretty funny. I mean it shows your parents had a sense of humor.
I apologize for all those mean children, if you were ridiculed when you were young. They were just stupid kids.
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
 
subject: error: 'not in streaming mode'
 
Threads others viewed
Video Streaming
oracle home in win 2000
how to implement jdbc with orcale 8i.
GWT: online stream
is it possible to forward back the protected zip file Behind WEB-INF in Websphere
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture