Why ORDIMAGE.setProperties can't execute?
Dear Friend:
I am chinese. I want to store image in interMedia. I have developed an OCI programe using VC++,And I have restored BLOB in ORDSYS.ORDImage. Then I must to apply the procedure belowing here:
DECLARE
B ORDSYS.ORDImage;
BEGIN
SELECT CONTENT INTO B FROM LXC.IMAGE WHERE ID=181 FOR UPDATE;
B.setProperties();
UPDATE LXC.IMAGE SET CONTENT = B WHERE ID=181;
END;
At the time , Oracle report ORA-28575. Then I think my Net8 may be have problems, but I can't find
any problem in it.Why? What should I to do? How to call an anonymity procedure in OCI.What is the prepare
condition?
I found ORACLE report ORA-28575 when execute B.setProperties(), why?
Student Lu Xiaochun
oh, and you probably need a subquery on the where statement
update temp_string
set descr_string = descr_string || ',' || to_char( v_temp_resource.data_column )
where temp_index_no_1 IN (select temp_index_primer
from v_temp_index_no_1);
Assuming that v_temp_index_no_1 is a table...
Similar Messages
-
Simon, why do I get an OrdImage.setProperties() exception ORA-22288
Hi Simon;
I've debugged a problem with the ImageExample to the point where I'm convinced one cannot call setProperties indirectly as the example code shows. SetProperties can only be called during a load - for example imgObj.LoadFromFile
The example from OTN sample code shows a sample method:
public void setPropertiesExample(OracleConnection con)
try
int index = 0;
Statement s = con.createStatement();
OracleResultSet rs =
(OracleResultSet)s.executeQuery("select * from ordimagetab where id = 5 for update");
while(rs.next())
index = rs.getInt(1);
OrdImage imgObj = (OrdImage) rs.getCustomDatum(2, OrdImage.getFactory());
imgObj.setProperties();
System.out.println("set Properties called");
if(imgObj.checkProperties())
System.out.println("checkProperties called");
System.out.println("setProperties successful");
System.out.println("checkProperties successful");
System.out.println("successful");
else
System.out.println("checkProperties called");
System.out.println("setProperties not successful");
System.out.println("checkProperties successful");
OraclePreparedStatement stmt1 =
(OraclePreparedStatement) con.prepareCall("update ordimagetab set image = ? where id = " + index);
stmt1.setCustomDatum(1,imgObj);
stmt1.execute();
stmt1.close() ;
rs.close();
s.close();
catch(Exception e)
System.out.println("exception raised " + e);
}No matter how many times I set this example or create something similar I get this error when I do something like:
ImageExample ie = new ImageExample();
con = ie.connect();
ie.setPropertiesExample(con);
exception raised java.sql.SQLException: ORA-22288: file or LOB operation FILEOPEN failed
No such file or directory
ORA-06512: at "ORDSYS.ORDIMG_PKG", line 418
ORA-06512: at "ORDSYS.ORDIMAGE", line 25
ORA-06512: at line 2
I noticed the only way to avoid this problem is to load the image immediately prior to the setproperties call...like:
OrdImage imgObj = (OrdImage) rs.getCustomDatum(2, OrdImage.getFactory());
imgObj.loadDataFromFile("imgdemo.dat");
imgObj.setProperties();
imgObj.getDataInFile("fileexample.dat");Here I get setproperties to work, but I need to change a lot of code to load images in this form...
I am using the constructors provided and the functions you provided some time back - so I do not believe initialization is the issue here. Any ideas what might be wrong here??Hi Chris,
There are a number of configuration and/or setup problems that can
cause this error. But first, it might be worth describing at a higher
level what is going on here.
By default an interMedia object can store or 'reference' data in one
of 3 ways:
- local: the data is stored locally in the BLOB, the local flag is
set to 1 to indicate this.
- FILE: the source type is set to FILE, which indicates the data is
stored in a directory of which the server is aware and to
which the user/schema has been granted access. The source
location specifies the database server directory name, which
will be upper case unless you created a mixed-case name with
the CREATE DIRECTORY command. The source name specifies the
file name, which is case sensitive on Unix platforms.
- HTTP: the source type is set to HTTP, which indicates the data is
accessed via a web server. The source location is the domain,
port and path and the source name is the item name.
If you instantiate an ORDIMAGE object using something like:
CREATE OR REPLACE DIRECTORY MY_IMAGE_DIR AS 'c:\myphotos';
INSERT INTO MY_IMAGES VALUES
( 1, ORDSYS.ORDIMAGE.INIT( 'FILE', 'MY_IMAGE_DIR', 'photo1.jpg' );then the setProperties method is going to try to open photo1.jpg in
the directory known to the database as MY_IMAGE_DIR. This can fail
with "ORA-22288: file or LOB operation FILEOPEN failed; No such file
or directory" for a number of reasons:
[list]
[*]The directory MY_IMAGE_DIR was never created using CREATE DIRECTORY
[*]The user was not granted read access to MY_IMAGE_DIR
[*]The directory c:\myphotos doesn't exist
[*]The file photo1.jpg doesn't exist in c:\myphotos
[list]
Bear in mind that, essentially, everything is happening at the server,
all the client is doing is causing the setProperties method of the
ORDIMAGE type to be invoked at the server, which reads the image file,
which must be accessible to the server. Assuming everything to be OK,
then the properties will be read from the image and stored in the
object. Of course, since BFILEs are writable, you can't operate on
this image to scale, crop or convert it, for example.
However, in your case, you're hitting one of the problems listed above.
Bear in mind, there are others. For example, although you might be able
to access an image on a shared network drive of some sort, doesn't mean
to say that the database server can do so. This is a common problem on
NT. When logged in as you, you might be able to mount a network drive
and access an image file on that drive. However, that access is being
performed with your NT credentials and access rights. The database server
doesn't have the same credentials and access rights and in all likelyhood
will NOT be able to access the same file. Of course, the same situation
can occur in Unix land with NFS.
Contrast all that with what happens when a client application calls
loadDataFromFile. In this case, the client is reading image data from
a file that is local to the client (which could easily be on a
different machine than the server) and writing that image data
directly into the database as the contents of the BLOB. Therefore,
assuming the image format is recognized, setProperties is going to
succeed because the data is in the database, not external to it.
To sum up: setProperties can be called on an image when stored as a FILE.
However, the database server has to be able to access the file and the
directory in which it is stored. The reason it works when you call
loadDataFromFile is that the data is written to the BLOB in the database,
so the database has access.
Hope that makes sense,
Simon
null -
Why I can't execute Plan Settlement after changing CO document in KANK?
I changed assignment of Plan Settlement Business Transaction from Planning Transaction Group Number ranges to Settlement Group Number Ranges in KANK.
I did it for having the document number ranges consistency : all settlement (Actual and Plan) within one number range group, while all planning transaction within one number range group.
However, after I did it, I can not execute Plan Settlement in KO9E.
It hasn't got any problem before (when I hasn't changed it).
The system is giving error message below:
No settlement for this sender
Message no. KD273
Diagnosis
The system has two business transactions for plan settlement:
1. Settle plan costs
2. Settle plan costs for sales
The system could not determine any of these business transactions.
I have tried changing back the number range assignment, but no result. I still can't do plan settlement.
Please help me asap....Thanking youHi,
OBMSG (nothing but table T100S) and add the entries in OBA5 (view V_T100C).
Please go to OBMSG
ignore the cross client warning message.
Find out the application area KD
Select that and click on messages
If 273 message number is not there, then enter the same and Allowed is you please put WE and Standard W, then Tick switch off message.
Then please go OBA5
Enter work area KD
Enter message No.273
Online select - (switch off the message)
Standard - (switch off the message)
Regards,
Ravi -
Why the ejb can not pass the complie?
I just use the work shop to create a simple ejb(SampleEJB.ejb) like:
package SampleEJB;
import javax.ejb.*;
import weblogic.ejb.*;
* @ejbgen:session
* ejb-name = "Sample"
* @ejbgen:jndi-name
* remote = "ejb.SampleRemoteHome"
* @ejbgen:file-generation remote-class = "true" remote-class-name = "Sample"
remote-home = "true" remote-home-name = "SampleHome" local-class = "false" local-class-name
= "SampleLocal" local-home = "false" local-home-name = "SampleLocalHome"
public class SampleEJB
extends GenericSessionBean
implements SessionBean
public void ejbCreate() {
// Your code here
* @ejbgen:remote-method
public void Hello(){
System.out.println("Hello");
* @ejbgen:remote-method
public void Hello2(){
System.out.println("Hello2");
but when i build it. The compiler give me error:
¾¯¸æ: SampleEJB.java:14: ÕÒ²»µ½ JNDI Ãû³Æ¡£
[Info:] Creating D:\DOCUME~1\Yong\LOCALS~1\Temp\/wlw_SampleEJB_build\SampleEJB\SampleHome.java
[Info:] Creating D:\DOCUME~1\Yong\LOCALS~1\Temp\/wlw_SampleEJB_build\SampleEJB\Sample.java
[Info:] Creating D:\DOCUME~1\Yong\LOCALS~1\Temp\/wlw_SampleEJB_build\META-INF\ejb-jar.xml
[Info:] null [Bean] MAKE CLASS NAME G:SampleHome P:SampleEJB N:SampleHome
[Info:] null [Bean] MAKE CLASS NAME G:Sample P:SampleEJB N:Sample
[Info:] Creating D:\DOCUME~1\Yong\LOCALS~1\Temp\/wlw_SampleEJB_build\META-INF\weblogic-ejb-jar.xml
[Info:] Creating D:\DOCUME~1\Yong\LOCALS~1\Temp\/wlw_SampleEJB_build\ejbgen-build.xml
SourceLoader roots: 10
post-ejbgen:
¾¯¸æ: EJBGen ok. Compiling...
Compiling 3 source files to D:\DOCUME~1\Yong\LOCALS~1\Temp\wlw_SampleEJB_build
¾¯¸æ: All files compiled. Running ejbc...
<2004-5-3 ÏÂÎç16ʱ20·Ö17Ãë CST> <Warning> <EJB> <BEA-010212> <The EJB 'Sample(Jar:
D:\DOCUME~1\Yong\LOCALS~1\Temp\wlw_SampleEJB_build)' contains at least one method
without an explicit transaction attribute setting. The default transaction attribute
of Supports will be used for the following methods: remote[Hello2(), Hello()]
>
SourceLoader roots: 60
D:\DOCUME~1\Yong\LOCALS~1\Temp\wlw_SampleEJB_build\SampleEJB\Sample_vngkt3_HomeImpl.java:13:
cannot resolve symbol
symbol : class SampleHome
location: class SampleEJB.SampleEJB
implements SampleEJB.SampleHome, weblogic.utils.PlatformConstants
^
D:\DOCUME~1\Yong\LOCALS~1\Temp\wlw_SampleEJB_build\SampleEJB\Sample_vngkt3_HomeImpl.java:69:
cannot resolve symbol
symbol : class Sample
location: class SampleEJB.SampleEJB
public SampleEJB.Sample create ()
^
D:\DOCUME~1\Yong\LOCALS~1\Temp\wlw_SampleEJB_build\SampleEJB\Sample_vngkt3_EOImpl.java:15:
cannot resolve symbol
symbol : class Sample
location: class SampleEJB.SampleEJB
implements SampleEJB.Sample, weblogic.utils.PlatformConstants
^
D:\DOCUME~1\Yong\LOCALS~1\Temp\wlw_SampleEJB_build\SampleEJB\Sample_vngkt3_HomeImpl.java:73:
cannot resolve symbol
symbol : class Sample
location: class SampleEJB.SampleEJB
return (SampleEJB.Sample) super.create(md_ejbCreate);
^
4 errors
´íÎó: ERROR: Error from ejbc: Compiler failed executable.exec
´íÎó: ERROR: ejbc couldn't invoke compiler
BUILD FAILED
´íÎó: ERROR: Error from ejbc: Compiler failed executable.exec
´íÎó: ERROR: ejbc couldn't invoke compiler
Why? who can give me a handI met the same problem. I am a newbie, but why weblogic even can not build a simple startup ejb project?
-
Can't execute on encrypted device
Hi,
i recently encrypted my home partition. it works ok now but i can't execute any programms. i don't know why.. my mount options are:
the permissions are set correctly. even as root you can't execute a thiing
/dev/mapper/home /home/ngerrit ext3 exec,defaults,noauto,user 0 0
i know that exec is set by defaults too, but ii wanted to try it
hope someone knows whats going on..
thx
ngerritThe last "user" also enables "noexec" which will override the former "exec,defaults", see 'man mount'.
-
my ipod touch 2g is no longer being recognized by itunes why and what can i do i have reset it and everything
If the Reset doesn't work, try a Restore. Note that it's nowhere near as quick as a Reset. Connect via cable to the computer that you use for sync. From iTunes, select the iPad/iPod and then select the Summary tab. Follow directions for Restore and be sure to say "yes" to the backup. You will be warned that all data (apps, music, movies, etc.) will be erased but, as the Restore finishes, you will be asked if you wish the contents of the backup to be copied to the iPad/iPod. Again, say "yes."
At the end of the basic Restore, you will be asked if you wish to sync the iPad/iPod. As before, say "yes." Note that that sync selection will disappear and the Restore will end if you do not respond within a reasonable time. If that happens, only the apps that are part of the IOS will appear on your device. Corrective action is simple - choose manual "Sync" from the bottom right of iTunes.
If you're unable to do the Restore, go into Recovery Mode per the instructions here. -
I have a document that in Word required a password to open. I copied and pasted it to Pages. Put the password protection on. Now if I click on that filename in Finder it automatically opens.Why. Anyone can read it. How do i protect it again?
You saved it after setting the Password? :
Inspector > Document > Document > Require Password to Open
I just tested it and it shows up ijn The Finder with a padlock on the file icon and does require a password to open.
Peter -
I'm running windows vista home premium and my computor won't let me download apple products like safari and itunes. why? what can i do to fix this? i belive this happened when i tryed to update itunes 10.whatever it tells me "There is a problem with windows installer package. A program required for this install to complete could not be run. Contact a support personnel or vendor." So im contacting apple as i think you guys might be able to halp me. can you help please? Thanks
I apoligise i didn't relise that since i have seen apple support people post on questions here i misunderstood.
Yes i am 100% i downloaded the setup for safrai and itunes for windows from the apple website.
P.S. I apoligise for my bad spelling it's not my strong suite -
I have Firefox 6.0 running under Windows XL. When I forward an email with a URL in it, my recipients tell me the URL is not highlighted and they have to cut and paste it into their browser. Why? How can I get my forwarded URLs to be highlighted?
If you think getting your web pages to appear OK in all the major browsers is tricky then dealing with email clients is way worse. There are so many of them.
If you want to bulk email yourself, there are apps for it and their templates will work in most cases...
http://www.iwebformusicians.com/Website-Email-Marketing/EBlast.html
This one will create the form, database and send out the emails...
http://www.iwebformusicians.com/Website-Email-Marketing/MailShoot.html
The alternative is to use a marketing service if your business can justify the cost. Their templates are tested in all the common email clients...
http://www.iwebformusicians.com/Website-Email-Marketing/Email-Marketing-Service. html
"I may receive some form of compensation, financial or otherwise, from my recommendation or link." -
I have ad Apple ID on my iPad , when I use the apple on my iPhone for the first time, I put in my Apple ID for the iPad, didn't work. Need to create a new one. Why? How can I just use my iPad ID on my iPhone?
Hi kamfong,
Went to Settings where?
If you want to use your exisiting Apple ID on your iPad, you need to:
1. Go to Settings>iTunes & App Store and sign out the new ID, and then sign on the old one
2. Go to Settings>iCloud, scroll to the bottom and delete the iCloud account, and the sign back onto iCloud using the old ID
You still have not indindated why you are saying that using your old ID originally "didn't work". What do you mean by that? Did you get some sort of error when you tried to sign on with your exisiting Apple ID?
Cheers,
GB -
Every time I open my "E-Mail" account, it always ask me for the password. Why? How can I lock in my password permently?
I don't understand why I'm getting a message saying the problem is fixed.
Only the original poster has the capability to mark the question as solved.
So, some how, you answered your own question as solved. -
Apple_ID_card_declined_for_this_country
How can you expect the customer to have a LOCAL/COUNTRY Based Credit Card every where we go???
Last week I was on holiday in HK,
and
from my Hotel I was able to use m VN Credit Card with my Apple ID and purchase online!
Why THIS WEEK, can't I use my HSBC Platinum Credit Card from Vietnam,
for my Singapore Apple ID account ,
while working here in Vietnam???Unfortunately, this is a problem that is driven by the DRM Dictatorship. Despite the proliferation of mobile devices and the fact that there are many of us who do a lot of international travel, content providers don't want you to have access to their products outside of your homeland. The Balkanized mentality of the DRM Dictatorship is way out of touch with the modern world.
At least Apple, to its credit, allows you to use your accounts outside of your homeland as long as you have the proper credentials for them. Most other services use the more Draconian geolocation filtering which does require you to be physically present in your homeland. For the most part, you are not allowed to leave home if you want access to your favorite entertainment! -
In my iPad 2 with IO6 today I can not send emails from my gmail account, they go to the outbox directly...why? How can i solve this problem? ..I restarted the IPad but the problem was not solved. Please help.
Greetings,
Questions:
1. What version of the Mac OS are you running (Apple > About this Mac)?
2. What version of the iOS are you running (Settings > About)?
3. Do you use MobileMe/ iCloud or another server based sync solution like Google or Yahoo?
4. Do other changes to synced information like Address Book content sync successfully back and forth?
Based on your description it sounds like you have a 1 way sync issue. Events sync fine between the iOS devices and fine from the computer to the iOS devices but not from the iOS devices to the computer.
Try:
Backup your computer and iOS devices before doing anything else:
http://support.apple.com/kb/HT1427
http://support.apple.com/kb/ht1766
Ensure all the devices in use are fully up to date: Apple > Software Update / Settings > General > Software Update
Make separate backups of critical data:
Backup your computer Addressbook: http://docs.info.apple.com/article.html?path=AddressBook/4.0/en/ad961.html
Backup your computer iCal: http://support.apple.com/kb/HT2966
Reset syncing on your Mac: http://support.apple.com/kb/TS1627
Reply back if that does not resolve your issue.
Hope that helps. -
How can I execute a Procedure with OUT variable is %ROWTYPE on SQL Prompt
Hi,
I have a procedure with OUT variable is %ROWTYPE
How can I execute the following procedure on SQL prompt.
(without creating anonymous block)
CREATE OR REPLACE PROCEDURE zz_sp_EMP(VEMPNO IN EMP.EMPNO%TYPE,
V_REC IN OUT EMP%ROWTYPE)
AS
BEGIN
SELECT * INTO V_REC FROM EMP WHERE EMPNO = VEMPNO;
END;
Thanks & Regards,
Nareshas previous posters said: it's not possible to do this without declaring a variable in the anonymous block.
With anonymous block it would look like this (had to change it a bit, since i'm using hr-schema on oracle XE):
declare
l_rec EMPLOYEES%ROWTYPE;
begin
zz_sp_EMP(VEMPNO => 100, V_REC => l_rec);
DBMS_OUTPUT.PUT_LINE ( 'first_name = ' || l_rec.first_name );
DBMS_OUTPUT.PUT_LINE ( 'last_name = ' || l_rec.last_name );
end;
first_name = Steven
last_name = King -
How can i execute vb scripts in java program
hi
how can i execute any batch files or any other exe files (vb scripts) from java programs
thanksHi,
You use Runtime.exec to execute commands / exe-files. See the documentation (and remember that it will only work on windows):
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Runtime.html
/Kaj
Maybe you are looking for
-
How can I boost the range of my router?
I have fios for phone/tv/Internet and use the Verizon MI24-WR router which works fine but my bedroom on the other side of the house doesn't get a signal. Any recommendation on improving the signal? I have the router in the office connected to the pri
-
Where is Archived PDF stored in Adobe Database
For reporting and storage purposes I would like to store the PDFs received by the LiveCycle Server as a part of a workflow. I would like to know where are the current archived PDFs stored ? or what would be the best way to store the PDF (as a PDF) in
-
I am looking to develop a class to extract the files from a web site, by giving arguments of the URL and a local directory the class will create copies of the Http files along with any image links found within each page. Eg if given java fileSuck www
-
RAID drivers that support Windows 2003 server for Qosmio G30-153
Hi, Where can i find RAID drivers that support Windows 2003 server for Qosmio G-series(G30-153 ) Thanks in Advance. Abdul Hameed
-
Endless problems... missing effects
I don't know what has been going on, but I seem to be having continual trouble. My effects tab was gone, but I got it back. But now, it looks different, and does not have all the effects. For example, under 'amplitude' I no longer have 'normalize.' W