Skip to Content
author's profile photo Former Member
Former Member

UME 4.0 Initializing the UMFactory

I've been trying to write a servlet to access the UME. When I try

UMFactory umf = UMFactory.getInstance();

IUserAccountFactory _userAccountFactory = UMFactory.getUserAccountFactory();

I get an exception java.lang.IllegalStateException. I know I have to initialize the UMFactory but the documentation states that UMFactory.getInstance takes care of the Initialization if not done prior to calling. Further, all the files in ume directory that contain the sapum.properties and other property files are appended with a .bak. So I am unsure as to how to go about initializing the UMFactory. Help is appreciated.

Thanks,

Ravi...

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Posted on Feb 21, 2004 at 09:26 PM

    Well, seems to be a bug.

    Use a workaround or open an OSS message please.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 28, 2004 at 12:31 AM

    Did you try

    IUserAccountFactory _userAccountFactory = UMFactory.getUserAccountFactory();

    statement alone? without initializing UMFactory.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      i get the same exception

      java.lang.IllegalStateException: Could not initialize UMFactory! Please set property 'ume.cfg.path' or call UMFactory.initialize() first

      even after removing UMfactory.getInstance().

      do i need to make any other changes.

      Regards

      srini

  • author's profile photo Former Member
    Former Member
    Posted on Sep 02, 2004 at 02:26 PM

    Hi,

    Did any of you succeed?

    Thanks

    Dov

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Oliver Nocon

      Hello all,

      Well, i am fairly new to this environment. I have got a few tasks to finish and one of them is to expose the UME API as a WebService for updates.

      I also did get hit by the same exceptions when i try to us UMFactory. I am here not just because this is one of my problems but i being fairly new to J2EE environment am struggling a bit with some basic functions here as well. I hope you will be able to give me some tips and directions.

      I am using WAS 640 with Portals. Having read through all the responses in relation to this particular problem, i did use the JSP provided by Oliver above and it works beautifully which confirms that the UME api works fine when i place JSP in the portal root directory. It also works fine if i place it in the WAS examples root directory,

      which is

      ....\cluster\server0\apps\sap.com\com.sap.engine.docs.examples\servlet_jsp\

      _default\root

      Now, when you say we need to run servlet in Portal context then what exactly do you mean here? do you mean that if we dont have portal installed then we wont have UME service, i.e its not delivered as standard on WAS 640 installation?

      Anyway, the important question i have here is i am trying to use NW Dev. Studio to write a simple app to test UME API first and then hopefully progress with writing a Web Service for the same.

      When i try to do this, I can create a new java project and make references to com.sap.security.api lib etc withourt a problem, syntax checks are all good but when i run it it fails with the exceptions mentioned above every single time.

      So can someone throw some more light on how do go about writing apps which are using libraries on J2ee via NetWeaver Dev. Studio or any other ide for that matter, what else needs to be done for them to compile and run. I can only guess here that i am again missing the Portal context, which probably means this application of mine must be able to add references to portal libraries and then i must login to Portal using the portal api first whcih should then give me a portal interface handle, i should then be able to use that portal context to trigger anything on UME API. Does this mean that i try and create a portal applicaiton project as opposed to a java project, which hopefully should provide me with the portal libraries automatically? I will give that a try next....how would someone use the UME API outside portal?

      I would really appreciate any help here.

      My appologies for lack of knowledge in this area.

      Thanks,

  • author's profile photo Former Member
    Former Member
    Posted on Sep 07, 2004 at 06:33 PM

    It still complains that:

    java.lang.IllegalStateException: Could not initialize UMFactory! Please set property 'ume.cfg.path' or call UMFactory.initialize() first

    and I don't know how to do this...

    Thanks

    Dov

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.