cancel
Showing results for 
Search instead for 
Did you mean: 

Initialize UME

Former Member
0 Kudos

Hi guys

I would like to retrieve some information from the UME and get the following exception: com.sap.security.api.UMRuntimeException: UME factory 'com.sap.security.api.IUserFactory' cannot be accessed because UME initialization has not started yet. Please check UMFactory.isInitialized() before using UME functionality.

How do I initialize the UME?

Are there any code nippets?

Regards,

Go:khan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

please check <a href="https://help.sap.com/javadocs/NW04/current/um/com/sap/security/api/UMFactory.html">THIS</a> to know more about UMFactory and different ways how it can initialised.

But - UMFactory initialization is required explicitly only when you are using it standalone. Normally portal runtime should initialize it automatically. If you are using the UMFactory inside portal I guess you should check whether the UMFatory related services are getting started properly or not instead of coding something to initialize it.

Regards,

Shubhadip

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Guys

Thanks for your replies.

I was testing it standalone. Now, I have tested it into the Portal as GP-Background Callable Object and it works. There is not initialization error any more.

Regards,

Goekhan

Former Member
0 Kudos

Hi Goekhan,

There can be two ways of doing this , either you explicitly write the method which initializes the UME FACTORY or

justc heck whether the services releated to the UME is running or not,you can do that through VA ( Server-->deploy -->application )

Thanks

Pankaj

Former Member
0 Kudos

Hi pankaj

I have the same problem

how can i , write the method to initialize the UME FACTORY explicitily.

I am unable to do it.

It is showing some errors.

Can you please send me the code to initialize UME.

Thanks in advance

Regards

Bala