• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Is it a bug when no posts

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i install the jforum when no posts then you goto "Admin Control Panel" will show error!
because the GenericForumDAO ->getBoardStatus() ->

rs = s.executeQuery(SystemGlobals.getSql("ForumModel.statsFirstPostTime"));
rs.next();
Date firstTime = new Date(rs.getTimestamp(1).getTime());


the error at rs.getTimestamp(1).getTime() because when jforum_posts no record the SQL :

SELECT MIN(post_time) FROM jforum_posts WHERE post_time > 0

MIN(NULL) is error!!




I LOVE JFORUM!!!
[originally posted on jforum.net by jyhcyd]
 
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

jyhcyd wrote:i install the jforum when no posts then you goto "Admin Control Panel" will show error!
because the GenericForumDAO ->getBoardStatus() ->

rs = s.executeQuery(SystemGlobals.getSql("ForumModel.statsFirstPostTime"));
rs.next();
Date firstTime = new Date(rs.getTimestamp(1).getTime());


the error at rs.getTimestamp(1).getTime() because when jforum_posts no record the SQL :

SELECT MIN(post_time) FROM jforum_posts WHERE post_time > 0

MIN(NULL) is error!!




I LOVE JFORUM!!!



http://www.jforum.net/jira/browse/JF-538
Fixed in CVS


[originally posted on jforum.net by Serge Maslyukov]
 
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
i get the new files from jforum but this bug is not repaired!

the error at rs.getTimestamp(1).getTime() because when jforum_posts no record the SQL :

SELECT MIN(post_time) FROM jforum_posts WHERE post_time > 0

MIN(NULL) is error!!

[originally posted on jforum.net by jyhcyd]
 
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

jyhcyd wrote:i get the new files from jforum but this bug is not repaired!

the error at rs.getTimestamp(1).getTime() because when jforum_posts no record the SQL :

SELECT MIN(post_time) FROM jforum_posts WHERE post_time > 0

MIN(NULL) is error!!



Do you get files from CVS?
[originally posted on jforum.net by Serge Maslyukov]
 
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
yes! i get files from CVS today(2006-08-22 day)

rs.getTimestamp(1).getTime() === null.getTime() is err !

i repaired here

GenericForumDAO -> getBoardStatus() -> Date firstTime = new Date(rs.getTimestamp(1).getTime());

to : Date firstTime = rs.getTimestamp(1) == null?null:new Dat(rs.getTimestamp(1).getTime());

that's all right.




thinks!

[originally posted on jforum.net by jyhcyd]
 
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
i hope this bug will repair!! thinks!!!
[originally posted on jforum.net by jyhcyd]
 
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
who can help me repair this bug in cvs ?
[originally posted on jforum.net by jyhcyd]
 
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
i just get the files from cvs ,this bug is repaired !!
think the body who repaired tis bug !!! thinks very much!!!

[originally posted on jforum.net by jyhcyd]
 
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

jyhcyd wrote:i just get the files from cvs ,this bug is repaired !!
think the body who repaired tis bug !!! thinks very much!!!



jForum team work for you
[originally posted on jforum.net by Serge Maslyukov]
 
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
thank Serge Maslyukov !!! i like Jforum very much! i hope Jforum is perfection !

thanks every body work for Jforum !!!
[originally posted on jforum.net by jyhcyd]
 
But how did the elephant get like that? What did you do? I think all we can do now is read this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic