You may want to take a look at:
http://commons.apache.org/logging/troubleshooting.html

Google is also your friend (sometimes):
http://www.google.ch/search?q=getLogConstructor+LogFactoryImpl+NullPointerException

I hope this helps you identify the problem. I haven't seen it before.

On 03.11.2008 17:02:22 Thomy wrote:
> 
> Hi all !
> I'm trying to use FOP and Batik to generate PDF output from SVG built with
> my application.
> I used the SVG2PDF example display on the FOP website, with FOP 0.95 and
> Batik 1.7.
> 
> My SVG doc is taken from my apps (DOM).
> I checked in and out, there aren't null ...
> So i don't see why i have this error : 
> 
> org.apache.commons.logging.LogConfigurationException:
> org.apache.commons.logging.LogConfigurationException:
> java.lang.NullPointerException (Caused by java.lang.NullPointerException)
> (Caused by org.apache.commons.logging.LogConfigurationException:
> java.lang.NullPointerException (Caused by java.lang.NullPointerException))
> 
>       at
> org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)
> 
>       at
> org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
> 
>       at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:370)
> 
>       at org.apache.fop.pdf.PDFDocument.<init>(PDFDocument.java:79)
> 
>       at
> org.apache.fop.svg.PDFDocumentGraphics2D.<init>(PDFDocumentGraphics2D.java:101)
> 
>       at
> org.apache.fop.svg.PDFDocumentGraphics2D.<init>(PDFDocumentGraphics2D.java:135)
> 
>       at org.apache.fop.svg.PDFTranscoder.transcode(PDFTranscoder.java:124)
> 
>       at
> org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(XMLAbstractTranscoder.java:142)
> 
>       at
> org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(SVGAbstractTranscoder.java:156)
> 
>       at
> com.litis.transcript.application.menu.fichiers.ExporterFichierAction.doActionPerformed(ExporterFichierAction.java:63)
> 
>       at
> com.litis.transcript.fabrique.ActionAbstraite$1.run(ActionAbstraite.java:33)
> 
> Caused by: org.apache.commons.logging.LogConfigurationException:
> java.lang.NullPointerException (Caused by java.lang.NullPointerException)
> 
>       at
> org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:397)
> 
>       at
> org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
> 
>       ... 10 more
> 
> Caused by: java.lang.NullPointerException
> 
>       at
> org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:374)
> 
>       ... 11 more
> 
> 
> Here is the source code :
> 
>       protected void doActionPerformed(ActionEvent e) {
> 
>               
> if(Main.getFenetrePrincipale().getFenetreRendu().getSVGMaker().getDoc() !=
> null){
> 
> 
> 
>                       //Create transcoder
> 
>                       Transcoder transcoder = new PDFTranscoder();
> 
>               try {
> 
>                   TranscoderInput input = new
> TranscoderInput(Main.getFenetrePrincipale().getFenetreRendu().getSVGMaker().getDoc());
> 
>                   OutputStream out = new
> FileOutputStream(Main.getFenetrePrincipale().getConfiguration().getDirectory().getAbsolutePath()+System.getProperty("file.separator")+Main.getFenetrePrincipale().getTranscription().getFichier().getName().substring(0,
> 
>                       
> Main.getFenetrePrincipale().getTranscription().getFichier().getName().lastIndexOf('.'))
> 
>                                               + ".pdf");
> 
>                   try {
> 
>                       TranscoderOutput output = new TranscoderOutput(out);
> 
> 
> 
>                       //Do the transformation
> 
>                       try {
> 
>                               if(input != null && output != null){
> 
>                                                       
> transcoder.transcode(input, output);                                    
> 
>                               }
> 
>                                       } catch (Exception e1) {
> 
>                                               // TODO Auto-generated catch 
> block
> 
>                                               e1.printStackTrace();
> 
>                                       }
> 
>                   } finally {
> 
>                       try {
> 
>                                               out.close();
> 
>                                       } catch (IOException e1) {
> 
>                                               // TODO Auto-generated catch 
> block
> 
>                                               e1.printStackTrace();
> 
>                                       }
> 
>                   }
> 
>               } catch (FileNotFoundException e3) {
> 
>                               // TODO Auto-generated catch block
> 
>                               e3.printStackTrace();
> 
>                       } finally {
> 
>                  // in.close();
> 
>               }
> 
>               }
> 
>       }
> 
> Help will be apreciated :)
> Cheers,
> -- 
> View this message in context: 
> http://www.nabble.com/nullPointerException-when-i%27m-trying-to-make-PDF-from-SVG-File-tp20305349p20305349.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
> 



Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to