Unsolved
This post is more than 5 years old
1 Message
0
1093
Problem with Delete via Java Programm and Centera SDK
Hey,
at the Moment I try to delete some Clips on our Centera via Java.
The Centera lines are the following:
1. To open up a Connection to Centera:
String appName="Deletion";
String appVersion="1.0";
try {
FPPool.RegisterApplication(appName,appVersion);
} catch (FPLibraryException e2) {
System.out.println("Error while registering application");
System.exit(0);}
try {
FPPool.setGlobalOption(
FPLibraryConstants.FP_OPTION_OPENSTRATEGY,
FPLibraryConstants.FP_LAZY_OPEN);
}catch (FPLibraryException e2) {
System.out.println("Error while setting new features");
System.exit(0);}
try { thePool=new FPPool(Centera);} // Centera is a Variable with the IP Adress and a PEA File ?PEA-FILE
catch (FPLibraryException e1) {
System.out.println("No Connection to Centera possible");}
This Way I open up a Centera Connection which seems to be succesfully.
I give this Connection to another class with Deletion command:
public boolean delete() {
try {
FPClip.Delete(Pool,clip); //Pool is my Connection to Centera, Clip is the Clip which I want delete
}catch (FPLibraryException e1) {
System.out.println(e1);
System.out.println("Error while deleting clip");}
If I am execute my Program I get the following errors:
com.filepool.fplibrary.FPLibraryException: The use of this operation is restricted. (transid='...........)
At google I found that this should be an error if the PEA File does not own all rights.
I used CenteraVerify to check my PEA File and it has all rights, write, delete, read....
This couldn´t be the Problem.
I removed the PEA File from Source for checking of Anonymous Access, but it didn´t work (good :-) ).
With my Program I can check the existing Clips on Centera with a check function (FClip.exists).
This works perfect. But my delete didn´t work.
Are there anybody who can help me with this?
Maybe had the same problem and find a solution?
Thank you.
Best Regards
kim_marivoet
41 Posts
0
July 31st, 2014 01:00
Hi,
Can it be that the retention period of the clip hasn't expired yet?
Regards,
Kim