Doing setBytes() but when extracting data get BLOB error?
I am inserting a video into an oracle 10g db, and I insert it using the setBytes method but when trying to pull that video from the db, it gives me this error
SQL Exception in getting video ORA-00932: inconsistent datatypes: expected - got BLOB
The field value is a blob type, but don't have any issues when doing this with a jpg vs a wmv file. here is my code for insertion and extraction of the data.
String query=("INSERT INTO VIDEO (P_ID, P_VIDEONAME, P_VIDEO) Values (?,?,?)");
prepStmt = connection.prepareStatement(query);
prepStmt.setInt(1,patient.getP_ID());
prepStmt.setString(2,patient.getVideoName());
prepStmt.setBytes(3,patient.getVideo());
prepStmt.executeUpdate();
rs = stmnt.executeQuery("SELECT P_VIDEONAME, P_VIDEO FROM VIDEO WHERE P_VIDEO = " + patient.getVideoName() + " and P_ID = " + patient.getP_ID());
ResultSetMetaData metaData = rs.getMetaData();
int columns=metaData.getColumnCount();
while(rs.next()){
for(int i=1;i<=columns;++i) {
patient.setAction("getVideo");
patient.setVideoName(rs.getString(i));
patient.setVideo(rs.getBytes(++i));
sendPatient();
}catch(SQLException e) {
//this is similar to the definition i gave you above.
System.out.println("SQL Exception in getting video " + e.getMessage());
That inner for loop makes no sense. You don't need to iterate through the columns; you already know what's supposed to be in each one. Get rid of the loop and just refer to them by their absolute indices, like you did when you inserted the record.
Also, I would advise always using the postfix operators i++ and i-- instead of the prefix forms, ++1 and --i. It's just too easy to lose track of what's going on when you mix the the two styles, and postfix operators are much more commonly used.
I don't know if any of this will solve your problem, but it should at least make the probelm easier to see.
Similar Messages
-
Seems also that the majority of CD's that have these problems are Warner Music published (I have roughly 20 that display the same problem)
Windows and iTunes 10.
Had this problem "Error importing file .... songname .... iTunes cannot locate the required file" when trying to import a CD today.
My library is on an external USB hard drive. iTunes from time to time not only loses its own library file, but also confuses windows into thinking that the library files do not exist.
So the fix where you re-tell iTunes where to find its own media file (using the preferences menu hidden behind some opaque icon for reasons that pass rational understanding) fails, and when you try to find the file using windows explorer, windows possibly confused by apple "helper" files, or possibly lost in a delusion of its own, also thinks there are no files in the music directory. This despite usage stats on the disk still clearly showing that a lot of space is being used up by files that "aren't there".
The fix for this windows user is close everything down. Reboot, restart iTunes and presto it as if iTunes's / Window's temporary amnesia never happened.
Last time I "lost" the library was when I did the "upgrade" to iTunes 10. I wrongly put this down to a pathetic upgrade utility. I now realise that iTunes/Windows just loses this key element of the plot from time to time, screwing up windows when it does so.
Astonished how flaky this widely used and let's face it hardly brand new software combination is.
Now I don't know if this spectacularly unhelpful performance is Apple's fault or Microsoft's or both, so I'm not going to bother apportioning my contempt. Shame on both your houses for needless worry that I'd have to re-rate and re-sort everything from a virgin set of file back ups yet again. -
see above question
Please follow instructions here to ensure a clean installation.<br><br>
#Use Internet Explorer to download Firefox 5.0.1 from this link: [http://www.mozilla.com/en-US/firefox/fx/?ref=logo Download Firefox 5.0.1] and choose "'''Save'''" when you see the prompt. Then save it to your desktop. ''Do not choose "Run"''.<br><br>
#Then go to "Programs and Features" in Control Panel, scroll down to "Mozilla Firefox" and remove it, choosing to keep your bookmarks, customizations etc., (''don't checkmark the box'').<br><br>
#Then reboot and delete the folder called "Mozilla Firefox" at this location: C:\Program Files\Mozilla Firefox<br><br>
#Finally run the installation file you downloaded to the desktop earlier.<br>
Your bookmarks, customizations etc., are maintained in a different location and will become available to you again once you complete the installation.<br><br> -
when i follow the steps it does it but when it gets to itunes it says 'iTunes could not contact the iPhone software update server because you are not connected to the internet' but i am connected to the internet ..?
Were you definitely connected to the internet at the time? If you don't have iOS 5 on your iPhone then the only way to update it would be via iTunes, once updated to the latest version of iOS you'll be able to update your iPhone without connecting to iTunes "over-the-air".
Before updating however it goes without saying to Backup your iPhone, this should happen by default upon connecting your iPhone to iTunes.
Regards,
Steve -
What does it mean when I keep getting the following message on my IPad2:
Usually it's because you are not making internet connection via wifi.
Look at iOS Troubleshooting Wi-Fi networks and connections http://support.apple.com/kb/TS1398
iPad: Issues connecting to Wi-Fi networks http://support.apple.com/kb/ts3304
Additional things to try.
Try this first. Turn Off your iPad. Then turn Off (disconnect power cord) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
Change the channel on your wireless router. Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
How to Quickly Fix iPad 3 Wi-Fi Reception Problems
http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
If none of the above suggestions work, look at this link.
iPad Wi-Fi Problems: Comprehensive List of Fixes
http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
Fix iPad Wifi Connection and Signal Issues http://www.youtube.com/watch?v=uwWtIG5jUxE
Cheers, Tom -
My ITunes got corrupted and I kept getting a message when updating iTunes64msi missing so I uninstalled all files and I thought I removed all registry values but when reinstalling I get an older version is installed and cannot be removed. I need a solution.
(1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
http://majorgeeks.com/download.php?det=4459
(2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
(3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
(4) In the list of programs that appears in CleanUp, select any Bonjour entries and click "Remove", as per the following screenshot:
(5) Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time? -
Error when extracting data with extractor 2lis_04_matnr - NEED HELP ASAP !!
Hi experts!
Got an error when extracting data with extractor 2lis_04_matnr.
System says (short dump):
DUMP TEXT START----
Runtime error: CONNE_IMPORT_WRONG_COMP_TYPE
Exception: CX_SY_IMPORT_MISMATCH_ERROR
Error when attempting to import object "MC04P_0MAT_TAB".
The current ABAP program "SAPLMCEX" had to be terminated because one of the statements could not be executed. This is probably due to an error in the ABAP program. When attempting to import data, it was discovered that the data type of the stored data was not the same as that specified in the program.
An exception occurred. This exception is dealt with in more detail below. The exception, which is assigned to the class 'CX_SY_IMPORT_MISMATCH_ERROR', was neither caught nor passed along using a RAISING clause, in the procedure "MCEX_BW_LO_API" "(FUNCTION)".
Since the caller of the procedure could not have expected this exception
to occur, the running program was terminated.
The reason for the exception is: When importing the object "MC04P_0MAT_TAB", the component no. 5 in the dataset has a different type from the corresponding component of the target object in the program "SAPLMCEX". <b>The data type is "D" in the dataset, but "C" in the program.</b>
DUMP TEXT END----
Please, can someone explain me how to solve it?
Really need help ASAP!
Thanks in advance,
Jaume
Message was edited by:
Jaume Saumell
Message was edited by:
Jaume SaumellHi,
Check this note: 328181
So you need to delete entries in SM13/LBWQ for application and also detup table content.
And then refill teh set up table.
If you are in production clear the entries by running collective run no of times for this application 04.
With rgds,
Anil Kumar Sharma .P -
I try to put music in my ipod through itunes but it's not letting me do it. it tells me it's doing it, but when I check. My songs are not there
OOk so I have my new Apple id in my iTunes account but my old Apple ID is the one that is in the iCloud account which is the Apple ID have been using for years and the reason I cannot get it on this abled is because somebody was using my credit card or debit card that was on file for family sharing and it was a stolen iPhone from my account so they had to disable my Apple ID and I could not use my debit card anymore on any Apple ID ever again they said because of it so I can't get it not to be disabled and I can't sign into iTunes with it I already have signed out and signed in with my new Apple ID for iTunes it's just iCloud is not letting me load anything so pretty much what I've been doing is I have to erase every app and then re-dumb going to iTunes and re-download the apps again but the only issue is that I still have a disabled Apple ID as my iCloud settings and my iCloud family sharing in all of that so I'm wondering how or is it possible to change my Apple ID for iCloud specifically because when I go into Icloud and settings and go into my name where my Apple ID is the one that's disabled it doesn't say anything about log out or sign out or anything like that it just says to put the password for it so is there a way to change the Apple ID for my iCloud so that my iTunes in my iCloud is the same Apple ID?
-
No data comes when extracting data for 2LIS_06_INV
Hi,
I am trying to extract data from 2LIS_06_INV into my BI system.I see the invoice numbers in RSEG table as created from SRM 5.0 into my R/3 system but unfortunately no data gets extracted.Please provide some pointers if some setting needs to be done for the same.
JoyHi,
It is working fine I tried with out activating in LBWE.
Thanks!
Surendra. -
When i doing cache connectivity test , i am getting below error
When i doing cache connectivity test , i am getting below error, could you please suggest me what action need's to be done
Integration repository, Integration Directory,Integration server ABAP, Integration server java is green, only adapter engine is showing red.
Attempt to fetch cache data from Integration Directory failed; cache could not be updated
[Fetch Data]: Unable to find an associated SLD element (source element: SAP_BusinessSystem, [CreationClassName, SAP_BusinessSystem, string, Name, BS_PI_DEV, string], target element type: SAP_BCSystem
[Fetch Data]: com.sap.aii.ib.server.abapcache.CacheRefreshException: Unable to find an associated SLD element (source element: SAP_BusinessSystem, [CreationClassName, SAP_BusinessSystem, string, Name, BS_PI_DEV, string], target element type: SAP_BCSystem)
at com.sap.aii.ibdir.server.abapcache.content.CacheCPA.addContent(CacheCPA.java:490)
at com.sap.aii.ibdir.server.abapcache.content.CacheCPA.addContent(CacheCPA.java:155)
at com.sap.aii.ibdir.server.abapcache.CacheRefreshRequest.addContent(CacheRefreshRequest.java:388)
at com.sap.aii.ibdir.server.abapcache.CacheRefreshRequest.addContent(CacheRefreshRequest.java:326)
at com.sap.aii.ibdir.server.abapcache.CacheRefreshRequest.processHTTPRequest(CacheRefreshRequest.java:145)
at com.sap.aii.ibdir.server.abapcache.CacheRefreshRequest.handleHTTPRequest(CacheRefreshRequest.java:103)
at com.sap.aii.ibdir.web.abapcache.HmiMethod_CacheRefresh.process(HmiMethod_CacheRefresh.java:67)
at com.sap.aii.utilxi.hmis.server.HmisServiceImpl.invokeMethod(HmisServiceImpl.java:169)
at com.sap.aii.utilxi.hmis.server.HmisServer.process(HmisServer.java:178)
at com.sap.aii.utilxi.hmis.sbeans.HmisBeanImpl.process(HmisBeanImpl.java:86)
at com.sap.aii.utilxi.hmis.sbeans.HmisLocalLocalObjectImpl1_0.process(HmisLocalLocalObjectImpl1_0.java:144)
at com.sap.aii.utilxi.hmis.web.HmisServletImpl.processRequestByHmiServer(HmisServletImpl.java:290)
at com.sap.aii.utilxi.hmis.web.workers.HmisExternalClient.doWork(HmisExternalClient.java:75)
at com.sap.aii.utilxi.hmis.web.HmisServletImpl.doWork(HmisServletImpl.java:496)
at com.sap.aii.utilxi.hmis.web.HmisServletImpl.doPost(HmisServletImpl.java:634)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
com.sap.aii.ib.bom.landscape.SLDElementNotFoundException: Unable to find an associated SLD element (source element: SAP_BusinessSystem, [CreationClassName, SAP_BusinessSystem, string, Name, BS_PI_DEV, string], target element type: SAP_BCSystem)
at com.sap.aii.ib.server.sldquery.SLDQuery.dammiIlMioCentralAdapterFramework(SLDQuery.java:70)
at com.sap.aii.ibdir.server.abapcache.content.CacheCPA.addContent(CacheCPA.java:191)
at com.sap.aii.ibdir.server.abapcache.content.CacheCPA.addContent(CacheCPA.java:155)
at com.sap.aii.ibdir.server.abapcache.CacheRefreshRequest.addContent(CacheRefreshRequest.java:388)
at com.sap.aii.ibdir.server.abapcache.CacheRefreshRequest.addContent(CacheRefreshRequest.java:326)
at com.sap.aii.ibdir.server.abapcache.CacheRefreshRequest.processHTTPRequest(CacheRefreshRequest.java:145)
at com.sap.aii.ibdir.server.abapcache.CacheRefreshRequest.handleHTTPRequest(CacheRefreshRequest.java:103)
at com.sap.aii.ibdir.web.abapcache.HmiMethod_CacheRefresh.process(HmiMethod_CacheRefresh.java:67)
at com.sap.aii.utilxi.hmis.server.HmisServiceImpl.invokeMethod(HmisServiceImpl.java:169)
at com.sap.aii.utilxi.hmis.server.HmisServer.process(HmisServer.java:178)
at com.sap.aii.utilxi.hmis.sbeans.HmisBeanImpl.process(HmisBeanImpl.java:86)
at com.sap.aii.utilxi.hmis.sbeans.HmisLocalLocalObjectImpl1_0.process(HmisLocalLocalObjectImpl1_0.java:144)
at com.sap.aii.utilxi.hmis.web.HmisServletImpl.processRequestByHmiServer(HmisServletImpl.java:290)
at com.sap.aii.utilxi.hmis.web.workers.HmisExternalClient.doWork(HmisExternalClient.java:75)
at com.sap.aii.utilxi.hmis.web.HmisServletImpl.doWork(HmisServletImpl.java:496)
at com.sap.aii.utilxi.hmis.web.HmisServletImpl.doPost(HmisServletImpl.java:634)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
[Data Evaluation]:Check Surya's reply: Cache-Connectivity-Test in RWB
The same procedure in detail manner is given in this How-to guide:
http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c0332b2a-eb97-2910-b6ba-dbe52a01be34
Are you using any Business System? If yes then make sure that you have imported it properly into ID....in this case ID --> Environment --> Clear SLD Cache.
Regards,
Abhishek. -
Error when extracting data from R/3 into BW
Hi,
There is an infoobject Payscale Level(Datsource 0paysclaelv_attr) in BW module HR that is extracting data from R/3. While extracting data, the following error occurs "Assignment to feature PFREQ did not take place". I debugged the standard function module HR_BW_EXTRACT_IO_PAYSCALELV and I believe there is definitely an error in the data. But Im not able to find out that record. Has anyone come across this error before? Please let me know if theres any solution to this error. The help for this error provides the following details. But I havent understood it. Any help would be greatly appreciated.
You can assign a specific operation (assignment) to each decision option
within a feature. You can also define decision option ** whose
assignment is effected for all unlisted decision options (this is known
as a default value).
Example:
o D PERSK
o K1 &ABRKS=D1, <- D1 for employee subgroup K1
o K2 &ABRKS=D1, <- D1 for employee subgroup K2
o K3 &ABRKS=D2, <- D2 for employee subgroup K3
o ** &ABRKS=D0, <- D0 for all other employee subgroups
If you now create employee subgroup K4 and the default entry ** is
missing, the system is unable to find a decision option for payroll area
ABKRS.
Procedure
Define a decision option for K4 or for default value **.Hi ,
The error is due to the existing customizing of feature PFREQ for MOLGA = 05, there the value to be returned depends on the WERKS, but apparently it was forgotten to add a new line for the "Otherwise" case.
Like it was already done for the case of MOLGA = 03, for example. Please add then a line for MOLGA = 05 and "Otherwise" and the issue should be solved.
If this doesnot solves your issue , then kindly check these OSS notes :
1033423 -> 0PAYSCALELV_ATTR: Short dump feature_error
842212 -> 0PAYSCALELV_ATTR: DataSources deliver wrong results
92055 -> RP_FROM_PERIOD_TO_PERIOD: FEATURE_ERROR dump
Regards,
Lokesh -
Does anyone know when we will get RAW compatibility for the great little Fujifilm X10?
Thank you.No one outside of Apple knows when - or if - support will be added for any device. Just let them know you want it...
iPhoto menu -> Provide iPhoto Feedback -
I am running Lion 10.7.2 and I have an external drive hooked to my time machine. I can't rename folders and when trying, I get an error code 8076. The checkbox "ignore permissions for this device" does not show on volume info. Help please???
The TIme Machine volume does not have that checkbox.
I think the issue is with your Finder...
Go to Finder "Go" menu hold the option key and choose Library. Then go to Preferences trash these files:
com.apple.finder.plist
com.apple.sidebarlists.plist
Then, restart, or log out and in again.
(You will have to reset a few finder prefs the way you like them.) -
I bought the product and got serial number but when install i get a 7 day trial
i bought the product and got serial number but when install i get a 7 day trial
Sign in or activation errors
For anything else contact serial and activation support directly.
Mylenium -
We have licensed version of Adobe CS6, but when we start it shows error Maximum Activations Exceeded, We are unable to activate Creative Cloud.@
CS6 perpetual Mac is version 13.0.6 Windows is version 13.0.1.3 Subscription cloud version is 13.1.2. If you have a cloud subscription and a perpetual licence you would not be able to have both version install at the same time on same machine. What does your Creative Cloud desktop application show and if you start CS6 if the flash screen shows or you can get to menu Help>About Photoshop what version i shown 13.0.6 or 13.0.1.3 or 13.1.2?
Maybe you are looking for
-
I got a new Lenovo Windows computer and I'm trying to transfer my iTunes library to my new computer. I can't figure out how. I tried plugging in my iPhone and it synched what music was on my phone but I don't have my entire library on my phone and no
-
Right Click not working on SCCM console
Hi All, I have SCCM 2012 R2 CU4 in my lab were Right click is not working. I think there is a problem with the console, it was working fine after the upgrade so i am sure it was not an upgrade issue. Please help. Thanks, Pranay.
-
Showing BPM attributes in UWL custom columns.
Hi All, Need help in a query, we have to show BPM attributes in SAP Portal UWL custom columns. We could get information on adding new Custom column in UWL iView but did not find any documentation on how to map the BPM attributes to the UWL custom col
-
Hi All, i've download a RESPONSIBILITY and now want to upload it to another instance. But always got this error. question: when download a responsibility, i will download all functions, menu including in this responsibility is it correct? Can someone
-
Web gallery or slideshow, non-Flash, for mobile devices needed
Hi, My website -- www.johnblaustein.com -- is all Flash and I'm getting some mild complaints from viewers who would like to see my work on an iPad or iPhone. I built my galleries with SlideShowPro and I know Todd at SSP is working on a mobile device