- This topic has 7 replies, 3 voices, and was last updated 14 years, 5 months ago by
Mork.
-
AuthorPosts
-
Dear Support,
When trying to debug a simple Web application (literally created by the wizard and no added code) on the Mac using the internal MyEclipse Tomcat, I get the following error:
The JAR file /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/classes.jar has no source attachment. You can attach the source by clicking Attach Source below.
(Since the Java VM is handled by Apple, I have no idea where this source is.)
————————–
I then get the error stack below.
Can you please help me figure out why basic debugging is not working on the Mac?
Thanks.
— M
// Compiled from URLClassLoader.java (version 1.5 : 49.0, super bit)
public class java.net.URLClassLoader extends java.security.SecureClassLoader {// Field descriptor #127 Lsun/misc/URLClassPath;
sun.misc.URLClassPath ucp;// Field descriptor #129 Ljava/security/AccessControlContext;
private java.security.AccessControlContext acc;// Field descriptor #131 Ljava/lang/reflect/Method;
private static final java.lang.reflect.Method defineClassNoVerifyMethod;// Method descriptor #133 ([Ljava/net/URL;Ljava/lang/ClassLoader;)V
// Stack: 4, Locals: 4
public URLClassLoader(java.net.URL[] arg0, java.lang.ClassLoader arg1);
0 aload_0 [this]
1 aload_2 [arg1]
2 invokespecial java.security.SecureClassLoader(java.lang.ClassLoader) [3]
5 invokestatic java.lang.System.getSecurityManager() : java.lang.SecurityManager [4]
8 astore_3
9 aload_3
10 ifnull 17
13 aload_3
14 invokevirtual java.lang.SecurityManager.checkCreateClassLoader() : void [5]
17 aload_0 [this]
18 new sun.misc.URLClassPath [6]
21 dup
22 aload_1 [arg0]
23 invokespecial sun.misc.URLClassPath(java.net.URL[]) [7]
26 putfield java.net.URLClassLoader.ucp : sun.misc.URLClassPath [8]
29 aload_0 [this]
30 invokestatic java.security.AccessController.getContext() : java.security.AccessControlContext [9]
33 putfield java.net.URLClassLoader.acc : java.security.AccessControlContext [1]
36 return
Line numbers:
[pc: 0, line: 84]
[pc: 5, line: 86]
[pc: 9, line: 87]
[pc: 13, line: 88]
[pc: 17, line: 90]
[pc: 29, line: 91]
[pc: 36, line: 92]// Method descriptor #136 ([Ljava/net/URL;)V
// Stack: 4, Locals: 3
public URLClassLoader(java.net.URL[] arg0);
0 aload_0 [this]
1 invokespecial java.security.SecureClassLoader() [10]
4 invokestatic java.lang.System.getSecurityManager() : java.lang.SecurityManager [4]
7 astore_2
8 aload_2
9 ifnull 16
12 aload_2
13 invokevirtual java.lang.SecurityManager.checkCreateClassLoader() : void [5]
16 aload_0 [this]
17 new sun.misc.URLClassPath [6]
20 dup
21 aload_1 [arg0]
22 invokespecial sun.misc.URLClassPath(java.net.URL[]) [7]
25 putfield java.net.URLClassLoader.ucp : sun.misc.URLClassPath [8]
28 aload_0 [this]
29 invokestatic java.security.AccessController.getContext() : java.security.AccessControlContext [9]
32 putfield java.net.URLClassLoader.acc : java.security.AccessControlContext [1]
35 return
Line numbers:
[pc: 0, line: 115]
[pc: 4, line: 117]
[pc: 8, line: 118]
[pc: 12, line: 119]
[pc: 16, line: 121]
[pc: 28, line: 122]
[pc: 35, line: 123]// Method descriptor #137 ([Ljava/net/URL;Ljava/lang/ClassLoader;Ljava/net/URLStreamHandlerFactory;)V
// Stack: 5, Locals: 5
public URLClassLoader(java.net.URL[] arg0, java.lang.ClassLoader arg1, java.net.URLStreamHandlerFactory arg2);
0 aload_0 [this]
1 aload_2 [arg1]
2 invokespecial java.security.SecureClassLoader(java.lang.ClassLoader) [3]
5 invokestatic java.lang.System.getSecurityManager() : java.lang.SecurityManager [4]
8 astore 4
10 aload 4
12 ifnull 20
15 aload 4
17 invokevirtual java.lang.SecurityManager.checkCreateClassLoader() : void [5]
20 aload_0 [this]
21 new sun.misc.URLClassPath [6]
24 dup
25 aload_1 [arg0]
26 aload_3 [arg2]
27 invokespecial sun.misc.URLClassPath(java.net.URL[], java.net.URLStreamHandlerFactory) [11]
30 putfield java.net.URLClassLoader.ucp : sun.misc.URLClassPath [8]
33 aload_0 [this]
34 invokestatic java.security.AccessController.getContext() : java.security.AccessControlContext [9]
37 putfield java.net.URLClassLoader.acc : java.security.AccessControlContext [1]
40 return
Line numbers:
[pc: 0, line: 147]
[pc: 5, line: 149]
[pc: 10, line: 150]
[pc: 15, line: 151]
[pc: 20, line: 153]
[pc: 33, line: 154]
[pc: 40, line: 155]// Method descriptor #139 (Ljava/net/URL;)V
// Stack: 2, Locals: 2
protected void addURL(java.net.URL arg0);
0 aload_0 [this]
1 getfield java.net.URLClassLoader.ucp : sun.misc.URLClassPath [8]
4 aload_1 [arg0]
5 invokevirtual sun.misc.URLClassPath.addURL(java.net.URL) : void [12]
8 return
Line numbers:
[pc: 0, line: 164]
[pc: 8, line: 165]// Method descriptor #141 ()[Ljava/net/URL;
// Stack: 1, Locals: 1
public java.net.URL[] getURLs();
0 aload_0 [this]
1 getfield java.net.URLClassLoader.ucp : sun.misc.URLClassPath [8]
4 invokevirtual sun.misc.URLClassPath.getURLs() : java.net.URL[] [13]
7 areturn
Line numbers:
[pc: 0, line: 174]// Method descriptor #143 (Ljava/lang/String;)Ljava/lang/Class;
// Signature: (Ljava/lang/String;)Ljava/lang/Class<*>;
// Stack: 4, Locals: 3
protected java.lang.Class findClass(java.lang.String arg0) throws java.lang.ClassNotFoundException;
0 new java.net.URLClassLoader$1 [14]
3 dup
4 aload_0 [this]
5 aload_1 [arg0]
6 invokespecial java.net.URLClassLoader$1(java.net.URLClassLoader, java.lang.String) [15]
9 aload_0 [this]
10 getfield java.net.URLClassLoader.acc : java.security.AccessControlContext [1]
13 invokestatic java.security.AccessController.doPrivileged(java.security.PrivilegedExceptionAction, java.security.AccessControlContext) : java.lang.Object [16]
16 checkcast java.lang.Class [17]
19 areturn
20 astore_2
21 aload_2
22 invokevirtual java.security.PrivilegedActionException.getException() : java.lang.Exception [19]
25 checkcast java.lang.ClassNotFoundException [20]
28 athrow
Exception Table:
[pc: 0, pc: 19] -> 20 when : java.security.PrivilegedActionException
Line numbers:
[pc: 0, line: 190]
[pc: 20, line: 206]
[pc: 21, line: 207]// Method descriptor #148 (Ljava/lang/String;Lsun/misc/Resource;)Ljava/lang/Class;
// Stack: 4, Locals: 3
private java.lang.Class defineClass(java.lang.String arg0, sun.misc.Resource arg1) throws java.io.IOException;
0 aload_0 [this]
1 aload_1 [arg0]
2 aload_2 [arg1]
3 iconst_1
4 invokespecial java.net.URLClassLoader.defineClass(java.lang.String, sun.misc.Resource, boolean) : java.lang.Class [2]
7 areturn
Line numbers:
[pc: 0, line: 217]// Method descriptor #149 (Ljava/lang/String;Lsun/misc/Resource;Z)Ljava/lang/Class;
// Stack: 9, Locals: 13
private java.lang.Class defineClass(java.lang.String arg0, sun.misc.Resource arg1, boolean arg2) throws java.io.IOException;
0 aload_1 [arg0]
1 bipush 46
3 invokevirtual java.lang.String.lastIndexOf(int) : int [21]
6 istore 4
8 aload_2 [arg1]
9 invokevirtual sun.misc.Resource.getCodeSourceURL() : java.net.URL [22]
12 astore 5
14 iload 4
16 iconst_m1
17 if_icmpeq 181
20 aload_1 [arg0]
21 iconst_0
22 iload 4
24 invokevirtual java.lang.String.substring(int, int) : java.lang.String [23]
27 astore 6
29 aload_0 [this]
30 aload 6
32 invokevirtual java.net.URLClassLoader.getPackage(java.lang.String) : java.lang.Package [24]
35 astore 7
37 aload_2 [arg1]
38 invokevirtual sun.misc.Resource.getManifest() : java.util.jar.Manifest [25]
41 astore 8
43 aload 7
45 ifnull 148
48 aload 7
50 invokevirtual java.lang.Package.isSealed() : boolean [26]
53 ifeq 99
56 aload 7
58 aload 5
60 invokevirtual java.lang.Package.isSealed(java.net.URL) : boolean [27]
63 ifne 181
66 new java.lang.SecurityException [28]
69 dup
70 new java.lang.StringBuilder [29]
73 dup
74 invokespecial java.lang.StringBuilder() [30]
77 ldc <String “sealing violation: package “> [31]
79 invokevirtual java.lang.StringBuilder.append(java.lang.String) : java.lang.StringBuilder [32]
82 aload 6
84 invokevirtual java.lang.StringBuilder.append(java.lang.String) : java.lang.StringBuilder [32]
87 ldc <String ” is sealed”> [33]
89 invokevirtual java.lang.StringBuilder.append(java.lang.String) : java.lang.StringBuilder [32]
92 invokevirtual java.lang.StringBuilder.toString() : java.lang.String [34]
95 invokespecial java.lang.SecurityException(java.lang.String) [35]
98 athrow
99 aload 8
101 ifnull 181
104 aload_0 [this]
105 aload 6
107 aload 8
109 invokespecial java.net.URLClassLoader.isSealed(java.lang.String, java.util.jar.Manifest) : boolean [36]
112 ifeq 181
115 new java.lang.SecurityException [28]
118 dup
119 new java.lang.StringBuilder [29]
122 dup
123 invokespecial java.lang.StringBuilder() [30]
126 ldc <String “sealing violation: can’t seal package “> [37]
128 invokevirtual java.lang.StringBuilder.append(java.lang.String) : java.lang.StringBuilder [32]
131 aload 6
133 invokevirtual java.lang.StringBuilder.append(java.lang.String) : java.lang.StringBuilder [32]
136 ldc <String “: already loaded”> [38]
138 invokevirtual java.lang.StringBuilder.append(java.lang.String) : java.lang.StringBuilder [32]
141 invokevirtual java.lang.StringBuilder.toString() : java.lang.String [34]
144 invokespecial java.lang.SecurityException(java.lang.String) [35]
147 athrow
148 aload 8
150 ifnull 167
153 aload_0 [this]
154 aload 6
156 aload 8
158 aload 5
160 invokevirtual java.net.URLClassLoader.definePackage(java.lang.String, java.util.jar.Manifest, java.net.URL) : java.lang.Package [39]
163 pop
164 goto 181
167 aload_0 [this]
168 aload 6
170 aconst_null
171 aconst_null
172 aconst_null
173 aconst_null
174 aconst_null
175 aconst_null
176 aconst_null
177 invokevirtual java.net.URLClassLoader.definePackage(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.net.URL) : java.lang.Package [40]
180 pop
181 aload_2 [arg1]
182 invokevirtual sun.misc.Resource.getByteBuffer() : java.nio.ByteBuffer [41]
185 astore 6
187 aload 6
189 ifnonnull 199
192 aload_2 [arg1]
193 invokevirtual sun.misc.Resource.getBytes() : byte[] [42]
196 goto 200
199 aconst_null
200 astore 7
202 aload_2 [arg1]
203 invokevirtual sun.misc.Resource.getCodeSigners() : java.security.CodeSigner[] [43]
206 astore 8
208 new java.security.CodeSource [44]
211 dup
212 aload 5
214 aload 8
216 invokespecial java.security.CodeSource(java.net.URL, java.security.CodeSigner[]) [45]
219 astore 9
221 iload_3 [arg2]
222 ifne 342
225 iconst_3
226 anewarray java.lang.Object [46]
229 dup
230 iconst_0
231 aload_1 [arg0]
232 aastore
233 dup
234 iconst_1
235 aload 6
237 ifnonnull 248
240 aload 7
242 invokestatic java.nio.ByteBuffer.wrap(byte[]) : java.nio.ByteBuffer [47]
245 goto 250
248 aload 6
250 aastore
251 dup
252 iconst_2
253 aload 9
255 aastore
256 astore 10
258 getstatic java.net.URLClassLoader.defineClassNoVerifyMethod : java.lang.reflect.Method [48]
261 aload_0 [this]
262 aload 10
264 invokevirtual java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) : java.lang.Object [49]
267 checkcast java.lang.Class [17]
270 areturn
271 astore 11
273 goto 342
276 astore 11
278 aload 11
280 invokevirtual java.lang.reflect.InvocationTargetException.getTargetException() : java.lang.Throwable [52]
283 astore 12
285 aload 12
287 instanceof java.lang.LinkageError [53]
290 ifeq 299
293 aload 12
295 checkcast java.lang.LinkageError [53]
298 athrow
299 aload 12
301 instanceof java.lang.RuntimeException [54]
304 ifeq 313
307 aload 12
309 checkcast java.lang.RuntimeException [54]
312 athrow
313 new java.lang.RuntimeException [54]
316 dup
317 new java.lang.StringBuilder [29]
320 dup
321 invokespecial java.lang.StringBuilder() [30]
324 ldc <String “Error defining class “> [55]
326 invokevirtual java.lang.StringBuilder.append(java.lang.String) : java.lang.StringBuilder [32]
329 aload_1 [arg0]
330 invokevirtual java.lang.StringBuilder.append(java.lang.String) : java.lang.StringBuilder [32]
333 invokevirtual java.lang.StringBuilder.toString() : java.lang.String [34]
336 aload 12
338 invokespecial java.lang.RuntimeException(java.lang.String, java.lang.Throwable) [56]
341 athrow
342 aload 6
344 ifnull 359
347 aload_0 [this]
348 aload_1 [arg0]
349 aload 6
351 aload 9
353 invokevirtual java.net.URLClassLoader.defineClass(java.lang.String, java.nio.ByteBuffer, java.security.CodeSource) : java.lang.Class [57]
356 goto 372
359 aload_0 [this]
360 aload_1 [arg0]
361 aload 7
363 iconst_0
364 aload 7
366 arraylength
367 aload 9
369 invokevirtual java.net.URLClassLoader.defineClass(java.lang.String, byte[], int, int, java.security.CodeSource) : java.lang.Class [58]
372 areturn
Exception Table:
[pc: 258, pc: 270] -> 271 when : java.lang.IllegalAccessException
[pc: 258, pc: 270] -> 276 when : java.lang.reflect.InvocationTargetException
Line numbers:
[pc: 0, line: 222]
[pc: 8, line: 223]
[pc: 14, line: 224]
[pc: 20, line: 225]
[pc: 29, line: 227]
[pc: 37, line: 228]
[pc: 43, line: 229]
[pc: 48, line: 231]
[pc: 56, line: 233]
[pc: 66, line: 234]
[pc: 99, line: 241]
[pc: 115, line: 242]
[pc: 148, line: 248]
[pc: 153, line: 249]
[pc: 167, line: 251]
[pc: 181, line: 256]
[pc: 187, line: 257]
[pc: 202, line: 259]
[pc: 208, line: 260]
[pc: 221, line: 262]
[pc: 225, line: 264]
[pc: 258, line: 268]
[pc: 271, line: 269]
[pc: 273, line: 281]
[pc: 276, line: 271]
[pc: 278, line: 273]
[pc: 285, line: 274]
[pc: 293, line: 275]
[pc: 299, line: 276]
[pc: 307, line: 277]
[pc: 313, line: 279]
[pc: 342, line: 283]// Method descriptor #151 (Ljava/lang/String;Ljava/util/jar/Manifest;Ljava/net/URL;)Ljava/lang/Package;
// Stack: 9, Locals: 14
protected java.lang.Package definePackage(java.lang.String arg0, java.util.jar.Manifest arg1, java.net.URL arg2) throws java.lang.IllegalArgumentException;
0 aload_1 [arg0]
1 bipush 46
3 bipush 47
5 invokevirtual java.lang.String.replace(char, char) : java.lang.String [59]
8 ldc <String “/”> [60]
10 invokevirtual java.lang.String.concat(java.lang.String) : java.lang.String [61]
13 astore 4
15 aconst_null
16 astore 5
18 aconst_null
19 astore 6
21 aconst_null
22 astore 7
24 aconst_null
25 astore 8
27 aconst_null
28 astore 9
30 aconst_null
31 astore 10
33 aconst_null
34 astore 11
36 aconst_null
37 astore 12
39 aload_2 [arg1]
40 aload 4
42 invokevirtual java.util.jar.Manifest.getAttributes(java.lang.String) : java.util.jar.Attributes [62]
45 astore 13
47 aload 13
49 ifnull 122
52 aload 13
54 getstatic java.util.jar.Attributes$Name.SPECIFICATION_TITLE : java.util.jar.Attributes.Name [63]
57 invokevirtual java.util.jar.Attributes.getValue(java.util.jar.Attributes$Name) : java.lang.String [64]
60 astore 5
62 aload 13
64 getstatic java.util.jar.Attributes$Name.SPECIFICATION_VERSION : java.util.jar.Attributes.Name [65]
67 invokevirtual java.util.jar.Attributes.getValue(java.util.jar.Attributes$Name) : java.lang.String [64]
70 astore 6
72 aload 13
74 getstatic java.util.jar.Attributes$Name.SPECIFICATION_VENDOR : java.util.jar.Attributes.Name [66]
77 invokevirtual java.util.jar.Attributes.getValue(java.util.jar.Attributes$Name) : java.lang.String [64]
80 astore 7
82 aload 13
84 getstatic java.util.jar.Attributes$Name.IMPLEMENTATION_TITLE : java.util.jar.Attributes.Name [67]
87 invokevirtual java.util.jar.Attributes.getValue(java.util.jar.Attributes$Name) : java.lang.String [64]
90 astore 8
92 aload 13
94 getstatic java.util.jar.Attributes$Name.IMPLEMENTATION_VERSION : java.util.jar.Attributes.Name [68]
97 invokevirtual java.util.jar.Attributes.getValue(java.util.jar.Attributes$Name) : java.lang.String [64]
100 astore 9
102 aload 13
104 getstatic java.util.jar.Attributes$Name.IMPLEMENTATION_VENDOR : java.util.jar.Attributes.Name [69]
107 invokevirtual java.util.jar.Attributes.getValue(java.util.jar.Attributes$Name) : java.lang.String [64]
110 astore 10
112 aload 13
114 getstatic java.util.jar.Attributes$Name.SEALED : java.util.jar.Attributes.Name [70]
117 invokevirtual java.util.jar.Attributes.getValue(java.util.jar.Attributes$Name) : java.lang.String [64]
120 astore 11
122 aload_2 [arg1]
123 invokevirtual java.util.jar.Manifest.getMainAttributes() : java.util.jar.Attributes [71]
126 astore 13
128 aload 13
130 ifnull 238
133 aload 5
135 ifnonnull 148
138 aload 13
140 getstatic java.util.jar.Attributes$Name.SPECIFICATION_TITLE : java.util.jar.Attributes.Name [63]
143 invokevirtual java.util.jar.Attributes.getValue(java.util.jar.Attributes$Name) : java.lang.String [64]
146 astore 5
148 aload 6
150 ifnonnull 163
153 aload 13
155 getstatic java.util.jar.Attributes$Name.SPECIFICATION_VERSION : java.util.jar.Attributes.Name [65]
158 invokevirtual java.util.jar.Attributes.getValue(java.util.jar.Attributes$Name) : java.lang.String [64]
161 astore 6
163 aload 7
165 ifnonnull 178
168 aload 13
170 getstatic java.util.jar.Attributes$Name.SPECIFICATION_VENDOR : java.util.jar.Attributes.Name [66]
173 invokevirtual java.util.jar.Attributes.getValue(java.util.jar.Attributes$Name) : java.lang.String [64]
176 astore 7
178 aload 8
180 ifnonnull 193
183 aload 13
185 getstatic java.util.jar.Attributes$Name.IMPLEMENTATION_TITLE : java.util.jar.Attributes.Name [67]
188 invokevirtual java.util.jar.Attributes.getValue(java.util.jar.Attributes$Name) : java.lang.String [64]
191 astore 8
193 aload 9
195 ifnonnull 208
198 aload 13
200 getstatic java.util.jar.Attributes$Name.IMPLEMENTATION_VERSION : java.util.jar.Attributes.Name [68]
203 invokevirtual java.util.jar.Attributes.getValue(java.util.jar.Attributes$Name) : java.lang.String [64]
206 astore 9
208 aload 10
210 ifnonnull 223
213 aload 13
215 getstatic java.util.jar.Attributes$Name.IMPLEMENTATION_VENDOR : java.util.jar.Attributes.Name [69]
218 invokevirtual java.util.jar.Attributes.getValue(java.util.jar.Attributes$Name) : java.lang.String [64]
221 astore 10
223 aload 11
225 ifnonnull 238
228 aload 13
230 getstatic java.util.jar.Attributes$Name.SEALED : java.util.jar.Attributes.Name [70]
233 invokevirtual java.util.jar.Attributes.getValue(java.util.jar.Attributes$Name) : java.lang.String [64]
236 astore 11
238 ldc <String “true”> [72]
240 aload 11
242 invokevirtual java.lang.String.equalsIgnoreCase(java.lang.String) : boolean [73]
245 ifeq 251
248 aload_3 [arg2]
249 astore 12
251 aload_0 [this]
252 aload_1 [arg0]
253 aload 5
255 aload 6
257 aload 7
259 aload 8
261 aload 9
263 aload 10
265 aload 12
267 invokevirtual java.net.URLClassLoader.definePackage(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.net.URL) : java.lang.Package [40]
270 areturn
Line numbers:
[pc: 0, line: 305]
[pc: 15, line: 306]
[pc: 24, line: 307]
[pc: 33, line: 308]
[pc: 36, line: 309]
[pc: 39, line: 311]
[pc: 47, line: 312]
[pc: 52, line: 313]
[pc: 62, line: 314]
[pc: 72, line: 315]
[pc: 82, line: 316]
[pc: 92, line: 317]
[pc: 102, line: 318]
[pc: 112, line: 319]
[pc: 122, line: 321]
[pc: 128, line: 322]
[pc: 133, line: 323]
[pc: 138, line: 324]
[pc: 148, line: 326]
[pc: 153, line: 327]
[pc: 163, line: 329]
[pc: 168, line: 330]
[pc: 178, line: 332]
[pc: 183, line: 333]
[pc: 193, line: 335]
[pc: 198, line: 336]
[pc: 208, line: 338]
[pc: 213, line: 339]
[pc: 223, line: 341]
[pc: 228, line: 342]
[pc: 238, line: 345]
[pc: 248, line: 346]
[pc: 251, line: 348]// Method descriptor #154 (Ljava/lang/String;Ljava/util/jar/Manifest;)Z
// Stack: 3, Locals: 6
private boolean isSealed(java.lang.String arg0, java.util.jar.Manifest arg1);
0 aload_1 [arg0]
1 bipush 46
3 bipush 47
5 invokevirtual java.lang.String.replace(char, char) : java.lang.String [59]
8 ldc <String “/”> [60]
10 invokevirtual java.lang.String.concat(java.lang.String) : java.lang.String [61]
13 astore_3
14 aload_2 [arg1]
15 aload_3
16 invokevirtual java.util.jar.Manifest.getAttributes(java.lang.String) : java.util.jar.Attributes [62]
19 astore 4
21 aconst_null
22 astore 5
24 aload 4
26 ifnull 39
29 aload 4
31 getstatic java.util.jar.Attributes$Name.SEALED : java.util.jar.Attributes.Name [70]
34 invokevirtual java.util.jar.Attributes.getValue(java.util.jar.Attributes$Name) : java.lang.String [64]
37 astore 5
39 aload 5
41 ifnonnull 64
44 aload_2 [arg1]
45 invokevirtual java.util.jar.Manifest.getMainAttributes() : java.util.jar.Attributes [71]
48 dup
49 astore 4
51 ifnull 64
54 aload 4
56 getstatic java.util.jar.Attributes$Name.SEALED : java.util.jar.Attributes.Name [70]
59 invokevirtual java.util.jar.Attributes.getValue(java.util.jar.Attributes$Name) : java.lang.String [64]
62 astore 5
64 ldc <String “true”> [72]
66 aload 5
68 invokevirtual java.lang.String.equalsIgnoreCase(java.lang.String) : boolean [73]
71 ireturn
Line numbers:
[pc: 0, line: 357]
[pc: 14, line: 358]
[pc: 21, line: 359]
[pc: 24, line: 360]
[pc: 29, line: 361]
[pc: 39, line: 363]
[pc: 44, line: 364]
[pc: 54, line: 365]
[pc: 64, line: 368]// Method descriptor #156 (Ljava/lang/String;)Ljava/net/URL;
// Stack: 4, Locals: 3
public java.net.URL findResource(java.lang.String arg0);
0 new java.net.URLClassLoader$2 [74]
3 dup
4 aload_0 [this]
5 aload_1 [arg0]
6 invokespecial java.net.URLClassLoader$2(java.net.URLClassLoader, java.lang.String) [75]
9 aload_0 [this]
10 getfield java.net.URLClassLoader.acc : java.security.AccessControlContext [1]
13 invokestatic java.security.AccessController.doPrivileged(java.security.PrivilegedAction, java.security.AccessControlContext) : java.lang.Object [76]
16 checkcast java.net.URL [77]
19 astore_2
20 aload_2
21 ifnull 35
24 aload_0 [this]
25 getfield java.net.URLClassLoader.ucp : sun.misc.URLClassPath [8]
28 aload_2
29 invokevirtual sun.misc.URLClassPath.checkURL(java.net.URL) : java.net.URL [78]
32 goto 36
35 aconst_null
36 areturn
Line numbers:
[pc: 0, line: 382]
[pc: 20, line: 389]// Method descriptor #158 (Ljava/lang/String;)Ljava/util/Enumeration;
// Signature: (Ljava/lang/String;)Ljava/util/Enumeration<Ljava/net/URL;>;
// Stack: 4, Locals: 3
public java.util.Enumeration findResources(java.lang.String arg0) throws java.io.IOException;
0 aload_0 [this]
1 getfield java.net.URLClassLoader.ucp : sun.misc.URLClassPath [8]
4 aload_1 [arg0]
5 iconst_1
6 invokevirtual sun.misc.URLClassPath.findResources(java.lang.String, boolean) : java.util.Enumeration [79]
9 astore_2
10 new java.net.URLClassLoader$3 [80]
13 dup
14 aload_0 [this]
15 aload_2
16 invokespecial java.net.URLClassLoader$3(java.net.URLClassLoader, java.util.Enumeration) [81]
19 areturn
Line numbers:
[pc: 0, line: 403]
[pc: 10, line: 405]// Method descriptor #161 (Ljava/security/CodeSource;)Ljava/security/PermissionCollection;
// Stack: 5, Locals: 8
protected java.security.PermissionCollection getPermissions(java.security.CodeSource arg0);
0 aload_0 [this]
1 aload_1 [arg0]
2 invokespecial java.security.SecureClassLoader.getPermissions(java.security.CodeSource) : java.security.PermissionCollection [82]
5 astore_2
6 aload_1 [arg0]
7 invokevirtual java.security.CodeSource.getLocation() : java.net.URL [83]
10 astore_3
11 aload_3
12 invokevirtual java.net.URL.openConnection() : java.net.URLConnection [84]
15 astore 5
17 aload 5
19 invokevirtual java.net.URLConnection.getPermission() : java.security.Permission [85]
22 astore 4
24 goto 35
27 astore 6
29 aconst_null
30 astore 4
32 aconst_null
33 astore 5
35 aload 4
37 instanceof java.io.FilePermission [87]
40 ifeq 99
43 aload 4
45 invokevirtual java.security.Permission.getName() : java.lang.String [88]
48 astore 6
50 aload 6
52 getstatic java.io.File.separator : java.lang.String [89]
55 invokevirtual java.lang.String.endsWith(java.lang.String) : boolean [90]
58 ifeq 96
61 new java.lang.StringBuilder [29]
64 dup
65 invokespecial java.lang.StringBuilder() [30]
68 aload 6
70 invokevirtual java.lang.StringBuilder.append(java.lang.String) : java.lang.StringBuilder [32]
73 ldc <String “-“> [91]
75 invokevirtual java.lang.StringBuilder.append(java.lang.String) : java.lang.StringBuilder [32]
78 invokevirtual java.lang.StringBuilder.toString() : java.lang.String [34]
81 astore 6
83 new java.io.FilePermission [87]
86 dup
87 aload 6
89 ldc <String “read”> [92]
91 invokespecial java.io.FilePermission(java.lang.String, java.lang.String) [93]
94 astore 4
96 goto 240
99 aload 4
101 ifnonnull 186
104 aload_3
105 invokevirtual java.net.URL.getProtocol() : java.lang.String [94]
108 ldc <String “file”> [95]
110 invokevirtual java.lang.String.equals(java.lang.Object) : boolean [96]
113 ifeq 186
116 aload_3
117 invokevirtual java.net.URL.getFile() : java.lang.String [97]
120 bipush 47
122 getstatic java.io.File.separatorChar : char [98]
125 invokevirtual java.lang.String.replace(char, char) : java.lang.String [59]
128 astore 6
130 aload 6
132 invokestatic sun.net.www.ParseUtil.decode(java.lang.String) : java.lang.String [99]
135 astore 6
137 aload 6
139 getstatic java.io.File.separator : java.lang.String [89]
142 invokevirtual java.lang.String.endsWith(java.lang.String) : boolean [90]
145 ifeq 170
148 new java.lang.StringBuilder [29]
151 dup
152 invokespecial java.lang.StringBuilder() [30]
155 aload 6
157 invokevirtual java.lang.StringBuilder.append(java.lang.String) : java.lang.StringBuilder [32]
160 ldc <String “-“> [91]
162 invokevirtual java.lang.StringBuilder.append(java.lang.String) : java.lang.StringBuilder [32]
165 invokevirtual java.lang.StringBuilder.toString() : java.lang.String [34]
168 astore 6
170 new java.io.FilePermission [87]
173 dup
174 aload 6
176 ldc <String “read”> [92]
178 invokespecial java.io.FilePermission(java.lang.String, java.lang.String) [93]
181 astore 4
183 goto 240
186 aload_3
187 astore 6
189 aload 5
191 instanceof java.net.JarURLConnection [100]
194 ifeq 207
197 aload 5
199 checkcast java.net.JarURLConnection [100]
202 invokevirtual java.net.JarURLConnection.getJarFileURL() : java.net.URL [101]
205 astore 6
207 aload 6
209 invokevirtual java.net.URL.getHost() : java.lang.String [102]
212 astore 7
214 aload 7
216 ifnull 240
219 aload 7
221 invokevirtual java.lang.String.length() : int [103]
224 ifle 240
227 new java.net.SocketPermission [104]
230 dup
231 aload 7
233 ldc <String “connect,accept”> [105]
235 invokespecial java.net.SocketPermission(java.lang.String, java.lang.String) [106]
238 astore 4
240 aload 4
242 ifnull 285
245 invokestatic java.lang.System.getSecurityManager() : java.lang.SecurityManager [4]
248 astore 6
250 aload 6
252 ifnull 279
255 aload 4
257 astore 7
259 new java.net.URLClassLoader$4 [107]
262 dup
263 aload_0 [this]
264 aload 6
266 aload 7
268 invokespecial java.net.URLClassLoader$4(java.net.URLClassLoader, java.lang.SecurityManager, java.security.Permission) [108]
271 aload_0 [this]
272 getfield java.net.URLClassLoader.acc : java.security.AccessControlContext [1]
275 invokestatic java.security.AccessController.doPrivileged(java.security.PrivilegedAction, java.security.AccessControlContext) : java.lang.Object [76]
278 pop
279 aload_2
280 aload 4
282 invokevirtual java.security.PermissionCollection.add(java.security.Permission) : void [109]
285 aload_2
286 areturn
Exception Table:
[pc: 11, pc: 24] -> 27 when : java.io.IOException
Line numbers:
[pc: 0, line: 466]
[pc: 6, line: 468]
[pc: 11, line: 474]
[pc: 17, line: 475]
[pc: 24, line: 479]
[pc: 27, line: 476]
[pc: 29, line: 477]
[pc: 32, line: 478]
[pc: 35, line: 481]
[pc: 43, line: 485]
[pc: 50, line: 486]
[pc: 61, line: 487]
[pc: 83, line: 488]
[pc: 96, line: 490]
[pc: 116, line: 491]
[pc: 130, line: 492]
[pc: 137, line: 493]
[pc: 148, line: 494]
[pc: 170, line: 495]
[pc: 183, line: 496]
[pc: 186, line: 497]
[pc: 189, line: 498]
[pc: 197, line: 499]
[pc: 207, line: 501]
[pc: 214, line: 502]
[pc: 227, line: 503]
[pc: 240, line: 509]
[pc: 245, line: 510]
[pc: 250, line: 511]
[pc: 255, line: 512]
[pc: 259, line: 513]
[pc: 279, line: 520]
[pc: 285, line: 522]// Method descriptor #163 ([Ljava/net/URL;Ljava/lang/ClassLoader;)Ljava/net/URLClassLoader;
// Stack: 4, Locals: 4
public static java.net.URLClassLoader newInstance(java.net.URL[] arg0, java.lang.ClassLoader arg1);
0 invokestatic java.security.AccessController.getContext() : java.security.AccessControlContext [9]
3 astore_2
4 new java.net.URLClassLoader$5 [110]
7 dup
8 aload_0 [arg0]
9 aload_1 [arg1]
10 invokespecial java.net.URLClassLoader$5(java.net.URL[], java.lang.ClassLoader) [111]
13 invokestatic java.security.AccessController.doPrivileged(java.security.PrivilegedAction) : java.lang.Object [112]
16 checkcast java.net.URLClassLoader [113]
19 astore_3
20 aload_3
21 aload_2
22 putfield java.net.URLClassLoader.acc : java.security.AccessControlContext [1]
25 aload_3
26 areturn
Line numbers:
[pc: 0, line: 540]
[pc: 4, line: 542]
[pc: 20, line: 550]
[pc: 25, line: 551]// Method descriptor #164 ([Ljava/net/URL;)Ljava/net/URLClassLoader;
// Stack: 3, Locals: 3
public static java.net.URLClassLoader newInstance(java.net.URL[] arg0);
0 invokestatic java.security.AccessController.getContext() : java.security.AccessControlContext [9]
3 astore_1
4 new java.net.URLClassLoader$6 [114]
7 dup
8 aload_0 [arg0]
9 invokespecial java.net.URLClassLoader$6(java.net.URL[]) [115]
12 invokestatic java.security.AccessController.doPrivileged(java.security.PrivilegedAction) : java.lang.Object [112]
15 checkcast java.net.URLClassLoader [113]
18 astore_2
19 aload_2
20 aload_1
21 putfield java.net.URLClassLoader.acc : java.security.AccessControlContext [1]
24 aload_2
25 areturn
Line numbers:
[pc: 0, line: 567]
[pc: 4, line: 569]
[pc: 19, line: 578]
[pc: 24, line: 579]// Method descriptor #166 (Ljava/net/URLClassLoader;Ljava/lang/String;Lsun/misc/Resource;Z)Ljava/lang/Class;
// Stack: 4, Locals: 4
static synthetic java.lang.Class access$000(java.net.URLClassLoader arg0, java.lang.String arg1, sun.misc.Resource arg2, boolean arg3) throws java.io.IOException;
0 aload_0 [arg0]
1 aload_1 [arg1]
2 aload_2 [arg2]
3 iload_3 [arg3]
4 invokespecial java.net.URLClassLoader.defineClass(java.lang.String, sun.misc.Resource, boolean) : java.lang.Class [2]
7 areturn
Line numbers:
[pc: 0, line: 58]// Method descriptor #168 (Ljava/net/URLClassLoader;)Ljava/security/AccessControlContext;
// Stack: 1, Locals: 1
static synthetic java.security.AccessControlContext access$100(java.net.URLClassLoader arg0);
0 aload_0 [arg0]
1 getfield java.net.URLClassLoader.acc : java.security.AccessControlContext [1]
4 areturn
Line numbers:
[pc: 0, line: 58]// Method descriptor #170 ()V
// Stack: 6, Locals: 2
static {};
0 new java.net.URLClassLoader$7 [116]
3 dup
4 invokespecial java.net.URLClassLoader$7() [117]
7 invokestatic sun.misc.SharedSecrets.setJavaNetAccess(sun.misc.JavaNetAccess) : void [118]
10 ldc_w <Class java.security.SecureClassLoader> [119]
13 ldc <String “defineClassNoVerify”> [120]
15 iconst_3
16 anewarray java.lang.Class [17]
19 dup
20 iconst_0
21 ldc_w <Class java.lang.String> [121]
24 aastore
25 dup
26 iconst_1
27 ldc_w <Class java.nio.ByteBuffer> [122]
30 aastore
31 dup
32 iconst_2
33 ldc_w <Class java.security.CodeSource> [44]
36 aastore
37 invokevirtual java.lang.Class.getDeclaredMethod(java.lang.String, java.lang.Class[]) : java.lang.reflect.Method [123]
40 astore_0
41 aload_0
42 iconst_1
43 invokevirtual java.lang.reflect.Method.setAccessible(boolean) : void [124]
46 goto 52
49 astore_1
50 aconst_null
51 astore_0
52 aload_0
53 putstatic java.net.URLClassLoader.defineClassNoVerifyMethod : java.lang.reflect.Method [48]
56 return
Exception Table:
[pc: 10, pc: 46] -> 49 when : java.lang.NoSuchMethodException
Line numbers:
[pc: 0, line: 585]
[pc: 10, line: 594]
[pc: 41, line: 597]
[pc: 46, line: 600]
[pc: 49, line: 598]
[pc: 50, line: 599]
[pc: 52, line: 601]
[pc: 56, line: 602]Inner classes:
[inner class info: #14 java/net/URLClassLoader$1, outer class info: #0
inner name: #0, accessflags: 0 default],
[inner class info: #74 java/net/URLClassLoader$2, outer class info: #0
inner name: #0, accessflags: 0 default],
[inner class info: #80 java/net/URLClassLoader$3, outer class info: #0
inner name: #0, accessflags: 0 default],
[inner class info: #107 java/net/URLClassLoader$4, outer class info: #0
inner name: #0, accessflags: 0 default],
[inner class info: #110 java/net/URLClassLoader$5, outer class info: #0
inner name: #0, accessflags: 8 static],
[inner class info: #114 java/net/URLClassLoader$6, outer class info: #0
inner name: #0, accessflags: 8 static],
[inner class info: #116 java/net/URLClassLoader$7, outer class info: #0
inner name: #0, accessflags: 8 static],
[inner class info: #243 java/util/jar/Attributes$Name, outer class info: #245 java/util/jar/Attributes
inner name: #371 Name, accessflags: 9 public static]
}February 7, 2011 at 1:58 am #314278
support-joyMemberM,
I am sorry to hear you are running into this issue. I have escalated your issue to dev team member.
February 7, 2011 at 5:11 am #314284@support-joy wrote:
M,
I am sorry to hear you are running into this issue. I have escalated your issue to dev team member.
Thanks Joy. I certainly hope to hear from you all soon.
I’m wondering if debugging on a Mac was even “tested” at Genuitec since I have a vanilla install of Java (by Apple).
Thanks.
— M
February 8, 2011 at 1:34 pm #314335
Scott AndersonParticipantMork,
The inability to debug classes for which you don’t have source is not unexpected. To obtain source to the Mac OS/X JDK you need to be a member of Apple’s developer program and obtain and install the source from them. Instructions on how to get started are in this link that I found quite easily with Google: How to install JDK source on Mac OS/X.
February 8, 2011 at 1:36 pm #314336@support-scott wrote:
Mork,
The inability to debug classes for which you don’t have source is not unexpected. To obtain source to the Mac OS/X JDK you need to be a member of Apple’s developer program and obtain and install the source from them. Instructions on how to get started are in this link that I found quite easily with Google: How to install JDK source on Mac OS/X.
Scott, that may be true, but debugging used to work fine.
I’ll look into this a bit more.
There are lots of users having the same issues.
Thanks.
February 8, 2011 at 2:32 pm #314338
Scott AndersonParticipantMork,
If debugging used to work then it’s likely that the JRE setup in Eclipse has simply forgotten where the src.jar file is due to an Apple update. You might be able to fix that just by opening a JRE class, like String, then hitting “Attach Source Jar…” and pointing to the one on your machine.
February 8, 2011 at 2:36 pm #314339Hi Scott,
It doesn’t sound like anyone there is using the current Max OS/X. Is that correct?
According to the posts I’ve read, this problem appears to have started recently.
I have no src.jar on my entire Mac.
🙁
Does MyEclipse run OK on Linux or is Windows, realistically, the only option?
I have work to do (but can’t do it yet due to this problem)….
— M
February 9, 2011 at 6:44 am #314357Scott,
The debugging problem seems to be a MyEclipse problem only.
I downloaded the 64-bit version of Eclipse Helios this morning and created the same Java test file I sent you yesterday.
Debugging worked fine.
Since I haven’t heard back from you, I’m assuming you’re still researching this issue for me, but I wanted to get you this additional information.
Look forward to hearing from you soon.
Thanks.
– M
-
AuthorPosts