-
Bug
-
Resolution: Duplicate
-
P2
-
None
-
1.4.0
-
generic, x86, sparc
-
generic, solaris_2.6, windows_98, windows_nt
Name: ssR10000 Date: 11/20/2000
A lot of JCK tests for swing.text package failed under jdk 1.4.0 beta b40&b41.
With jdk 1.4.0 beta b35 all tests passed.
It looks as Java cannot find libfontmanager.so & libmawt.so libraries.
--------------- example -----------------------
import javax.swing.text.*;
public class Test{
public static void main(String argv[]) {
StubElement element = new StubElement("StubElement");
LabelView c = new LabelView(element);
System.out.println("OK");
System.exit(0);
}
}
class StubElement implements Element {
Document document = new DefaultStyledDocument();
String context;
public SimpleAttributeSet attr;
public StubElement(String context) {
this.context = context;
attr = new SimpleAttributeSet();
document = new DefaultStyledDocument();
try {
document.insertString(0, context, new SimpleAttributeSet());
} catch (BadLocationException e) {}
}
public Document getDocument() {
return document;
}
public Element getParentElement() {
return null;
}
public String getName() {
return "StubElement";
}
public AttributeSet getAttributes() {
return attr;
}
public int getStartOffset() {
return 0;
}
public int getEndOffset() {
return document.getLength();
}
public int getElementIndex(int offset) {
return 0;
}
public int getElementCount() {
return 1;
}
public Element getElement(int index) {
return this;
}
public boolean isLeaf() {
return true;
}
public int getLineLimit() {
return getEndOffset() - getStartOffset();
}
}
---- example output ----
<ssw@sword(pts/19).270> java Test
Exception in thread "main" java.lang.UnsatisfiedLinkError: /net/sword/export3/JDK1.4.0beta-b41/solaris/jre/lib/sparc/libfontmanager.so: ld.so.1:
/net/sword/export3/JDK1.4.0beta-b41/solaris/bin/../bin/sparc/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:1390)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1306)
at java.lang.Runtime.loadLibrary0(Runtime.java:773)
at java.lang.System.loadLibrary(System.java:829)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:53)
at java.security.AccessController.doPrivileged(Native Method)
at java.text.Bidi.<clinit>(Bidi.java:54)
at javax.swing.text.AbstractDocument.handleInsertString(AbstractDocument.java:603)
at javax.swing.text.AbstractDocument.insertString(AbstractDocument.java:574)
at StubElement.<init>(Test.java:25)
at Test.main(Test.java:6)
--------------------------------------------
Complete list of failed tests:
api/javax_swing/text/AbstractDocument/index.html#misc
api/javax_swing/text/AbstractDocument/index.html#protected
api/javax_swing/text/AbstractDocument/index.html#xxxListener
api/javax_swing/text/AbstractWriter/index.html#misc
api/javax_swing/text/CompositeView/index.html#misc2
api/javax_swing/text/DefaultEditorKit/index.html#read
api/javax_swing/text/DefaultStyledDocument/AttributeUndoableEdit/index.html#getset
api/javax_swing/text/DefaultStyledDocument/ElementBuffer/index.html#EBuffer
api/javax_swing/text/DefaultStyledDocument/index.html#paragraph
api/javax_swing/text/DefaultStyledDocument/index.html#style
api/javax_swing/text/FlowView/index.html#xxxUpdate
api/javax_swing/text/GlyphView/index.html#Methods
api/javax_swing/text/LabelView/index.html#Ctor
api/javax_swing/text/LabelView/index.html#getXXX
api/javax_swing/text/LabelView/index.html#misc
api/javax_swing/text/LabelView/index.html#misc3
api/javax_swing/text/ParagraphView/index.html#protected
api/javax_swing/text/TableView/index.html#misc
api/javax_swing/text/View/index.html#misc2
api/javax_swing/text/View/index.html#model2view
api/javax_swing/text/View/index.html#xxxUpdate
------------------- JTR file example ----------
#Test Results (version 2)
#Fri Nov 17 12:38:11 GMT+03:00 2000
#checksum:245525270fc5f2ac
#-----testdescription-----
$file=/set/jck-nightly/build/nightly-17-Nov-2000-build/unzip/JCK-runtime-14/tests/api/javax_swing/text/LabelView/index.html
$root=/set/jck-nightly/build/nightly-17-Nov-2000-build/unzip/JCK-runtime-14/tests
executeClass=javasoft.sqe.tests.api.javax.swing.text.LabelView.CtorTests
id=Ctor
keywords=positive runtime
source=CtorTests.java StubElement.java
title=LabelView constructor tests
#-----environment-----
DISPLAY=sword:0.0
ExecJCKTestOtherJVMCmd=javasoft.sqe.javatest.lib.ExecJCKTestOtherJVMCmd
command.testExecute=$ExecJCKTestOtherJVMCmd CLASSPATH=$testSuiteRootDir/../classes$:$javatestClassDir DISPLAY=$DISPLAY HOME=${user.home} LD_LIBRARY_PATH=$testSuiteRootDir/../lib
/set/jck-nightly/build/java/jdk1.3/solaris/bin/java -Xfuture -Djava.security.policy=$testSuiteRootDir/../lib/jck.policy -Djava.rmi.activation.port=${java.rmi.activation.port} $testExecuteClass
$testExecuteArgs
java.rmi.activation.port=46990
user.home=/home/sda
#-----testresult-----
description=file:///set/jck-nightly/build/nightly-17-Nov-2000-build/unzip/JCK-runtime-14/tests/api/javax_swing/text/LabelView/index.html#Ctor
end=Fri Nov 17 12:38:11 GMT+03:00 2000
environment=jck-runtime-solaris
execStatus=Failed. tests: 1; failed: 1; first test case failure: LabelView2001
javatestOS=SunOS 5.6 (sparc)
javatestVersion=JT_2.1.4b05
script=javasoft.sqe.javatest.lib.JCKScript -runtime
sections=script_messages testExecute
start=Fri Nov 17 12:38:09 GMT+03:00 2000
status=Failed. tests: 1; failed: 1; first test case failure: LabelView2001
test=api/javax_swing/text/LabelView/index.html#Ctor
timeoutSeconds=600
work=/set/jck-nightly/build/nightly-17-Nov-2000-build/test/JCK-runtime-14/runtime-batch-multiJVM-jit-native/work/api/javax_swing/text/LabelView
#section:script_messages
----------messages:(1/24)----------
Executing test class...
#section:testExecute
----------messages:(1/641)----------
command: javasoft.sqe.javatest.lib.ExecJCKTestOtherJVMCmd
CLASSPATH=/set/jck-nightly/build/nightly-17-Nov-2000-build/unzip/JCK-runtime-14/tests/../classes:/set/jck-nightly/build/nightly-17-Nov-2000-build/unzip/JCK-runtime-14/javatest.jar DISPLAY=sword:0.0
HOME=/home/sda LD_LIBRARY_PATH=/set/jck-nightly/build/nightly-17-Nov-2000-build/unzip/JCK-runtime-14/tests/../lib /set/jck-nightly/build/java/jdk1.3/solaris/bin/java -Xfuture
-Djava.security.policy=/set/jck-nightly/build/nightly-17-Nov-2000-build/unzip/JCK-runtime-14/tests/../lib/jck.policy -Djava.rmi.activation.port=46990
javasoft.sqe.tests.api.javax.swing.text.LabelView.CtorTests
----------ref:(0/0)----------
----------log:(22/2120)----------
java.lang.reflect.InvocationTargetException: java.lang.UnsatisfiedLinkError: /set/jck-nightly/build/java/jdk1.3/solaris/jre/lib/sparc/libfontmanager.so: ld.so.1:
/set/jck-nightly/build/java/jdk1.3/solaris/bin/../bin/sparc/native_threads/java: fatal: libmawt.so: open failed: No such file or directory
at java.lang.reflect.Method.invoke(Native Method)
at javasoft.sqe.javatest.lib.MultiTest.invokeTestCase(MultiTest.java:409)
at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:205)
at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:137)
at javasoft.sqe.tests.api.javax.swing.text.LabelView.CtorTests.main(CtorTests.java:35)
Caused by: java.lang.UnsatisfiedLinkError: /set/jck-nightly/build/java/jdk1.3/solaris/jre/lib/sparc/libfontmanager.so: ld.so.1:
/set/jck-nightly/build/java/jdk1.3/solaris/bin/../bin/sparc/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:1382)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1298)
at java.lang.Runtime.loadLibrary0(Runtime.java:772)
at java.lang.System.loadLibrary(System.java:829)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:53)
at java.security.AccessController.doPrivileged(Native Method)
at java.text.Bidi.<clinit>(Bidi.java:54)
at javax.swing.text.AbstractDocument.handleInsertString(AbstractDocument.java:603)
at javax.swing.text.AbstractDocument.insertString(AbstractDocument.java:574)
at javasoft.sqe.tests.api.javax.swing.text.LabelView.StubElement.<init>(StubElement.java:15)
at javasoft.sqe.tests.api.javax.swing.text.LabelView.CtorTests.LabelView2001(CtorTests.java:44)
... 5 more
LabelView2001: Failed. Test case throws exception: java.lang.UnsatisfiedLinkError: /set/jck-nightly/build/java/jdk1.3/solaris/jre/lib/sparc/libfontmanager.so: ld.so.1:
/set/jck-nightly/build/java/jdk1.3/solaris/bin/../bin/sparc/native_threads/java: fatal: libmawt.so: open failed: No such file or directory
STATUS:Failed.tests: 1; failed: 1; first test case failure: LabelView2001
result: Failed. tests: 1; failed: 1; first test case failure: LabelView2001
test result: Failed. tests: 1; failed: 1; first test case failure: LabelView2001
-----------------------------------------------
======================================================================
- duplicates
-
JDK-4383392 can't display components on the screen (solaris7 sparc) in merlin
- Closed
-
JDK-4345914 JavaTest Harness doesn't work with Solaris 2.6
- Closed
-
JDK-4390595 CharView couldn't be invoked on IA2.6
- Closed
-
JDK-4391474 Regression test TestLineBreakWithFontSub.java Failing
- Closed
-
JDK-4392692 JCK: awt and swing tests throw UnsatisfiedLinkError exception
- Closed
-
JDK-4396492 load library problem in Bidi
- Closed
(1 duplicates)