Ticket #146 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

Locale error when running Unicorn locally

Reported by: viking@… Owned by:
Priority: critical Milestone:
Component: Core Version:
Keywords: Cc:

Description

Hi,

I followed the (somewhat sparse) instructions on installing Unicorn in order to run it locally. However, when I visit  http://localhost:8080/unicorn/init, I get this error:

SEVERE: Servlet.service() for servlet Init threw exception
java.lang.NullPointerException
	at java.util.Hashtable.get(Hashtable.java:334)
	at org.w3c.unicorn.util.Language.getContext(Language.java:131)
	at org.w3c.unicorn.action.InitAction.doGet(InitAction.java:48)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:558)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
	at java.lang.Thread.run(Thread.java:619)

The defaultLocale appears to be null. Any tips are greatly appreciated.

TIA, Jeremy

Attachments

Change History

in reply to: ↑ description ; follow-up: ↓ 2   Changed 3 years ago by viking@…

I should mention that I'm using tomcat6 on Ubuntu 10.04, using the mercurial trunk (changeset 1459:d7199abe8789)

in reply to: ↑ 1   Changed 3 years ago by anonymous

You might be not configure tomcat correctly or you might not have admin control on ur machine only admin control has the permission to run it

  Changed 3 years ago by tgambet

  • status changed from new to closed
  • resolution set to fixed

It happens if Unicorn is not initialzed correctly. You should check the logs under WEB-INF/logs. Most likely you'll see "Unicorn config file "unicorn.properties" could not be found in classpath.". Please referer to http://code.w3.org/unicorn/wiki/Documentation/Install to correctly build Unicorn. Anyway I fixed this exception to show a more intelligible message.

Add/Change #146 (Locale error when running Unicorn locally)

Author


E-mail address and user name can be saved in the Preferences.


Action
as closed
The resolution will be deleted. Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.