Re: [xep-support] NPE during invoking XEP

From: Jirka Kosek <jirka@kosek.cz>
Date: Mon Mar 06 2006 - 06:12:47 PST

Werner Donné wrote:

> Do you have a stack trace of the exception?

Yes, finally i modified sources to print full stack trace:

java.lang.NullPointerException
at com.renderx.util.URLCache.getItemDescriptor(Unknown Source)
at com.renderx.util.URLCache.openSeekableStream(Unknown Source)
at com.renderx.fonts.FontRecord.getMetric(Unknown Source)
at com.renderx.fonts.FontCatalog.findAll(Unknown Source)
at com.renderx.xep.lib.Session.findAllFonts(Unknown Source)
at com.renderx.xep.cmp.Item$TextTraits.<init>(Unknown Source)
at com.renderx.xep.cmp.Item$Block.<init>(Unknown Source)
at com.renderx.xep.cmp.FlowHandler.startElement(Unknown Source)
at com.renderx.xep.cmp.SequenceHandler.startElement(Unknown Source)
at com.renderx.xep.cmp.RootHandler.startElement(Unknown Source)
at com.renderx.xep.pre.BidiResolver.startElement(Unknown Source)
at com.renderx.xep.pre.FOHandler.callStartHandler(Unknown Source)
at com.renderx.xep.pre.FOHandler.callStartHandler(Unknown Source)
at com.renderx.xep.pre.FOHandler.startElement(Unknown Source)
at com.renderx.xep.pre.FOPreprocessor.startElement(Unknown Source)
at com.renderx.sax.SAXStorage$StartElementRecord.play(Unknown Source)
at com.renderx.sax.SAXStorage.play(Unknown Source)
at
com.renderx.xep.FormatterCore$ContentHandlerDriver.endDocument(Unknown
Source)
at com.icl.saxon.aelfred.SAXDriver.parse(SAXDriver.java:334)
at com.renderx.xep.FormatterCore.render(Unknown Source)
at com.renderx.xep.FormatterImpl.render(Unknown Source)
at com.renderx.xep.FormatterImpl.render(Unknown Source)
at com.renderx.xep.FormatterImpl.render(Unknown Source)
at cz.kosek.amu.formatter.FormatterServlet.doWork(Unknown Source)
at cz.kosek.amu.formatter.FormatterServlet.doGet(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)

Could it be that XEP is not able to load fonts when xep.xml is
referenced as resource:xep.xml and fonts are specified as relative paths?

My WAR looks like:

WEB-INF
  classes
    xep.xml
    license.xml
    fonts
      *.ttf
    hyphen
      ...

I need to create self-contained WAR file that will contain XEP together
with complete configuration (xep.xml, fonts, hyphen files) and that will
not depend on the path where real deployment will take place.

-- 
------------------------------------------------------------------
   Jirka Kosek     e-mail: jirka@kosek.cz     http://www.kosek.cz
------------------------------------------------------------------
   Profesionální školení a poradenství v oblasti technologií XML.
      Podívejte se na náš nově spuštěný web http://DocBook.cz
        Podrobný přehled školení http://xmlguru.cz/skoleni/
------------------------------------------------------------------
                    Nejbližší termíny školení:
      ** XSLT 13.-16.3.2006 ** XML schémata 24.-26.4.2006 **
        ** DocBook 15.-17.5.2006 ** XSL-FO 12.-13.6.2006 **
------------------------------------------------------------------

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html

Received on Mon Mar 6 06:46:24 2006

This archive was generated by hypermail 2.1.8 : Mon Mar 06 2006 - 06:46:25 PST