Re: Unknown formatting object null^null ... again

2002-11-27 Thread Oleg Tkachenko
Matthias Kräuter wrote:
my old problem still exists. The stacktrace now shows line numbers but I
don´t think it helps very much. I tried newer versions of Xalan (2.4D1)
and Xerces (2.1.0) but nothing changed. 

My supplied Document  is not read from file but is a transformation result
I´m holding in memory. I than inserted a document fragment with an
fo:table into it with database data. Could there be a problem with the
namespaces in this  fragment?
How do you build your Document object? Make sure you are using 
namespace-aware DocumentBuilderFactory, which is not namesapce aware by 
default. Try
dfactory.setNamespaceAware(true);

--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Unknown formatting object null^null ...again

2002-11-27 Thread Matthias Kräuter
Hello,
my old problem still exists. The stacktrace now shows line numbers but I 
don´t think it helps very much. I tried newer versions of Xalan (2.4D1) 
and Xerces (2.1.0) but nothing changed. My supplied Document  is not 
read from file but is a transformation result in memory. I than inserted 
a document fragment with an fo:table-element  into it with database 
data. Could there be a problem with the namespace of this  fragment?

The stacktrace:
[reports] [ERROR] Unknown formatting object null^null
UILD FAILED
ava.lang.NullPointerException
 at 
org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:238)
 at org.apache.fop.tools.DocumentReader.parse(DocumentReader.java:444)
 at org.apache.fop.apps.Driver.render(Driver.java:469)
 at org.apache.fop.apps.Driver.render(Driver.java:489)
 at cmp.Report.execute(Report.java:581)
 at org.apache.tools.ant.Task.perform(Task.java:317)
 at org.apache.tools.ant.Target.execute(Target.java:309)
 at org.apache.tools.ant.Target.performTasks(Target.java:334)
 at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
 at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
 at org.apache.tools.ant.Main.runBuild(Main.java:610)
 at org.apache.tools.ant.Main.start(Main.java:196)
 at org.apache.tools.ant.Main.main(Main.java:235)

My source code looks like that:
   Driver driver = new Driver();
   driver.setRenderer(driver.RENDER_PDF);
  File pdfFile = new File("report.pdf");
  driver.setOutputStream(new FileOutputStream(pdfFile));
  driver.render(pdfDoc);
  driver.run();
pdfDoc is a DOM Document.
My .fo Document with the inserted table:

  http://www.w3.org/1999/XSL/Format";>
  ...
  
  
  
  
  
  
  
  ...
  
   ...


Thanks a lot for any help.
Matthias

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


Unknown formatting object null^null ... again

2002-11-27 Thread Matthias Kräuter
Hello,

my old problem still exists. The stacktrace now shows line numbers but I
don´t think it helps very much. I tried newer versions of Xalan (2.4D1)
and Xerces (2.1.0) but nothing changed. 

My supplied Document  is not read from file but is a transformation result
I´m holding in memory. I than inserted a document fragment with an
fo:table into it with database data. Could there be a problem with the
namespaces in this  fragment?

The stacktrace:

[reports] [ERROR] Unknown formatting object null^null

UILD FAILED
ava.lang.NullPointerException
  at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:238)
  at org.apache.fop.tools.DocumentReader.parse(DocumentReader.java:444)
  at org.apache.fop.apps.Driver.render(Driver.java:469)
  at org.apache.fop.apps.Driver.render(Driver.java:489)
  at cmp.Report.execute(Report.java:581)
  at org.apache.tools.ant.Task.perform(Task.java:317)
  at org.apache.tools.ant.Target.execute(Target.java:309)
  at org.apache.tools.ant.Target.performTasks(Target.java:334)
  at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
  at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
  at org.apache.tools.ant.Main.runBuild(Main.java:610)
  at org.apache.tools.ant.Main.start(Main.java:196)
  at org.apache.tools.ant.Main.main(Main.java:235)

My source code looks like that:
Driver driver = new Driver();
driver.setRenderer(driver.RENDER_PDF);

   File pdfFile = new File("report.pdf");
   driver.setOutputStream(new FileOutputStream(pdfFile));

   driver.render(pdfDoc);

   driver.run();

pdfDoc is a DOM Document.

My .fo Document with the inserted table:


   http://www.w3.org/1999/XSL/Format";>
   ...
   
   
   
   
   
   
   
   ...
   
...
 

Can anybody give me a hint on that?

Thanks a lot
Matthias

-- 
-- 

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



Re: Unknown formatting object null^null ... once again

2002-11-26 Thread Jeremias Maerki
Yes, that seems to be the uri parameter that comes in null.

Let's look at it from another angle: You have the FO in a DOM, right? It
looks like that DOM doesn't support namespaces for some reason. You said
you've checked that you've got a relatively new version of Xerces. Do
you use JDK 1.4? If yes and you haven't placed Xerces and Xalan in the
endorsed directory, you're probably still using Crimson and that buggy
old Xalan included in JDK 1.4.

Anyway, could you post the code where you build up the DOM and pass it
to FOP? Or another approach: Do you have to work with a DOM? What
exactly are you trying to do?

On 26.11.2002 15:29:24 Matthias Kräuter wrote:
>  Hello Jeremias,
> 
> thanks for your help, but the problem still exists. Below is my 
> stacktrace with line numbers.
> 
>  [reports] [ERROR] Unknown formatting object null^null
> 
> BUILD FAILED
> java.lang.NullPointerException
> at 
> org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:238)
> at 
> org.apache.fop.tools.DocumentReader.parse(DocumentReader.java:444)
> at org.apache.fop.apps.Driver.render(Driver.java:469)
> at cmp.Report.execute(Report.java:585)



Jeremias Maerki


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



Unknown formatting object null^null ... once again

2002-11-26 Thread Matthias Kräuter
Hello Jeremias,
thanks for your help, but the problem still exists. Below is my 
stacktrace with line numbers.

[reports] [ERROR] Unknown formatting object null^null
BUILD FAILED
java.lang.NullPointerException
   at 
org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:238)
   at 
org.apache.fop.tools.DocumentReader.parse(DocumentReader.java:444)
   at org.apache.fop.apps.Driver.render(Driver.java:469)
   at cmp.Report.execute(Report.java:585)

Thanks in advance
Matthias
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Unknown formatting object null^null

2002-11-25 Thread Matthias Kräuter
> And you don't have that problem when running FOP from the command line?
   No, the file is converted properly.
> Could you try to rebuild FOP with debug info on (see build.xml,
> properties). You then get line numbers in stacktraces so it's simpler to
> identify the problem.
>
> And you have relatively new versions of Xerces and Xalan, right?

   Yes, Xalan 2.3.1 and Xerces 2.2.1, that come with the FOP distribution.

   Thanks for your advice. I´ll check it.

   Matthias

>
> On 22.11.2002 15:08:58 Matthias Kräuter wrote:
> > Hello,
> >
> > I´ve got a problem with rendering an fo-file to pdf using an embedde
> d Fop.
> >
> >
> > I get the following exceptions.
> >
> >   [reports] [INFO] building formatting object tree
> >   [reports] [DEBUG] setting up fonts
> >   [reports] [ERROR] Unknown formatting object null^null
> >
> > BUILD FAILED
> > java.lang.NullPointerException
> > at org.apache.fop.fo.FOTreeBuilder.startElement(Unknown Source)
> > at org.apache.fop.tools.DocumentReader.parse(Unknown Source)
> > at org.apache.fop.apps.Driver.render(Unknown Source)
> >
> > I tried out the hints in the list, but none of them really worked. I´
> ;m
> > using FOP 0.20.4 with included Xalan and Xerces and Xerces Namespace-Awar
> eness
> > set explicitly to 'true'.
> >
> > My fo-File looks like that:
> >
> > 
> >http://www.w3.org/1999/XSL/Format";>
> > 
> > ...
> >
> >
> > Does someone know what I´m doing wrong?
>
>
> Jeremias Maerki
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Unknown formatting object null^null

2002-11-23 Thread Jeremias Maerki
And you don't have that problem when running FOP from the command line?
Could you try to rebuild FOP with debug info on (see build.xml,
properties). You then get line numbers in stacktraces so it's simpler to
identify the problem.

And you have relatively new versions of Xerces and Xalan, right?

On 22.11.2002 15:08:58 Matthias Kräuter wrote:
> Hello, 
> 
> I´ve got a problem with rendering an fo-file to pdf using an embedded 
> Fop.
> 
> 
> I get the following exceptions.
> 
>   [reports] [INFO] building formatting object tree
>   [reports] [DEBUG] setting up fonts
>   [reports] [ERROR] Unknown formatting object null^null
> 
> BUILD FAILED
> java.lang.NullPointerException
> at org.apache.fop.fo.FOTreeBuilder.startElement(Unknown Source)
> at org.apache.fop.tools.DocumentReader.parse(Unknown Source)
> at org.apache.fop.apps.Driver.render(Unknown Source)
> 
> I tried out the hints in the list, but none of them really worked. I´m
> using FOP 0.20.4 with included Xalan and Xerces and Xerces Namespace-Awareness
> set explicitly to 'true'.
> 
> My fo-File looks like that: 
> 
> 
>http://www.w3.org/1999/XSL/Format";>
>   
> ...
>
> 
> Does someone know what I´m doing wrong?


Jeremias Maerki


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



Unknown formatting object null^null

2002-11-22 Thread Matthias Kräuter
Hello, 

I´ve got a problem with rendering an fo-file to pdf using an embedded Fop.


I get the following exceptions.

  [reports] [INFO] building formatting object tree
  [reports] [DEBUG] setting up fonts
  [reports] [ERROR] Unknown formatting object null^null

BUILD FAILED
java.lang.NullPointerException
at org.apache.fop.fo.FOTreeBuilder.startElement(Unknown Source)
at org.apache.fop.tools.DocumentReader.parse(Unknown Source)
at org.apache.fop.apps.Driver.render(Unknown Source)

I tried out the hints in the list, but none of them really worked. I´m
using FOP 0.20.4 with included Xalan and Xerces and Xerces Namespace-Awareness
set explicitly to 'true'.

My fo-File looks like that: 


   http://www.w3.org/1999/XSL/Format";>

...
   

Does someone know what I´m doing wrong?

Thanks for your help.

Matthias
-- 

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