-
Bug
-
Resolution: Duplicate
-
P4
-
1.4.2
-
x86
-
windows_xp
FULL PRODUCT VERSION :
C:\Documents and Settings\ftm02.BHNSM-1>java -version
java version "1.4.2_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04)
Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]
EXTRA RELEVANT SYSTEM CONFIGURATION :
-ms512m -mx512m
A DESCRIPTION OF THE PROBLEM :
At various large byte array sizes sun.misc.Base64Encoder.encode(byte[]) throws CharacterEncoder::encodeBuffer internal error. This does not appear to be memory related as certain array sizes work that are larger than others.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
see source code
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
for each iteration I would expect to see the bytearray size and passed
ACTUAL -
25000001 Passed
25000002 Passed
25000003 Passed
25000004 Passed
25000005 Passed
25000006 Passed
25000007 Passed
25000008 Passed
25000009 Passed
25000010 Passed
25000011 Passed
25000012 Passed
25000013 Passed
25000014 Passed
25000015 Passed
25000016 Passed
25000017 Passed
25000018 Passed
25000019 Passed
25000020 Passed
25000021 Passed
25000022 Passed
25000023 Passed
25000024 Passed
25000025 Passed
25000026 Passed
25000027 Passed
25000028 Passed
25000029 Passed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000030 Failed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000031 Failed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000032 Failed
25000033 Passed
25000034 Passed
25000035 Passed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000036 Failed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000037 Failed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000038 Failed
25000039 Passed
25000040 Passed
25000041 Passed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000042 Failed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000043 Failed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000044 Failed
25000045 Passed
25000046 Passed
25000047 Passed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000048 Failed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000049 Failed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000050 Failed
25000051 Passed
25000052 Passed
25000053 Passed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000054 Failed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000055 Failed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000056 Failed
25000057 Passed
25000058 Passed
25000059 Passed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000060 Failed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000061 Failed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000062 Failed
25000063 Passed
25000064 Passed
25000065 Passed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000066 Failed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000067 Failed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000068 Failed
25000069 Passed
25000070 Passed
25000071 Passed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000072 Failed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000073 Failed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000074 Failed
25000075 Passed
25000076 Passed
25000077 Passed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000078 Failed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000079 Failed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000080 Failed
25000081 Passed
25000082 Passed
25000083 Passed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000084 Failed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000085 Failed
25000086 Passed
25000087 Passed
25000088 Passed
25000089 Passed
25000090 Passed
25000091 Passed
25000092 Passed
25000093 Passed
25000094 Passed
25000095 Passed
25000096 Passed
25000097 Passed
25000098 Passed
25000099 Passed
25000100 Passed
25000101 Passed
25000102 Passed
25000103 Passed
25000104 Passed
25000105 Passed
25000106 Passed
25000107 Passed
25000108 Passed
25000109 Passed
25000110 Passed
25000111 Passed
25000112 Passed
25000113 Passed
25000114 Passed
25000115 Passed
25000116 Passed
25000117 Passed
25000118 Passed
25000119 Passed
25000120 Passed
25000121 Passed
25000122 Passed
25000123 Passed
25000124 Passed
25000125 Passed
25000126 Passed
25000127 Passed
25000128 Passed
25000129 Passed
25000130 Passed
25000131 Passed
25000132 Passed
25000133 Passed
25000134 Passed
25000135 Passed
25000136 Passed
25000137 Passed
25000138 Passed
ERROR MESSAGES/STACK TRACES THAT OCCUR :
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
package sunbug;
import java.util.*;
/**
* <p>Title: </p>
* <p>Description: </p>
* <p>Copyright: Copyright (c) 2004</p>
* <p>Company: </p>
* @author not attributable
* @version 1.0
*/
---------- END SOURCE ----------
###@###.### 2004-11-08 12:57:44 GMT
###@###.### 2004-11-08 23:31:44 GMT
C:\Documents and Settings\ftm02.BHNSM-1>java -version
java version "1.4.2_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04)
Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]
EXTRA RELEVANT SYSTEM CONFIGURATION :
-ms512m -mx512m
A DESCRIPTION OF THE PROBLEM :
At various large byte array sizes sun.misc.Base64Encoder.encode(byte[]) throws CharacterEncoder::encodeBuffer internal error. This does not appear to be memory related as certain array sizes work that are larger than others.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
see source code
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
for each iteration I would expect to see the bytearray size and passed
ACTUAL -
25000001 Passed
25000002 Passed
25000003 Passed
25000004 Passed
25000005 Passed
25000006 Passed
25000007 Passed
25000008 Passed
25000009 Passed
25000010 Passed
25000011 Passed
25000012 Passed
25000013 Passed
25000014 Passed
25000015 Passed
25000016 Passed
25000017 Passed
25000018 Passed
25000019 Passed
25000020 Passed
25000021 Passed
25000022 Passed
25000023 Passed
25000024 Passed
25000025 Passed
25000026 Passed
25000027 Passed
25000028 Passed
25000029 Passed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000030 Failed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000031 Failed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000032 Failed
25000033 Passed
25000034 Passed
25000035 Passed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000036 Failed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000037 Failed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000038 Failed
25000039 Passed
25000040 Passed
25000041 Passed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000042 Failed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000043 Failed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000044 Failed
25000045 Passed
25000046 Passed
25000047 Passed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000048 Failed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000049 Failed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000050 Failed
25000051 Passed
25000052 Passed
25000053 Passed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000054 Failed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000055 Failed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000056 Failed
25000057 Passed
25000058 Passed
25000059 Passed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000060 Failed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000061 Failed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000062 Failed
25000063 Passed
25000064 Passed
25000065 Passed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000066 Failed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000067 Failed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000068 Failed
25000069 Passed
25000070 Passed
25000071 Passed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000072 Failed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000073 Failed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000074 Failed
25000075 Passed
25000076 Passed
25000077 Passed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000078 Failed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000079 Failed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000080 Failed
25000081 Passed
25000082 Passed
25000083 Passed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000084 Failed
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
25000085 Failed
25000086 Passed
25000087 Passed
25000088 Passed
25000089 Passed
25000090 Passed
25000091 Passed
25000092 Passed
25000093 Passed
25000094 Passed
25000095 Passed
25000096 Passed
25000097 Passed
25000098 Passed
25000099 Passed
25000100 Passed
25000101 Passed
25000102 Passed
25000103 Passed
25000104 Passed
25000105 Passed
25000106 Passed
25000107 Passed
25000108 Passed
25000109 Passed
25000110 Passed
25000111 Passed
25000112 Passed
25000113 Passed
25000114 Passed
25000115 Passed
25000116 Passed
25000117 Passed
25000118 Passed
25000119 Passed
25000120 Passed
25000121 Passed
25000122 Passed
25000123 Passed
25000124 Passed
25000125 Passed
25000126 Passed
25000127 Passed
25000128 Passed
25000129 Passed
25000130 Passed
25000131 Passed
25000132 Passed
25000133 Passed
25000134 Passed
25000135 Passed
25000136 Passed
25000137 Passed
25000138 Passed
ERROR MESSAGES/STACK TRACES THAT OCCUR :
java.lang.Error: ChracterEncoder::encodeBuffer internal error
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:178)
at sunbug.ApplicationTest.main(ApplicationTest.java:27)
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
package sunbug;
import java.util.*;
/**
* <p>Title: </p>
* <p>Description: </p>
* <p>Copyright: Copyright (c) 2004</p>
* <p>Company: </p>
* @author not attributable
* @version 1.0
*/
---------- END SOURCE ----------
###@###.### 2004-11-08 12:57:44 GMT
###@###.### 2004-11-08 23:31:44 GMT
- duplicates
-
JDK-4949631 String.getBytes() does not work on some strings larger than 16MB
- Resolved