xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cesar Santofimia" <cesar.santofi...@mythalesgroup.com>
Subject Re: Problem with XSLTInputHandler and Driver class
Date Thu, 03 May 2007 15:18:17 GMT
Hi Adrian,

I think the contents of these files are right because when i treated both
xml and xsl source like File objects i hadnĀ“t any problem.

The xml source is a String received as a request parameter, and its code is:

<?xml version="1.0"
encoding="UTF-8"?><informe><datos_vida_laboral><cuerpo><datos_trabajador><fecha_larga>1
de
agosto</fecha_larga><nombre></nombre><fecha_nac></fecha_nac><numero_ss></numero_ss><dni></dni></datos_trabajador></cuerpo></datos_vida_laboral></informe>

Is that right? Can i use this string as a InputSource parameter in the
XSLTInputHandler constructor method? This is my first doubt...

The xsl source is the atached file informe.xsl, and exists in PATH_TO_XSL.
At this moment only loads the fecha_larga value received in the xml
source.

My userconfig.xml file only contains fonts information.

And finally, the stack trace:

org.apache.fop.apps.FOPException:
javax.xml.transform.TransformerConfigurationException:
javax.xml.transform.TransformerException: java.net.MalformedURLException
[3/05/07 17:03:32:406 CEST] 7bec7bec SystemErr     R 	at
java.lang.Throwable.<init>(Throwable.java:59)
[3/05/07 17:03:32:406 CEST] 7bec7bec SystemErr     R 	at
java.lang.Throwable.<init>(Throwable.java:73)
[3/05/07 17:03:32:406 CEST] 7bec7bec SystemErr     R 	at
org.apache.fop.apps.FOPException.<init>(FOPException.java:88)
[3/05/07 17:03:32:406 CEST] 7bec7bec SystemErr     R 	at
org.apache.fop.apps.TraxInputHandler.initTransformer(TraxInputHandler.java:108)
[3/05/07 17:03:32:406 CEST] 7bec7bec SystemErr     R 	at
org.apache.fop.apps.TraxInputHandler.<init>(TraxInputHandler.java:100)
[3/05/07 17:03:32:406 CEST] 7bec7bec SystemErr     R 	at
org.apache.fop.apps.XSLTInputHandler.<init>(XSLTInputHandler.java:81)
[3/05/07 17:03:32:421 CEST] 7bec7bec SystemErr     R 	at
fop.negocio.FopJaGestor.ejecutar(FopJaGestor.java)
[3/05/07 17:03:32:421 CEST] 7bec7bec SystemErr     R 	at
fop.servlet.FopServlet.doGet(FopServlet.java)
[3/05/07 17:03:32:421 CEST] 7bec7bec SystemErr     R 	at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
[3/05/07 17:03:32:421 CEST] 7bec7bec SystemErr     R 	at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
[3/05/07 17:03:32:421 CEST] 7bec7bec SystemErr     R 	at
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
[3/05/07 17:03:32:421 CEST] 7bec7bec SystemErr     R 	at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
[3/05/07 17:03:32:421 CEST] 7bec7bec SystemErr     R 	at
com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
[3/05/07 17:03:32:421 CEST] 7bec7bec SystemErr     R 	at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
[3/05/07 17:03:32:421 CEST] 7bec7bec SystemErr     R 	at
com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
[3/05/07 17:03:32:421 CEST] 7bec7bec SystemErr     R 	at
com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
[3/05/07 17:03:32:421 CEST] 7bec7bec SystemErr     R 	at
com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
[3/05/07 17:03:32:421 CEST] 7bec7bec SystemErr     R 	at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
[3/05/07 17:03:32:421 CEST] 7bec7bec SystemErr     R 	at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
[3/05/07 17:03:32:421 CEST] 7bec7bec SystemErr     R 	at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
[3/05/07 17:03:32:421 CEST] 7bec7bec SystemErr     R 	at
com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
[3/05/07 17:03:32:421 CEST] 7bec7bec SystemErr     R 	at
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
[3/05/07 17:03:32:421 CEST] 7bec7bec SystemErr     R 	at
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
[3/05/07 17:03:32:421 CEST] 7bec7bec SystemErr     R 	at
com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:116)
[3/05/07 17:03:32:421 CEST] 7bec7bec SystemErr     R 	at
com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186)
[3/05/07 17:03:32:421 CEST] 7bec7bec SystemErr     R 	at
com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
[3/05/07 17:03:32:421 CEST] 7bec7bec SystemErr     R 	at
com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
[3/05/07 17:03:32:421 CEST] 7bec7bec SystemErr     R 	at
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
[3/05/07 17:03:32:421 CEST] 7bec7bec SystemErr     R 	at
com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
[3/05/07 17:03:32:421 CEST] 7bec7bec SystemErr     R 	at
com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
[3/05/07 17:03:32:421 CEST] 7bec7bec SystemErr     R
---------

[3/05/07 17:03:32:453 CEST] 7bec7bec SystemErr     R
javax.xml.transform.TransformerConfigurationException:
javax.xml.transform.TransformerConfigurationException:
javax.xml.transform.TransformerException: java.net.MalformedURLException
	at java.lang.Throwable.<init>(Throwable.java:59)
	at java.lang.Throwable.<init>(Throwable.java:73)
	at javax.xml.transform.TransformerException.<init>(Unknown Source)
	at
org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:718)
	at
org.apache.fop.apps.TraxInputHandler.initTransformer(TraxInputHandler.java:104)
	at org.apache.fop.apps.TraxInputHandler.<init>(TraxInputHandler.java:100)
	at org.apache.fop.apps.XSLTInputHandler.<init>(XSLTInputHandler.java:81)
	at fop.negocio.FopJaGestor.ejecutar(FopJaGestor.java)
	at fop.servlet.FopServlet.doGet(FopServlet.java)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
	at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
	at
com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
	at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
	at
com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
	at
com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
	at
com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
	at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
	at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
	at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
	at
com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
	at
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
	at
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
	at
com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:116)
	at
com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186)
	at
com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
	at
com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
	at
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
	at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
Caused by: javax.xml.transform.TransformerConfigurationException:
javax.xml.transform.TransformerException: java.net.MalformedURLException
	at java.lang.Throwable.<init>(Throwable.java:59)
	at java.lang.Throwable.<init>(Throwable.java:73)
	at javax.xml.transform.TransformerException.<init>(Unknown Source)
	at
org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:860)
	at
org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:701)
	at
org.apache.fop.apps.TraxInputHandler.initTransformer(TraxInputHandler.java:104)
	at org.apache.fop.apps.TraxInputHandler.<init>(TraxInputHandler.java:100)
	at org.apache.fop.apps.XSLTInputHandler.<init>(XSLTInputHandler.java:81)
	at fop.negocio.FopJaGestor.ejecutar(FopJaGestor.java)
	at fop.servlet.FopServlet.doGet(FopServlet.java)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
	at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
	at
com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
	at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
	at
com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
	at
com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
	at
com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
	at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
	at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
	at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
	at
com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
	at
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
	at
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
	at
com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:116)
	at
com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186)
	at
com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
	at
com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
	at
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
	at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)


Thanks,

Cesar.
Mime
View raw message