Hmm, another issue I found in CredentialManager.java is:

/**
      * Returns a CredentialManager singleton.
      */
     public static CredentialManager getInstance() throws CMException {
         synchronized (CredentialManager.class) {
             if (INSTANCE == null) {

                 INSTANCE = new CredentialManager();
             }
         }
         return INSTANCE;
     }

I change    INSTANCE = new CredentialManager(masterPassword);
to INSTANCE = new CredentialManager();

Because when instance is null, a dialogue should be popped up for user 
input of the master password.
I might be wrong but when I fix this and the SPI definition in 
credential-manager-ui, my cagrid-activity
seems to work fine as it did before.

Too difficult for me to spot these :-)

Wei

On 2/18/2010 4:05 AM, Alan Williams wrote:
> Wei Tan wrote:
>    
>> BTW, in credential-manager-ui, file
>> net.sf.taverna.t2.security.credentialmanager.MasterPasswordProviderSPI
>> <cid:[email protected]>
>> the declaration is still
>> net.sf.taverna.t2.security.credentialmanager.UIMasterPasswordProvider
>> in stead of
>>
>> net.sf.taverna.t2.security.credentialmanager.password.UIMasterPasswordProvider
>> Any idea?
>>      
> Darn.  It's fixed in the main trunk and should be there in the tagged
> version that the build pulls in.  I'll check what has happened in the
> externals.
>
>    
>> Wei
>>      
> Alan
>
> ------------------------------------------------------------------------------
> Download Intel&reg; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> taverna-hackers mailing list
> [email protected]
> Web site: http://www.taverna.org.uk
> Mailing lists: http://www.taverna.org.uk/taverna-mailing-lists/
> Developers Guide: http://www.mygrid.org.uk/tools/developer-information
>    

-- 
Wei Tan, Ph.D.
Computation Institute
the University of Chicago|Argonne National Laboratory
http://www.mcs.anl.gov/~wtan


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
taverna-hackers mailing list
[email protected]
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/taverna-mailing-lists/
Developers Guide: http://www.mygrid.org.uk/tools/developer-information

Reply via email to