You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Jonathan Levinson <Jo...@intersystems.com> on 2011/02/08 00:43:21 UTC

Problem running FOP on VMS

Hi,

I'm trying to run FOP on Open VMS and I'm experiencing the following error:

$  java "-Xmx512m" "-Djava.awt.headless=true" -
"-Djavax.xml.transform.TransformerFactory=net.sf.saxon.TransformerFactoryImpl"-
"org.apache.fop.cli.Main" -C _$1$DGA1:[SKONDEVMS.FOP.CONF]fop.xconf -XML _$1$DGA1:[SKONDEVMS.MGR.TEMP]MyReporttxt.xml -XSL _$1$DGA1:[SKONDEVMS.MGR.TEMP]MyReporttxt.xsl -PDF _$1$DGA1:[SKONDEVMS.MGR.TEMP]MyReporttxt.pdf
Feb 7, 2011 6:36:02 PM org.apache.fop.apps.FopFactoryConfigurator configure
INFO: Default page-height set to: 11in
Feb 7, 2011 6:36:02 PM org.apache.fop.apps.FopFactoryConfigurator configure
INFO: Default page-width set to: 8.26in
Exception in thread "main"
java.lang.UnsatisfiedLinkError: /java$awt_shr: Last error code from dlsym was: 8
284


        at java.lang.ClassLoader$NativeLibrary.load(Native Method)

        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1814)

        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1679)

        at java.lang.Runtime.loadLibrary0(Runtime.java:823)

        at java.lang.System.loadLibrary(System.java:1030)

Does anyone have any idea how to resolve this error?

Best Regards,
Jonathan Levinson


RE: Problem running FOP on VMS

Posted by Jonathan Levinson <Jo...@intersystems.com>.
Hi,

Just to let you know the Open VMS issue is resolved.  Motif had to be installed on the VMS computer.  Now fop works fine.

Best Regards,
Jonathan Levinson


> -----Original Message-----
> From: Andreas Delmelle [mailto:andreas.delmelle@telenet.be]
> Sent: Tuesday, February 08, 2011 11:30 AM
> To: fop-users@xmlgraphics.apache.org
> Subject: Re: Problem running FOP on VMS
> 
> On 08 Feb 2011, at 17:19, Jonathan Levinson wrote:
> 
> Hi Jonathan
> 
> > Thanks for the help!  We are not running Eclipse or SWT.
> >
> > Here is a fuller log of the exception.  Can you see anything wrong with what
> we are dong?  Thanks!
> 
> It doesn't seem like you're doing anything wrong from a FOP perspective.
> Consider that an UnsatisfiedLinkError means that the Java VM cannot locate the
> native-language definition of a method that was declared 'native' in the source.
> 
> As FOP itself does not define any native methods, and AFAIK, it does not call any
> native methods either (not sure if AWT even exposes these in the public API), the
> issue seems to be located in the Open VMS AWT implementation.
> 
> One thing to try to get a more accurate picture of which call in FOP ultimately
> triggers the issue in Open VMS, you could try setting the log level to TRACE or
> DEBUG. Right now, with INFO level, we can only see that it happens right after
> the default page-dimensions have been set from the user-config. That leaves
> font- and image-setup, but one could tell that solely from the fact that it's AWT-
> related...
> 
> 
> Regards,
> 
> Andreas
> ---
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


RE: Problem running FOP on VMS

Posted by Jonathan Levinson <Jo...@intersystems.com>.
Thanks Andreas!  Very helpful!

Best Regards,
Jonathan Levinson


> -----Original Message-----
> From: Andreas Delmelle [mailto:andreas.delmelle@telenet.be]
> Sent: Tuesday, February 08, 2011 11:30 AM
> To: fop-users@xmlgraphics.apache.org
> Subject: Re: Problem running FOP on VMS
> 
> On 08 Feb 2011, at 17:19, Jonathan Levinson wrote:
> 
> Hi Jonathan
> 
> > Thanks for the help!  We are not running Eclipse or SWT.
> >
> > Here is a fuller log of the exception.  Can you see anything wrong with what
> we are dong?  Thanks!
> 
> It doesn't seem like you're doing anything wrong from a FOP perspective.
> Consider that an UnsatisfiedLinkError means that the Java VM cannot locate the
> native-language definition of a method that was declared 'native' in the source.
> 
> As FOP itself does not define any native methods, and AFAIK, it does not call any
> native methods either (not sure if AWT even exposes these in the public API), the
> issue seems to be located in the Open VMS AWT implementation.
> 
> One thing to try to get a more accurate picture of which call in FOP ultimately
> triggers the issue in Open VMS, you could try setting the log level to TRACE or
> DEBUG. Right now, with INFO level, we can only see that it happens right after
> the default page-dimensions have been set from the user-config. That leaves
> font- and image-setup, but one could tell that solely from the fact that it's AWT-
> related...
> 
> 
> Regards,
> 
> Andreas
> ---
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Problem running FOP on VMS

Posted by Andreas Delmelle <an...@telenet.be>.
On 08 Feb 2011, at 17:19, Jonathan Levinson wrote:

Hi Jonathan

> Thanks for the help!  We are not running Eclipse or SWT.
> 
> Here is a fuller log of the exception.  Can you see anything wrong with what we are dong?  Thanks!

It doesn't seem like you're doing anything wrong from a FOP perspective.
Consider that an UnsatisfiedLinkError means that the Java VM cannot locate the native-language definition of a method that was declared 'native' in the source.

As FOP itself does not define any native methods, and AFAIK, it does not call any native methods either (not sure if AWT even exposes these in the public API), the issue seems to be located in the Open VMS AWT implementation.

One thing to try to get a more accurate picture of which call in FOP ultimately triggers the issue in Open VMS, you could try setting the log level to TRACE or DEBUG. Right now, with INFO level, we can only see that it happens right after the default page-dimensions have been set from the user-config. That leaves font- and image-setup, but one could tell that solely from the fact that it's AWT-related...


Regards,

Andreas
---


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


RE: Problem running FOP on VMS

Posted by Jonathan Levinson <Jo...@intersystems.com>.
Thanks for the help!  We are not running Eclipse or SWT.

Here is a fuller log of the exception.  Can you see anything wrong with what we are dong?  Thanks!

[GBROWN.GBROWN.FOP.build]
[GBROWN.GBROWN.FOP.build]
buildir=_$1$DGA1:[GBROWN.GBROWN.FOP.build]
_$1$DGA1:[GBROWN.GBROWN.FOP.build]fop.jar,_$1$DGA1:[GBROWN.GBROWN.FOP.build]fop-hyph.jar
[GBROWN.GBROWN.FOP.lib]
$ !display "localclaspath='localclasspath'
$       IF P1.EQS."" THEN EXIT 
$ FLAGS = "-C _$1$DGA1:[GBROWN.GBROWN.FOP.CONF]fop.xconf -XML _$1$DGA1:[GBROWN.GBROWN.MGR.TEMP]inpoP3NMkoLoUA.xml -XSL _$1$DGA1:[GBROWN.GBROWN.MGR.TEMP]4GAzMcWafyRooA.xsl -PDF _$1$DGA1:[GBROWN.GBROWN.MGR.TEMP]YMNrXKC7iTyT3A.pdf
$ define JAVA$CLASSPATH _$1$DGA1:[GBROWN.GBROWN.FOP.build]fop.jar,
  _$1$DGA1:[GBROWN.GBROWN.FOP.build]fop-hyph.jar,
  _$1$DGA1:[GBROWN.GBROWN.FOP.LIB]AVALON-FRAMEWORK-4_2_0.JAR,
  _$1$DGA1:[GBROWN.GBROWN.FOP.LIB]BATIK-ALL-1_7.JAR,
  _$1$DGA1:[GBROWN.GBROWN.FOP.LIB]COMMONS-IO-1_3_1.JAR,
  _$1$DGA1:[GBROWN.GBROWN.FOP.LIB]COMMONS-LOGGING-1_0_4.JAR,
  _$1$DGA1:[GBROWN.GBROWN.FOP.LIB]ICU4J-4_2_1.JAR,
  _$1$DGA1:[GBROWN.GBROWN.FOP.LIB]PDFBOX_1_1_0.JAR,
  _$1$DGA1:[GBROWN.GBROWN.FOP.LIB]SAXON9HE.JAR,
  _$1$DGA1:[GBROWN.GBROWN.FOP.LIB]SERIALIZER-2_7_0.JAR,
  _$1$DGA1:[GBROWN.GBROWN.FOP.LIB]SERVLET-2_2.JAR,
  _$1$DGA1:[GBROWN.GBROWN.FOP.LIB]XALAN-2_7_0.JAR,
  _$1$DGA1:[GBROWN.GBROWN.FOP.LIB]XERCESIMPL-2_7_1.JAR,
  _$1$DGA1:[GBROWN.GBROWN.FOP.LIB]XML-APIS-1_3_04.JAR,
  _$1$DGA1:[GBROWN.GBROWN.FOP.LIB]XML-APIS-EXT-1_3_04.JAR,
  _$1$DGA1:[GBROWN.GBROWN.FOP.LIB]XMLGRAPHICS-COMMONS-1_4.JAR
$  java "-Xmx512m" "-Djava.awt.headless=true" -1

"-Djavax.xml.transform.TransformerFactory=net.sf.saxon.TransformerFactoryImpl"
-9

 "org.apache.fop.cli.Main" -C _$1$DGA1:[GBROWN.GBROWN.FOP.CONF]fop.xconf
   -XML _$1$DGA1:[GBROWN.GBROWN.MGR.TEMP]inpoP3NMkoLoUA.xml 
   -XSL _$1$DGA1:[GBROWN.GBROWN.MGR.TEMP]4GAzMcWafyRooA.xsl 
   -PDF _$1$DGA1:[GBROWN.GBROWN.MGR.TEMP]YMNrXKC7iTyT3A.pdf

Feb 8, 2011 10:04:50 AM org.apache.fop.apps.FopFactoryConfigurator configure
INFO: Default page-height set to: 11in
Feb 8, 2011 10:04:50 AM org.apache.fop.apps.FopFactoryConfigurator configure
INFO: Default page-width set to: 8.26in
Exception in thread "main" c
java.lang.UnsatisfiedLinkError: /java$awt_shr: Last error code from dlsym was: 8284
      at java.lang.ClassLoader$NativeLibrary.load(Native Method)
      at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1814).
      at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1679)
      at java.lang.Runtime.loadLibrary0(Runtime.java:823)
      at java.lang.System.loadLibrary(System.java:1030)
      at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.awt.Toolkit.loadLibraries(Toolkit.java:1604)
      at java.awt.Toolkit.<clinit>(Toolkit.java:1643)
      at java.awt.Color.<clinit>(Color.java:263)
      at org.apache.xmlgraphics.java2d.GraphicContext.<init>(GraphicContext.java:88)
      at org.apache.fop.render.intermediate.IFGraphicContext.<init>(IFGraphicContext.java:42)
      at org.apache.fop.render.intermediate.IFRenderer.<init>(IFRenderer.java:128)
      at org.apache.fop.render.RendererFactory.createRendererForDocumentHandler(RendererFactory.java:313)
      at org.apache.fop.render.RendererFactory.tryIFDocumentHandlerMaker(RendererFactory.java:290)
      at org.apache.fop.render.RendererFactory.createRenderer(RendererFactory.java:270)
      at org.apache.fop.area.RenderPagesModel.<init>(RenderPagesModel.java:69)
      at org.apache.fop.area.AreaTreeHandler.setupModel(AreaTreeHandler.java:130)
      at org.apache.fop.area.AreaTreeHandler.<init>(AreaTreeHandler.java:102)
      at org.apache.fop.render.RendererFactory.createFOEventHandler(RendererFactory.java:359)
      at org.apache.fop.fo.FOTreeBuilder.<init>(FOTreeBuilder.java:105)
      at org.apache.fop.apps.Fop.createDefaultHandler(Fop.java:101)
      at org.apache.fop.apps.Fop.<init>(Fop.java:79)
      at org.apache.fop.apps.FopFactory.newFop(FopFactory.java:271)
      at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:109)
      at org.apache.fop.cli.Main.startFOP(Main.java:174)
      at org.apache.fop.cli.Main.main(Main.java:205)


Best Regards,
Jonathan Levinson


> -----Original Message-----
> From: mehdi houshmand [mailto:med1985@gmail.com]
> Sent: Tuesday, February 08, 2011 6:14 AM
> To: fop-users@xmlgraphics.apache.org
> Subject: Re: Problem running FOP on VMS
> 
> Hi Jonathan,
> 
> I'm not sure if this will fix your problem, mostly because I can't recreate your
> problem, but it seems a google may have your answer:
> 
> http://stackoverflow.com/questions/1242722/java-unsatisfiedlinkerror-when-
> mixing-awt-and-swt
> 
> Mehdi
> 
> On 7 February 2011 23:43, Jonathan Levinson
> <Jo...@intersystems.com> wrote:
> > Hi,
> >
> >
> >
> > I'm trying to run FOP on Open VMS and I'm experiencing the following error:
> >
> >
> >
> > $  java "-Xmx512m" "-Djava.awt.headless=true" -
> >
> > "-Djavax.xml.transform.TransformerFactory=net.sf.saxon.TransformerFact
> > oryImpl"-
> >
> > "org.apache.fop.cli.Main" -C _$1$DGA1:[SKONDEVMS.FOP.CONF]fop.xconf
> > -XML _$1$DGA1:[SKONDEVMS.MGR.TEMP]MyReporttxt.xml -XSL
> > _$1$DGA1:[SKONDEVMS.MGR.TEMP]MyReporttxt.xsl -PDF
> > _$1$DGA1:[SKONDEVMS.MGR.TEMP]MyReporttxt.pdf
> >
> > Feb 7, 2011 6:36:02 PM org.apache.fop.apps.FopFactoryConfigurator
> > configure
> >
> > INFO: Default page-height set to: 11in
> >
> > Feb 7, 2011 6:36:02 PM org.apache.fop.apps.FopFactoryConfigurator
> > configure
> >
> > INFO: Default page-width set to: 8.26in
> >
> > Exception in thread "main"
> >
> > java.lang.UnsatisfiedLinkError: /java$awt_shr: Last error code from
> > dlsym
> > was: 8
> >
> > 284
> >
> >
> >
> >
> >
> >         at java.lang.ClassLoader$NativeLibrary.load(Native Method)
> >
> >
> >
> >         at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1814)
> >
> >
> >
> >         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1679)
> >
> >
> >
> >         at java.lang.Runtime.loadLibrary0(Runtime.java:823)
> >
> >
> >
> >         at java.lang.System.loadLibrary(System.java:1030)
> >
> >
> >
> > Does anyone have any idea how to resolve this error?
> >
> >
> >
> > Best Regards,
> >
> > Jonathan Levinson
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Problem running FOP on VMS

Posted by mehdi houshmand <me...@gmail.com>.
Hi Jonathan,

I'm not sure if this will fix your problem, mostly because I can't
recreate your problem, but it seems a google may have your answer:

http://stackoverflow.com/questions/1242722/java-unsatisfiedlinkerror-when-mixing-awt-and-swt

Mehdi

On 7 February 2011 23:43, Jonathan Levinson
<Jo...@intersystems.com> wrote:
> Hi,
>
>
>
> I’m trying to run FOP on Open VMS and I’m experiencing the following error:
>
>
>
> $  java "-Xmx512m" "-Djava.awt.headless=true" -
>
> "-Djavax.xml.transform.TransformerFactory=net.sf.saxon.TransformerFactoryImpl"-
>
> "org.apache.fop.cli.Main" -C _$1$DGA1:[SKONDEVMS.FOP.CONF]fop.xconf -XML
> _$1$DGA1:[SKONDEVMS.MGR.TEMP]MyReporttxt.xml -XSL
> _$1$DGA1:[SKONDEVMS.MGR.TEMP]MyReporttxt.xsl -PDF
> _$1$DGA1:[SKONDEVMS.MGR.TEMP]MyReporttxt.pdf
>
> Feb 7, 2011 6:36:02 PM org.apache.fop.apps.FopFactoryConfigurator configure
>
> INFO: Default page-height set to: 11in
>
> Feb 7, 2011 6:36:02 PM org.apache.fop.apps.FopFactoryConfigurator configure
>
> INFO: Default page-width set to: 8.26in
>
> Exception in thread "main"
>
> java.lang.UnsatisfiedLinkError: /java$awt_shr: Last error code from dlsym
> was: 8
>
> 284
>
>
>
>
>
>         at java.lang.ClassLoader$NativeLibrary.load(Native Method)
>
>
>
>         at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1814)
>
>
>
>         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1679)
>
>
>
>         at java.lang.Runtime.loadLibrary0(Runtime.java:823)
>
>
>
>         at java.lang.System.loadLibrary(System.java:1030)
>
>
>
> Does anyone have any idea how to resolve this error?
>
>
>
> Best Regards,
>
> Jonathan Levinson
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org