This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jforum error using sso  RSS feed

 
chirag khandelwal
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have integrated my application with jforum and I am using sso.
I am entering data into jforum database from my application and it is showing error.I have attached an image showing the error message.
Also, when I run jforum again then it runs perfectly, but i can't run my application again and again when a new category is added.
Someone help me with this.
error.png
[Thumbnail for error.png]
error with category in jforum
 
Tim Moores
Saloon Keeper
Posts: 3882
91
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which version of JForum are you using? If it's anything older than 2.4.1, the first step should be to upgrade to that. It's on SourceForge.
 
chirag khandelwal
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim Moores wrote:Which version of JForum are you using? If it's anything older than 2.4.1, the first step should be to upgrade to that. It's on SourceForge.


I am using jforum 2.1.9
 
Liutauras Vilda
Marshal
Posts: 4634
316
BSD
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So, please follow Tim's advise first and then come baack to us afterwards with your results.
 
chirag khandelwal
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you.
I have installed jforum 2.4.1 and it is installed successfully.
But I am unable to implement SSO , please help me, I have to integrate jforum with my application.
I need urgent help.
 
Tim Moores
Saloon Keeper
Posts: 3882
91
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Regarding the exception: I can reproduce this with the latest version of stock JForum when adding categories, but it doesn't seem to have anything to do with SSO.

Regarding SSO: I don't think there is any documentation available. Start by reading the "SSO / User authentication" section in the SystemGlobals.properties file, and just hope that it makes sense :-)

If the default implementation class "RemoteUserSSO" doesn't do what you need done, you may have to write your own. https://coderanch.com/t/576580/SSO and http://smartkey.co.uk/development/secure-sso-for-jforum/ may get you started with that.
 
chirag khandelwal
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim Moores wrote:Regarding the exception: I can reproduce this with the latest version of stock JForum when adding categories, but it doesn't seem to have anything to do with SSO.

Regarding SSO: I don't think there is any documentation available. Start by reading the "SSO / User authentication" section in the SystemGlobals.properties file, and just hope that it makes sense :-)

If the default implementation class "RemoteUserSSO" doesn't do what you need done, you may have to write your own. https://coderanch.com/t/576580/SSO and http://smartkey.co.uk/development/secure-sso-for-jforum/ may get you started with that.


Sir, actually I have integrated jforum 2.4.1 with my application and implemented SSO.
I am creating groups, categories, fors in my application and displaying in jforum for discussion, for this I am entering data in jforum database( jforum_groups, jforum_categories, jforum_forums, jforum_roles, jforum_role_values tables) . Data is successfully saved into the database, but jforum application is unable to display the data.When I run the jforum application again , then it shows the data in the jforum.

I have checked this several time, In the admin control panel also the groups is shown, but the categories is not shown, it is unable to fetch the category id or something , or there is some function which is not called .

when I run the jforum application again then it reloads the jforum and works perfectly.

Can you help me with the flow of jforum and provide some source code such that it can work for me!

Even I don't understand that if I am making categories from admin control panel then it's working  fine but what happens to it when entering into the database.
 
Tim Moores
Saloon Keeper
Posts: 3882
91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Data is successfully saved into the database, but jforum application is unable to display the data.

Let's dig into the details - what does this mean, exactly? How are you ascertaining that the data is stored successfully, how are you trying to disoplay the data, in which way, precisely, is JForum failing to do that?

When I run the jforum application again , then it shows the data in the jforum.

What does "run again" mean? JForum is a web app that runs continuously.

I have checked this several time, In the admin control panel also the groups is shown

Which groups are these? What do they have to do with the problem at hand?

but the categories is not shown, it is unable to fetch the category id or something , or there is some function which is not called.

What does this mean, exactly? Provide as many details as you can, please.

Even I don't understand that if I am making categories from admin control panel then it's working  fine but what happens to it when entering into the database.

I don't understand what you're trying to say here. Can you rephrase it, and provide more detail?
 
chirag khandelwal
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Simply, When I am entering data into mysql database manually  ,  the categories are not displayed in the jforum application . For this when I re-run the application then it displays category.
But when I insert category from admin control panel of jforum then it is displaying category.

What is the structure and flow of the jforum? Why it is not fetching newly added category from the database, when I am adding it manually??
 
chirag khandelwal
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are not still getting what I am trying to say then,

Enter data into the jforum database manually and try to get your entered category name on the jforum.

And help me If you can.Thanks
 
Tim Moores
Saloon Keeper
Posts: 3882
91
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JForum caches all kinds of data in memory. You can't expect it pick up DB changes automatically that you made outside of it. That's why it has the abstraction of a "Repository" - data in those can be reloaded through the GUI (see Admin Control Panel -> Cache). Data on categories and forums is not kept in repositories, though, so you'd have to restart the web app in order for those changes to be picked up.
 
chirag khandelwal
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, I got it.
Is there any other way so that I can display the category without restarting web app??
 
chirag khandelwal
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting this error.
error-message.png
[Thumbnail for error-message.png]
 
Tim Moores
Saloon Keeper
Posts: 3882
91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any other way so that I can display the category without restarting web app??

No.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!