You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Michael Kraus <mi...@informatik.uni-muenchen.de> on 2000/07/12 14:24:57 UTC

Trouble running FOP preview

I tried to start the FOP preview, but all I get is a
NullPointerException like this:

% java-1.3-ibm -classpath fop_bin_0_13_0.jar
org.apache.fop.apps.AWTCommandLine docs/examples/fo/readme.fo
FOP 0.12.2 [dev]
Exception in thread "main" java.lang.NullPointerException
        at
org.apache.fop.viewer.PreviewDialog.showPage(PreviewDialog.java:347)
        at
org.apache.fop.viewer.PreviewDialog.setScale(PreviewDialog.java:322)
        at
org.apache.fop.viewer.PreviewDialog.scale_actionPerformed(PreviewDialog.java:326)
        at
org.apache.fop.viewer.PreviewDialog$7.actionPerformed(PreviewDialog.java:96)
        at javax.swing.JComboBox.fireActionEvent(JComboBox.java:871)
        at javax.swing.JComboBox.selectedItemChanged(JComboBox.java:895)
        at javax.swing.JComboBox.contentsChanged(JComboBox.java:951)
        at
javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:85)
        at
javax.swing.DefaultComboBoxModel.setSelectedItem(DefaultComboBoxModel.java:92)
        at javax.swing.JComboBox.setSelectedItem(JComboBox.java:415)
        at
org.apache.fop.viewer.PreviewDialog.<init>(PreviewDialog.java:100)
        at
org.apache.fop.apps.AWTCommandLine.createPreviewDialog(AWTCommandLine.java:139)
        at
org.apache.fop.apps.AWTCommandLine.<init>(AWTCommandLine.java:65)
        at
org.apache.fop.apps.AWTCommandLine.main(AWTCommandLine.java:220)

I get this both on Windows and Linux both with Java 1.1, 1.2 and 1.3.
The org.apache.fop.apps.CommandLine class works allright, only the
preview makes trouble. Can anybody help me?

Michael

Re: Trouble running FOP preview

Posted by Stephan Albers <St...@jcatalog.com>.
Arved Sandstrom schrieb:

> I am going to direct this to the AWT viewer guys. It's a bit out of my area.

The PDF output was changed and the AWT previewer wasn't adjusted. Jürgen
Verwohlt und Stanislaw Gorkhover did most parts of the preview. Both are
on holidays right now and should be back on Monday, August, 31.

I'll ask them to update the viewer. Michael Kraus just asked the same
question. Perhaps he will fix it before Stanislaw and Jürgen are back?
(michael.kraus@informatik.uni-muenchen.de>)

Stephan Albers

Re: Trouble running FOP preview

Posted by Arved Sandstrom <Ar...@chebucto.ns.ca>.
I concur. I checked it out with 1.2.2 on Linux and it has the same problems.

I am going to direct this to the AWT viewer guys. It's a bit out of my area.

Arved

On Wed, 12 Jul 2000, Michael Kraus wrote:
> Hi Arved,
> 
> it's exactly the same with JDK 1.2.2.
> 
> Michael
> 
> Arved Sandstrom wrote:
> > 
> > Hi, Michael
> > 
> > Can you try this with a 1.2.2 JDK? The IBM 1.3 JDK is pretty notorious for
> > having AWT/Swing problems; I've stopped using it for anything that has to do
> > with GUI.
> > 
> > I'll check it out myself once I get back into Linux land, which is where all
> > my JDK's are. I'm on Windows right now, and my only JDK here is 1.3, which
> > reproduces your complaint.
> > 
> > Arved
> > 
> > At 02:24 PM 7/12/00 +0200, Michael Kraus wrote:
> > >I tried to start the FOP preview, but all I get is a
> > >NullPointerException like this:
> > >
> > >% java-1.3-ibm -classpath fop_bin_0_13_0.jar
> > >org.apache.fop.apps.AWTCommandLine docs/examples/fo/readme.fo
> > >FOP 0.12.2 [dev]
> > >Exception in thread "main" java.lang.NullPointerException
> > >        at
> > >org.apache.fop.viewer.PreviewDialog.showPage(PreviewDialog.java:347)
> > >        at
> > >org.apache.fop.viewer.PreviewDialog.setScale(PreviewDialog.java:322)
> > >        at
> > >org.apache.fop.viewer.PreviewDialog.scale_actionPerformed(PreviewDialog.jav
> > a:326)
> > >        at
> > >org.apache.fop.viewer.PreviewDialog$7.actionPerformed(PreviewDialog.java:96)
> > >        at javax.swing.JComboBox.fireActionEvent(JComboBox.java:871)
> > >        at javax.swing.JComboBox.selectedItemChanged(JComboBox.java:895)
> > >        at javax.swing.JComboBox.contentsChanged(JComboBox.java:951)
> > >        at
> > >javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:85)
> > >        at
> > >javax.swing.DefaultComboBoxModel.setSelectedItem(DefaultComboBoxModel.java:
> > 92)
> > >        at javax.swing.JComboBox.setSelectedItem(JComboBox.java:415)
> > >        at
> > >org.apache.fop.viewer.PreviewDialog.<init>(PreviewDialog.java:100)
> > >        at
> > >org.apache.fop.apps.AWTCommandLine.createPreviewDialog(AWTCommandLine.java:
> > 139)
> > >        at
> > >org.apache.fop.apps.AWTCommandLine.<init>(AWTCommandLine.java:65)
> > >        at
> > >org.apache.fop.apps.AWTCommandLine.main(AWTCommandLine.java:220)
> > >
> > >I get this both on Windows and Linux both with Java 1.1, 1.2 and 1.3.
> > >The org.apache.fop.apps.CommandLine class works allright, only the
> > >preview makes trouble. Can anybody help me?
> > >
> > >Michael
> > >
> > >
> > Senior Developer
> > e-plicity.com (www.e-plicity.com)
> > Halifax, Nova Scotia
> > "B2B Wireless in Canada's Ocean Playground"
-- 
Senior Developer
e-plicity.com (www.e-plicity.com)
Halifax, Nova Scotia
"B2B Wireless in Canada's Ocean Playground"

Re: Trouble running FOP preview

Posted by Michael Kraus <mi...@informatik.uni-muenchen.de>.
Hi Arved,

it's exactly the same with JDK 1.2.2.

Michael

Arved Sandstrom wrote:
> 
> Hi, Michael
> 
> Can you try this with a 1.2.2 JDK? The IBM 1.3 JDK is pretty notorious for
> having AWT/Swing problems; I've stopped using it for anything that has to do
> with GUI.
> 
> I'll check it out myself once I get back into Linux land, which is where all
> my JDK's are. I'm on Windows right now, and my only JDK here is 1.3, which
> reproduces your complaint.
> 
> Arved
> 
> At 02:24 PM 7/12/00 +0200, Michael Kraus wrote:
> >I tried to start the FOP preview, but all I get is a
> >NullPointerException like this:
> >
> >% java-1.3-ibm -classpath fop_bin_0_13_0.jar
> >org.apache.fop.apps.AWTCommandLine docs/examples/fo/readme.fo
> >FOP 0.12.2 [dev]
> >Exception in thread "main" java.lang.NullPointerException
> >        at
> >org.apache.fop.viewer.PreviewDialog.showPage(PreviewDialog.java:347)
> >        at
> >org.apache.fop.viewer.PreviewDialog.setScale(PreviewDialog.java:322)
> >        at
> >org.apache.fop.viewer.PreviewDialog.scale_actionPerformed(PreviewDialog.jav
> a:326)
> >        at
> >org.apache.fop.viewer.PreviewDialog$7.actionPerformed(PreviewDialog.java:96)
> >        at javax.swing.JComboBox.fireActionEvent(JComboBox.java:871)
> >        at javax.swing.JComboBox.selectedItemChanged(JComboBox.java:895)
> >        at javax.swing.JComboBox.contentsChanged(JComboBox.java:951)
> >        at
> >javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:85)
> >        at
> >javax.swing.DefaultComboBoxModel.setSelectedItem(DefaultComboBoxModel.java:
> 92)
> >        at javax.swing.JComboBox.setSelectedItem(JComboBox.java:415)
> >        at
> >org.apache.fop.viewer.PreviewDialog.<init>(PreviewDialog.java:100)
> >        at
> >org.apache.fop.apps.AWTCommandLine.createPreviewDialog(AWTCommandLine.java:
> 139)
> >        at
> >org.apache.fop.apps.AWTCommandLine.<init>(AWTCommandLine.java:65)
> >        at
> >org.apache.fop.apps.AWTCommandLine.main(AWTCommandLine.java:220)
> >
> >I get this both on Windows and Linux both with Java 1.1, 1.2 and 1.3.
> >The org.apache.fop.apps.CommandLine class works allright, only the
> >preview makes trouble. Can anybody help me?
> >
> >Michael
> >
> >
> Senior Developer
> e-plicity.com (www.e-plicity.com)
> Halifax, Nova Scotia
> "B2B Wireless in Canada's Ocean Playground"

Re: Trouble running FOP preview

Posted by Arved Sandstrom <Ar...@chebucto.ns.ca>.
Hi, Michael

Can you try this with a 1.2.2 JDK? The IBM 1.3 JDK is pretty notorious for 
having AWT/Swing problems; I've stopped using it for anything that has to do 
with GUI.

I'll check it out myself once I get back into Linux land, which is where all 
my JDK's are. I'm on Windows right now, and my only JDK here is 1.3, which 
reproduces your complaint.

Arved

At 02:24 PM 7/12/00 +0200, Michael Kraus wrote:
>I tried to start the FOP preview, but all I get is a
>NullPointerException like this:
>
>% java-1.3-ibm -classpath fop_bin_0_13_0.jar
>org.apache.fop.apps.AWTCommandLine docs/examples/fo/readme.fo
>FOP 0.12.2 [dev]
>Exception in thread "main" java.lang.NullPointerException
>        at
>org.apache.fop.viewer.PreviewDialog.showPage(PreviewDialog.java:347)
>        at
>org.apache.fop.viewer.PreviewDialog.setScale(PreviewDialog.java:322)
>        at
>org.apache.fop.viewer.PreviewDialog.scale_actionPerformed(PreviewDialog.jav
a:326)
>        at
>org.apache.fop.viewer.PreviewDialog$7.actionPerformed(PreviewDialog.java:96)
>        at javax.swing.JComboBox.fireActionEvent(JComboBox.java:871)
>        at javax.swing.JComboBox.selectedItemChanged(JComboBox.java:895)
>        at javax.swing.JComboBox.contentsChanged(JComboBox.java:951)
>        at
>javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:85)
>        at
>javax.swing.DefaultComboBoxModel.setSelectedItem(DefaultComboBoxModel.java:
92)
>        at javax.swing.JComboBox.setSelectedItem(JComboBox.java:415)
>        at
>org.apache.fop.viewer.PreviewDialog.<init>(PreviewDialog.java:100)
>        at
>org.apache.fop.apps.AWTCommandLine.createPreviewDialog(AWTCommandLine.java:
139)
>        at
>org.apache.fop.apps.AWTCommandLine.<init>(AWTCommandLine.java:65)
>        at
>org.apache.fop.apps.AWTCommandLine.main(AWTCommandLine.java:220)
>
>I get this both on Windows and Linux both with Java 1.1, 1.2 and 1.3.
>The org.apache.fop.apps.CommandLine class works allright, only the
>preview makes trouble. Can anybody help me?
>
>Michael
>
>
Senior Developer
e-plicity.com (www.e-plicity.com)
Halifax, Nova Scotia
"B2B Wireless in Canada's Ocean Playground"