"Cannot open file sRGB.pf" when using "fop" to generate PDF

NoOp glgxg at sbcglobal.net
Thu Jun 28 18:49:33 UTC 2012


On 06/27/2012 12:26 PM, Robert P. J. Day wrote:
> 
>   from the noisy environs of ottawa airport, i'm running someone
> else's docbook-to-pdf script to get, naturally, PDF, and i'm running
> into pretty much this issue:
> 
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=641530
> 
>   thing is, i have a fully-updated 64-bit ubuntu 12.04 system, and
> openjdk-7:
> 
> $ java -version
> java version "1.7.0_03"
> OpenJDK Runtime Environment (IcedTea7 2.1.1pre) (7~u3-2.1.1~pre1-1ubuntu3)
> OpenJDK 64-Bit Server VM (build 22.0-b10, mixed mode)
> $
> 
>   that bug listing suggests this was an issue back with openjdk-6 so
> i'm not sure what i should be looking for.  any guidance?
> 
> rday

Doesn't seem to be a bug reported in fop:
<https://launchpad.net/ubuntu/+source/fop/+bugs>

However...
<https://launchpad.net/+search?field.text=sRGB.pf&x=0&y=0>
leads to a possible match:
<https://bugs.launchpad.net/ubuntu/+source/openjdk-7/+bug/949073>
[java.lang.IllegalArgumentException: Cannot open file sRGB.pf]
which as been marked as a duplicate of:
<https://bugs.launchpad.net/ubuntu/+source/openjdk-7/+bug/994488>
[Add Patch from openjdk-6 (6b23~pre9-2)]

Note that 994488 is marked a 'Triaged' - it still isn't fixed. So you
might want to pile on your findings & click the 'Affects Me Too".

Also worth a look:
<https://bugs.launchpad.net/ubuntu/+source/erlang/+bug/888123>
[erlang version 14.b.2-dfsg-3ubuntu2 failed to build with openjdk-7]
This bug was fixed in the package openjdk-7 - 7~u3-2.1.1~pre1-1ubuntu4

---------------
openjdk-7 (7~u3-2.1.1~pre1-1ubuntu4) quantal; urgency=low

  * Cherry picked patch from openjdk-6 to fix handling of
    ICC profiles (LP: #888123, #888129).

What happens if you switch to Oracle/Sun Java 7? You know, you can
install openjdk6, openjdk7, and Oracle/Sun Java7 at the same time & then
switch between them with alternatives:

$ sudo update-alternatives --config java
There are 3 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                           Priority
 Status
------------------------------------------------------------
  0  /opt/java/32/jre1.7.0_05/bin/java  2000      auto mode
  1  /opt/java/32/jre1.7.0_05/bin/java  2000      manual mode
  2  /usr/lib/jvm/java-6-openjdk-i386/jre/bin/java 1061 manual mode
* 3  /usr/lib/jvm/java-7-openjdk-i386/jre/bin/java 1051 manual mode








More information about the ubuntu-users mailing list