on 06-22-2004 3:49 PM
I'm trying to read Secure Storage based on the example from the help and I'm getting following exceptions.
This code works:
SecureStorageRuntimeInterface secStore = (SecureStorageRuntimeInterface) o;
RemoteSecureStorageClientContextInterface myContext = secStore.getSecureStorageClientContext();
Now when I try to read
Object myObject = myContext.retrieveObject("NX1_JCO");
I got:
com.sap.security.core.server.securestorage.exception.ObjectRetrievalException: Could not find clientID
and
com.sap.engine.frame.core.configuration.NameNotFoundException: A configuration with the path "securestorage/services/servicesp4p4~jar" does not exist.
Hello Andrei,
please ensure that
1.) write and read opperation is done in same application
2.) a reference from your application is set to service tcsecsecurestorage~service.
The reference you can set with "application-j2ee-engine.xml":
<reference
reference-type="hard">
<reference-target
target-type="service">tcsecsecurestorage~service</reference-target>
</reference>
regards Maurice
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Maurice,
I have service reference in application-j2ee-engine.xml. But when I try to execute, the code I showed, inside J2EE Engine I'm getting ClassCastException when I try to cast obtained remote object to SecureStorageRuntimeInterface.
Casting is working though when I try to access secure storage from remote java client, but in this case I have that ClientID problem.
sounds strange.
Please check in
Visual Administrator -> ClassLoaderViewer -> services -> tcsecsecurestorage~service
that your application is 'user' of "service:tcsecsecurestorage~service"
(Also have a look on your application, that classloader "service:tcsecsecurestorage~service" is referenced.)
Just to avoid any additional work. In future releases (SP7) using "secure storage" from remote clients is no longer possible .
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.