• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Last Registered User showing incorrectly

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
we using SSO mode integrate jforum with our JAAS, everytime a new user registered and
entering Jforum, their user name is not showing in the bottom, (we sure he/she is last registered user)
unless we restart the jforum application, the correct name will get showing

sometimes, the forum just showing null pointer exception, you can not do anything with the forum. and the WhoIsOnline table gets messed up
, however after a restart, everything back to normal.

I had look of the code, you are getting it from the cache, help please.
[originally posted on jforum.net by confucius]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
SSO and "registration" is a gray area. For example, if you have a site that's been up for a while with users, then you add jForum. Is it a new registration if a user who's been accessing the main site for years accesses jForum for the first time? Some people might not like that they are now identified as a "newbie"...

Anyway, it sounds like for your situation, you want new SSO users to be noted. So, when in the code to create a new jForum user, you need to make sure you do the following:


[originally posted on jforum.net by monroe]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
absolutely spot on, monroe ! thanks again. Yeh our website has been running for a while
but the forum is a new function, I guess people are happy to be called "newbie or noob" whatever,
because it is new concepts to lots of them, (we run National pensioners website lol)


anyway it works but I still got a few questions

1> before adding your code, the last registered user can only be showing correctly after restart the tomcat.
why is that? I mean if it doesn't work, it should never work isnt, why restart the tomcat would
make it working?

2>UserAction.registrationComplete() is the only place calls


search the whole project, the method name doesnt get called in any place. because reflection is used
so I can't see the actual method signature or something?



[originally posted on jforum.net by confucius]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Is it a new registration if a user who's been accessing the main site for years accesses jForum for the first time? Some people might not like that they are now identified as a "newbie"...



if confucius said is true, the new users will be shown as newbies after the server restarts anyway.
I guess this is another logical error with SSO?

I simply removed the "last registered user" and "total registered user" section on my site, just like how they removed
"login", "logout", "register" links. you know, just add code like "<#if SSO> ....." in your templates file .
[originally posted on jforum.net by shanyangqu]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Re: 1)

In jForum, any class with "Repository" in its name deals with information cached in memory. So, just adding them to the DB didn't change the information cached in memory. Restarting Tomcat caused the memory cache to be rebuilt from the DB info which made it correct.

Re: 2)

These statements are called in the UserAction.registrationComplete() action. Don't know why you couldn't find it..
[originally posted on jforum.net by monroe]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic