Ureport打印时报错(NullPointerException)

浏览器ie8 jre1.8 点击applet打印时报错(jre权限已设置及ureport证书已导入):
 
Java 插件11.111.2.14 x86
使用 JRE 版本 1.8.0_111-b14 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>
----------------------------------------------------
basic: 已添加进度监听程序: sun.plugin.util.ProgressMonitorAdapter@1779493 
security: Expected Main URL: localhost:8080/ureport;jsessionid=4F55615CCCBFCE3F3DBFCD611768FB56?action=loadres&res=classpath:com/bstek/ureport/applet/ureport-applet-1.0.0-SNAPSHOT.jar
basic: Plugin2ClassLoader.addURL parent called for localhost:8080/ureport;jsessionid=4F55615CCCBFCE3F3DBFCD611768FB56?action=loadres&res=classpath:com/bstek/ureport/applet/ureport-applet-1.0.0-SNAPSHOT.jar
network: 找不到高速缓存条目 [url: localhost:8080/ureport;jsessionid=4F55615CCCBFCE3F3DBFCD611768FB56?action=loadres&res=classpath:com/bstek/ureport/applet/ureport-applet-1.0.0-SNAPSHOT.jar, 版本: null]
network: 正在使用代理 DIRECT 连接 localhost:8080/ureport;jsessionid=4F55615CCCBFCE3F3DBFCD611768FB56?action=loadres&res=classpath:com/bstek/ureport/applet/ureport-applet-1.0.0-SNAPSHOT.jar
network: 正在使用代理 DIRECT 连接 localhost:8080
network: 正在连接 localhost:8080/ureport;jsessionid=4F55615CCCBFCE3F3DBFCD611768FB56?action=loadres&res=classpath:com/bstek/ureport/applet/ureport-applet-1.0.0-SNAPSHOT.jar 与 cookie "JSESSIONID=4F55615CCCBFCE3F3DBFCD611768FB56"
cache: localhost:8080/ureport;jsessionid=4F55615CCCBFCE3F3DBFCD611768FB56?action=loadres&res=classpath:com/bstek/ureport/applet/ureport-applet-1.0.0-SNAPSHOT.jar is not cacheable.
network: 找不到高速缓存条目 [url: localhost:8080/ureport;jsessionid=4F55615CCCBFCE3F3DBFCD611768FB56?action=loadres&res=classpath:com/bstek/ureport/applet/ureport-applet-1.0.0-SNAPSHOT.jar, 版本: null]
network: 找不到高速缓存条目 [url: localhost:8080/ureport;jsessionid=4F55615CCCBFCE3F3DBFCD611768FB56?action=loadres&res=classpath:com/bstek/ureport/applet/ureport-applet-1.0.0-SNAPSHOT.jar, 版本: null]
network: 找不到高速缓存条目 [url: localhost:8080/ureport;jsessionid=4F55615CCCBFCE3F3DBFCD611768FB56?action=loadres&res=classpath:com/bstek/ureport/applet/ureport-applet-1.0.0-SNAPSHOT.jar, 版本: null]
network: 正在使用代理 DIRECT 连接 localhost:8080/ureport;jsessionid=4F55615CCCBFCE3F3DBFCD611768FB56?action=loadres&res=classpath:com/bstek/ureport/applet/ureport-applet-1.0.0-SNAPSHOT.jar
network: 正在连接 localhost:8080/ureport;jsessionid=4F55615CCCBFCE3F3DBFCD611768FB56?action=loadres&res=classpath:com/bstek/ureport/applet/ureport-applet-1.0.0-SNAPSHOT.jar 与 cookie "JSESSIONID=4F55615CCCBFCE3F3DBFCD611768FB56"
network: localhost:8080/ureport;jsessionid=4F55615CCCBFCE3F3DBFCD611768FB56?action=loadres&res=classpath:com/bstek/ureport/applet/ureport-applet-1.0.0-SNAPSHOT.jar的 ResponseCode: 200
network: localhost:8080/ureport;jsessionid=4F55615CCCBFCE3F3DBFCD611768FB56?action=loadres&res=classpath:com/bstek/ureport/applet/ureport-applet-1.0.0-SNAPSHOT.jar的编码: null
network: 服务器响应: (length: -1, lastModified: Thu Jan 01 08:00:00 CST 1970, downloadVersion: null, mimeType: application/octet-stream)
network: 找不到高速缓存条目 [url: localhost:8080/ureport;jsessionid=4F55615CCCBFCE3F3DBFCD611768FB56?action=loadres&res=classpath:com/bstek/ureport/applet/ureport-applet-1.0.0-SNAPSHOT.jar, 版本: null]
network: 正在下载资源:localhost:8080/ureport;jsessionid=4F55615CCCBFCE3F3DBFCD611768FB56?action=loadres&res=classpath:com/bstek/ureport/applet/ureport-applet-1.0.0-SNAPSHOT.jar
    内容长度:-1
    内容编码: null
network: 已将 URL localhost:8080/ureport;jsessionid=4F55615CCCBFCE3F3DBFCD611768FB56?action=loadres&res=classpath:com/bstek/ureport/applet/ureport-applet-1.0.0-SNAPSHOT.jar 写入文件C:\Documents and Settings\Administrator\Local Settings\Application Data\Sun\Java\Deployment\cache\6.0\45\5d55266d-308b9859-temp
network: 断开与localhost:8080/ureport;jsessionid=4F55615CCCBFCE3F3DBFCD611768FB56?action=loadres&res=classpath:com/bstek/ureport/applet/ureport-applet-1.0.0-SNAPSHOT.jar的连接
security: 已启用黑名单撤销检查
security: blacklist: created: NEED_LOAD, lastModified: 1481186061099
security: blacklist: check contains WiSz2CYf9Z9bAVDgUm6OwwysG5ObWna4wotN0eqa7Pg=, state now NEED_LOAD
security: blacklist: loadCache
security: blacklist: not  found in cache
security: 已启用可信库列表检查
security: 找不到可信库列表文件
cache: Create from verifier: JarSigningData{hasOnlySignedEntries=true, hasSingleCodeSource=true, hasMissingSignedEntries=false}
network: Cache: Enable a new CacheEntry: localhost:8080/ureport;jsessionid=4F55615CCCBFCE3F3DBFCD611768FB56?action=loadres&res=classpath:com/bstek/ureport/applet/ureport-applet-1.0.0-SNAPSHOT.jar
network: Downloaded localhost:8080/ureport;jsessionid=4F55615CCCBFCE3F3DBFCD611768FB56?action=loadres&res=classpath:com/bstek/ureport/applet/ureport-applet-1.0.0-SNAPSHOT.jar: C:\Documents and Settings\Administrator\Local Settings\Application Data\Sun\Java\Deployment\cache\6.0\45\5d55266d-308b9859
cache: Adding MemoryCache entry: localhost:8080/ureport;jsessionid=4F55615CCCBFCE3F3DBFCD611768FB56?action=loadres&res=classpath:com/bstek/ureport/applet/ureport-applet-1.0.0-SNAPSHOT.jar
cache: registerReference: com.sun.deploy.cache.MemoryCache$CachedResourceReference@fc7cd7be: 1
cache: registerReference: com.sun.deploy.cache.MemoryCache$CachedResourceReference@fc7cd7be: 2
security: localhost:8080/ureport;jsessionid=4F55615CCCBFCE3F3DBFCD611768FB56?action=loadres&res=classpath:com/bstek/ureport/applet/ureport-applet-1.0.0-SNAPSHOT.jar is asserting Trusted-Only
security: Grant connect perm for localhost:8080/ureport;jsessionid=4F55615CCCBFCE3F3DBFCD611768FB56?action=loadres&res=classpath:com/bstek/ureport/applet/ureport-applet-1.0.0-SNAPSHOT.jar : java.security.Permissions@10c343c (
 ("java.net.URLPermission" "localhost:8080/-" "*:*")
 ("java.net.URLPermission" "localhost:8080" "*:*")
)

network: 已用的 CleanupThread126580 us
security: Missing Application-Library-Allowable-Codebase manifest attribute for: localhost:8080/ureport;jsessionid=4F55615CCCBFCE3F3DBFCD611768FB56?action=loadres&res=classpath:com/bstek/ureport/applet/ureport-applet-1.0.0-SNAPSHOT.jar
security: 正在从C:\Documents and Settings\Administrator\Application Data\Sun\Java\Deployment\security\trusted.certs加载部署证书
security: 已从C:\Documents and Settings\Administrator\Application Data\Sun\Java\Deployment\security\trusted.certs加载部署证书
security: 正在从部署会话证书存储中加载证书
security: 已从部署会话证书存储中加载证书
security: 正在从部署会话证书存储中加载证书
security: 已从部署会话证书存储中加载证书
security: 正在从部署会话证书存储中加载证书
security: 已从部署会话证书存储中加载证书
security: 正在从部署会话证书存储中加载证书
security: 已从部署会话证书存储中加载证书
security: 正在从 Internet Explorer TrustedPublisher 证书存储加载证书
security: 已从 Internet Explorer TrustedPublisher 证书存储加载证书
security: 正在从 Internet Explorer DISALLOWED 证书存储加载证书
security: 已从 Internet Explorer DISALLOWED 证书存储加载证书
security: 使用 CertPath API 验证证书链
security: 正在从 Internet Explorer ROOT 证书存储加载证书
security: 已从 Internet Explorer ROOT 证书存储加载证书
security: Loaded blacklisted.certs file: C:\Documents and Settings\Administrator\Application Data\Sun\Java\Deployment\security\blacklisted.certs
security: SHA-256Certificate finger print: 9F78539DBCD221AC4A203153BF064B9A72649C4E68CB5016A029B2D69A4BB1B2
security: 正在检查证书是否在 Internet Explorer DISALLOWED 证书存储中
security: SHA-256Certificate finger print: 9F78539DBCD221AC4A203153BF064B9A72649C4E68CB5016A029B2D69A4BB1B2
security: 正在检查证书是否在 Internet Explorer DISALLOWED 证书存储中
security: 已启用 OCSP 支持
security: 已启用 CRL 支持
security: 正在将证书保存到部署会话证书存储
security: 已将证书保存至部署会话证书存储
security: 正在将证书保存到部署会话证书存储
security: 已将证书保存至部署会话证书存储
security: Verifying permission attribute in main jar: localhost:8080/ureport;jsessionid=4F55615CCCBFCE3F3DBFCD611768FB56?action=loadres&res=classpath:com/bstek/ureport/applet/ureport-applet-1.0.0-SNAPSHOT.jar
basic: Plugin2ClassLoader.getPermissions CeilingPolicy allPerms
security: SSV validation:
    running: 1.8.0_111
    requested: null
    range: null
    javaVersionParam: null
    Rule Set version: null
network: Created version ID: 1.8.0.111
network: Created version ID: 1.8.0.111
security: continue with running version
security: JUT Record:
    plugin2
    localhost:8080/ureport?action=applet&report=db:ShopNeeds&SYS_DOC_ID=175302&fileName=ureport&USERNAME=王佳&__spring_security_scpf_applied=true&__spring_security_session_mgmt_filter_applied=true&__spring_security_filterSecurityInterceptor_filterApplied=true: launchjnlp= code=com.bstek.ureport.applet.UReportApplet.class alt=UReport精确打印Applet运行时需要JRE1.5或以下版本 archive=localhost:8080/ureport;jsessionid=4F55615CCCBFCE3F3DBFCD611768FB56?action=loadres&res=classpath:com/bstek/ureport/applet/ureport-applet-1.0.0-SNAPSHOT.jar reporturl=localhost:8080/ureport;jsessionid=4F55615CCCBFCE3F3DBFCD611768FB56?action=exportjson&report=db:ShopNeeds&__spring_security_scpf_applied=true&SYS_DOC_ID=175302&org.springframework.security.web.FilterChainProxy.APPLIED=true&org.apache.catalina.ASYNC_SUPPORTED=false&USERNAME=��&__spring_security_session_mgmt_filter_applied=true&__spring_security_filterSecurityInterceptor_filterApplied=true baseimageurl=localhost:8080/ureport;jsessionid=4F55615CCCBFCE3F3DBFCD611768FB56?action= codebase=localhost:8080/ report=db:ShopNeeds width=640 name=UReportApplet id=UReportApplet mayscript=true height=400  app_model=eJyNVL1v00AUvzT9AtoORSwgBEIlSIiek5QkpZWFUicRQW5a1e3AZF3ta+Pi+I67c0kYKjEjIViQGPgP2JiZ2fkbKjGxMyDBO9vph4AWS4nz7n7v4/fe7+XjdzQmBbrmsR6WcYR9ykM2wILu4Drnq8ynIUqf3Ai6aKNJD462iaQKzdh7ZJ8YEVXG1oa9bKNLPpWeCLgKWKTQbHodkmjXcJQIol2AzNK+opEEwAaVLBYelQpdSZGxCkKjLgQZ2IFUAJ7aI+II9gwdoDzkD5lHdAJt52x0oUeCyAqJTAAj4CSpF4tADXTtCt21gZkBzIyUmQHMjCGzOecEFhKOqUCFNAs0qgYcAtw6M8AmYMBxfJ9GPhOJZ59DP6c0IwytwdCad7dr1as/D0UeTbTRZJfIrgXObTTKmVBAgcSqy3QZw8w7wXEVXSZV9nuSC6aYx8LMzkMpWcpf8CB04w20vVQr43IZ16q49KC6tFhcLCo0bsgu44ZC06duFYRXivOk5MtJyXoI+GgI/Zdfr7//Qj7kUQ7KlcEL2udaC89H9Xc/6fm01kZykIMod84Q0tzj43kei2rkz6FO7FMhM1P3U78nzqH4NqUYC6q7urwnqdQhAt+836pUqqWKZVkrLau50FpowLtRLZVq1cXWSqX6kHg6txky4gsqC/AxPa0oTlR3SU9/Wyr6dBjaIJyHoPnMnE/N+RIu4uK806mvO4/WNjFI99/d7v8Xox+nGA2rTNMV0kPT315yANSh1JcF54njNtYst90wS7XKQrFc0ELqkB41syCFLae50amvNs1vr18dfv5UcF3J9Wq6w61xpcd3XJ0koL6pREz/hkl76/Z2e8qFHIqK81xS1HDf2hEYHuWKieymfsL9n41T6J6WVzIOnFHCaUNgzxKznlrp/CDQqeMDgW6epU+9zZkw0SzoW6CZZCn0fxhuRnHv5CVEH6+vr9vNTf4brCm0oA==
basic: 已加载小应用程序。
basic: 已调整小应用程序大小且已将其添加到父容器中
basic: PERF: AppletExecutionRunnable - applet.init() BEGIN ; jvmLaunch dt 370191 us, pluginInit dt 989230 us, TotalTime: 1359421 us
network: 删除高速缓存条目: localhost:8080/ureport;jsessionid=4F55615CCCBFCE3F3DBFCD611768FB56?action=loadres&res=classpath:com/bstek/ureport/applet/ureport-applet-1.0.0-SNAPSHOT.jar
cache: MemoryCache: removed entry localhost:8080/ureport;jsessionid=4F55615CCCBFCE3F3DBFCD611768FB56?action=loadres&res=classpath:com/bstek/ureport/applet/ureport-applet-1.0.0-SNAPSHOT.jar
network: 找不到高速缓存条目 [url: localhost:8080/ureport;jsessionid=4F55615CCCBFCE3F3DBFCD611768FB56?action=exportjson&report=db:ShopNeeds&__spring_security_scpf_applied=true&SYS_DOC_ID=175302&org.springframework.security.web.FilterChainProxy.APPLIED=true&org.apache.catalina.ASYNC_SUPPORTED=false&USERNAME=��&__spring_security_session_mgmt_filter_applied=true&__spring_security_filterSecurityInterceptor_filterApplied=true, 版本: null]
network: 正在使用代理 DIRECT 连接 localhost:8080/ureport;jsessionid=4F55615CCCBFCE3F3DBFCD611768FB56?action=exportjson&report=db:ShopNeeds&__spring_security_scpf_applied=true&SYS_DOC_ID=175302&org.springframework.security.web.FilterChainProxy.APPLIED=true&org.apache.catalina.ASYNC_SUPPORTED=false&USERNAME=��&__spring_security_session_mgmt_filter_applied=true&__spring_security_filterSecurityInterceptor_filterApplied=true
network: 正在连接 localhost:8080/ureport;jsessionid=4F55615CCCBFCE3F3DBFCD611768FB56?action=exportjson&report=db:ShopNeeds&__spring_security_scpf_applied=true&SYS_DOC_ID=175302&org.springframework.security.web.FilterChainProxy.APPLIED=true&org.apache.catalina.ASYNC_SUPPORTED=false&USERNAME=��&__spring_security_session_mgmt_filter_applied=true&__spring_security_filterSecurityInterceptor_filterApplied=true 与 cookie "JSESSIONID=4F55615CCCBFCE3F3DBFCD611768FB56"
cache: localhost:8080/ureport;jsessionid=4F55615CCCBFCE3F3DBFCD611768FB56?action=exportjson&report=db:ShopNeeds&__spring_security_scpf_applied=true&SYS_DOC_ID=175302&org.springframework.security.web.FilterChainProxy.APPLIED=true&org.apache.catalina.ASYNC_SUPPORTED=false&USERNAME=��&__spring_security_session_mgmt_filter_applied=true&__spring_security_filterSecurityInterceptor_filterApplied=true is not cacheable.
security: Grant liveconnect connect perm for localhost:8080/ureport?action=applet&report=db:ShopNeeds&SYS_DOC_ID=175302&fileName=ureport&USERNAME=王佳&__spring_security_scpf_applied=true&__spring_security_session_mgmt_filter_applied=true&__spring_security_filterSecurityInterceptor_filterApplied=true : java.security.Permissions@e61d07 (
 ("java.net.URLPermission" "localhost:8080/-" "*:*")
 ("java.net.URLPermission" "localhost:8080" "*:*")
 ("java.util.PropertyPermission" "java.specification.version" "read")
 ("java.util.PropertyPermission" "path.separator" "read")
 ("java.util.PropertyPermission" "java.vm.vendor" "read")
 ("java.util.PropertyPermission" "os.version" "read")
 ("java.util.PropertyPermission" "browser.version" "read")
 ("java.util.PropertyPermission" "java.vendor.url" "read")
 ("java.util.PropertyPermission" "browser" "read")
 ("java.util.PropertyPermission" "browser.vendor" "read")
 ("java.util.PropertyPermission" "os.name" "read")
 ("java.util.PropertyPermission" "java.vm.specification.version" "read")
 ("java.util.PropertyPermission" "java.vm.name" "read")
 ("java.util.PropertyPermission" "javaws.*" "read,write")
 ("java.util.PropertyPermission" "javaplugin.vm.options" "read")
 ("java.util.PropertyPermission" "mrj.version" "read")
 ("java.util.PropertyPermission" "java.version" "read")
 ("java.util.PropertyPermission" "jnlp.*" "read,write")
 ("java.util.PropertyPermission" "javaplugin.version" "read")
 ("java.util.PropertyPermission" "os.arch" "read")
 ("java.util.PropertyPermission" "java.specification.vendor" "read")
 ("java.util.PropertyPermission" "java.vm.specification.name" "read")
 ("java.util.PropertyPermission" "file.separator" "read")
 ("java.util.PropertyPermission" "line.separator" "read")
 ("java.util.PropertyPermission" "java.vendor" "read")
 ("java.util.PropertyPermission" "java.specification.name" "read")
 ("java.util.PropertyPermission" "java.vm.specification.vendor" "read")
 ("java.util.PropertyPermission" "java.vm.version" "read")
 ("java.util.PropertyPermission" "javapi.*" "read,write")
 ("java.util.PropertyPermission" "java.class.version" "read")
 ("java.util.PropertyPermission" "http.agent" "read")
 ("java.lang.RuntimePermission" "accessClassInPackage.sun.audio")
 ("java.lang.RuntimePermission" "stopThread")
 ("com.sun.deploy.security.SecureCookiePermission" "origin.localhost:8080")
 ("java.net.SocketPermission" "localhost:0" "listen,resolve")
)

java.lang.NullPointerException
    at com.bstek.ureport.applet.UReportApplet.readCookie(UReportApplet.java:517)
    at com.bstek.ureport.applet.UReportApplet.init(UReportApplet.java:95)
    at com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter.init(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Ignored exception: java.lang.NullPointerException
basic: Dialog type is not candidate for embedding
 
ureport报错.png
已邀请:

Jacky - 规则

赞同来自:

检查下你的浏览器是不是禁用了cookie?

yding119

赞同来自:

浏览器未禁用cookie;
经测试客户使用环境安装jre1.6 U45,在xp+ie8  win7+(ie8,ie9,ie11),win10+(ie11)中无问题,但ie11需要设置,  

要回复问题请先登录注册