Re: Print JPEG HeadlessException - Please Help

2008-07-18 Thread Surj

Looks like this is set for sure.  

I even tried running with Java 1.5.  I think I might be beyond help, time to
look for a new trade.  



Andreas Delmelle-2 wrote:
 
- Oorspronkelijk bericht -
Van: Surj [mailto:[EMAIL PROTECTED]
Verzonden: vrijdag, juni 13, 2008 09:23 PM

Yes the 'java.awt.headless=true' specified as a parameter when starting up
the weblogic container, is there any other way of setting this i.e.
programmatically during startup.
 
 Can you also verify from within your code whether the setting was
 correctly processed?
 
 This you could check via:
 
 System.out.print(java.awt.headless= +
 System.getProperty(java.awt.headless, false));
 
 In theory, you could use System.setProperty(java.awt.headless, true)
 to set the value, but as is often the case with properties on the
 system-level, it could be that setting it programmatically has no effect
 at all.
 
 
 HTH!
 
 Cheers
 
 Andreas
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Print-JPEG-HeadlessException---Please-Help-tp17821038p18525612.html
Sent from the FOP - Dev mailing list archive at Nabble.com.



RE: Print JPEG HeadlessException - Please Help

2008-07-18 Thread Griffin,Sean
Just in case it means something, I ran into this problem when java.awt.headless 
was specified as true on the startup configuration for the OAS platform.  
Since we were running on a Windows PC we were successfully able to run Batik 
(and thereby FOP) by just changing java.awt.headless=false (or removing all 
together).  From my investigation at the time (albeit on FOP 0.20.5 and Batik 
1.5beta4), the only way to successfully make it work was to run in a 
non-headless environment.  In short, I did not find a way for FOP (and more 
specifically Batik) to work in a headless environment, regardless of what you 
set your properties to.

-Original Message-
From: Surj [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 18, 2008 4:50 AM
To: fop-dev@xmlgraphics.apache.org
Subject: Re: Print JPEG HeadlessException - Please Help


Looks like this is set for sure.  

I even tried running with Java 1.5.  I think I might be beyond help, time to
look for a new trade.  



Andreas Delmelle-2 wrote:
 
- Oorspronkelijk bericht -
Van: Surj [mailto:[EMAIL PROTECTED]
Verzonden: vrijdag, juni 13, 2008 09:23 PM

Yes the 'java.awt.headless=true' specified as a parameter when starting up
the weblogic container, is there any other way of setting this i.e.
programmatically during startup.
 
 Can you also verify from within your code whether the setting was
 correctly processed?
 
 This you could check via:
 
 System.out.print(java.awt.headless= +
 System.getProperty(java.awt.headless, false));
 
 In theory, you could use System.setProperty(java.awt.headless, true)
 to set the value, but as is often the case with properties on the
 system-level, it could be that setting it programmatically has no effect
 at all.
 
 
 HTH!
 
 Cheers
 
 Andreas
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Print-JPEG-HeadlessException---Please-Help-tp17821038p18525612.html
Sent from the FOP - Dev mailing list archive at Nabble.com.

--
CONFIDENTIALITY NOTICE This message and any included attachments are from 
Cerner Corporation and are intended only for the addressee. The information 
contained in this message is confidential and may constitute inside or 
non-public information under international, federal, or state securities laws. 
Unauthorized forwarding, printing, copying, distribution, or use of such 
information is strictly prohibited and may be unlawful. If you are not the 
addressee, please promptly delete this message and notify the sender of the 
delivery error by e-mail or you may call Cerner's corporate offices in Kansas 
City, Missouri, U.S.A at (+1) (816)221-1024.


Re: Print JPEG HeadlessException - Please Help

2008-06-13 Thread Surj
)
 at
 org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:177)
 at
 weblogic.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:585)
 at
 weblogic.apache.xerces.impl.XMLNamespaceBinder.handleEndElement(XMLNamespaceBinder.java:898)
 at
 weblogic.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBinder.java:644)
 at
 weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1008)
 at
 weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1469)
 at
 weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:329)
 at
 weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
 at
 weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
 at
 weblogic.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
 at
 weblogic.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1175)
 at
 weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:135)
 at
 weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:152)
 at org.apache.fop.apps.Driver.render(Unknown Source)
 at org.apache.fop.apps.Driver.run(Unknown Source)
 at
 uk.gov.hmce.intelligence.centaur.component.print.Printer.print(Printer.java:151)
 at
 uk.gov.hmce.intelligence.centaur.component.print.server.PrintServiceImpl.printAttachment(PrintServiceImpl.java:183)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at
 uk.gov.hmce.intelligence.centaur.framework.component.EJBWrapperHelper.invoke(EJBWrapperHelper.java:237)
 at $Proxy18.printAttachment(Unknown Source)
 at 
 
 

-- 
View this message in context: 
http://www.nabble.com/Print-JPEG-HeadlessException---Please-Help-tp17821038p17825585.html
Sent from the FOP - Dev mailing list archive at Nabble.com.



Re: Print JPEG HeadlessException - Please Help

2008-06-13 Thread Andreas Delmelle
- Oorspronkelijk bericht -
Van: Surj [mailto:[EMAIL PROTECTED]
Verzonden: vrijdag, juni 13, 2008 05:07 PM

Oh by the way i am using Java 1.4.2.8 if that makes a diff or not.

Surj wrote:

 Ok i am using fop-0.20.5 and all I am trying to do is get a jpeg images
 and send it to a postscript printer, i think this did work at some point
 but it is difficult to tell with so many releases.  So the code looks
 something like this:
snip /
 In the logs i get the following error when printing the image and I have
 set the java option
 -Djava.awt.headless=true.

 [ERROR] Logger not set
 [INFO] Using weblogic.xml.jaxp.RegistryXMLReader as SAX2 Parser
 [INFO] building formatting object tree
 [INFO] setting up fonts
 [INFO] [1]
 [INFO] [2]
 [ERROR] svg graphic could not be rendered: null
 java.awt.HeadlessException

I'm not 100% sure, but it seems like the system-property setting somehow is not 
correctly processed... Is 'java.awt.headless=true' specified as a parameter 
when starting up the servlet container, or how precisely do you set it?

Another possibility is that it's something internal in the Java AWT 
implementation, but I don't have Sun's sources at hand here, so can't see which 
line in that class is causing the HeadlessException.


Cheers

Andreas




Re: Print JPEG HeadlessException - Please Help

2008-06-13 Thread Surj

Yes the 'java.awt.headless=true' specified as a parameter when starting up
the weblogic container, is there any other way of setting this i.e.
programmatically during startup.  

Thanks


Andreas Delmelle-2 wrote:
 
- Oorspronkelijk bericht -
Van: Surj [mailto:[EMAIL PROTECTED]
Verzonden: vrijdag, juni 13, 2008 05:07 PM

Oh by the way i am using Java 1.4.2.8 if that makes a diff or not.

Surj wrote:

 Ok i am using fop-0.20.5 and all I am trying to do is get a jpeg images
 and send it to a postscript printer, i think this did work at some point
 but it is difficult to tell with so many releases.  So the code looks
 something like this:
 snip /
 In the logs i get the following error when printing the image and I have
 set the java option
 -Djava.awt.headless=true.

 [ERROR] Logger not set
 [INFO] Using weblogic.xml.jaxp.RegistryXMLReader as SAX2 Parser
 [INFO] building formatting object tree
 [INFO] setting up fonts
 [INFO] [1]
 [INFO] [2]
 [ERROR] svg graphic could not be rendered: null
 java.awt.HeadlessException
 
 I'm not 100% sure, but it seems like the system-property setting somehow
 is not correctly processed... Is 'java.awt.headless=true' specified as a
 parameter when starting up the servlet container, or how precisely do you
 set it?
 
 Another possibility is that it's something internal in the Java AWT
 implementation, but I don't have Sun's sources at hand here, so can't see
 which line in that class is causing the HeadlessException.
 
 
 Cheers
 
 Andreas
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Print-JPEG-HeadlessException---Please-Help-tp17821038p17830363.html
Sent from the FOP - Dev mailing list archive at Nabble.com.



Re: Print JPEG HeadlessException - Please Help

2008-06-13 Thread Andreas Delmelle
- Oorspronkelijk bericht -
Van: Surj [mailto:[EMAIL PROTECTED]
Verzonden: vrijdag, juni 13, 2008 09:23 PM

Yes the 'java.awt.headless=true' specified as a parameter when starting up
the weblogic container, is there any other way of setting this i.e.
programmatically during startup.

Can you also verify from within your code whether the setting was correctly 
processed?

This you could check via:

System.out.print(java.awt.headless= + System.getProperty(java.awt.headless, 
false));

In theory, you could use System.setProperty(java.awt.headless, true) to set 
the value, but as is often the case with properties on the system-level, it 
could be that setting it programmatically has no effect at all.


HTH!

Cheers

Andreas