Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4322020
Votes 0
Synopsis libmawt.so is not loaded on Intel/Solaris 2.6/kestrel build 06.
Category java:classes_awt
Reported Against kest-sol-rc1 , kestrel-solaris
Release Fixed
State 11-Closed, Not Reproducible, bug
Priority: 1-Very High
Related Bugs 4357673 , 4357674 , 4364244
Submit Date 15-MAR-2000
Description
libmawt.so is not loaded on Intel/Solaris 2.6 systems.  Sparc
is OK. Intel/Solaris 2.7 and Intel/Solaris 2.8 are OK, too.  The attached
test script (X.ksh) runs a Swing test, but AWT tests are failing with
the same error message.

jtg-i105% ls jre/lib/i386/motif*
jre/lib/i386/motif12:
libmawt.so    libmawt_g.so

jre/lib/i386/motif21:
libmawt.so    libmawt_g.so
jtg-i105% uname -a
SunOS jtg-i105 5.6 Generic_105182-19 i86pc i386 i86pc
jtg-i105% /usr/java1.3/bin/java -version
java version "1.3"
Java(TM) 2 Runtime Environment, Standard Edition (build Solaris_JDK_1.3-b06)
Java HotSpot(TM) Client VM (build 1.4merlin-internal, mixed mode)

Machine information is attached.


The error message is:

#java.lang.UnsatisfiedLinkError: /usr/java1.3/jre/lib/i386/libfontmanager.so: ld.so
.1: /usr/java1.3/bin/../jre/bin/../bin/i386/native_threads/java: fatal: libmawt.so:
 open failed: No such file or directory
#       at java.lang.ClassLoader$NativeLibrary.load(Native Method)
#       at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1356)
#       at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1272)
#       at java.lang.Runtime.loadLibrary0(Runtime.java:746)
#       at java.lang.System.loadLibrary(System.java:820)
#       at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:53)
#       at java.security.AccessController.doPrivileged(Native Method)
#       at sun.awt.font.NativeFontWrapper.<clinit>(NativeFontWrapper.java:37)
#       at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
#       at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:58)
#       at java.lang.Class.forName0(Native Method)
#       at java.lang.Class.forName(Class.java:120)
#       at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnviron
ment.java:58)
#       at java.awt.Font.initializeFont(Font.java:264)
#       at java.awt.Font.<init>(Font.java:298)
#       at javasoft.sqe.tests.api.javax.swing.border.TitledBorder.setgetXXXTests.Ti
tledBorder2012(setgetXXXTests.java:177)
#       at java.lang.reflect.Method.invoke(Native Method)
#       at javasoft.sqe.jck.lib.MultiTest.runTests(MultiTest.java:139)
#       at javasoft.sqe.jck.lib.MultiTest.run(MultiTest.java:101)
#       at javasoft.sqe.tests.api.javax.swing.border.Titled

 xxxxx@xxxxx  2000-03-15
Work Around
Further investigation showed that the problem can be fixed by creating a     
softlink to motif. 
jtg-i105% pwd
/usr/java1.3/jre/lib/i386
jtg-i105% ls -l libma*
lrwxrwxrwx   1 root     other         18 Mar 15 15:21 libmawt.so -> 
motif12/libmawt.so
lrwxrwxrwx   1 root     other         20 Mar 15 15:21 libmawt_g.so -> 
motif12/libmawt_g.so
jtg-i105% 
The tests pass after doing this.

 xxxxx@xxxxx  2000-03-15
Evaluation
The temporary T-patch: (T105491-07 Linker patch) is needed to run
java 1.3 on x86 Solaris 2.6.
until this fix is available in a permanent patch, this tempory patch
will be needed.
 xxxxx@xxxxx  2000-04-10

A permanant linker patch containing this fix has still not been released.
the temporary patches: T105491-07, T105491-08, and T105491-09 all contain this
fix, but none of them yet been released.
 xxxxx@xxxxx  2000-08-23
Comments
  
  Include a link with my name & email   

Submitted On 01-SEP-2000
Rudolf-Paul
The workaround on my machine replies:

# # An unexpected exception has been detected in native code
outside the VM.# Program counter=0xd5a243d8
#
# Problematic Thread: prio=5 tid=0x804f4a8 nid=0x1 runnable 
#
Abort (core dumped)
Exit 134

Which does not seem to be very good...


Submitted On 23-OCT-2000
feahmed
The above workaround does not work for me. 
I am getting similar error Rudolf_Paul is getting which is:

# # An unexpected exception has been detected in native code outside the VM.# Program counter=0xfacc
24c0
#
# Problematic Thread: prio=5 tid=0x28308 nid=0x1 runnable
#

I cannot run applications that use Swing. Either provide some workaround that works or re-open that bug.


Submitted On 11-JUN-2001
dstreitfeld
Despite what it says in the Description above, Sparc is 
*not* OK.  I'm running SunOS 5.7 on Sparc, and I 
experienced the same problem as feahmed and Rudolf-Paul.  



PLEASE NOTE: JDK6 is formerly known as Project Mustang