[opencms-dev] OpenCms + Oracle working together!

mfoley5 at csc.com.au mfoley5 at csc.com.au
Thu May 23 11:42:09 CEST 2002


Hi All,

Having beaten my head against non-OpenCms issues with WebLogic and the
Oracle Oci driver for too long I have re-visited the GenericSql option
using the 'thin' driver, and think I have a solution.

It appears the "date/time" issue reported earlier is related to the size of
the byte array passed to the *.setBytes() calls in
com.opencms.file.genericSql.CmsDbAccess.  I gather that the Oracle driver
has a limit of 2000 bytes here and this produces the (misleading) error.

I have replaced setBytes with setBinaryStream and have written a new class
which simply turns the byte array into an Object extending
java.io.InputStream.

I've run through about 5 test cases where the original genericsql fell over
and so far no problem.  Testing continues on WebLogic/Solaris, and I will
be running this later on WebLogic/Win2000 just to make sure.     So far I
have only modified CmsDbAccess, but I suspect it may be necessary to modify
CmsCallableStatement and CmsPreparedStatement as well.

If this is a truly useful change/finding, then I would like comments from
the OpenCms Group, please.       Also, if I have missed something Really
Important, then I'd like to hear that too.

Regards,
Mark

Mark Foley
__________________________________________________
CSC
212 Northbourne Ave, Braddon, ACT 2612
Ph: +61-2-62468487    Email: mfoley5 at csc.com.au
----------------------------------------------------------------------------------------

This email, including any attachments, is intended only for use by the
addressee(s) and may contain confidential and/or personal information and
may also be the subject of legal privilege. Any personal information
contained in this email is not to be used or disclosed for any purpose
other than the purpose for which you have received it. If you are not the
intended recipient, you must not disclose or use the information contained
in it. In this case, please let me know by return email, delete the message
permanently from your system and destroy any copies.
----------------------------------------------------------------------------------------





More information about the opencms-dev mailing list