Java Plug-in 1.6.0_22
使用 JRE 版本 1.6.0_22-b04 Java HotSpot(TM) Client VM
用户主目录 = C:\Documents and Settings\Administrator
----------------------------------------------------
c: 清除控制台窗口
f: 终结在结束队列上的对象
g: 垃圾收集
h: 显示此帮助消息
l: 转储类载入程序列表
m: 打印内存使用
o: 触发日志记录
q: 隐藏控制台
r: 重新载入策略配置
s: 转储系统和部署属性
t: 转储线程列表
v: 转储线程堆栈
x: 清除类载入程序高速缓存
0-5: 设置跟踪级别为<n>
----------------------------------------------------
java.security.AccessControlException: access denied (java.util.PropertyPermission file.encoding read)
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.checkPropertyAccess(Unknown Source)
at java.lang.System.getProperty(Unknown Source)
at org.apache.tools.zip.ZipEncodingHelper.isUTF8(ZipEncodingHelper.java:246)
at org.apache.tools.zip.ZipEncodingHelper.getZipEncoding(ZipEncodingHelper.java:214)
at org.apache.tools.zip.ZipOutputStream.<init>(ZipOutputStream.java:236)
at com.smapp.service.exchange.web.upload.zip.ZipBean.<init>(ZipBean.java:39)
at com.smapp.service.exchange.web.upload.MainPanel$3.<init>(MainPanel.java:443)
at com.smapp.service.exchange.web.upload.MainPanel.zipFile(MainPanel.java:443)
at com.smapp.service.exchange.web.upload.MainPanel.access$3(MainPanel.java:440)
at com.smapp.service.exchange.web.upload.MainPanel$2.run(MainPanel.java:364)
java.lang.NullPointerException
at com.smapp.service.exchange.web.upload.zip.ZipBean.makeZipSize(ZipBean.java:87)
at com.smapp.service.exchange.web.upload.zip.ZipBean.getMaxProcessValue(ZipBean.java:108)
at com.smapp.service.exchange.web.upload.MainPanel.zipFile(MainPanel.java:450)
at com.smapp.service.exchange.web.upload.MainPanel.access$3(MainPanel.java:440)
at com.smapp.service.exchange.web.upload.MainPanel$2.run(MainPanel.java:364)
2010-12-14 16:51:59 com.smapp.service.exchange.web.upload.zip.ZipBean getMaxProcessValue
信息: 总体进度:0
java.lang.NullPointerException
at com.smapp.service.exchange.web.upload.zip.ZipBean.closeZip(ZipBean.java:57)
at com.smapp.service.exchange.web.upload.MainPanel.zipFile(MainPanel.java:455)
at com.smapp.service.exchange.web.upload.MainPanel.access$3(MainPanel.java:440)
at com.smapp.service.exchange.web.upload.MainPanel$2.run(MainPanel.java:364)
xp、win7系统下面会出现改问题,修改
c:\Program Files\Java\jdk1.6.0_21\jre\lib\security\java.policy
最后增加一行代码:
permission java.util.PropertyPermission "file.encoding", "read";
};