Problem: unable to initialize credential store

By W.ZH  Jan 2009

 

Issue:

when I migrate a sample project from 10g or 11g to my version 11g jdev, every thing looks fine and project migrated, but when you try to run it, you will see the JDBC connection error in log (password null), and also you will see that if you change or even open the DB connection and then try to save it, get an error of “unable to initialize credential store.”

Possible solutions from OTN forum:

1.

This looks like a corrupted cwallet.sso file. It happens sometimes that this file, which holds the credentials of the connections and roles.

This file is located in the src/META-INF folder. It can be recreated if you close JDev, delete (or rename) the file and start JDev again. Then you have to add the connection to the applications again. This should recreate the cwallet.sso file.(W.Zh: I found there are two sso  and
jps-config.xml files in my project. i think this is a migration issue.)

To my knowledge this should not happen in JD11.1.1.0.1 This cwallet.sso problem was first discovered in TP4 (frequently), where the file got corrupted when you interrupt starting the embedded server.

This has not happened to me since JDev 11.1.1.0.0 I just remember this when I saw you error.

Timo

2.

I’ve figured a solution for this bug.

– Creating a new application

– Creating a new connection in the app ressources (now it’ll work : no “Unable to initialize credential store”)

– Copying Model and ViewController project from previous application

Works!

Luc-

3.

Hi. I recently got JDev 11.1.1.0.1 and when I opened my current project, it was migrated from JDev 11.1.1.0.0 and I got the same problem. I solved this checking
jps-config.xml file, fixing the security context. I don’t know why it was incorrectly set after migration. After I fixed and set up correctly the security context, I just tested my connection, retype password and save. That’s all. I think it doesn’t have relation with cwallet.sso file in this case.

Hope this resolution be usefull for somebody.

DEMR

W.ZH:  I slove my problem by method 2 (This time OTM forum can have answers ;-)).  Jdev 11g seems need some time to get mature.

Advertisements