sc_snapshot-2010-03-09
Announcement
Collapse
No announcement yet.
X
-
Given that there are applications running right now on the latest snapshot that are not exhibiting this problem, most likely you didn't correctly install the new version. Follow the step by step installation instructions.
http://www.smartclient.com/smartgwtee/javadoc/com/smartgwt/client/docs/SgwtEESetup.html
Comment
-
We tried using the "FileUpload" example on our Oracle Databases. We created the schema on Oracle 9i 11g. Without modifying the code or XML dataSource, just changing the server.properties for Database, we transfered the example to Oracle.
It allowed us to upload the images, but could not download them, same error as before. ("closed connection", or "must be logged on to server" on older version)
We tried simulating this error with our own code, and it appears to happen if you select a blob, take it from the resultset, and then close the connection before calling "read" on the blob's stream. It's ok to close the ResultSet or the Statement, but closing the connection is what causing this exact error.
Using that information we tried to debug through SQLDataSource's code, and it appears to try and close the connection (through calling "freeDataSource").
Why would it do that? Are there pool configurations we should use? currently we just use the "thin" configuration (server, port, sid, user, password).
If we want to use DB Datasource from a Websphere Application Server, what configs do we use?
Comment
-
We've found and fixed the issue with freeing connections too soon with connection pooling off and it will be available in the next nightly build. Note that this should not affect either pooled connections or JDNI-based pooling, which are still the recommended approaches for a production deployment.
Comment
Comment