DO NOT REPLY [Bug 32193] New: - NullPointerException when using non-Apache XML parser (Xerces) and/or JXTransformer

2004-11-11 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=32193.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32193

NullPointerException when using non-Apache XML parser (Xerces) and/or 
JXTransformer

   Summary: NullPointerException when using non-Apache XML parser
(Xerces) and/or JXTransformer
   Product: Fop
   Version: 0.20.5
  Platform: Other
OS/Version: Linux
Status: NEW
  Severity: Critical
  Priority: Other
 Component: general
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


On my cite we had an XML parser created by Oracle
(oracle.xml.parser.v2.SAXParser) installed in the system, so FOP was picking it
up and using it before it found Xerces.  Same for the JXTransformer class in
oracle.xml.jaxp.JXTransformer.  This created a NullPointerException in
JXTransformer.reportXSLException().

My kludge solution was to modify fop.sh and to include both xercesImpl.jar and
xalan.jar in -Xbootclasspath/p: (so they are searched before ANY other JARs). 
This eliminated the NullPointerException and everything worked perfectly.

In this bugzilla form I listed this under with OS Linux, but I suspect it would
produce the same effects on any other system where Xerces and Xalan aren't found
first.


DO NOT REPLY [Bug 32193] - NullPointerException when using non-Apache XML parser (Xerces) and/or JXTransformer

2004-11-11 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=32193.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32193

NullPointerException when using non-Apache XML parser (Xerces) and/or 
JXTransformer

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID



--- Additional Comments From [EMAIL PROTECTED]  2004-11-11 22:32 ---
I'm not sure what FOP can do here to fix this problem; we don't code the Oracle
parsers, and the choosing of the specific XML libraries is done by the Java
classloader, not FOP.

There are buggy versions of Xalan and Xerces that will also create NPE's; our
solution in these cases are to recommend the user replace those libraries with
more recent versions from the Xalan / Xerces web sites.

Glen


DO NOT REPLY [Bug 30138] - NullPointerException in rtf-renderer

2004-07-17 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=30138.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30138

NullPointerException in rtf-renderer

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||FIXED



--- Additional Comments From [EMAIL PROTECTED]  2004-07-17 13:25 ---
Hi,

this error was caused by the fact, that the rtf renderer did not set an rtf 
style to the list. I've set the bullet list as default style, so the processing 
of your file should not crash anymore.

But it may not look like you expect. Guess i have to invest some time in 
support for lists in near future.

I set this bug to FIXED.

Kind regards
Peter Herweg


DO NOT REPLY [Bug 30138] - NullPointerException in rtf-renderer

2004-07-17 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=30138.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30138

NullPointerException in rtf-renderer





--- Additional Comments From [EMAIL PROTECTED]  2004-07-17 14:20 ---
Vielen Dank, Herr Herweg.  Ich bin sehr froh, dass dieser Bug nicht mein Fehler 
war! ;)

Glen


DO NOT REPLY [Bug 30138] New: - NullPointerException in rtf-renderer

2004-07-16 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=30138.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30138

NullPointerException in rtf-renderer 

   Summary: NullPointerException in rtf-renderer
   Product: Fop
   Version: 1.0dev
  Platform: PC
OS/Version: Linux
Status: NEW
  Severity: Major
  Priority: Other
 Component: general
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


When trying to convert the attached fo-file to rtf using the fop.sh shell
script, the renderer reproducingly crashes with the following NullPointerException:



Exception in thread main java.lang.NullPointerException
at
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfListTable.writeListTableEntry(RtfListTable.java:191)
at
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfListTable.writeRtfContent(RtfListTable.java:136)
at
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement.writeRtf(RtfElement.java:86)
at
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfContainer.writeRtfContent(RtfContainer.java:135)
at
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement.writeRtf(RtfElement.java:86)
at
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfContainer.writeRtfContent(RtfContainer.java:135)
at
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement.writeRtf(RtfElement.java:86)
at org.apache.fop.render.rtf.rtflib.rtfdoc.RtfFile.flush(RtfFile.java:219)
at org.apache.fop.render.rtf.RTFHandler.endDocument(RTFHandler.java:157)
at org.apache.fop.fo.FOTreeBuilder.endDocument(FOTreeBuilder.java:224)
at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager$EntityScanner.load(Unknown
Source)
at
org.apache.xerces.impl.XMLEntityManager$EntityScanner.skipSpaces(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.fop.apps.Driver.render(Driver.java:230)
at org.apache.fop.apps.Driver.render(Driver.java:203)
at org.apache.fop.apps.Fop.main(Fop.java:57)

-

The code base is that of 2004-07-16 around 9.00 MEZ (head).

Commenting out the offending line 191 in RtfListTable caused the conversion to
run through, though resulting in not conformant rtf.

The same file converted OK with a fop version that was approximately three
months old (also head).

The fo is produced using the current docbook stylesheets, originating from a
docbook source.


DO NOT REPLY [Bug 30138] - NullPointerException in rtf-renderer

2004-07-16 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=30138.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30138

NullPointerException in rtf-renderer 





--- Additional Comments From [EMAIL PROTECTED]  2004-07-16 07:49 ---
Created an attachment (id=12125)
fo file that causes the bug


DO NOT REPLY [Bug 30138] - NullPointerException in rtf-renderer

2004-07-16 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=30138.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30138

NullPointerException in rtf-renderer

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID
Summary|NullPointerException in rtf-|NullPointerException in rtf-
   |renderer|renderer



--- Additional Comments From [EMAIL PROTECTED]  2004-07-16 10:43 ---
Marc

Your input FO File isn't working on my machine because it's requesting a lot of
graphics that you did not attach.  I'm getting too many other errors.

I asked you for a minimal FO file to reproduce the error.  You sent me a
910-line file that's requesting several graphics instead.  

Note:  do not attach the graphics, rather, again, reduce the FO to its minimal
size that causes this error to occur.  When you're willing to do so, please
re-open this bug--your FO file you send us should probably be under 150 lines.

Glen


DO NOT REPLY [Bug 30138] - NullPointerException in rtf-renderer

2004-07-16 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=30138.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30138

NullPointerException in rtf-renderer

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|RESOLVED|CLOSED



--- Additional Comments From [EMAIL PROTECTED]  2004-07-16 10:56 ---
Marc,

I added a NPE check to the code, the error should no longer occur.  The code in
question was added 4 months, 10 days ago.

There may be other formatting problems still, however, if that is the case
please reopen the bug or create new ones as appropriate.

Glen


DO NOT REPLY [Bug 30138] - NullPointerException in rtf-renderer

2004-07-16 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=30138.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30138

NullPointerException in rtf-renderer

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|CLOSED  |REOPENED
 Resolution|INVALID |



--- Additional Comments From [EMAIL PROTECTED]  2004-07-16 13:10 ---
Thanks for your help. 
 
Unfortunately, the error persists also with the new version. I've attached a 
slashed down version of bug.fo (some 180 lines) that still produces the same 
NullPointerException.


DO NOT REPLY [Bug 30138] - NullPointerException in rtf-renderer

2004-07-16 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=30138.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30138

NullPointerException in rtf-renderer





--- Additional Comments From [EMAIL PROTECTED]  2004-07-16 13:12 ---
Created an attachment (id=12127)
Slashed down version of bug.fo


Need help deciphering NullPointerException from FOP

2003-11-13 Thread Jeremy Nix
This NullPointerException appears to be coming from with the FOP
internals, but I'm unsure of what the actual cause is.  I was not
receiving this problem until I recently switched from XSLT to XSLTC, and
the problem does not always arise.  I'm caching both my compiled
templates, and my drivers, but the drivers I make sure to reset after
each use.  Just curious if someone else has come across this type of
error:


--java.lang.NullPointerException
at
com.sfsltd.xml.FopTransformer.transform(FopTransformer.java:215)
at
com.sfsltd.documents.ValuationDocument.buildPDF(ValuationDocument.java:2
08)
at
com.sfsltd.utils.pnc.ValuationDocumentThread.run(ValuationDocumentThread
.java:34)
at
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecuto
r.java:779)
at java.lang.Thread.run(Thread.java:536)
Root Cause of Exception: 
javax.xml.transform.TransformerException: java.lang.NullPointerException
at
org.apache.xalan.xsltc.trax.TransformerImpl.transform(TransformerImpl.ja
va:712)
at
org.apache.xalan.xsltc.trax.TransformerImpl.transform(TransformerImpl.ja
va:307)
at
com.sfsltd.xml.FopTransformer.transform(FopTransformer.java:211)
at
com.sfsltd.documents.ValuationDocument.buildPDF(ValuationDocument.java:2
08)
at
com.sfsltd.utils.pnc.ValuationDocumentThread.run(ValuationDocumentThread
.java:34)
at
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecuto
r.java:779)
at java.lang.Thread.run(Thread.java:536)
Caused by: java.lang.NullPointerException
at
org.apache.fop.render.pdf.FontSetup.addToResources(FontSetup.java:240)
at
org.apache.fop.render.pdf.PDFRenderer.stopRenderer(PDFRenderer.java:249)
at
org.apache.fop.apps.StreamRenderer.stopRenderer(StreamRenderer.java:204)
at
org.apache.fop.fo.FOTreeBuilder.endDocument(FOTreeBuilder.java:246)
at
org.apache.xml.serializer.ToXMLSAXHandler.endDocument(ToXMLSAXHandler.ja
va:222)
at com.sfsltd.documents.xsl.valuation.transform()
at
org.apache.xalan.xsltc.runtime.AbstractTranslet.transform(AbstractTransl
et.java:545)
at
org.apache.xalan.xsltc.trax.TransformerImpl.transform(TransformerImpl.ja
va:702)
... 6 more
-
java.lang.NullPointerException
at
org.apache.fop.render.pdf.FontSetup.addToResources(FontSetup.java:240)
at
org.apache.fop.render.pdf.PDFRenderer.stopRenderer(PDFRenderer.java:249)
at
org.apache.fop.apps.StreamRenderer.stopRenderer(StreamRenderer.java:204)
at
org.apache.fop.fo.FOTreeBuilder.endDocument(FOTreeBuilder.java:246)
at
org.apache.xml.serializer.ToXMLSAXHandler.endDocument(ToXMLSAXHandler.ja
va:222)
at com.sfsltd.documents.xsl.valuation.transform()
at
org.apache.xalan.xsltc.runtime.AbstractTranslet.transform(AbstractTransl
et.java:545)
at
org.apache.xalan.xsltc.trax.TransformerImpl.transform(TransformerImpl.ja
va:702)
at
org.apache.xalan.xsltc.trax.TransformerImpl.transform(TransformerImpl.ja
va:307)
at
com.sfsltd.xml.FopTransformer.transform(FopTransformer.java:211)
at
com.sfsltd.documents.ValuationDocument.buildPDF(ValuationDocument.java:2
08)
at
com.sfsltd.utils.pnc.ValuationDocumentThread.run(ValuationDocumentThread
.java:34)
at
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecuto
r.java:779)
at java.lang.Thread.run(Thread.java:536)
Orig Stack Trace: 
com.sfsltd.xml.FopTransformer.transform(FopTransformer.java:215)
com.sfsltd.documents.ValuationDocument.buildPDF(ValuationDocument.java:2
08)
com.sfsltd.utils.pnc.ValuationDocumentThread.run(ValuationDocumentThread
.java:34)
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecuto
r.java:779)
java.lang.Thread.run(Thread.java:536)

--

I can attach my implementation if necessary.


_
Jeremy Nix
Southwest Financial Services, LTD.
[EMAIL PROTECTED]
(513) 621-6699 ext.1158



Re: Need help deciphering NullPointerException from FOP

2003-11-13 Thread Chris Bowditch
From: Jeremy Nix [EMAIL PROTECTED]

This NullPointerException appears to be coming from with the FOP
internals, but I'm unsure of what the actual cause is.  I was not
receiving this problem until I recently switched from XSLT to XSLTC, and
the problem does not always arise.  I'm caching both my compiled
templates, and my drivers, but the drivers I make sure to reset after
each use.  Just curious if someone else has come across this type of
error:
snip/

Caused by: java.lang.NullPointerException
at
org.apache.fop.render.pdf.FontSetup.addToResources(FontSetup.java:240)
at
org.apache.fop.render.pdf.PDFRenderer.stopRenderer(PDFRenderer.java:249)
at
org.apache.fop.apps.StreamRenderer.stopRenderer(StreamRenderer.java:204)
at
org.apache.fop.fo.FOTreeBuilder.endDocument(FOTreeBuilder.java:246)
snip/

Sounds like a threading issue. The configuration for FOP is held in static 
variables. And since its falling over on the font stuff it sounds like the 
statics are getting corrupted. Possibly by two simultaneous calls to the 
Options constructor.

You didnt give much info on your environment, are running FOP in a 
Mulit-threaded environment? What version of FOP you are using. I'm assuming 
0.20.5.

Chris

_
Use MSN Messenger to send music and pics to your friends 
http://www.msn.co.uk/messenger



RE: Need help deciphering NullPointerException from FOP

2003-11-13 Thread Jeremy Nix
Yes, it is a multithreaded environment. 
Fop version: 0.20.5
JDK version: 1.4.1_01
O/S: Win2000

So would this be caused by 2 threads using the same instance of a
Driver, or 2 threads using the same instance of a compiled template, or
something else?

_
Jeremy Nix
Southwest Financial Services, LTD.
[EMAIL PROTECTED]
(513) 621-6699 ext.1158



-Original Message-
From: Chris Bowditch [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 13, 2003 9:05 AM
To: [EMAIL PROTECTED]
Subject: Re: Need help deciphering NullPointerException from FOP


From: Jeremy Nix [EMAIL PROTECTED]

This NullPointerException appears to be coming from with the FOP 
internals, but I'm unsure of what the actual cause is.  I was not 
receiving this problem until I recently switched from XSLT to XSLTC, 
and the problem does not always arise.  I'm caching both my compiled 
templates, and my drivers, but the drivers I make sure to reset after 
each use.  Just curious if someone else has come across this type of
error:

snip/


Caused by: java.lang.NullPointerException
   at
org.apache.fop.render.pdf.FontSetup.addToResources(FontSetup.java:240)
   at
org.apache.fop.render.pdf.PDFRenderer.stopRenderer(PDFRenderer.java:249
)
   at
org.apache.fop.apps.StreamRenderer.stopRenderer(StreamRenderer.java:204
)
   at
org.apache.fop.fo.FOTreeBuilder.endDocument(FOTreeBuilder.java:246)

snip/

Sounds like a threading issue. The configuration for FOP is held in
static 
variables. And since its falling over on the font stuff it sounds like
the 
statics are getting corrupted. Possibly by two simultaneous calls to the

Options constructor.

You didnt give much info on your environment, are running FOP in a 
Mulit-threaded environment? What version of FOP you are using. I'm
assuming 
0.20.5.

Chris

_
Use MSN Messenger to send music and pics to your friends 
http://www.msn.co.uk/messenger



RE: Need help deciphering NullPointerException from FOP

2003-11-13 Thread Chris Bowditch
From: Jeremy Nix [EMAIL PROTECTED]

Yes, it is a multithreaded environment.
Fop version: 0.20.5
JDK version: 1.4.1_01
O/S: Win2000
So would this be caused by 2 threads using the same instance of a
Driver, or 2 threads using the same instance of a compiled template, or
something else?
It doesnt matter if different threads are using different instances of 
Driver or not, either way both threads will be using the same Configuration 
object because its members are all statics. Take a look at the source of 
Configuration.java for yourself.

Not 100% certain that configuration is the problem, but earlier versions of 
FOP were renowned for multi-threading problems. One of the committers, 
Jeremias, I think did a bunch of work to try and eliminate the problems. 
IIRC, he had some success, but there are still some potential gaps

Chris

_
Sign-up for a FREE BT Broadband connection today! 
http://www.msn.co.uk/specials/btbroadband



Re: Need help deciphering NullPointerException from FOP

2003-11-13 Thread J.Pietschmann
Chris Bowditch wrote:
Not 100% certain that configuration is the problem,
It is: the exception is thrown in the code which reads user
fonts from the config file.
All relevant methods on the Driver are synchronized, as well
as the static image functions, they can't cause trouble any
more (except being a significant bottleneck under heavy load,
aka pain-in-the-ass, because you can't use the time while
an image is loaded for working on another image).
J.Pietschmann




Re: Need help deciphering NullPointerException from FOP

2003-11-13 Thread J.Pietschmann
Jeremy Nix wrote:

Yes, it is a multithreaded environment. 
See
 http://xml.apache.org/fop/embedding.html#multithreading
J.Pietschmann



RE: Need help deciphering NullPointerException from FOP

2003-11-13 Thread Jeremy Nix
I've reviewed the steps here (many times), and I pool a number of Driver
objects for my rendering.  The only conclusion I could come up with was
something with the precompiled xsl was causing my troubled.  I only
received this nullpointer exception when I pre-compiled my xsl documents
into templates objects and tried utilizing these templates in a
multi-threaded environment.  When I go back to my old way of simply
caching the XslSource's for each xsl document, I receive no errors when
running multiple threads.


_
Jeremy Nix
Southwest Financial Services, LTD.
[EMAIL PROTECTED]
(513) 621-6699 ext.1158



-Original Message-
From: J.Pietschmann [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 13, 2003 4:10 PM
To: [EMAIL PROTECTED]
Subject: Re: Need help deciphering NullPointerException from FOP


Jeremy Nix wrote:

 Yes, it is a multithreaded environment.

See
  http://xml.apache.org/fop/embedding.html#multithreading

J.Pietschmann



Re: Need help deciphering NullPointerException from FOP

2003-11-13 Thread J.Pietschmann
J.Pietschmann wrote:
It is: the exception is thrown in the code which reads user
fonts from the config file.
Ow - scratch that. The exception originates while writing font
ressources to the PDF. But I still think it's a problem with
overwriting the configuration.
J.Pietschmann



Re: Need help deciphering NullPointerException from FOP

2003-11-13 Thread J.Pietschmann
Jeremy Nix wrote:
I've reviewed the steps here (many times), and I pool a number of Driver
objects for my rendering.
The important question is: how do you handle Configuration?
Do you call new Configuration() more than once?
 The only conclusion I could come up with was
something with the precompiled xsl was causing my troubled.  I only
received this nullpointer exception when I pre-compiled my xsl documents
into templates objects and tried utilizing these templates in a
multi-threaded environment.
There's no hint this could be your problem, although XSLTC is
known to have bugs, including throwing unexpected NPEs.
J.Pietschmann



RE: Need help deciphering NullPointerException from FOP

2003-11-13 Thread Jeremy Nix
I never create a new Configuration.  Is this something that I should be
doing?  The only interaction I do with Configuration is: 

Configuration.put(baseDir, System.getProperty(user.dir));


_
Jeremy Nix
Southwest Financial Services, LTD.
[EMAIL PROTECTED]
(513) 621-6699 ext.1158



-Original Message-
From: J.Pietschmann [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 13, 2003 5:01 PM
To: [EMAIL PROTECTED]
Subject: Re: Need help deciphering NullPointerException from FOP


Jeremy Nix wrote:
 I've reviewed the steps here (many times), and I pool a number of 
 Driver objects for my rendering.

The important question is: how do you handle Configuration?
Do you call new Configuration() more than once?

  The only conclusion I could come up with was
 something with the precompiled xsl was causing my troubled.  I only 
 received this nullpointer exception when I pre-compiled my xsl 
 documents into templates objects and tried utilizing these templates 
 in a multi-threaded environment.

There's no hint this could be your problem, although XSLTC is known to
have bugs, including throwing unexpected NPEs.

J.Pietschmann



DO NOT REPLY [Bug 24017] - NullPointerException when using fo:list-item-label

2003-10-26 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24017.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24017

NullPointerException when using fo:list-item-label





--- Additional Comments From [EMAIL PROTECTED]  2003-10-27 03:06 ---
Actually, Andreas, the WONTFIX was with reference to a bug I found while 
trying (unsuccessfully) to duplicate the NPE, as I described while marking it 
as such. 

Furthermore, it really is unacceptable for FOP to NPE based on an incorrect FO 
input, no matter how mangled the FO is--it should exit cleanly.  The fact that 
an NPE occurred was the primary issue, not whether his FO was useful or even 
valid.  Perhaps WORKSFORME would have been a better designation had I not 
have found a separate bug on my own.

I thank Lars for taking the time to write this bug report.  And should he be 
able to trip up FOP with poorly written/invalid FO files (in particular for the 
1.0 version), such bugs would be highly welcome (although we may not be able to 
get to them immediately).  It's important FOP is able to exit gracefully--or at 
least not NPE!--when those occur.

Glen


DO NOT REPLY [Bug 24017] - NullPointerException when using fo:list-item-label

2003-10-23 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24017.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24017

NullPointerException when using fo:list-item-label

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Resolution|WONTFIX |INVALID



--- Additional Comments From [EMAIL PROTECTED]  2003-10-23 22:41 ---
check the spec:
q
fo:list-item-body does not generate any areas
/q

Contents should consist of 1 or more fo:block ( and maybe a few fo:marker ) 
elements.
FOP is only being compliant here... use an empty fo:block/ inside the body to 
avoid the error -- alternately, avoid generating a list-item with an empty body 
altogether.


DO NOT REPLY [Bug 24017] New: - NullPointerException when using fo:list-item-label

2003-10-22 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24017.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24017

NullPointerException when using fo:list-item-label

   Summary: NullPointerException when using fo:list-item-label
   Product: Fop
   Version: 0.20.5
  Platform: All
OS/Version: Other
Status: NEW
  Severity: Major
  Priority: Other
 Component: pdf renderer
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


Got NullPointerException in LineArea.java:855 on the following simple fo 
fragment:
fo:list-block
  fo:list-item
fo:list-item-labelfo:block1/fo:block/fo:list-item-label
fo:list-item-body/fo:list-item-body
  /fo:list-item
/fo:list-block

The attached patch fixes the problem.


DO NOT REPLY [Bug 24017] - NullPointerException when using fo:list-item-label

2003-10-22 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24017.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24017

NullPointerException when using fo:list-item-label





--- Additional Comments From [EMAIL PROTECTED]  2003-10-22 20:18 ---
Created an attachment (id=8677)
Patch fixing the bug


DO NOT REPLY [Bug 23480] - [PATCH] NullPointerException when -classpath is empty

2003-10-07 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23480.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23480

[PATCH] NullPointerException when -classpath is empty

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED



--- Additional Comments From [EMAIL PROTECTED]  2003-10-07 20:45 ---
This problem was fixed a while back in our 1.0 (development) version, but for 
some reason was not applied to our 0.20.x version.  I just did so, using the 
solution originally done for development:

http://cvs.apache.org/viewcvs.cgi/xml-
fop/src/org/apache/fop/apps/Attic/Driver.java.diff?r1=1.37r2=1.38diff_format=h

Thanks for bringing this to our attention!
Glen


DO NOT REPLY [Bug 23480] New: - [PATCH] NullPointerException when -classpath is empty

2003-09-29 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23480.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23480

[PATCH] NullPointerException when -classpath is empty

   Summary: [PATCH] NullPointerException when -classpath is empty
   Product: Fop
   Version: 0.20.5
  Platform: All
OS/Version: All
Status: NEW
  Severity: Normal
  Priority: Other
 Component: general
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


The following error occurs when constructing the instance of Driver
when the all jars are moved into the -Xbootclasspath/p: option.
===
Converting XSL-FO to PDF...
java.lang.NullPointerException
at org.apache.fop.apps.Service.providers(Driver.java:597)
at org.apache.fop.apps.Driver.setupDefaultMappings(Driver.java:318)
at org.apache.fop.apps.Driver.init(Driver.java:222)
at com.mdldoors.domgenerate.DOMGenerate.convertDOM2PDF(DOMGenerate.java:125)
at com.mdldoors.domgenerate.DOMGenerate.main(DOMGenerate.java:546)
===

The the class loader instance cl is null in this case.  The attached patch
works around this issue.  I am not sure of the consequences of ignoring
the class loader.


DO NOT REPLY [Bug 23480] - [PATCH] NullPointerException when -classpath is empty

2003-09-29 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23480.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23480

[PATCH] NullPointerException when -classpath is empty





--- Additional Comments From [EMAIL PROTECTED]  2003-09-29 12:19 ---
Created an attachment (id=8385)
Ignore the empty class loader.


DO NOT REPLY [Bug 21538] - NullPointerException with SVG background-image

2003-07-12 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21538.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21538

NullPointerException with SVG background-image





--- Additional Comments From [EMAIL PROTECTED]  2003-07-12 20:52 ---
Created an attachment (id=7271)
example svg file

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



PDFWArray.java NullPointerException

2003-07-11 Thread Peter B. West
Fopdevs,

Has anyone else had problems compiling PDFWArray.java in fop.pdf under 
Eclipse?  In a previous incarnation, I was getting persistent 
NullPointerExceptions at Line 0 when attempting to build.  I couldn't 
see what the problem was, so I did a clean checkout and it built 
cleanly.  After my last update, I have the problem back again.  It seems 
like a coding problem, but the file compiles under Ant, outside Eclipse.

Any ideas?

Peter
--
Peter B. West  http://www.powerup.com.au/~pbwest/resume.html
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


Re: PDFWArray.java NullPointerException

2003-07-11 Thread Jeremias Maerki
Yup, same here. It seems to be a Checkstyle problem. I still need to
check if the same happens with the Checkstyle ant target.

On 11.07.2003 11:54:50 Peter B. West wrote:
 Has anyone else had problems compiling PDFWArray.java in fop.pdf under 
 Eclipse?  In a previous incarnation, I was getting persistent 
 NullPointerExceptions at Line 0 when attempting to build.  I couldn't 
 see what the problem was, so I did a clean checkout and it built 
 cleanly.  After my last update, I have the problem back again.  It seems 
 like a coding problem, but the file compiles under Ant, outside Eclipse.


Jeremias Maerki


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



DO NOT REPLY [Bug 17013] New: - fop aborts with NullPointerException / id on table-row

2003-02-12 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17013.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17013

fop aborts with NullPointerException / id on table-row

   Summary: fop aborts with NullPointerException / id on table-row
   Product: Fop
   Version: 0.20.4
  Platform: PC
OS/Version: Windows XP
Status: NEW
  Severity: Normal
  Priority: Other
 Component: pdf renderer
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


Hello,

FOP aborts with a NullPointerException when a table consisting of rows each 
having an id spans more than one page. The exception does not happen when the 
table fits on one page or when the id is put on the first cell instead of the 
row.

example fo file: 

?xml version=1.0 encoding=ISO-8859-1?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
fo:layout-master-set
fo:simple-page-master margin-right=2.5cm margin-left=2.5cm margin-
bottom=3cm margin-top=3cm page-width=21cm page-height=29.7cm master-
name=my-master
fo:region-body margin-bottom=1.5cm margin-top=1.5cm/
fo:region-before extent=1.5cm/
fo:region-after extent=1.5cm/
/fo:simple-page-master
/fo:layout-master-set

fo:page-sequence master-reference=my-master
fo:flow flow-name=xsl-region-body
fo:table table-layout=fixed font-size=24pt
fo:table-column column-width=16cm/
fo:table-body
fo:table-row id=1
fo:table-cell border-style=solid
fo:block1/fo:block
/fo:table-cell
/fo:table-row
fo:table-row id=2
fo:table-cell border-style=solid
fo:block1/fo:block
/fo:table-cell
/fo:table-row
fo:table-row id=3
fo:table-cell border-style=solid
fo:block1/fo:block
/fo:table-cell
/fo:table-row
fo:table-row id=4
fo:table-cell border-style=solid
fo:block1/fo:block
/fo:table-cell
/fo:table-row
fo:table-row id=5
fo:table-cell border-style=solid
fo:block1/fo:block
/fo:table-cell
/fo:table-row
fo:table-row id=6
fo:table-cell border-style=solid
fo:block1/fo:block
/fo:table-cell
/fo:table-row
fo:table-row id=7
fo:table-cell border-style=solid
fo:block1/fo:block
/fo:table-cell
/fo:table-row
fo:table-row id=8
fo:table-cell border-style=solid
fo:block1/fo:block
/fo:table-cell
/fo:table-row
fo:table-row id=9
fo:table-cell border-style=solid
fo:block1/fo:block
/fo:table-cell
/fo:table-row
fo:table-row id=10
fo:table-cell border-style=solid
fo:block1/fo:block
/fo:table-cell
/fo:table-row
fo:table-row id=11
fo:table-cell border-style=solid
fo:block1/fo:block
/fo:table-cell
/fo:table-row
fo:table-row id=12
fo:table-cell border-style=solid
fo:block1/fo:block
/fo:table-cell
/fo:table-row
fo:table-row id=13
fo:table-cell border-style=solid
fo:block1/fo:block
/fo:table-cell
/fo:table-row
fo:table-row id=14
fo:table-cell border-style=solid
fo:block1/fo:block
/fo:table-cell
/fo:table-row
fo:table-row id=15
fo:table-cell border-style=solid
fo:block1/fo:block
/fo:table-cell
/fo:table-row
fo:table-row id=16
fo:table-cell border-style=solid
fo:block1/fo:block
/fo:table-cell
/fo:table-row
fo:table-row id=17
fo:table-cell border-style=solid
fo:block1/fo:block
/fo:table-cell
/fo:table-row
fo:table-row id=18
fo:table-cell border-style=solid
fo:block1/fo:block
/fo:table-cell
/fo:table-row
fo:table-row id=19
fo:table-cell border-style=solid
fo:block1/fo:block
/fo:table-cell
/fo:table-row
fo:table-row id=20
fo:table-cell border-style=solid
fo:block1/fo:block
/fo:table-cell
/fo:table-row
fo:table-row id=21
fo:table-cell border-style=solid
fo:block1/fo:block
/fo:table-cell
/fo:table-row
/fo:table-body
/fo:table
/fo:flow
/fo:page-sequence
/fo:root

FOP output:

fop -d -fo bug.fo bug.pdf
[DEBUG] Input mode: 
[DEBUG] FO 
[DEBUG] fo input file: bug.fo
[DEBUG] Output mode: 
[DEBUG] pdf
[DEBUG] output file: bug.pdf
[DEBUG] OPTIONS
[DEBUG] no user configuration file is used [default]
[DEBUG] debug mode on
[DEBUG] dump configuration
[DEBUG] quiet mode on
[DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[DEBUG] base directory: file:/d:/catalog/Rammax/
[INFO] FOP 0.20.4
[DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] building formatting object tree
[DEBUG] setting up fonts
[INFO] [1]
[INFO] [2]
[ERROR] null
org.apache.fop.apps.FOPException
at org.apache.fop.apps.CommandLineStarter.run(Unknown Source)
at org.apache.fop.apps.Fop.main(Unknown Source)

-

java.lang.NullPointerException
at org.apache.fop.datatypes.IDReferences.setPosition(Unknown Source)
at org.apache.fop.datatypes.IDReferences.configureID(Unknown Source)
at org.apache.fop.fo.flow.TableRow.layout(Unknown Source)
at org.apache.fop.fo.flow.TableBody.layout(Unknown Source)
at org.apache.fop.fo.flow.Table.layout(Unknown Source)
at org.apache.fop.fo.flow.Flow.layout(Unknown Source

DO NOT REPLY [Bug 17013] - fop aborts with NullPointerException / id on table-row

2003-02-12 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17013.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17013

fop aborts with NullPointerException / id on table-row

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED



--- Additional Comments From [EMAIL PROTECTED]  2003-02-12 20:15 ---
This is a duplicate of some other report which I'm too lazy to look up.
Fixed in 0.20.5rc.

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




DO NOT REPLY [Bug 14768] - NullPointerException in XMLRenderer.isCoarseXML()

2002-11-28 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14768.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14768

NullPointerException in XMLRenderer.isCoarseXML()

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED



--- Additional Comments From [EMAIL PROTECTED]  2002-11-28 16:08 ---
Patch applied. Thanks.

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




DO NOT REPLY [Bug 14768] New: - NullPointerException in XMLRenderer.isCoarseXML()

2002-11-22 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14768.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14768

NullPointerException in XMLRenderer.isCoarseXML()

   Summary: NullPointerException in XMLRenderer.isCoarseXML()
   Product: Fop
   Version: 0.20.4
  Platform: Other
OS/Version: Other
Status: NEW
  Severity: Normal
  Priority: Other
 Component: general
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


When not setting the option fineDetail explicitly an NPE is thrown
while rendering an xml file.
This happens for example if you use XMLRenderer from your java code
and not from command line.

Proposed fix (XMLRenderer.java, Line 487):
Check whether Hashtable.get() returns null, if so use a default value.

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




DO NOT REPLY [Bug 11709] - NullPointerException from PDFXObject.output()

2002-11-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11709.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11709

NullPointerException from PDFXObject.output()

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED



--- Additional Comments From [EMAIL PROTECTED]  2002-11-19 16:29 ---
Which fop version are you talking about? Anyway, thread-safe problems fixed
already in cvs. Try cvs version (or just wait few days till 0.20.5 is out) and
if it doesn't help, feel free to reopen the bug.

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




DO NOT REPLY [Bug 6243] - NullPointerException when attribute flow-name is missing

2002-10-09 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6243.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6243

NullPointerException when attribute flow-name is missing

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED



--- Additional Comments From [EMAIL PROTECTED]  2002-10-09 19:37 ---
Fixed in CVS maintenance branch

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




DO NOT REPLY [Bug 8698] - NullPointerException when trying to render FO file

2002-10-09 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8698.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8698

NullPointerException when trying to render FO file

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||DUPLICATE



--- Additional Comments From [EMAIL PROTECTED]  2002-10-09 19:38 ---


*** This bug has been marked as a duplicate of 6243 ***

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




DO NOT REPLY [Bug 6243] - NullPointerException when attribute flow-name is missing

2002-10-09 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6243.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6243

NullPointerException when attribute flow-name is missing

[EMAIL PROTECTED] changed:

   What|Removed |Added

 CC||[EMAIL PROTECTED]



--- Additional Comments From [EMAIL PROTECTED]  2002-10-09 19:38 ---
*** Bug 8698 has been marked as a duplicate of this bug. ***

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




DO NOT REPLY [Bug 12876] - Multipage tables - NullPointerException

2002-09-26 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12876.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12876

Multipage tables - NullPointerException

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED



--- Additional Comments From [EMAIL PROTECTED]  2002-09-26 22:17 ---
The ID of the table row was deleted due to spilling and reset, some sort of
counterpart of the famous duplicate ID bug. Changed code so that the ID will
always be created (hope this doesn't cause the dup Id bug to reappear).

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




DO NOT REPLY [Bug 12876] New: - Multipage tables - NullPointerException

2002-09-20 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12876.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12876

Multipage tables - NullPointerException

   Summary: Multipage tables - NullPointerException
   Product: Fop
   Version: 0.20.4
  Platform: PC
OS/Version: Windows NT/2K
Status: NEW
  Severity: Major
  Priority: Other
 Component: pdf renderer
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


When attempting to create multipage tables, sometimes a NullPointerException is 
thrown. It seems to happen when there is a need to automatically break a page 
and move some content to the next. When breaks are inserted manually (by means 
of e.g. break-before attribute) the exception is not thown.

The attached archive contains three examples of fop's behaviour:

no_output/
No output was generated becaue of the NullPointerException.

incorrect_output/
A break was inserted manually in line 1350. No exception but an image is 
missing in the resulting PDF.

correct_output/
A break was inserted manually in line 1338. No exception, correct output.

BTW: the *.fo files were generated by (a bit tweaked) DOCBOOK stylesheets.

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




DO NOT REPLY [Bug 12876] - Multipage tables - NullPointerException

2002-09-20 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12876.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12876

Multipage tables - NullPointerException





--- Additional Comments From [EMAIL PROTECTED]  2002-09-20 21:07 ---
Created an attachment (id=3155)
examples of fop's behaviour

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




DO NOT REPLY [Bug 8698] - NullPointerException when trying to render FO file

2002-05-19 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8698.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8698

NullPointerException when trying to render FO file





--- Additional Comments From [EMAIL PROTECTED]  2002-05-19 16:52 ---
This appears to be caused by a failure to change the master-name property on 
the fo:conditional-page-master-reference.  Making this correction causes the 
problem to go away.

(This bug was submitted by Bill Cohagan on my behalf - I've confirmed the fix 
with him)

--Don

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




DO NOT REPLY [Bug 5953] New: - NullPointerException when rendering PDF

2002-05-17 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5953.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5953

NullPointerException when rendering PDF

   Summary: NullPointerException when rendering PDF
   Product: Fop
   Version: all
  Platform: HP
OS/Version: HP-UX
Status: RESOLVED
  Severity: Normal
  Priority: Other
 Component: pdf renderer
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


This error happenes sometimes(!) when FOP renders PDF for following HTTP 
streaming to browser. It's running on the WebLogic Server 6.1.

PDF rendering error:::org.apache.fop.app
s.FOPException
at org.apache.fop.apps.Driver.render(Driver.java, Compiled Code)
at org.apache.fop.apps.Driver.run(Driver.java, Compiled Code)
at cz.csas.cbl.ci.servlet.service.PDFWriterServlet.renderFO
(PDFWriterServlet.java, Compiled Code)
at cz.csas.cbl.ci.servlet.service.PDFWriterServlet.doPost
(PDFWriterServlet.java, Compiled Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled 
Code)
at cz.csas.cbl.ci.servlet.framework.BaseViewServlet.service
(BaseViewServlet.java, Compiled Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled 
Code)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet
(ServletStubImpl.java, Compiled Code)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet
(ServletStubImpl.java, Compiled Code)
at weblogic.servlet.internal.RequestDispatcherImpl.forward
(RequestDispatcherImpl.java, Compiled Code)
at 
cz.csas.cbl.ci.servlet.framework.BaseViewControllerServlet.forwardToView
(BaseViewControllerServlet.java, Compiled Code)
at cz.csas.cbl.ci.servlet.framework.FormControllerServlet.processForm
(FormControllerServlet.java, Compiled Code)
at cz.csas.cbl.ci.servlet.service.ServiceManagementServlet.processPost
(ServiceManagementServlet.java, Compiled Code)
at cz.csas.cbl.ci.servlet.framework.BaseViewControllerServlet.process
(BaseViewControllerServlet.java, Compiled Code)
at cz.csas.cbl.ci.servlet.framework.BaseViewControllerServlet.service
(BaseViewControllerServlet.java, Compiled Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled 
Code)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet
(ServletStubImpl.java, Compiled Code)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet
(ServletStubImpl.java, Compiled Code)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet
(WebAppServletContext.java, Compiled Code)
at weblogic.servlet.internal.ServletRequestImpl.execute
(ServletRequestImpl.java, Compiled Code)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java, Compiled 
Code)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)

-

java.lang.NullPointerException
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java, Compiled 
Code)
at org.apache.fop.apps.Driver.render(Driver.java, Compiled Code)
at org.apache.fop.apps.Driver.run(Driver.java, Compiled Code)
at cz.csas.cbl.ci.servlet.service.PDFWriterServlet.renderFO
(PDFWriterServlet.java, Compiled Code)
at cz.csas.cbl.ci.servlet.service.PDFWriterServlet.doPost
(PDFWriterServlet.java, Compiled Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled 
Code)
at cz.csas.cbl.ci.servlet.framework.BaseViewServlet.service
(BaseViewServlet.java, Compiled Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled 
Code)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet
(ServletStubImpl.java, Compiled Code)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet
(ServletStubImpl.java, Compiled Code)
at weblogic.servlet.internal.RequestDispatcherImpl.forward
(RequestDispatcherImpl.java, Compiled Code)
at 
cz.csas.cbl.ci.servlet.framework.BaseViewControllerServlet.forwardToView
(BaseViewControllerServlet.java, Compiled Code)
at cz.csas.cbl.ci.servlet.framework.FormControllerServlet.processForm
(FormControllerServlet.java, Compiled Code)
at cz.csas.cbl.ci.servlet.service.ServiceManagementServlet.processPost
(ServiceManagementServlet.java, Compiled Code)
at cz.csas.cbl.ci.servlet.framework.BaseViewControllerServlet.process
(BaseViewControllerServlet.java, Compiled Code)
at cz.csas.cbl.ci.servlet.framework.BaseViewControllerServlet.service
(BaseViewControllerServlet.java, Compiled Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled 
Code

DO NOT REPLY [Bug 8698] New: - NullPointerException when trying to render FO file

2002-05-01 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8698.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8698

NullPointerException when trying to render FO file

   Summary: NullPointerException when trying to render FO file
   Product: Fop
   Version: 0.20.3
  Platform: All
OS/Version: All
Status: NEW
  Severity: Normal
  Priority: Other
 Component: general
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


When I try to render the attached FO file, I get this exception

[INFO]: FOP 0.20.3
[DEBUG]: using SAX parser org.apache.xerces.parsers.SAXParser
[INFO]: building formatting object tree
[DEBUG]: setting up fonts
[ERROR]: null
org.apache.fop.apps.FOPException
at org.apache.fop.apps.Driver.render(Driver.java:486)
at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:72
)
at org.apache.fop.apps.Fop.main(Fop.java:19)

-

java.lang.NullPointerException
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:965)
at org.apache.fop.apps.Driver.render(Driver.java:481)
at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:72
)
at org.apache.fop.apps.Fop.main(Fop.java:19)

-

java.lang.NullPointerException
at org.apache.fop.fo.flow.Flow.setFlowName(Flow.java:98)
at org.apache.fop.fo.flow.Flow.init(Flow.java:77)
at org.apache.fop.fo.flow.Flow$Maker.make(Flow.java:28)
at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:261)
at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1371)

at org.apache.xerces.validators.common.XMLValidator.callStartElement(XML
Validator.java:840)
at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.disp
atch(XMLDocumentScanner.java:1223)
at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS
canner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:948)
at org.apache.fop.apps.Driver.render(Driver.java:481)
at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:72
)
at org.apache.fop.apps.Fop.main(Fop.java:19)

-

java.lang.NullPointerException
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:965)
at org.apache.fop.apps.Driver.render(Driver.java:481)
at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:72
)
at org.apache.fop.apps.Fop.main(Fop.java:19)

-

java.lang.NullPointerException
at org.apache.fop.fo.flow.Flow.setFlowName(Flow.java:98)
at org.apache.fop.fo.flow.Flow.init(Flow.java:77)
at org.apache.fop.fo.flow.Flow$Maker.make(Flow.java:28)
at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:261)
at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1371)

at org.apache.xerces.validators.common.XMLValidator.callStartElement(XML
Validator.java:840)
at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.disp
atch(XMLDocumentScanner.java:1223)
at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS
canner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:948)
at org.apache.fop.apps.Driver.render(Driver.java:481)
at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:72
)
at org.apache.fop.apps.Fop.main(Fop.java:19)



?xml version=1.0 encoding=UTF-8?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;fo:layout-master-
setfo:simple-page-master margin-bottom=2cm margin-top=2cm margin-
right=3cm margin-left=3cmfo:region-before extent=12pt/fo:region-body 
margin-bottom=20pt margin-top=20pt/fo:region-after 
extent=12pt//fo:simple-page-master/fo:layout-master-setfo:page-
sequencefo:flowfo:block space-after=6pt text-align=centered font-
size=24ptMaster's thesis/fo:blockfo:block text-align=centered
by Mikael St#9500;Ñldal/fo:block/fo:flow/fo:page-sequencefo:page-
sequencefo:sequence-specificationfo:sequence-specifier-repeating page-
master-repeating=one page-master-first=one//fo:sequence-
specificationfo:static-content flow-name=xsl-beforefo:block font-
size=10ptMaster's thesis/fo:block/fo:static-contentfo:static-content 
flow-name=xsl-afterfo:block text-align=centered font-size=10ptfo:page-
number//fo:block/fo:static-contentfo:flow font-family=serif font-
size=12ptfo:block space-after=24pt font-size=20ptTable of Contents
/fo:blockfo:block
Chapter 1 -
XML and related standards...
fo:page-number-citation ref-id=chap1//fo:blockfo:list-
blockfo:list-itemfo:list-item-labelfo:block

DO NOT REPLY [Bug 5848] - NullPointerException in InputHandler.createParser

2002-04-22 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5848.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5848

NullPointerException in InputHandler.createParser

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||INVALID



--- Additional Comments From [EMAIL PROTECTED]  2002-04-22 19:32 ---
1. Changed to INVALID.
2. Most likely reason is a problem in the style sheet. Xalan-2.0.0 has
the nasty habit of throwing NPE for certain stylesheet problems, in
particular undeclared namespaces (there are others). This does not rule
out other problems.

Try to run the transformation with a standalon XSLT processor from the
command line.

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




DO NOT REPLY [Bug 6243] New: - NullPointerException when attribute flow-name is missing

2002-02-05 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6243.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6243

NullPointerException when attribute flow-name is missing

   Summary: NullPointerException when attribute flow-name is missing
   Product: Fop
   Version: all
  Platform: PC
   URL: http://www.falk-lehmann.de
OS/Version: Windows NT/2K
Status: NEW
  Severity: Normal
  Priority: Other
 Component: general
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


When the attribute flow-name of the fo-element fo:flow is missing, FOP produces 
a NullPointerException. After adding the attribute everything works fine.

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




DO NOT REPLY [Bug 6243] - NullPointerException when attribute flow-name is missing

2002-02-05 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6243.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6243

NullPointerException when attribute flow-name is missing





--- Additional Comments From [EMAIL PROTECTED]  2002-02-05 12:51 ---
I tried FOP-version 0.20.2 and 0.20.3rc and both are affected.

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




DO NOT REPLY [Bug 5848] New: - NullPointerException in InputHandler.createParser

2002-01-14 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5848.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5848

NullPointerException in InputHandler.createParser

   Summary: NullPointerException in InputHandler.createParser
   Product: Fop
   Version: all
  Platform: PC
OS/Version: Windows NT/2K
Status: NEW
  Severity: Blocker
  Priority: Other
 Component: general
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


I am getting the following null pointer exception when I embed the FOP.
I used the sample code in your web page that describes how to embed FOP in 
applications.

Exception in thread main java.lang.NullPointerException
at org.apache.fop.apps.InputHandler.createParser(InputHandler.java:58)
at org.apache.fop.apps.XSLTInputHandler.getParser(XSLTInputHandler.java:
117)

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




DO NOT REPLY [Bug 5848] - NullPointerException in InputHandler.createParser

2002-01-14 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5848.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5848

NullPointerException in InputHandler.createParser





--- Additional Comments From [EMAIL PROTECTED]  2002-01-14 23:36 ---
Are you sure a JAXP 1.1 compatible XSL transformer (ex. Xalan) is in your 
classpath?

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




Re: NullPointerException. Can someone help me?

2001-09-06 Thread Jean-François Selber

I have found the solution
thanks to all

- Message d'origine -
De : Jean-François Selber [EMAIL PROTECTED]
À : [EMAIL PROTECTED]
Envoyé : jeudi 6 septembre 2001 15:10
Objet : NullPointerException. Can someone help me?


 I try to use fop (0.20.1) API
 (not by command line)

 Library in path:


xsltc.jar;runtime.jar;JLex.jar;java_cup.jar;BCEL.jar;xerces.jar;xalan.jar;fo
 p.jar;w3c.jar;rt.jar;batik.jar;jimi-1.0.jar

 code:

 Driver driver = new Driver(new InputSource(foReader), pdfOutputStream);
 driver.setRenderer(Driver.RENDER_PDF);
 driver.run();

 resultat:

 FATAL ERROR : null
 java.lang.NullPointerException
  at
 org.apache.fop.svg.SVGElementMapping.addToBuilder(SVGElementMapping.java,
 Compiled Code)
  at org.apache.fop.apps.Driver.addElementMapping(Driver.java:373)
  at org.apache.fop.apps.Driver.addElementMapping(Driver.java:384)
  at org.apache.fop.apps.Driver.setupDefaultMappings(Driver.java, Compiled
 Code)
  at org.apache.fop.apps.Driver.init(Driver.java:189)
  at org.apache.fop.apps.Driver.init(Driver.java:193)

 Can someone help me?
 thanks


 - Message d'origine -
 De : COFFMAN Steven [EMAIL PROTECTED]
 À : [EMAIL PROTECTED]
 Envoyé : jeudi 30 août 2001 17:35
 Objet : RE: NullPointerException


  So you're using FOP 0.20.1, you've got fop.jar, batik.jar, xerces.jar,
  xalan.jar, and jimi.jar in your classpath, right?
 
  One way to do it, is to embed FOP according to website:
  http://xml.apache.org/fop/embedding.html
 
  Which describes this:
 
  Driver driver = new Driver(new InputSource (args[0]),
 new FileOutputStream(args[1]));
  driver.setRenderer(RENDER_PDF);
  driver.run();
 
  However, if you can't do it this way, you need to provide more
information
  than what you did for anyone to be able to help.
  -Steve
  -Original Message-
  From: Jean-François Selber [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, August 30, 2001 9:45 AM
  To: [EMAIL PROTECTED]
  Subject: NullPointerException
 
 
  can someone help me?
 
  thanks
 
  
  
Driver driver = new Driver();
   
java.lang.NullPointerException
 at
   
 
org.apache.fop.svg.SVGElementMapping.addToBuilder(SVGElementMapping.java,
Compiled Code)
 at org.apache.fop.apps.Driver.addElementMapping(Driver.java:373)
 at org.apache.fop.apps.Driver.addElementMapping(Driver.java:384)
 at org.apache.fop.apps.Driver.setupDefaultMappings(Driver.java,
  Compiled
Code)
 at org.apache.fop.apps.Driver.init(Driver.java:189)
   
what can I do?
   
thanks
jf
   
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, email: [EMAIL PROTECTED]
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]


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


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




help: NullPointerException using when using new Driver()

2001-08-30 Thread Jean-François Selber

Driver driver = new Driver();

java.lang.NullPointerException
 at
org.apache.fop.svg.SVGElementMapping.addToBuilder(SVGElementMapping.java,
Compiled Code)
 at org.apache.fop.apps.Driver.addElementMapping(Driver.java:373)
 at org.apache.fop.apps.Driver.addElementMapping(Driver.java:384)
 at org.apache.fop.apps.Driver.setupDefaultMappings(Driver.java, Compiled
Code)
 at org.apache.fop.apps.Driver.init(Driver.java:189)

what can I do?

thanks
jf


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




NullPointerException using when using new Driver() fop 0.20.1

2001-08-30 Thread Jean-François Selber

soory it was with fop 0.20.1

- Message d'origine -
De : Jean-François Selber [EMAIL PROTECTED]
À : [EMAIL PROTECTED]
Envoyé : jeudi 30 août 2001 11:01
Objet : help: NullPointerException using when using new Driver()


 Driver driver = new Driver();

 java.lang.NullPointerException
  at
 org.apache.fop.svg.SVGElementMapping.addToBuilder(SVGElementMapping.java,
 Compiled Code)
  at org.apache.fop.apps.Driver.addElementMapping(Driver.java:373)
  at org.apache.fop.apps.Driver.addElementMapping(Driver.java:384)
  at org.apache.fop.apps.Driver.setupDefaultMappings(Driver.java, Compiled
 Code)
  at org.apache.fop.apps.Driver.init(Driver.java:189)

 what can I do?

 thanks
 jf



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




NullPointerException

2001-08-30 Thread Jean-François Selber

can someone help me?

thanks



  Driver driver = new Driver();
 
  java.lang.NullPointerException
   at
 
org.apache.fop.svg.SVGElementMapping.addToBuilder(SVGElementMapping.java,
  Compiled Code)
   at org.apache.fop.apps.Driver.addElementMapping(Driver.java:373)
   at org.apache.fop.apps.Driver.addElementMapping(Driver.java:384)
   at org.apache.fop.apps.Driver.setupDefaultMappings(Driver.java,
Compiled
  Code)
   at org.apache.fop.apps.Driver.init(Driver.java:189)
 
  what can I do?
 
  thanks
  jf
 


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


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




RE: NullPointerException

2001-08-30 Thread COFFMAN Steven

So you're using FOP 0.20.1, you've got fop.jar, batik.jar, xerces.jar,
xalan.jar, and jimi.jar in your classpath, right?

One way to do it, is to embed FOP according to website:
http://xml.apache.org/fop/embedding.html

Which describes this:

Driver driver = new Driver(new InputSource (args[0]), 
   new FileOutputStream(args[1]));
driver.setRenderer(RENDER_PDF);
driver.run();

However, if you can't do it this way, you need to provide more information
than what you did for anyone to be able to help.
-Steve
-Original Message-
From: Jean-François Selber [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 30, 2001 9:45 AM
To: [EMAIL PROTECTED]
Subject: NullPointerException 


can someone help me?

thanks



  Driver driver = new Driver();
 
  java.lang.NullPointerException
   at
 
org.apache.fop.svg.SVGElementMapping.addToBuilder(SVGElementMapping.java,
  Compiled Code)
   at org.apache.fop.apps.Driver.addElementMapping(Driver.java:373)
   at org.apache.fop.apps.Driver.addElementMapping(Driver.java:384)
   at org.apache.fop.apps.Driver.setupDefaultMappings(Driver.java,
Compiled
  Code)
   at org.apache.fop.apps.Driver.init(Driver.java:189)
 
  what can I do?
 
  thanks
  jf
 


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


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

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




nullPointerException

2001-07-17 Thread Wolf Gustavo (SGC-EXT)

Hi all,
  I am trying to get an XMLReader object with 

 XMLReader parser = inputHandler.getParser(); 

after having done: InputHandler inputHandler = new
XSLTInputHandler(xmlInputSource,xslInputSource);

and I get the following error (the files xmlInputSource and xslInputSource
are where they are suppossed to be):

java.lang.NullPointerException
Caught exception: java.lang.NullPointerException
java.lang.NullPointerException
at
org.apache.fop.apps.InputHandler.createParser(InputHandler.java:58)
at
org.apache.fop.apps.XSLTInputHandler.getParser(XSLTInputHandler.java:117)
at TestXSLT.init(TestXSLT.java:29)

It seems to me that I am missing some library, but I am using fop, xerces
and xalan in that order, as I was told others where doing, with a program
that worked for others. 

Does anyone have an idea of what could be wrong?

Thanks really a lot,
   Gustavo

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