Skip to Content
avatar image
Former Member

Run a web dynpro application encounter WDUMException exception...

Dear guys,

We currently encounter a error when we run a web dynpro application.

That is, once a user click a url which will redirect to the enterprise portal,

the com.sap.tc.webdynpro.services.sal.um.api.WDUMException is thrown.

I have checked the cause of the exception is that "if there is no user (neither authenticated nor anonymous user) attached to the current session"

The following is our situation:

When linking to EP domain(ex. http://sapep.xxx.com), single signed on wil automatically process.

The url which I mentioned above is something like "http://sapep.xxx.com/portal?doc=xxx&ver=2010"

Our web dynpro program will invoke the IWDClientUser api initially for get the currently logon user's information.

And this is caused the WDUMException.

We think that the error is because that the session is not created while loading the web dynpro application,

so that, the system can't get the cuurent user with a non-user session.

The situation is not often happened. We think this is because of the system service issue.

So we try to prevent this problem with the following mechanism:

When the excpetion is thrown, we invoke a waiting program to let the system has time to generate the require session.

So when invoke the IWDClientUser, this exception can be prevented.

Any suggestion.please advise, thanks.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Apr 08, 2010 at 07:21 AM

    Does the system has several (server) nodes?

    Maybe the session isn't transferred between (server) nodes....

    we have 1 dispatcher for 2 server A and B

    the server A has 2 service nodes and the B has only one.

    The exception is occur under the server B

    thanks for replying

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 06, 2010 at 07:03 AM

    Is the "Authentication" parameter of the WD application set to true?

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Friend,

      The exception is raised due to no portal session.

      For this to happen, double click on the application and add authentication parameter.

      Also, you can use the following lines of code to get the portal user id:

      WDClientUser.getLoggedInClientUser().getSAPUser().getUniqueName();

      UMFactory.getAuthenticator().getLoggedInUser().getUniqueName();

      Regards,

      Tushar S

  • Apr 06, 2010 at 07:39 AM

    Hi

    Please catch the WDUMException, where you are executing the IWDClientUser.

    Hope it helps

    Regards

    Arun

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 08, 2010 at 12:41 AM

    The exception is raised due to no portal session.

    For this to happen, double click on the application and add authentication parameter.

    We have set the value of authentication to be true.

    Also, you can use the following lines of code to get the portal user id:

    WDClientUser.getLoggedInClientUser().getSAPUser().getUniqueName();

    UMFactory.getAuthenticator().getLoggedInUser().getUniqueName();

    We get the user id by using WDClientUser as well.

    Thanks for replying.

    No one consider the problem is because of the system(J2EE service) issue?

    Add comment
    10|10000 characters needed characters exceeded