Win a copy of liveProject: Build an ML Recommender System this week in the Artificial Intelligence and Machine Learning forum!
  • 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
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

Topics are NOT SORTED by DATE (2.1.16)

 
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 installed today (May 12) release 2.1.16 from CVS.
I run Tomcat 4.1.31 and MySQL 3.23.58.

When posting new messages in existing topics, such topics not shown in the top of forum. Seems like topics are no longer sorted by date.
Could you please fix in CVS and reply here when done.
[originally posted on jforum.net by Anonymous]
 
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
It ws me
[originally posted on jforum.net by Evgeny]
 
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
WOW, when trying to post new message I got this error!

An error has occurred.
For detailed error information, please see the HTML source code, and contact the forum Administrator.
java.util.Date


<!-- BEGIN ERROR STACK TRACE <br /> java.lang.reflect.InvocationTargetException <br /> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) <br /> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) <br /> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) <br /> at java.lang.reflect.Method.invoke(Method.java:585) <br /> at net.jforum.Command.process(Command.java:116) <br /> at net.jforum.JForum.service(JForum.java:183) <br /> at javax.servlet.http.HttpServlet.service(HttpServlet.java:809) <br /> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200) <br /> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146) <br /> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209) <br /> at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) <br /> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) <br /> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948) <br /> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144) <br /> at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) <br /> at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:199) <br /> at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594) <br /> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) <br /> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948) <br /> at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358) <br /> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133) <br /> at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) <br /> at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118) <br /> at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594) <br /> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116) <br /> at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594) <br /> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) <br /> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948) <br /> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127) <br /> at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) <br /> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) <br /> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948) <br /> at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152) <br /> at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) <br /> at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374) <br /> at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743) <br /> at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675) <br /> at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866) <br /> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) <br /> at java.lang.Thread.run(Thread.java:595) <br /> Caused by: java.lang.ClassCastException: java.util.Date <br /> at java.sql.Timestamp.compareTo(Timestamp.java:474) <br /> at net.jforum.entities.TopicTypeComparator.compare(TopicTypeComparator.java:62) <br /> at java.util.Arrays.mergeSort(Arrays.java:1284) <br /> at java.util.Arrays.mergeSort(Arrays.java:1295) <br /> at java.util.Arrays.mergeSort(Arrays.java:1295) <br /> at java.util.Arrays.sort(Arrays.java:1223) <br /> at java.util.Collections.sort(Collections.java:159) <br /> at net.jforum.repository.TopicRepository.addTopic(TopicRepository.java:247) <br /> at net.jforum.view.forum.common.TopicsCommon.updateBoardStatus(TopicsCommon.java:275) <br /> at net.jforum.view.forum.PostAction.insertSave(PostAction.java:1127) <br /> ... 40 more <br /> <br /> END ERROR STACK TRACE-->
[originally posted on jforum.net by Evgeny]
 
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
We are working to fix it. It is related to java.sql.Date and java.util.Date

Rafael
[originally posted on jforum.net by Rafael Steil]
 
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
Great, please post a message here when this fixed in CVS.

Another bag - no text colors in messages, corresponded tags are simply ignored...
[originally posted on jforum.net by Evgeny]
 
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
This bug should be fixed in the cvs now. I changed all calls to rs.getTimestamp() to new Date(rs.getTimestamp().getTime()), but we need to do some testing to ensure it will not cause any other kind of problem.

Text colors doesn't work? Check if you have



In your SystemGlobals.sql. I added it some time ago, and some people forgot to add to their own config file when merging from CVS.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
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
Rafael,
I have this line in SystemGlobals.properties and jforum-custom.conf
html.attributes.welcome=src, href, size, face
but colors in text disappears
[originally posted on jforum.net by Evgeny]
 
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
Add "color" to the list and check if it works. I probably forgot to add it ... Sorry

Rafael
[originally posted on jforum.net by Rafael Steil]
 
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, this helps, thanks. Please add "color" tag in CVS.
[originally posted on jforum.net by Evgeny]
 
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
Just did!

Rafael
[originally posted on jforum.net by Rafael Steil]
 
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
Rafael,
I just re-installed 2.1.16 from CVS and topics are still not sorted by date.
I run Tomcat 4.1.31 and MySQL 3.23.58.

What's wrong, can you fix?
[originally posted on jforum.net by Evgeny]
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic