You should get an IOException... but I can't answer the JDBC as well as the others... I do know how to resolve the problem on the database side.
Ora-01652 : Unable to extend temp segment by 128 in tablespace TEMP
This error occurs when their is a failure to allocate an extent of the required number of blocks for a temporary segment within the tablespace indicated. In this case, TEMP.
Your user shouldn't really be assigned to TEMP for the default tablespace.
You can eliminate the problem by doing one of the following: You can add a datafile to the TEMP tablespace, you can resize your TEMP datafile, or you can assign your user to a larger tablespace.
To view the size of your datafiles sizes:
To resize your data file:
To add a data to TEMP:
Or move your user out of temp and into a more appropriate table space.
[ November 12, 2008: Message edited by: Paul Campbell ]