Hi,
        I tried to check for a graphical environment before the 'transcode'
process using the piece of code Victor had provided (attached below). There
is infact a graphical environment available (the method returns true).

        The statement "ge =
GraphicsEnvironment.getLocalGraphicsEnvironment();" generates the following
log:
                Font specified in font.properties not found [-urw-itc
zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific]
                Font specified in font.properties not found [-urw-itc
zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific]
                Font specified in font.properties not found [-urw-itc
zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific]
                Font specified in font.properties not found [-urw-itc
zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific]
                Font specified in font.properties not found [-urw-itc
zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific]
                Font specified in font.properties not found [-urw-itc
zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific]
                Font specified in font.properties not found [-urw-itc
zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific]
                Font specified in font.properties not found [-urw-itc
zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific]
                Font specified in font.properties not found [-urw-itc
zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific]
                Font specified in font.properties not found [-urw-itc
zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific]
                Font specified in font.properties not found [-urw-itc
zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific]
                Font specified in font.properties not found [-urw-itc
zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific]
                Font specified in font.properties not found [-urw-itc
zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific]
                Font specified in font.properties not found [-urw-itc
zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific]
                Font specified in font.properties not found [-urw-itc
zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific]
                Font specified in font.properties not found [-urw-itc
zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific]
                Font specified in font.properties not found [-urw-itc
zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific]
                Font specified in font.properties not found [-urw-itc
zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific]
                Font specified in font.properties not found [-urw-itc
zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific]
                Font specified in font.properties not found [-urw-itc
zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific]

        However, there was no LinkageError at this step.

        At the next step (transcode call), the server just comes down. The
log I see is:
                Assertion failed: errno == 0 && count == (size_t) size, file
../../../src/share/native/sun/awt/font/fontmanager/fontobjects/fontObject.cpp
, line 343
                Abort - core dumped

        What could be the problem?

        Will using the PJA (Pure Java AWT) package help?

Thanks,
Saptarshi.

-----Original Message-----
From: Victor Mote [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 20, 2005 10:02 PM
To: [EMAIL PROTECTED]
Subject: RE: PDF Transcoder bringing the server down


Saptarshi Sen wrote:

>       I am trying to convert an SVG into PDF using the PDF 
> Transcoder in FOP. There are external fonts embedded into the 
> PDF. FOP has been embedded into our application which runs on 
> Weblogic. The entire process works fine on my local machine 
> which runs Win 2k.
> 
>       However, when I try the same on our integration machine 
> running Solaris, the call to the 'transcode' process just 
> brings down my Weblogic server. There is no exception thrown. 
> The PDF generated is of size 0 KB.
> 
>       I have no clue as to what is causing this problem. What 
> are the various details I need to take care of while running 
> FOP on Solaris?

Based on your description, the likely cause is that Batik can't find a local
graphical environment in which to run on the Solaris box. If Solaris has a
GUI, try running it under that (I am more familiar with Linux which has a
graphical console that can be used for such things). Also, here is some code
that can be used to check *before* running a task requiring a graphical
environment:

    /**
     * Determines whether this environment can support graphical functions
that
     * are required for system fonts, Batik (SVG processing), and other
     * AWT-dependent systems. The result returned here is somewhat different
     * from that returned by [EMAIL PROTECTED]
java.awt.GraphicsEnvironment#isHeadless()}.
     * Some environments that are not headless, i.e. that support a mouse,
     * keyboard, and display, are nevertheless not graphical. A Unix/Linux
     * terminal is a good example.
     * @return True iff a local graphical environment can be created.
     */
    public static boolean isGraphicalEnvironment() {
        GraphicsEnvironment ge = null;
        try {
            ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
        } catch (LinkageError e) {
            return false;
        }
        return true;
    }

HTH.

Victor Mote


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

-----------------------------------------------------------------------------------------------------------------------------
Disclaimer
-----------------------------------------------------------------------------------------------------------------------------

"This message(including attachment if any)is confidential and may be 
privileged.Before opening attachments please check them
for viruses and defects.MindTree Consulting Private Limited (MindTree)will not 
be responsible for any viruses or defects or
any forwarded attachments emanating either from within MindTree or outside.If 
you have received this message by mistake please notify the sender by return  
e-mail and delete this message from your system. Any unauthorized use or 
dissemination of this message in whole or in part is strictly prohibited.  
Please note that e-mails are susceptible to change and MindTree shall not be 
liable for any improper, untimely or incomplete transmission."

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

Reply via email to