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

3 problems

 
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 just upgrade to version 2 hoping it would resolve my 2 issues. It did not, but added a 3rd one. I am sure they are pretty simple to fix.

1. Can't upload avatar. I get the following exception:

java.lang.reflect.InvocationTargetException: /usr/local/j2sdk1.4.1_01/jre/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory


2. Can't put French characters in profile signature. In my posts, I see chars like

��������������������

instead of accented chars.


3. (New) "Back to home page" links to "http://localhost:8080" instead of correct url. Other links work ok.

You can experience it at

http://kheops-tech.com/jforum/forums/list.page

Help will be appreciated.

Thanks,

Jean-Robert
[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

Hi,

I just upgrade to version 2 hoping it would resolve my 2 issues. It did not, but added a 3rd one. I am sure they are pretty simple to fix.

1. Can't upload avatar. I get the following exception:

java.lang.reflect.InvocationTargetException: /usr/local/j2sdk1.4.1_01/jre/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory



This is not a bug, in fact, but some missing libraries in your linux distro. This is someway related to https://coderanch.com/t/574500 . In your case, probably you will need to create this new file. Try to find "libXp.so" in some library path, like /usr/X11R6/lib, and create a sym link to "libXp.so.6".



2. Can't put French characters in profile signature. In my posts, I see chars like

��������������������

instead of accented chars.



There is an encoding problem with jakarta's commons-fileupload, which causes this error. I don't have a solution yet.



3. (New) "Back to home page" links to "http://localhost:8080" instead of correct url. Other links work ok.



Well, the best for the momment is to edit templates/default/forum_base.htm and put the correct link there .

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
Thanks Raphael,

It fixed isuues No 1 and No 3. Still no clue for issue No 2?


J-R
[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
Nope, item 2 is still in analisys.

What you can do is to try to change the character encoding of the pages.. By default, JForum uses UTF-8, which, when using together with multipart/form-data, prenvets the special chars to be correctly handled.

I made some tests and noted that, if you set the encoding to some other than UTF-8, like ISO-8859-1, it will work fine.

You can change the encoding in the Config section in the Admin Control Panel, or directly changing the "encoding" key at WEB-INF/config/SystemGlobals.properties.

But, if you wnat to keep using UTF-8, then open the file templates/default/user_form.htm and search for the <form> tag. There, you'll see an attibute named "accept-charset" with the value "${encoding}".. Change it to the desired encoding ( like ISO-8859-1 etc ) and test. Probably it will work.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic