[an error occurred while processing this directive]

HP OpenVMS Systems

ask the wizard
Content starts here

Java Shareable Image Version Mismatch?

» close window

The Question is:

 
We're having some runtime problems with java (1.4.1) linking to the AWT
 graphics libraries.
 
Here's the test code -
 
import java.awt.GraphicsEnvironment;
 
public class awttest {
 
    public static void main(String[] args) {
 
        System.out.println("Start");
 
        System.out.println("Setting headless");
        System.setProperty("java.awt.headless", "true");
 
        System.out.println("Getting graphics environment");
        GraphicsEnvironment ge =
 GraphicsEnvironment.getLocalGraphicsEnvironment();
 
        System.out.println("End");
    }
 
 
 
and the results when we run it -
 
 
 
Start
Setting headless
Getting graphics environment
%IMGACT-F-SYMVECMIS, shareable image's symbol vector table mismatch
-IMGACT-F-FIXUPERR, error when JAVA$FONTMANAGER_SHR referenced JAVA$MAWT_SHR
java.lang.UnsatisfiedLinkError: Last error code from dlsym was: 273517796
%LIB-E-ACTIMAGE, error activating image JAVA$FONTMANAGER_SHR
 
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1504)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1400)
        at java.lang.Runtime.loadLibrary0(Runtime.java:788)
        at java.lang.System.loadLibrary(System.java:832)
        at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.awt.font.NativeFontWrapper.<clinit>(NativeFontWrapper.java:42)
        at
 sun.java2d.SunGraphicsEnvironment$1.run(SunGraphicsEnvironment.java:109)
        at java.security.AccessController.doPrivileged(Native Method)
        at
 sun.java2d.SunGraphicsEnvironment.<init>(SunGraphicsEnvironment.java:79)
        at sun.awt.X11GraphicsEnvironment.<init>(X11GraphicsEnvironment.java:154)
        at java.lang.Class.native_newInstance0(Native Method)
        at java.lang.Class.newInstance(Class.java:261)
        at
 java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.ja
va:62)
        at awttest.main(awttest.java:13)
 
 
The same test code runs fine on Linux/Windows etc.
 
Any help would be appreciated.
 
Regards
 
Theo Platt
 
 


The Answer is :

 
  This is a known problem, with an internal reference of Java PTR 80-1-1006.
  This bug has been fixed in the current Java 1.4.1 development stream, and
  the fix is expected to be released in Java 1.4.1-2 and later.
 

answer written or last revised on ( 24-NOV-2003 )

» close window