{
synchronized(gedcomCache)
{
LOG.finest("Creating the Origin for the GEDCOM file: "+localGedcomPath);
Origin origin = Origin.create(filename, new Handler());
GedcomReader reader = new GedcomReader(origin);
/*
[Thread: Thread-11] May 21, 2009 3:41:51 AM genj.io.GedcomReader read
[Thread: Thread-11] SEVERE: unexpected throwable
java.lang.IllegalArgumentException: gedcom for context can't be null
at genj.gedcom.Context.<init>(Context.java:62)
at genj.gedcom.Context.<init>(Context.java:70)
at genj.io.GedcomReader$Warning.<init>(GedcomReader.java:753)
at genj.io.GedcomReader$Warning.<init>(GedcomReader.java:734)
at genj.io.GedcomReader.linkReferences(GedcomReader.java:318)
at genj.io.GedcomReader.readGedcom(GedcomReader.java:293)
at genj.io.GedcomReader.read(GedcomReader.java:238)
at net.sourceforge.gedapi.util.GLinkURL.loadGedcom(GLinkURL.java:353)
at net.sourceforge.gedapi.servlet.GedapiServlet.handleGet(GedapiServlet.java:296)
at net.sourceforge.gedapi.servlet.GedapiServlet.handleRequest(GedapiServlet.java:86)
at net.sourceforge.gedapi.servlet.GedapiServlet.doGet(GedapiServlet.java:52)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at net.sourceforge.gedapi.servlet.RedirectSSLFilter.doFilter(RedirectSSLFilter.java:127)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:834)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:640)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1286)
at java.lang.Thread.run(Thread.java:619)
genj.io.GedcomIOException: java.lang.IllegalArgumentException: gedcom for context can't be null
at genj.io.GedcomReader.read(GedcomReader.java:245)
at net.sourceforge.gedapi.util.GLinkURL.loadGedcom(GLinkURL.java:353)
at net.sourceforge.gedapi.servlet.GedapiServlet.handleGet(GedapiServlet.java:296)
at net.sourceforge.gedapi.servlet.GedapiServlet.handleRequest(GedapiServlet.java:86)
at net.sourceforge.gedapi.servlet.GedapiServlet.doGet(GedapiServlet.java:52)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at net.sourceforge.gedapi.servlet.RedirectSSLFilter.doFilter(RedirectSSLFilter.java:127)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:834)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:640)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1286)
at java.lang.Thread.run(Thread.java:619)
*/
gedcom = reader.read();
gedcomCache.put(gedcomURL, gedcom);
}
}
return gedcom;