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.<init>(MetadataService.java:76)
        at org.restlet.Application.<init>(Application.java:163)
        at org.restlet.Application.<init>(Application.java:135)
        at 
firstResource.FirstResourceApplication.<init>(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.<init>(CharacterSet.java:284)
        at org.restlet.data.CharacterSet.<init>(CharacterSet.java:261)
        at org.restlet.data.CharacterSet.<clinit>(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

Reply via email to