Skip to Content
avatar image
Former Member

Messages displayed to only one user

Hello,

I am experiencing a weird behaviour of an Java WD application embedded in portal.

It's a CATS wrapper - custom app that uses CATS bapis to report time. The application works properly (saves, retrieves data), but the messages are displayed to only one user - the one that accessed it last.

The error messages are from the bapireturn table of the SAVE function, but the success message is issued directly in java if no errors are found. Regardless if it's success or error, the messages are visible to only one user at time.

I don't think it's the app to blame, rather some JCo, message server? I don't really know where to start looking.

Any hints appreciated,

Michal

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Jan 11, 2012 at 03:11 PM

    Post your code

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Maksim Rashchynski

      Hi,

      If there was an exception, especially that I don't catch it, then it would trigger a dump, and the whole application would crash.

      It turned out the issue was due to this msgMnr static variable which was initialized in wdDoInit.

      When I changed it to the standard way with wdComponentAPI..getMessageManager it works properly.

      Thanks for help anyway,

      Michal

  • avatar image
    Former Member
    Jan 12, 2012 at 09:21 AM

    The cause was the way msgMgr variable was used. The preferred way is with wdComponentAPI.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      The cause was the way msgMgr variable was used. The preferred way is with wdComponentAPI.

      Was the msgMgr declared as static?