cancel
Showing results for 
Search instead for 
Did you mean: 

Java Install, Cannot insert a key value pair into the secure store fails,

Former Member
0 Kudos

Dear All,

I'm doing Java Intallaion in BI7 on CI and in the midle of installtions we encounter,

TRACE [iaxxejsexp.cpp:199]

EJS_Installer::writeTraceToLogBook()

NWException thrown: nw.secureStore.cannotInsertIntoSecureStore:

Cannot insert a key value pair into the secure store fails; see output of log file SecureStoreInsert.log:

SAP Secure Store in the File System - Copyright (c) 2003 SAP AG

A key/value pair with this key already exists in the store..

ERROR 2008-04-23 11:36:21

CJSlibModule::writeError_impl()

CJS-30051 Cannot insert a key value pair into the secure store fails; see output of log file SecureStoreInsert.log:

SAP Secure Store in the File System - Copyright (c) 2003 SAP AG

A key/value pair with this key already exists in the store..

TRACE [iaxxejsbas.hpp:460]

EJS_Base::dispatchFunctionCall()

JS Callback has thrown unknown exception. Rethrowing.

ERROR 2008-04-23 11:36:21 [iaxxgenimp.cpp:731]

showDialog()

FCO-00011 The step insertAdminDataInSecStore with step key |NW_Addin_CI|ind|ind|ind|ind|0|0|NW_CI_Instance|ind|ind|ind|ind|8|0|NW_CI_Instance_Configure_Java|ind|ind|ind|ind|4|0|insertAdminDataInSecStore was executed with status ERROR .

TRACE [iaxxgenimp.cpp:719]

showDialog()

There's any want in here can help us Please,

Thanks and Best Regards,

Chrisna

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

All,

I have respond from sap below,

Hello Chrisna,

Normally this error appears when a previous installation was attempted

but full deinstallation was not made.

Did you already do several installation attempts? If yes, did you run

the uninstallation service of sapinst ?

If you have already installed the java-database the values already existand there is a problem to overwrite them.

There are 2 possible solutions. First of all, please try the following

workaround:

- Rename the files 'SecStore.properties' and 'SecStore.key' and restart

Sapinst from where it failed.

If this does not work them it is always our recomendation to perform a

clean uninstallation of Java. If this is an ABAP+JAVA system there is noneed to uninstall the ABAP instance here, only Java. For the clean

uninstallation please use sapinst service, please read the installation

guide (Deleting SAP System) about "clean" uninstallation.

Thanks and kind regards,

In our cases is i do rename the two files and retry the isntallations is still not working event i do from fresh installation,

So it's means I should delete the all java installation first and starting the new fresh java installation,

Please if you want delete the java engine you can found in this forum as well explained how to delete java from your system without delete the Abap enginne,

Hope I can share this to all of you

Thanks and best Regards,

Chrisna

Former Member
0 Kudos

The clean way to Uninstall JAVA is through SAPINST.

Make user you drop only the JAVA Schema ID (SAPSR3DB)

-


If you want to uninstall manually, follow as mentioned below :

1. Stop the central services instance and all dialog instances of your SAP system:

a) Log on to the corresponding instance host as user <sapsid>adm.

b) Execute the following commands:

To stop the central services instance:

stopsap r3 <SCSinstanceName>

To stop a dialog instance:

stopsap r3 <DialogInstanceName>

2. Stop the J2EE Engine of the central instance:

a) Log on to your SAP system.

b) Call transaction SMICM.

c) Choose Administration J2EE Instance (local) Send Hard Shutdown

2. Drop the J2EE DB schema (the db schema for this one SAP SID) BE VERY CAREFUL, do not drop the DB schema for another existing system or

the ABAP schema.

a. Log on as user ora<dbsid>.

b. Start sqlplus and connect to the database. Enter:

sqlplus /nolog

c. SQLPLUS>connect / as sysdba

d. Enter the following command to delete the database objects of the database schema:

SQLPLUS> drop user SAP<SCHEMA_ID>DB cascade;

e. Enter the following command to get the file name of the corresponding data file in the file system:

SQLPLUS> select file_name from dba_data_files where \

tablespace_name = ’PSAP<SCHEMA_ID>DB’;

f. Enter the following command to delete the tablespace of the database schema:

SQLPLUS> drop tablespace PSAP<SCHEMA_ID>DB including contents;

g. Exit sqlplus:

SQLPLUS> exit

3. Remove folder "data" at: /sapmnt/QO1/global/security/data

4. Remove folder "SDM" at: /usr/sap/<sid>/<Central instance>/SDM

5. Remove folder "j2ee" at: /usr/sap/<sid>/<Central instance>/j2ee

6. Revert CI instance profile to their original state (backup copies should exist) # they should be in the state before the start of the JavaAdd In

7. If lines beginning with the following parameters appear, delete these lines from the default profile, /usr/sap/<SAPSID>/SYS/profile/DEFAULT.PFL:

j2ee/dbname =

j2ee/dbtype =

j2ee/dbhost =

j2ee/dbadminurl =

j2ee/scs/host =

j2ee/scs/system =

j2ee/ms/port =

8. If lines beginning with the following parameters appear, delete these lines from the central instance pro?le and from all dialog instance pro?les,

/usr/sap/<SAPSID>/SYS/profile/<SAPSID>_<INSTANCE_NAME>_<host_name>:

exe/j2ee =

exe/jlaunch =

rdisp/j2ee_start_control =

rdisp/j2ee_start =

rdisp/j2ee_timeout =

rdisp/j2ee_libpath =

rdisp/frfc_fallback =

jstartup/trimming_properties =

jstartup/instance_properties =

jstartup/protocol =

jstartup/vm/home =

jstartup/max_caches =

jstartup/release =

j2ee/dbdriver =

9. Delete the central services instance

10. Restart ABAP and Install JAVA Add-in

Edited by: Shaji Jacob on Apr 27, 2008 11:46 AM

Former Member
0 Kudos

I have resolved this issue by changing SID.

1- Copy SecStore.properties file (backup) Path=USR/SAP/<SID>/SYS/GLOBAL/SECURITY/DATA

2- Search SID and replace with dummy SID

3- Retry installation

4-once it continue then replace secstore.properties file with orginal/bakup

5- if you not replace it will give error on next step then replace and retry.

Regards

Bilal Hussain

Former Member
0 Kudos

Usually, this means the secure store is corrupt. There is a way to repair it(create new). Follow note 727827.

The fastest way is to restart a fresh installation at times

Regards,

Snehal

Former Member
0 Kudos

Thanks for the answer but seem this not security issue ,

any way thank

Cheers,

Chrisna

Former Member
0 Kudos

You can rename the files and retry install.

Former Member
0 Kudos

Give write permission to the files

The files SecStore.key, SecStore.properties are located under /sapmnt/<SID>/global/security/data.

Edited by: Shaji Jacob on Apr 23, 2008 10:49 AM