File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JForum and the fly likes a bug with sqlserver Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "a bug with sqlserver" Watch "a bug with sqlserver" New topic

a bug with sqlserver

Migrated From
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424


at line 82 to line 113
like this------------
INSERT INTO jforum_smilies (code, url, disk_name) VALUES (':|','','1cfd6e2a9a2c0cf8e74b49b35e2e46c7.gif');

the word alt=\":|\" will arouse error "out of memory"

look processSmilies(StringBuffer text, List smilies)

at line 214,

while (pos > -1 && s!=null) {
text.replace(pos, pos + s.getCode().length(), s.getUrl()); pos = text.indexOf(s.getCode());

the method "replace" will change ":|" to ""

but,another ":|" appeared,so dead loop appeared

[originally posted on by unrain]
Migrated From
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
hahaha.. In fact..

Thanks for reporting it. I'm fixing right now.

[originally posted on by Rafael Steil]
I agree. Here's the link:
subject: a bug with sqlserver
It's not a secret anymore!