Re: [java.io.UnsupportedEncodingException] NSMacOSRomanStringEncoding

From: Ulrich Köster (ulric..bjectstyle.org)
Date: Fri Sep 28 2007 - 14:19:50 EDT

  • Next message: Jean Pierre Malrieu: "Re: Practical WO Book Demos"

    As far as i can remember switching to the latest international version
    of the 1.4.2 JDK should solve the problem.

    Uli
    Am 28.09.2007 um 15:16 schrieb Oliver Egger:

    > hi markus
    >
    > change the encoding parameter in the Main.woo file to
    > enoding = NSISOLatin1StringEncoding;
    > or encoding = NSUTF8StringEncoding;
    >
    > if you do development on both pc and mac i would stronly
    > suggest to use NSUTFF8StringEncoding, you then have to
    > set also the eclipse editor that it uses utf8 encoding, but makes
    > life much easier ...
    >
    > cheers
    > oliver
    >
    >
    > On 9/28/07, Markus Ruggiero <marku..uggiero.ch> wrote:
    >> More issues with WOlips on WinXP:
    >> (WinXP, patched WO Frameworks, Eclipse 3.2.2 WOlips 2.0.0.4118),
    >> The WO
    >> Templates are still the originals from the Windows WO5.2 install
    >> (HTML
    >> 3.2!!)
    >>
    >> The simplest Hello World app with not customization whatever works
    >> but
    >> throws exceptions into the eclipse console view
    >> I think I once saw something on some list but I cannot find it
    >> anymore (or
    >> my memory tricks me). Of course I know that MacOSRoman is not
    >> supported on
    >> Windows but where would I change this?
    >>
    >>
    >> [2007-09-28 14:54:38 CEST] <WorkerThread0> The text encoding:
    >> "NSMacOSRomanStringEncoding" for the
    >> component:<com.webobjects.appserver._private.WOComponentDefinition
    >> name=Main pathURL=file:/C:/workspace/FirstTest/Main.wo
    >> url=/WebObjects/FirstTest.woa/Main.wo > could not be found
    >> on this JavaVM platform.
    >> [2007-09-28 14:54:38 CEST] <WorkerThread0>
    >> <com.webobjects.appserver._private.WOComponentDefinition>
    >> Unable to find Encoding Converter for 'NSMacOSRomanStringEncoding'
    >> on this
    >> Java platform. Will use default encoding.
    >> com.webobjects.foundation.NSForwardException
    >> [java.io.UnsupportedEncodingException]
    >> NSMacOSRomanStringEncoding
    >> [2007-09-28 14:54:38 CEST] <WorkerThread0>
    >> com.webobjects.foundation.NSForwardException for
    >> java.io.UnsupportedEncodingException:
    >> NSMacOSRomanStringEncoding
    >> at sun.io.Converters.getConverterClass(Unknown Source)
    >> at sun.io.Converters.newConverter(Unknown Source)
    >> at sun.io.ByteToCharConverter.getConverter(Unknown Source)
    >> at java.lang.StringCoding.decode(Unknown Source)
    >> at java.lang.String.<init>(Unknown Source)
    >> at
    >> com
    >> .webobjects
    >> .foundation
    >> ._NSStringUtilities.stringForBytes(_NSStringUtilities.java:95)
    >> at
    >> com
    >> .webobjects
    >> .foundation
    >> ._NSStringUtilities.stringForBytes(_NSStringUtilities.java:130)
    >> at
    >> com
    >> .webobjects
    >> .foundation
    >> ._NSStringUtilities.stringFromInputStream(_NSStringUtilities.java:
    >> 614)
    >> at
    >> com
    >> .webobjects
    >> .foundation
    >> ._NSStringUtilities.stringFromPathURL(_NSStringUtilities.java:628)
    >> at
    >> com
    >> .webobjects
    >> .appserver
    >> ._private.WOComponentDefinition.template(WOComponentDefinition.java:
    >> 258)
    >> at
    >> com
    >> .webobjects.appserver.WOComponent.templateWithName(WOComponent.java:
    >> 597)
    >> at
    >> com.webobjects.appserver.WOComponent.template(WOComponent.java:507)
    >> at
    >> com
    >> .webobjects.appserver.WOComponent.appendToResponse(WOComponent.java:
    >> 982)
    >> at
    >> com.webobjects.appserver.WOSession.appendToResponse(WOSession.java:
    >> 1200)
    >> at
    >> com
    >> .webobjects
    >> .appserver.WOApplication.appendToResponse(WOApplication.java:1418)
    >> at
    >> com
    >> .webobjects
    >> .appserver
    >> ._private
    >> .WOComponentRequestHandler
    >> ._dispatchWithPreparedPage(WOComponentRequestHandler.java:230)
    >> at
    >> com
    >> .webobjects
    >> .appserver
    >> ._private
    >> .WOComponentRequestHandler
    >> ._dispatchWithPreparedSession(WOComponentRequestHandler.java:287)
    >> at
    >> com
    >> .webobjects
    >> .appserver
    >> ._private
    >> .WOComponentRequestHandler
    >> ._dispatchWithPreparedApplication(WOComponentRequestHandler.java:322)
    >> at
    >> com
    >> .webobjects
    >> .appserver
    >> ._private
    >> .WOComponentRequestHandler
    >> ._handleRequest(WOComponentRequestHandler.java:358)
    >> at
    >> com
    >> .webobjects
    >> .appserver
    >> ._private
    >> .WOComponentRequestHandler
    >> .handleRequest(WOComponentRequestHandler.java:432)
    >> at
    >> com
    >> .webobjects
    >> .appserver.WOApplication.dispatchRequest(WOApplication.java:1306)
    >> at
    >> com
    >> .webobjects
    >> .appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:173)
    >> at
    >> com
    >> .webobjects
    >> .appserver._private.WOWorkerThread.run(WOWorkerThread.java:254)
    >> at java.lang.Thread.run(Unknown Source)
    >>
    >>
    >>
    >> Markus Ruggiero
    >>
    >> rucotec consulting and technologies email
    >> mailto:markus.ruggier..ucotec.ch
    >>
    >> rucotec GmbH web http://
    >> www.rucotec.ch
    >>
    >> Steinentorstrasse 8
    >>
    >> 4051 Basel Mobile +41 (0)79 508 4701
    >>
    >> Switzerland Phone/Fax +41 (0)61 271 4990
    >>
    >>



    This archive was generated by hypermail 2.0.0 : Fri Sep 28 2007 - 14:21:19 EDT