Problem with ojdbc14.jar (oracle10g Rel. 2 driver) in updating a BLOB field
Hello All,
Our web application uses oracle10g Release 2 jdbc driver with websphere 5.1.1.4 and oracle 9i. When it tries to update a BLOB field in the database updation is successful but it is updating that field with a null value. So rest of our application fails as this value is becoming null. We use an entity bean to update this table and websphere uses a prepared statement to update this table. Just before setting this BLOB field using setBinaryStream() on prepared statement I am printing to see whether it is null or not as shown in the code snippet below. And it is printing it correctly as non null. But after execution of the prepared statement some how the value stored in database is null.
Is this a known issue with this driver? Does any one know work around or a solution to this? We have 3 BLOB fields in that table. Is that a problem? If we separate these BLOB fields into separate tables will the problem be solved? Any input on this is very much appreciated.
// For column ORIGINAL_CONTENT
byte[] tempbyteArray;
tempbyteArray=(byte[])inputRecord.get(25);
if (tempbyteArray == null) {
System.out.println("DqPageBeanFunctionSet_f9c724af: tempbyteArray NULLLLLLL");
} else {
System.out.println("DqPageBeanFunctionSet_f9c724af: orig tempbyteArray length: " + tempbyteArray.length);
if(tempbyteArray != null) {
pstmt.setBinaryStream(25,new java.io.ByteArrayInputStream(tempbyteArray),tempbyteArray.length);
else pstmt.setNull(25,java.sql.Types.BLOB);
Thanks & Regards,
-Sunitha
I have similar problem and I solved it using ojdbc14.jar oracle9i version.
try...
Similar Messages
-
Performance problem with ojdbc14.jar
Hi,
We are having performance problem with ojdbc14.jar in selecting and updating (batch updates) entries in a table. The queries are taking minutes to execute. The same java code works fine with classes12.zip ans queries taking sub seconds to execute.
We have Oracle 9.2.0.5 Database Server and I have downloaded the ojdbc14.jar from Oracle site for the same. Tried executing the java code from windows 2000, Sun Solaris and Opteron machines and having the same problem.
Does any one know a solution to this problem? I also tried ojdbc14.jar meant for Oracle 10g, that did not help.
Please help.
Thanks
YuvaMy code is doing some thing which might be working well with classes12.zip and which does not work well with ojdbc14.jar? Any general suggestions to make the code better, especially for batch updates.
But for selecting a row from the table, I am using index columns in the where cluase. In the code using PreparedStatement, setting all the reuired fields. Here is the code. We have a huge index with 14 fields!!. All the parameters are for where clause.
if(longCallPStmt == null) {
longCallPStmt = conn.prepareStatement(longCallQuery);
log(Level.FINE, "CdrAggLoader: Loading tcdragg entry for "
+GeneralUtility.formatDate(cdrAgg.time_hour, "MM/dd/yy HH"));
longCallPStmt.clearParameters();
longCallPStmt.setInt(1, cdrAgg.iintrunkgroupid);
longCallPStmt.setInt(2, cdrAgg.iouttrunkgroupid);
longCallPStmt.setInt(3, cdrAgg.iintrunkgroupnumber);
longCallPStmt.setInt(4, cdrAgg.iouttrunkgroupnumber);
longCallPStmt.setInt(5, cdrAgg.istateregionid);
longCallPStmt.setTimestamp(6, cdrAgg.time_hour);
longCallPStmt.setInt(7, cdrAgg.icalltreatmentcode);
longCallPStmt.setInt(8, cdrAgg.icompletioncode);
longCallPStmt.setInt(9, cdrAgg.bcallcompleted);
longCallPStmt.setInt(10, cdrAgg.itodid);
longCallPStmt.setInt(11, cdrAgg.iasktodid);
longCallPStmt.setInt(12, cdrAgg.ibidtodid);
longCallPStmt.setInt(13, cdrAgg.iaskzoneid);
longCallPStmt.setInt(14, cdrAgg.ibidzoneid);
rs = longCallPStmt.executeQuery();
if(rs.next()) {
cdr_agg = new CdrAgg(
rs.getInt(1),
rs.getInt(2),
rs.getInt(3),
rs.getInt(4),
rs.getInt(5),
rs.getTimestamp(6),
rs.getInt(7),
rs.getInt(8),
rs.getInt(9),
rs.getInt(10),
rs.getInt(11),
rs.getInt(12),
rs.getInt(13),
rs.getInt(14),
rs.getInt(15),
rs.getInt(16)
}//if
end_time = System.currentTimeMillis();
log(Level.INFO, "CdrAggLoader: Loaded "+((cdr_agg==null)?0:1) + " "
+ GeneralUtility.formatDate(cdrAgg.time_hour, "MM/dd/yy HH")
+" tcdragg entry in "+(end_time - start_time)+" msecs");
} finally {
GeneralUtility.closeResultSet(rs);
GeneralUtility.closeStatement(pstmt);
Why that code works well for classes12.zip (comes back in around 10 msec) and not for ojdbc14.jar (comes back in 6-7 minutes)?
Please advise. -
Problem using ojdbc14.jar in JDev 11g
Hi
I have an application created in 10g.
I was trying to create the same in 11g and encountered this problem with the ojdbc14.jar.
The jar has two classes OracleDataSource and OracleConnectionCacheImpl inside the same package.
OracleConnectionCacheImpl is inherited from OracleDataSource.
OracleDataSource has a protected variable called m_dataSourceName.
The child class, OracleConnectionCacheImpl used this variable.
I have this jar included in my classpath.
When i run the application, it throws a runtime error.
Following is the stack trace.
java.lang.NoSuchFieldError: m_dataSourceName
at oracle.jdbc.pool.OracleConnectionCacheImpl.(OracleConnectionCacheImpl.java:189)
at oracle.apps.snw.hubserver.common.XhubConnectionPool.(XhubConnectionPool.java:46) -------------------------------------> from here its my code
at oracle.apps.snw.hubserver.common.XhubConnectionPoolManager.addConnectionPool(XhubConnectionPoolManager.java:168)
at oracle.apps.snw.hubserver.common.XhubConnectionPoolManager.getConnection(XhubConnectionPoolManager.java:201)
at oracle.apps.snw.hubserver.util.SystemParameters.reloadAllParameters(SystemParameters.java:294)
at oracle.apps.snw.hubserver.util.SystemParameters.(SystemParameters.java:34)
at oracle.apps.snw.hubserver.util.SystemParameters.getInstance(SystemParameters.java:48)
at oracle.apps.snw.hubserver.common.XhubConnectionPoolManager.addConnectionPool(XhubConnectionPoolManager.java:155)
at oracle.apps.snw.hubserver.common.XhubConnectionPoolManager.getConnection(XhubConnectionPoolManager.java:201)
at oracle.apps.snw.common.util.LanguageQueryBasedNameValueCache.queryAllLanguages(LanguageQueryBasedNameValueCache.java:125)
at oracle.apps.snw.common.util.LanguageQueryBasedNameValueCache.setCacheParameters(LanguageQueryBasedNameValueCache.java:77)
at oracle.apps.snw.common.util.LanguageQueryBasedNameValueCache.(LanguageQueryBasedNameValueCache.java:53)
at oracle.apps.snw.uicommon.TextProvider.populateTextCache(TextProvider.java:100)
at oracle.apps.snw.uicommon.TextProvider.getTextMessage(TextProvider.java:123)
at oracle.apps.snw.uicommon.TextProvider.handleGetObject(TextProvider.java:113)
at java.util.ResourceBundle.getObject(ResourceBundle.java:378)
at oracle.cabo.ui.data.BundleDataObject.selectValue(Unknown Source)
at oracle.cabo.ui.data.DataBoundValue.getValue(Unknown Source)
at oracle.cabo.ui.BaseUINode.getAttributeValueImpl(Unknown Source)
Can anyone tell me why this error occurs?
I have checked the Oracle JDBC library of JDev 11g and found that it has ojdbc6.jar
Is there any compatibility problem with this jar migrating from 10g to 11g?
Found this related link but could not relate it much.
Please explain
JDBC problem: java.lang.NoSuchFieldError: CONNECTION_PROPERTY_THIN_NET_CONN
ThanksI guess you can't use ojdbc14.jar that easy. Some dependencies form ojdbc14.jar are not available under 11g. That 's the reason you have ojdbc6.jar under 11g.
Timo -
Hi!
I'd recently upgraded from Windows 7 to Windows 8.1 Pro 64-bit version. All drivers worked fine but I'm having problems with IDT High Definition Audio driver. Can someone help me? Thanks in advance! My PC model is: LS278EA#ABEHi:
See if this driver works...
http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=ob-124012-1&cc=us&dlc=en&lc=en... -
Can't back-up new iMac with fusion HD. The back-up proceeds to within 10% of the total storage needed and then the "of" number increases. I suspect there is a problem with backing up the fusion drive. We have a new 3 TB time Capsule. I tried excluding different parts of the software from the back-up but it didn't make any difference. I even tried exluding "invisible items" to no avail. Any ideas?
When you setup the wireless and ethernet in the computer.. ipv6 will be on automatic.. this is wrong for the latest TC firmware and airport utility. http://support.apple.com/kb/TS4597
Go to the wireless and ethernet setup in preferences and change ipv6 to link local.
Once you do the big backup by ethernet the wireless will function fine for incremental.. it is obviously not estimating the size correctly..
A full back-up on the iMac would be about 650 GB. The partial updates that I have been trying start out at 115MB and keep growing indefinitely. The original back-up never finished nor have any of the follow-up attempts.
The first estimate should be the full backup but it will keep growing as the backup advances.. I would also delete any inprogress files to make sure it is not messing up .. delete even a sparsebundle if there is one for the imac on the TC and start afresh once you have ethernet connection.
See A10 here.
Pondini may have some other clues there to give you an idea of why the backup is slow or not finishing.. there is a lot of issues with TM when it decides not to work. -
Problem with protocol.jar with weblogic
atg10.0.3 and weblogic 11g on 64bit linux.
I've been plagued by this problem with ATG's protocol jar. While it loads the jar when starting up startWeblogic.sh it does not get loaded when starting a managed server thus i get the following errors:
**** Error Fri Jun 15 15:56:43 MDT 2012 1339797403444 / Unable to start service "/atg/scenario/ScenarioManager": atg.nucleus.ServiceException: The configuration file XMLFile(/atg/scenario/scenarioManager.xml) could not be read: java.net.MalformedURLException: unknown protocol: dynamosystemresource
**** Error Fri Jun 15 15:56:43 MDT 2012 1339797403544 /atg/scenario/ScenarioManager Unable to combine messaging information from the process manager component /atg/scenario/ScenarioManager. The process manager has not been classified yet so it cannot be determined if global messages should be listened for. This error indicates a problem with component startup order - the /atg/scenario/ScenarioManager component has been started before the /atg/dynamo/messaging/MessagingManager component
**** Error Fri Jun 15 15:56:43 MDT 2012 1339797403583 /atg/dynamo/messaging/MessagingManager An exception occurred while trying to parse XML definition file "XMLFile(/atg/dynamo/messaging/dynamoMessagingSystem.xml)" java.net.MalformedURLException: unknown protocol: dynamosystemresource
Following instructions has led me to place the protocol.jar from DAS/lib to the root of my domain directory and then apply the classpath entry in startWeblogic.sh script. protocol.jar shows up at the top of this scripts SDTOUT. But I cannot seem to get it included in the production.out logs when starting the managed server.
Any ideas?
Thanks!
-KipYes I figured this out. The problem was the version of weblogic. I was using 1.3.6 when it should have been 1.3.5. After changing out the version, I no longer had problems with protocol.jar.
Thanks!
-Kip -
I am having a problem with signed jar and deploy in html
get this error on the page
self signed
/dist/testfx.html
JavaFX application could not launch due to system configuration. See java.com/javafx for troubleshooting information.Unsigned jar works perfectly but has security and permission issues when using classes.
This was working in beta 45Can you post an example project that demonstrates the problem? There were changes to the ant tasks and netbeans support around B45 that could cause problems depending on which version of the SDK and NetBeans you have. Similarly, if you wrote ant scripts prior to B44 and then use them with a later build you could have problems. And of course, if you're producing the Jar file and deployment artifacts without using the provided ant tasks (for example, using the normal ant jar task) you'll have problems.
I've verified that this works as expected in the FX 2.0 GA release using ant from the command line, and with the NetBeans 7.1 beta release using the FX 2.0 GA release. -
When I plug My device To Pc(Windows Xp) It says Problem With Your Apple Mobile Device Drive ,I cheak in Device manger Its shows "This device cannot start. (Code 10)" Help pls..
All I can suggeset is:
Removing and reinstalling iTunes, QuickTime, and other software components for Windows Vista or Windows 7
or
Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
Have you looked at the AMDS topic of:
iOS: Device not recognized in iTunes for Windows
Do you have han image capture programs linstalled like for a camers or scanner? -
Problems with my DVD/CD-ROM Drive (MS-8216)
I have a BIGGGG problem with my DVD/CD-ROM Drive (MS-8216)
I was copying somethin in my comp, and the cd got BOOOM into pieces inside.
My warranty expired 1 month ago, so i clean it in the inside. After this it is like this :
- i can watch 700mb movies AVI format with no problems, but when i want to copy anything in my comp from the cd it always stops rotating at 6% of copiyng and BANG it stops and an error has acourde. Same with the dvd's. Please don't ask me about my comp config couse i know it has no problem with that. I left every thing like it was inside --- impecable, no wiress unplugged and i've upgraded the firmware also
What can it be. Thank youif you can read the CD, but not copy from it, try this program:
Isobuster
It allows you to read with a much better accuracy than the generic windows driver.
However, i'm afraid your drive has been damaged in the explosion and this is only a work around, not a real solution.
The good point is that DVD burner are now cheap, but it is not much... -
OS X Yosemite v10.10.3 Update - I had problems with my iMac after installing the previous update and I removed that update. Have there been problems associated with this update ?
I've been using it on all of my computer without any problems. Remember you won't see any positive comments here. Everyone here is complaining about a problem. If you want a good experience with any upgrade or update first make a backup from which you can boot the computer. If you are installing an update, like 10.10.3 for example, always download and install the Combo Updater - OS X Yosemite 10.10.3 Combo Update. Before you install any update or upgrade over an existing system you should do this:Repair the Hard Drive and Permissions:
Boot to the Recovery HD:
Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
Repair
When the recovery menu appears select Disk Utility and press the Continue button. After Disk Utility loads select the Macintosh HD entry from the the left side list. Click on the First Aid tab, then click on the Repair Disk button. If Disk Utility reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit Disk Utility and return to the main menu. Select Restart from the Apple menu. -
I have problem with account that i can't make update or buy from app store
There is massage appear in my payment page that i must contact with i tunes support to complete this transaction
Please help me to fixe this problem as soon possible
Hany hassan
0096597617317
0096596677186
Thank youYou need to Contact iTunes Support...
Apple Support iTunes Store Contact Us -
Problem with update of BLOB field in a table with compound primary key
Hi,
I've been developing an application in Application Express 3.1.2.00.02 that includes processing of BLOB data in one of the tables (ZPRAVA). Unfortunately, I've come across a strange behaviour when I tried to update value in a BLOB field for an existing record via a DML form process. Insert of a new record including the BLOB value is OK (the binary file uploads upon submiting the form without any problems). I haven't changed the DML process in any way. The form update process used to work perfectly before I'd included the BLOB field. Since than, I keep on getting this error when trying to update the BLOB field:
ORA-20505: Error in DML: p_rowid=3, p_alt_rowid=ID, p_rowid2=CZ000001, p_alt_rowid2=PR_ID. ORA-01008: not all variables bound
Unable to process row of table ZPRAVA.
OK
Some time ago, I've already created another application where I used similar form that operated on a BLOB field without problems. The only, but maybe very important, difference between both the cases is that the first sucessfull one is based on a table with a standard one-column primary key whereas the second (problematic one) uses a table with compound (composite) two-column PK (two varchar2 fields: ID, PR_ID).
In both cases, I've followed this tutorial: [http://www.oracle.com/technology/obe/apex/apex31nf/apex31blob.htm]).
Can anybody confirm my suspicion that Automatic Row Processing (DML) can be used for updating BLOB fields within tables with only single-column primary keys?
Thanks in advance.
ZdenekIs there a chance that the bug will be included in the next patch?No, this fix will be in the next full version, 3.2.
Scott -
Hi , I have an iPhone 5S and I have got a problem with the app store : iI can't update my apps , it is asking me to change frim the UK store to go to the french one , but i have already changed it and I am in the French one !! Help !
Have you tried signing out of your iTunes & App Store on your device and then back in again - Settings>iTunes & App Store, click on Apple ID, then on Sign Out. Then sign in again and see if it accepts the password.
If that doesn't resolve the issue, try resetting your device (nothing will be lost): Hold down the Home and Power buttons at the same time and continue to hold them down until the Apple appears (up to 30 seconds). Once the reset is complete, the Slide to Unlock screen will display. See if the problem is resolved.
Cheers,
GB -
Im trying to update, but all it does is backup my phone, My itunes is updated, BTW, I just went to Apple bar, i had previous problem with prior phone, now im having this update problem with thyis new phone, someone HELP!!
Same here and this is driving me crazy. I can buy, but can't upgrade. Grrr.
-
I have been having problems with my speaker. After the recent update I am unable to listen to movies, music or apps using my speaker. The volume bar is completely missing. If I plug a headset into the port, the volume bar reappears and then disappears after the headset is removed. This is quite annoying. My child's Apps that he likes to play will not even make a sound. HELP!!!
Do a reset (Hold Sleep/Wake and Home buttons about 10 secs or more till Apple logo appears, ignore the Slide to Power Off that appears)
Note: You will not lose any data.
Maybe you are looking for
-
Hello all, I am looking for assistance with this. I have iTunes 11.1.5. I want to play movies I have purchased from the iTunes Store without downloading them as my storage is limited. I seem able to do this on my iPhone and iPad but it does not seem
-
G/L Account for Extension Service PO Value In-Correct
I'm extending an existing PO with a new Service Material and when the changes arrived in R/3, the G/L Account for the new Service Material changes to another value?!!! When I traced in R/3 CDPOS, there is an OBJECTCLAS EINKBELEG entry which changes t
-
Hello Gurus, I have one BTE ZPFRFI_PROCESS_00001120 which works properly for Tcode FB01 but is not triggered by F110. Please help.
-
Gentlemen, I want to know if there is a easy way to use 802.1x on phones. All the documentation I found tells me that I have to either install certificates(EAP-TLS) on each of them or input each phone's login and password (EAP-MD5) on the ACS. Does a
-
To Split a variable to get the date.
Hi all, I have a variable 'file1'.This variable stores the names of the pdf files located in SAP directory. The name of the file is like:'PDFST0000098357US81042008', which containg order no ,sales org, month and date of that file creation. Now i