Hi,

I have find some problems with DSpace 1.4.1 and Oracle 10g Express Edition.
Specifically, in the process of
uploading a document, when I choose the file and click Next to upload it, I
get in dspace.log the following

java.lang.IllegalArgumentException: Value for SIZE_BYTES is not an integer

To fix it, I changed the

bitstream.setColumn("size_bytes", file.length());

of /storage/BitStreamStorageManager.java to the following

bitstream.setColumn("size_bytes", (int) file.length());

With this, and doing the same process of uploading, I get in dspace.log the
following

java.lang.IllegalArgumentException: Value is not an long

So, I proceeded to make the following changes:

- To comment the use of the function getLong in
/storage/rdbms/DatabaseManager.java

- To change the line return bRow.getLongColumn("size_bytes") to
bRow.getIntColumn("size_bytes") in /content/BitStream.java

Now, with all these changes, I can upload files without problems, but I
don't know if these changes
could affect to the rest of the system.

Could be this a bug a compatibility bug with Oracle 10g?. With DSpace
1.4.1beta 2 I have the same problems, while
with DSpace 1.3.2 there isn't any of these problems, although while I make
the ant fresh_install I get an exception due to
the lenght of an Oracle's identifier.

Thanks in advanced,

ja
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to