Hello,
>Is anyone else unable to use 2.0 Milestone 4 on the Mac?
This problem is due to the fact that in the source code of the
CharacterSet class, the "DEFAULT" characterSet is unfortunately defined
before the "MACINTOSH" one, mainly because the member and methods of
classes are sorted by alphabetical order.
This problem has not been detected under our development contexts
(Windows and Linux) which is very unfortunate.
You can move to the current snapshot which contain this fix.
Best regards,
Thierry Boileau
> Is anyone else unable to use 2.0 Milestone 4 on the Mac?
> I'm attempting to upgrade to Restlet 2.x from 1.x and have run into a
> roadblock.
>
> Restlet 2.0 Milestone 4
> Mac OS X 10.5.8
>
> I downloaded the firstResource source to ensure that it wasn't my code;
> whenever I try to run FirstResourceServerMain I get the following error:
>
> Exception in thread "main" java.lang.ExceptionInInitializerError
> at org.restlet.service.MetadataService.(MetadataService.java:76)
> at org.restlet.Application.(Application.java:163)
> at org.restlet.Application.(Application.java:135)
> at
> firstResource.FirstResourceApplication.(FirstResourceApplication.java:10)
> at
> firstResource.FirstResourceServerMain.main(FirstResourceServerMain.java:15)
> Caused by: java.lang.NullPointerException
> at org.restlet.data.CharacterSet.getIanaName(CharacterSet.java:190)
> at org.restlet.data.CharacterSet.(CharacterSet.java:284)
> at org.restlet.data.CharacterSet.(CharacterSet.java:261)
> at org.restlet.data.CharacterSet.(CharacterSet.java:48)
> ... 5 more
>
> The error occurs under both Java 1.5 and 1.6. I have org.restlet.jar and
> org.restlet.ext.xml.jar on the classpath.
>
> I step through the code see that it's blowing up here:
> if (name.equalsIgnoreCase("MACROMAN")) {
> name = MACINTOSH.getName();
>
> specifically on the "name=MACINTOSH.getName();" call.
>
> Again, I'm running the firstResource example verbatim in a brand-new project,
> and I get the above error.
>
> Thanks,
> ~Paul
>
> --
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2382209
>
>
--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2382352