Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Problems in Linux

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I recently installed the JForum 2.1.6 in my windows machine:

Windows XP home edition
Tomcat 5.0
Java 1.5.0
MySQL 4.1.1

Everythign works fine, but then I tried to install this in a Linux server:

Fedora Core 4
Tocamt 5.0
Java 1.4.2
MySQL 4.1.20

And I started having problems, so far the bbcodes in the welcome post gives me this error:

java.util.regex.PatternSyntaxException: At position 1 in regular expression pattern:
quantifier (?*+{}) without preceding token
(?s)\[code\](.*?)\[/code\]


And I can't insert any topic:

java.sql.SQLException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '11:38:42, 0, 0, 0, 0)' at line 1

And I just did exactly what I did for the windows installation, any ideas what can be the issue?

Thanks,

Jose Miguel.

[originally posted on jforum.net by josemiguel]
 
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 is happening with all input, or with some specific text?

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
The first issue is in the welcome message and I think is because the bbcodes in the body, the "[*]" and the regular expresion class used to parse the text raises the error.
The second one is because the date, when trying to insert the first topic in the forum, in the trace, the date seems to have not been encloded in ' , so maybe is this the problem?

Thanks,

Jose Miguel.
[originally posted on jforum.net by josemiguel]
 
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 is the first time somebody report this kind of problem, specially with your setup. The regular expressions run fine in many different VMs.

As it appears, there is something related to the Linux setup you're using. It's hard to say. Are you able to test other versions of the virtual machine?

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
Not sure if I can try with other virtual machine, will see.

Anyway, what about the sql error? any ideas?

Jose Miguel.
[originally posted on jforum.net by josemiguel]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic