package baoying.java.lang;public class ExceptionStackPrint {public static void main(String[] args) {/**print exception at B_Ajava.lang.RuntimeException: D_C_B_Aat baoying.java.lang.D_C_B_A.execute(ExceptionStackPrint.java:48)at baoying.java.lang.C_B_A.execute(ExceptionStackPrint.java:41)at baoying.java.lang.B_A.execute(ExceptionStackPrint.java:28)at baoying.java.lang.A.execute(ExceptionStackPrint.java:21)at baoying.java.lang.ExceptionStackPrint.main(ExceptionStackPrint.java:15)*/new A().execute();}}class A{public void execute(){new B_A().execute();}}class B_A{public void execute(){try{new C_B_A().execute();}catch(Throwable t){System.out.println("print exception at B_A");t.printStackTrace();}}}class C_B_A{public void execute(){new D_C_B_A().execute();}}class D_C_B_A{public void execute(){throw new RuntimeException("D_C_B_A");}}
1. Image iconImg = Toolkit.getDefaultToolkit().getImage(url);
2. System.out.println(threadInfo+ " "+ new java.util.Date()+method+" load done:"+imageInCP);
Baoying Thread - 19783394485810 Started
Baoying Thread - 19783394485810:98 wait 30 seconds to let you be ready, and thread will start after sleep
cache: Create from verifier: JarSigningData{hasOnlySignedEntries=true, hasSingleCodeSource=true, hasMissingSignedEntries=false}
cache: Upgrade of entry done
cache: readIndexFile returning success
network: CleanupThread used 1952979 us
Baoying Thread - 19783394485810:98 Fri Jun 12 14:50:57 CST 2015getImageByURL: try to load:/baoying.JPG
Baoying Thread - 19783394485810:98 Fri Jun 12 14:50:57 CST 2015getImageByURL: load url:jar:https://huhuzhu-scs.nott.ime.reuters.com/ptshub/baoying/BaoyingImageShow.jar!/baoying.JPG
network: Cache entry not found [url: http://huhuzhu-scs.nott.ime.reuters.com/crossdomain.xml, version: null]
network: Connecting http://huhuzhu-scs.nott.ime.reuters.com/crossdomain.xml with proxy=DIRECT
network: Connecting http://huhuzhu-scs.nott.ime.reuters.com:80/ with proxy=DIRECT
network: Connecting http://huhuzhu-scs.nott.ime.reuters.com/crossdomain.xml with cookie "63738647932733330794D3=E4F34636C61336A3F6B554; D693E3D38686E6D3E65655F36523964614D683E4041595E4452676F466C5A363D3=A4348516A307F376246553; D693E3D38686E6D3E656550505F3F34656D47334D69595F415642355639407D654=8574E3C644D32364346514; D693E3D38686E6D3E656550505F3F34656D47334D6952375F405F61385057517D4=1426633655C637732795D4; https%3A%2F%2Fhuhuzhu-scs.nott.ime.reuters.com%2Fptshub%2Ftheme=m%3Aid%7Cs%3Areuters%2Cfile%7Cs%3Axtheme-reuters.css"
network: Connecting http://huhuzhu-scs.nott.ime.reuters.com:80/ with proxy=DIRECT
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read1(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.access$200(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection$9.run(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection$9.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessController.doPrivileged(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at com.sun.deploy.net.CrossDomainXML.check(Unknown Source)
at com.sun.deploy.net.CrossDomainXML.check(Unknown Source)
at sun.plugin2.applet.SecurityManagerHelper.checkConnectHelper(Unknown Source)
at sun.plugin2.applet.AWTAppletSecurityManager.checkConnect(Unknown Source)
at java.net.InetAddress.getAllByName0(Unknown Source)
at java.net.InetAddress.getAllByName(Unknown Source)
at java.net.InetAddress.getAllByName(Unknown Source)
at java.net.InetAddress.getByName(Unknown Source)
at java.net.URLStreamHandler.getHostAddress(Unknown Source)
at java.net.URLStreamHandler.hashCode(Unknown Source)
at java.net.URL.hashCode(Unknown Source)
at sun.net.www.protocol.jar.Handler.hashCode(Unknown Source)
at java.net.URL.hashCode(Unknown Source)
at java.util.HashMap.hash(Unknown Source)
at java.util.HashMap.get(Unknown Source)
at sun.misc.SoftCache.get(Unknown Source)
at sun.awt.SunToolkit.getImageFromHash(Unknown Source)
at sun.awt.SunToolkit.getImage(Unknown Source)
at ImageShowApplet.getImageByURL(ImageShowApplet.java:68)
at ImageShowApplet$1.run(ImageShowApplet.java:37)
at java.lang.Thread.run(Unknown Source)
java.security.AccessControlException: access denied ("java.net.SocketPermission" "huhuzhu-scs.nott.ime.reuters.com" "resolve")
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkConnect(Unknown Source)
at sun.plugin2.applet.SecurityManagerHelper.checkConnectHelper(Unknown Source)
at sun.plugin2.applet.AWTAppletSecurityManager.checkConnect(Unknown Source)
at java.net.InetAddress.getAllByName0(Unknown Source)
at java.net.InetAddress.getAllByName(Unknown Source)
at java.net.InetAddress.getAllByName(Unknown Source)
at java.net.InetAddress.getByName(Unknown Source)
at com.sun.deploy.net.CrossDomainXML.addAccess(Unknown Source)
at com.sun.deploy.net.CrossDomainXML.allowNoAccess(Unknown Source)
at com.sun.deploy.net.CrossDomainXML.check(Unknown Source)
at sun.plugin2.applet.SecurityManagerHelper.checkConnectHelper(Unknown Source)
at sun.plugin2.applet.AWTAppletSecurityManager.checkConnect(Unknown Source)
at java.net.InetAddress.getAllByName0(Unknown Source)
at java.net.InetAddress.getAllByName(Unknown Source)
at java.net.InetAddress.getAllByName(Unknown Source)
at java.net.InetAddress.getByName(Unknown Source)
at java.net.URLStreamHandler.getHostAddress(Unknown Source)
at java.net.URLStreamHandler.hashCode(Unknown Source)
at java.net.URL.hashCode(Unknown Source)
at sun.net.www.protocol.jar.Handler.hashCode(Unknown Source)
at java.net.URL.hashCode(Unknown Source)
at java.util.HashMap.hash(Unknown Source)
at java.util.HashMap.get(Unknown Source)
at sun.misc.SoftCache.get(Unknown Source)
at sun.awt.SunToolkit.getImageFromHash(Unknown Source)
at sun.awt.SunToolkit.getImage(Unknown Source)
at ImageShowApplet.getImageByURL(ImageShowApplet.java:68)
at ImageShowApplet$1.run(ImageShowApplet.java:37)
at java.lang.Thread.run(Unknown Source)
--问题在此:问什么下面这行log能打印出来?按照上面的调用栈,已经明确表示在ImageShowApplet.java:68已经抛出AccessControlException,那么下面的程序应该无法继续执行。线程应该终止。但是程序继续执行,而且还是那个线程。真是百思不得其姐 !
Baoying Thread - 19783394485810:98 Fri Jun 12 14:51:07 CST 2015getImageByURL: load done:/baoying.JPG
Baoying Thread - 19783394485810:98 Fri Jun 12 14:51:07 CST 2015getImageByURL: try to load:/baoying_02.JPG
Baoying Thread - 19783394485810:98 Fri Jun 12 14:51:07 CST 2015getImageByURL: load url:jar:https://huhuzhu-scs.nott.ime.reuters.com/ptshub/baoying/BaoyingImageShow.jar!/baoying_02.JPG
Baoying Thread - 19783394485810:98 Fri Jun 12 14:51:12 CST 2015getImageByURL: load done:/baoying_02.JPG
Baoying Thread - 19783394485810:98 Fri Jun 12 14:51:12 CST 2015getImageByURL: try to load:/baoying_03.JPG
Baoying Thread - 19783394485810:98 Fri Jun 12 14:51:12 CST 2015getImageByURL: load url:jar:https://huhuzhu-scs.nott.ime.reuters.com/ptshub/baoying/BaoyingImageShow.jar!/baoying_03.JPG
Baoying Thread - 19783394485810:98 Fri Jun 12 14:51:16 CST 2015getImageByURL: load done:/baoying_03.JPG
Baoying Thread - 19783394485810:98 re-try the loaded pic baoying_03.JPG
Baoying Thread - 19783394485810:98 Fri Jun 12 14:51:16 CST 2015getImageByURL: try to load:/baoying_03.JPG
Baoying Thread - 19783394485810:98 Fri Jun 12 14:51:16 CST 2015getImageByURL: load url:jar:https://huhuzhu-scs.nott.ime.reuters.com/ptshub/baoying/BaoyingImageShow.jar!/baoying_03.JPG
Baoying Thread - 19783394485810:98 Fri Jun 12 14:51:30 CST 2015getImageByURL: load done:/baoying_03.JPG
import java.applet.Applet;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.Toolkit;
import java.net.URL;
public class ImageShowApplet extends Applet {
private static final long serialVersionUID = 1L;
Thread t = null;
public void paint(Graphics g) {
g.drawString("Welcome in Java Applet.", 40, 20);
synchronized(this){
if(t == null){
String id = String.valueOf(System.nanoTime());
String threadName = "Baoying Thread - " + id;
t = new Thread(new Runnable(){
public void run(){
long threadID = Thread.currentThread().getId();
String name = Thread.currentThread().getName();
String nameAndID = name +":" + threadID;
System.out.println(nameAndID + " wait 30 seconds to let you be ready, and thread will start after sleep");
try {
Thread.sleep(30 * 1000);
} catch (InterruptedException e) {
System.out.println(nameAndID + " interrupted exception");
e.printStackTrace();
}
getImageByURL("/baoying.JPG",nameAndID);
getImageByURL("/baoying_02.JPG",nameAndID);
getImageByURL("/baoying_03.JPG",nameAndID);
System.out.println(nameAndID + " re-try the loaded pic baoying_03.JPG");
getImageByURL("/baoying_03.JPG",nameAndID);
//getImageByFilename();
}
},threadName);
System.out.println(threadName+" is Created");
t.start();
System.out.println(threadName + " Started");
}
}
}
public void getImageByURL(String imageInCP, String threadInfo){
String method = "getImageByURL:";
System.out.println(threadInfo+ " "+ new java.util.Date()+method+" try to load:"+imageInCP);
URL url = this.getClass().getResource(imageInCP);
if(url == null){
System.out.println(threadInfo+ " "+ new java.util.Date()+method+" null url by:"+imageInCP);
return;
}
System.out.println(threadInfo+ " "+ new java.util.Date()+method+" load url:"+url.toString());
Image iconImg = Toolkit.getDefaultToolkit().getImage(url);
if(iconImg == null){
System.out.println(threadInfo+ " "+ new java.util.Date()+method+" null image by:"+imageInCP);
return;
}
System.out.println(threadInfo+ " "+ new java.util.Date()+method+" load done:"+imageInCP);
}
}
[参考]
Another guy(by eagleanec - 2012-08-21 00:58) with similar trace
https://weblogs.java.net/blog/2008/05/28/java-doodle-crossdomainxml-support
another report with same stack trace
https://community.oracle.com/thread/2179788
还有一个csdn的,无满意回复而结贴
http://bbs.csdn.net/topics/360101851
java.security.AccessControlException: access denied ("java.net.SocketPermission" "huhuzhu-scs.nott.ime.reuters.com" "resolve") |
Baoying Thread - 19783394485810:98 Fri Jun 12 14:50:57 CST 2015getImageByURL: load url:jar:https://huhuzhu-scs.nott.ime.reuters.com/ptshub/baoying/BaoyingImageShow.jar!/baoying.JPG |
相关推荐
大学生静态网页设计期末作业—HTML+CSS制作星巴克咖啡静态网页设计.zip 95分以上必过项目,下载即用,无需修改。小白也可实战。 大学生静态网页设计期末作业—HTML+CSS制作星巴克咖啡静态网页设计.zip 95分以上必过...
标题“行业数据-2016-2017年美国星巴克单杯咖啡销售额.rar”表明,这个压缩包文件包含了关于星巴克在2016年至2017年间在美国单杯咖啡销售的数据。这可能是一个重要的研究或分析资料,对于理解星巴克在那两年间的业务...
2016-2017年美国星巴克单杯咖啡销售额.xls
这个“微信小程序星巴克咖啡源码”提供了构建一个与星巴克咖啡相关的移动应用的完整代码库,允许开发者深入了解并学习如何利用微信小程序框架来开发类似的手机端界面。 在微信小程序中,界面布局设计是关键的一环,...
星巴克作为全球连锁咖啡企业的巨头,其成长路径、运营模式和品牌策略一直以来是餐饮行业深度研究的对象。从星巴克的发展历程来看,我们可以分析出以下几点关键的成长阶段: 1. 初期发展阶段(1971~1992):星巴克...
Java毕业设计-基于SSM框架的星巴克咖啡店管理系统(源码+演示视频+说明).rar 【项目技术】 开发语言:Java 框架:ssm+vue 架构:B/S 数据库:mysql 【演示视频-编号:449】 https://pan.quark.cn/s/b3a97032fae7 ...
标题中的“行业数据-2007-2019年星巴克营业收入.rar”指的是一个压缩文件,其中包含了关于星巴克公司从2007年至2019年间的年度营业收入数据。这种类型的数据对于分析星巴克的发展趋势、市场表现以及全球咖啡行业的...
标题中的“行业数据-2005-2019年星巴克国际和美国门店数量”表明,这个压缩包文件包含了关于星巴克公司在全球不同地区,特别是美国和国际市场,从2005年至2019年这15年间门店数量变化的数据。这份数据集可能对于分析...
这暗示了文件中可能包含了一系列表格、图表或者其他的统计信息,用于展示星巴克各个产品线(如咖啡、糕点、饮料等)在十年间的销售趋势和收入贡献。 标签“数据”进一步确认了这个压缩包的核心内容是以数据形式存在...
标题 "行业数据-2007-2019年星巴克净利润.rar" 暗示了这个压缩包文件包含的是关于星巴克公司在2007年至2019年间净利润的数据。这是一份重要的财务报告,可能由金融分析师、投资者、市场研究员或星巴克公司本身用于...
标题 "数据-2011-2019年星巴克全球广告支出.rar" 提供了我们即将探讨的核心主题,即星巴克公司从2011年至2019年的全球广告支出。这个压缩包包含了对这一期间星巴克在广告投入上的详细记录,可能是为了分析其营销策略...
标题和描述中提到的文件是关于2005年至2019年间星巴克全球商店不同产品销售额占比的数据分析。这份压缩包包含了一个名为"行业数据-2005-2019年公司经营星巴克全球商店不同产品销售额占比.xls"的Excel表格文件,这...
标题中的“行业数据-2003-2019年星巴克全球营收”明确指出了我们要探讨的主题,即星巴克这17年间在全球范围内的营业收入情况。这个数据集提供了星巴克历年来的经营业绩,对于理解星巴克的发展历程、市场表现以及全球...
标题 "数据-2009-2019年星巴克全球季度营收.rar" 提供了我们即将探讨的核心主题,即星巴克公司从2009年至2019年间的季度财务收入情况。这个压缩包包含了一个Excel文件,名为“数据-2009-2019年星巴克全球季度营收....
本文将深入探讨一个具体的案例——基于CSS3和SVG实现的星巴克咖啡杯特效,来阐述这两种技术如何协同工作,为用户提供引人入胜的用户体验。 首先,SVG是一种基于XML的矢量图形格式,它可以无损地缩放,无论放大多少...
这个“微信小程序代码-星巴克中国.zip”文件包含的是一份星巴克中国官方小程序的源代码,可以帮助开发者了解并学习如何构建类似的小程序。以下是这个压缩包中可能包含的关键知识点: 1. **微信小程序框架**:微信小...
主要针对计算机相关专业的正在做毕业设计的学生和需要项目实战练习的学习者,可作为毕业设计、课程设计、期末大作业。主要针对计算机相关专业的正在做毕业设计的学生和需要项目实战练习的学习者,可作为毕业设计、...
这个数据集可能是由财务报告、市场研究或公开的年度报告中提取出来的,旨在为研究者、分析师或对星巴克感兴趣的个人提供一个深入了解该公司营销策略的窗口。 标签 "数据" 指出这个压缩包内容是结构化的信息,适合...
在这个"网页设计期末作业-网上咖啡店(仿星巴克)"项目中,我们可以深入探讨HTML、CSS以及网页设计的基本原理和应用。 HTML,全称HyperText Markup Language,是网页内容的结构标记语言。在本项目中,HTML被用来...
【海伦司-HK-深度报告】:夜间星巴克,酒馆拼多多,潜力无限 海伦司,一家在夜间经济中迅速崛起的企业,被业界冠以“夜间星巴克”和“酒馆拼多多”的美誉,其独特的商业模式和市场定位展示了无限的商业潜力。这份...