UDN-企业互联网技术人气社区

板块导航

浏览  : 11535
回复  : 24

调试态下NCHome65 开发单据修改后保存和删除时抛ESAPI的补救...

[复制链接]
土鳖的头像 楼主
发表于 2015-10-14 10:16:33 | 显示全部楼层 |阅读模式
本帖最后由 土鳖 于 2015-10-14 10:17 编辑

附件方法也许可以解决UAPstudio6502适配nchome65时启动中间件后报此问题.



Ecilpse启动缓解后保存任何单据都提提示未知的错误,请大家帮忙看下什么原因,看异常信息貌似是不是我有什么地方没有配置或者配置的不对?

错误信息如下:

13:25:14 [AWT-EventQueue-0] ERROR - 未知的错误
org.owasp.esAPI.errors.ConfigurationException: java.lang.reflect.InvocationTargetException SecurityConfiguration class (org.owasp.esAPI.reference.DefaultSecurityConfiguration) CTOR threw exception.
    at org.owasp.esapi.util.ObjFactory.make(ObjFactory.java:129)
    at org.owasp.esapi.ESAPI.securityConfiguration(ESAPI.java:184)
    at org.owasp.esapi.ESAPI.encoder(ESAPI.java:99)
    at nc.bs.uap.util.sec.esapi.UAPESAPI.sqlEncode(UAPESAPI.java:42)
    at nc.vo.pubapp.pattern.pub.SqlBuilder.replaceValue(SqlBuilder.java:31)
    at nc.vo.pubapp.pattern.pub.SqlBuilder.append(SqlBuilder.java:248)
    at nc.impl.pubapp.pattern.data.table.TableIDQueryCondition.buildInSql(TableIDQueryCondition.java:96)
    at nc.impl.pubapp.pattern.data.table.TableIDQueryCondition.build(TableIDQueryCondition.java:81)
    at nc.impl.pubapp.pattern.data.vo.tool.IDQueryCondition.build(IDQueryCondition.java:30)
    at nc.impl.pubapp.pattern.data.vo.VOQuery.query(VOQuery.java:529)
    at nc.impl.ambd.db.QueryUtil.querySuperVOByPks(QueryUtil.java:155)
    at nc.impl.ambd.category.CategorySerivceImpl.queryCategoryVOsByPKS(CategorySerivceImpl.java:150)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at nc.bs.framework.aop.rt.MethodProceedingJoinpoint$3.invoke(MethodProceedingJoinpoint.java:74)
    at nc.bs.framework.aop.rt.MethodProceedingJoinpoint.proceed(MethodProceedingJoinpoint.java:184)
    at nc.bs.framework.aop.rt.AdviceHolder.invoke(AdviceHolder.java:188)
    at nc.bs.framework.aop.rt.MethodProceedingJoinpoint.proceed(MethodProceedingJoinpoint.java:129)
    at nc.bs.framework.aop.rt.MethodProceedingJoinpoint.proceed(MethodProceedingJoinpoint.java:135)
    at nc.bs.org.aop.OrgEnableStateAspect.aroundObject(OrgEnableStateAspect.java:58)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at nc.bs.framework.aop.rt.AdviceHolder.invoke(AdviceHolder.java:182)
    at nc.bs.framework.aop.rt.MethodProceedingJoinpoint.proceed(MethodProceedingJoinpoint.java:129)
    at nc.bs.framework.aop.rt.MethodProceedingJoinpoint.proceed(MethodProceedingJoinpoint.java:135)
    at nc.bs.aop.log.BusilogAspect.aroundMethod(BusilogAspect.java:75)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at nc.bs.framework.aop.rt.AdviceHolder.invoke(AdviceHolder.java:182)
    at nc.bs.framework.aop.rt.MethodProceedingJoinpoint.proceed(MethodProceedingJoinpoint.java:129)
    at nc.bs.framework.aop.rt.MethodProceedingJoinpoint.proceed(MethodProceedingJoinpoint.java:135)
    at nc.bs.framework.aop.rt.AspectedProxy.invoke(AspectedProxy.java:59)
    at sun.proxy.$Proxy221.queryCategoryVOsByPKS(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at nc.bs.framework.ejb.CMTProxyImpl.delegate(CMTProxyImpl.java:22)
    at nc.itf.framework.ejb.CMTProxyEjbBean.delegate(CMTProxyEjbBean.java:44)
    at nc.itf.framework.ejb.CMTProxy_Local.delegate(CMTProxy_Local.java:70)
    at sun.reflect.GeneratedMethodAccessor118.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at nc.bs.framework.ejb.AbstractEJBServiceHandler.invoke(AbstractEJBServiceHandler.java:57)
    at nc.bs.framework.ejb.AbstractEJBServiceHandler.invoke(AbstractEJBServiceHandler.java:36)
    at sun.proxy.$Proxy14.delegate(Unknown Source)
    at nc.bs.framework.ejb.CMTEJBServiceHandler.invoke(CMTEJBServiceHandler.java:32)
    at sun.proxy.$Proxy222.queryCategoryVOsByPKS(Unknown Source)
    at nc.impl.aim.equip.validator.CategoryValidator.validate(CategoryValidator.java:35)
    at nc.bs.uif2.validation.DefaultValidationService.validate(DefaultValidationService.java:18)
    at nc.impl.aim.equip.rule.ValidateServiceRule.process(ValidateServiceRule.java:57)
    at nc.bs.am.framework.action.RuleCollection.process(RuleCollection.java:27)
    at nc.bs.am.framework.action.AbstractActionTemplate.execute(AbstractActionTemplate.java:146)
    at nc.bs.am.framework.action.insert.InsertActionTemplate.execute(InsertActionTemplate.java:48)
    at nc.impl.aim.equip.EquipImpl.insertEquipVos(EquipImpl.java:334)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at nc.bs.framework.aop.rt.MethodProceedingJoinpoint$3.invoke(MethodProceedingJoinpoint.java:74)
    at nc.bs.framework.aop.rt.MethodProceedingJoinpoint.proceed(MethodProceedingJoinpoint.java:184)
    at nc.bs.framework.server.SecurityAspect.aroundMethod1(SecurityAspect.java:55)
    at sun.reflect.GeneratedMethodAccessor362.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at nc.bs.framework.aop.rt.AdviceHolder.invoke(AdviceHolder.java:182)
    at nc.bs.framework.aop.rt.MethodProceedingJoinpoint.proceed(MethodProceedingJoinpoint.java:129)
    at nc.bs.framework.aop.rt.MethodProceedingJoinpoint.proceed(MethodProceedingJoinpoint.java:135)
    at nc.bs.org.aop.OrgEnableStateAspect.aroundObject(OrgEnableStateAspect.java:114)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at nc.bs.framework.aop.rt.AdviceHolder.invoke(AdviceHolder.java:182)
    at nc.bs.framework.aop.rt.MethodProceedingJoinpoint.proceed(MethodProceedingJoinpoint.java:129)
    at nc.bs.framework.aop.rt.MethodProceedingJoinpoint.proceed(MethodProceedingJoinpoint.java:135)
    at nc.bs.aop.loginfo.AbstractOPProcessor.process(AbstractOPProcessor.java:55)
    at nc.bs.aop.log.BusilogForInnerCallAspect.aroundMethod(BusilogForInnerCallAspect.java:87)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at nc.bs.framework.aop.rt.AdviceHolder.invoke(AdviceHolder.java:182)
    at nc.bs.framework.aop.rt.MethodProceedingJoinpoint.proceed(MethodProceedingJoinpoint.java:129)
    at nc.bs.framework.aop.rt.MethodProceedingJoinpoint.proceed(MethodProceedingJoinpoint.java:135)
    at nc.bs.framework.aop.rt.AspectedProxy.invoke(AspectedProxy.java:59)
    at sun.proxy.$Proxy189.insertEquipVos(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at nc.bs.framework.ejb.CMTProxyImpl.delegate(CMTProxyImpl.java:22)
    at nc.itf.framework.ejb.CMTProxyEjbBean.delegate(CMTProxyEjbBean.java:44)
    at nc.itf.framework.ejb.CMTProxy_Local.delegate(CMTProxy_Local.java:70)
    at sun.reflect.GeneratedMethodAccessor118.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at nc.bs.framework.ejb.AbstractEJBServiceHandler.invoke(AbstractEJBServiceHandler.java:57)
    at nc.bs.framework.ejb.AbstractEJBServiceHandler.invoke(AbstractEJBServiceHandler.java:36)
    at sun.proxy.$Proxy14.delegate(Unknown Source)
    at nc.bs.framework.ejb.CMTEJBServiceHandException in thread "AWT-EventQueue-0" java.lang.RuntimeException: org.owasp.esapi.errors.ConfigurationException: java.lang.reflect.InvocationTargetException SecurityConfiguration class (org.owasp.esapi.reference.DefaultSecurityConfiguration) CTOR threw exception.
    at nc.ui.uif2.NCAction.actionPerformed(NCAction.java:101)
    at nc.funcnode.ui.action.ActionDelegate.actionPerformed(ActionDelegate.java:296)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
    at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
    at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    at java.awt.EventQueue.access$200(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    at java.awt.EventQueue$4.run(Unknown Source)
    at java.awt.EventQueue$4.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: org.owasp.esapi.errors.ConfigurationException: java.lang.reflect.InvocationTargetException SecurityConfiguration class (org.owasp.esapi.reference.DefaultSecurityConfiguration) CTOR threw exception.
    at org.owasp.esapi.util.ObjFactory.make(ObjFactory.java:129)
    at org.owasp.esapi.ESAPI.securityConfiguration(ESAPI.java:184)
    at org.owasp.esapi.ESAPI.encoder(ESAPI.java:99)
    at nc.bs.uap.util.sec.esapi.UAPESAPI.sqlEncode(UAPESAPI.java:42)
    at nc.vo.pubapp.pattern.pub.SqlBuilder.replaceValue(SqlBuilder.java:31)
    at nc.vo.pubapp.pattern.pub.SqlBuilder.append(SqlBuilder.java:248)
    at nc.impl.pubapp.pattern.data.table.TableIDQueryCondition.buildInSql(TableIDQueryCondition.java:96)
    at nc.impl.pubapp.pattern.data.table.TableIDQueryCondition.build(TableIDQueryCondition.java:81)
    at nc.impl.pubapp.pattern.data.vo.tool.IDQueryCondition.build(IDQueryCondition.java:30)
    at nc.impl.pubapp.pattern.data.vo.VOQuery.query(VOQuery.java:529)
    at nc.impl.ambd.db.QueryUtil.querySuperVOByPks(QueryUtil.java:155)
    at nc.impl.ambd.category.CategorySerivceImpl.queryCategoryVOsByPKS(CategorySerivceImpl.java:150)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at nc.bs.framework.aop.rt.MethodProceedingJoinpoint$3.invoke(MethodProceedingJoinpoint.java:74)
    at nc.bs.framework.aop.rt.MethodProceedingJoinpoint.proceed(MethodProceedingJoinpoint.java:184)
    at nc.bs.framework.aop.rt.AdviceHolder.invoke(AdviceHolder.java:188)
    at nc.bs.framework.aop.rt.MethodProceedingJoinpoint.proceed(MethodProceedingJoinpoint.java:129)
    at nc.bs.framework.aop.rt.MethodProceedingJoinpoint.proceed(MethodProceedingJoinpoint.java:135)
    at nc.bs.org.aop.OrgEnableStateAspect.aroundObject(OrgEnableStateAspect.java:58)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at nc.bs.framework.aop.rt.AdviceHolder.invoke(AdviceHolder.java:182)
    at nc.bs.framework.aop.rt.MethodProceedingJoinpoint.proceed(MethodProceedingJoinpoint.java:129)
    at nc.bs.framework.aop.rt.MethodProceedingJoinpoint.proceed(MethodProceedingJoinpoint.java:135)
    at nc.bs.aop.log.BusilogAspect.aroundMethod(BusilogAspect.java:75)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at nc.bs.framework.aop.rt.AdviceHolder.invoke(AdviceHolder.java:182)
    at nc.bs.framework.aop.rt.MethodProceedingJoinpoint.proceed(MethodProceedingJoinpoint.java:129)
    at nc.bs.framework.aop.rt.MethodProceedingJoinpoint.proceed(MethodProceedingJoinpoint.java:135)
    at nc.bs.framework.aop.rt.AspectedProxy.invoke(AspectedProxy.java:59)
    at sun.proxy.$Proxy221.queryCategoryVOsByPKS(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at nc.bs.framework.ejb.CMTProxyImpl.delegate(CMTProxyImpl.java:22)
    at nc.itf.framework.ejb.CMTProxyEjbBean.delegate(CMTProxyEjbBean.java:44)
    at nc.itf.framework.ejb.CMTProxy_Local.delegate(CMTProxy_Local.java:70)
    at sun.reflect.GeneratedMethodAccessor118.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at nc.bs.framework.ejb.AbstractEJBServiceHandler.invoke(AbstractEJBServiceHandler.java:57)
    at nc.bs.framework.ejb.AbstractEJBServiceHandler.invoke(AbstractEJBServiceHandler.java:36)
    at sun.proxy.$Proxy14.delegate(Unknown Source)
    at nc.bs.framework.ejb.CMTEJBServiceHandler.invoke(CMTEJBServiceHandler.java:32)
    at sun.proxy.$Proxy222.queryCategoryVOsByPKS(Unknown Source)
    at nc.impl.aim.equip.validator.CategoryValidator.validate(CategoryValidator.java:35)
    at nc.bs.uif2.validation.DefaultValidationService.validate(DefaultValidationService.java:18)
    at nc.impl.aim.equip.rule.ValidateServiceRule.process(ValidateServiceRule.java:57)
    at nc.bs.am.framework.action.RuleCollection.process(RuleCollection.java:27)
    at nc.bs.am.framework.action.AbstractActionTemplate.execute(AbstractActionTemplate.java:146)
    at nc.bs.am.framework.action.insert.InsertActionTemplate.execute(InsertActionTemplate.java:48)
    at nc.impl.aim.equip.EquipImpl.insertEquipVos(EquipImpl.java:334)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at nc.bs.framework.aop.rt.MethodProceedingJoinpoint$3.invoke(MethodProceedingJoinpoint.java:74)
    at nc.bs.framework.aop.rt.MethodProceedingJoinpoint.proceed(MethodProceedingJoinpoint.java:184)
    at nc.bs.framework.server.SecurityAspect.aroundMethod1(SecurityAspect.java:55)
    at sun.reflect.GeneratedMethodAccessor362.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at nc.bs.framework.aop.rt.AdviceHolder.invoke(AdviceHolder.java:182)
    at nc.bs.framework.aop.rt.MethodProceedingJoinpoint.proceed(MethodProceedingJoinpoint.java:129)
    at nc.bs.framework.aop.rt.MethodProceedingJoinpoint.proceed(MethodProceedingJoinpoint.java:135)
    at nc.bs.org.aop.OrgEnableStateAspect.aroundObject(OrgEnableStateAspect.java:114)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
ler.invoke(CMTEJBServiceHandler.java:32)
    at sun.proxy.$Proxy190.insertEquipVos(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at nc.bs.framework.rmi.server.RMIHandlerImpl.invokeBeanMethod(RMIHandlerImpl.java:410)
    at nc.bs.framework.rmi.server.RMIHandlerImpl.doHandle(RMIHandlerImpl.java:177)
    at nc.bs.framework.rmi.server.RMIHandlerImpl.handle(RMIHandlerImpl.java:99)
    at nc.bs.framework.comn.serv.CommonServletDispatcher.doPost(CommonServletDispatcher.java:45)
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.owasp.esapi.util.ObjFactory.make(ObjFactory.java:86)
    ... 115 more
Caused by: org.owasp.esapi.errors.ConfigurationException: ESAPI.properties could not be loaded by any means. Fail.
    at org.owasp.esapi.reference.DefaultSecurityConfiguration.loadConfiguration(DefaultSecurityConfiguration.java:439)
    at org.owasp.esapi.reference.DefaultSecurityConfiguration.<init>(DefaultSecurityConfiguration.java:227)
    at org.owasp.esapi.reference.DefaultSecurityConfiguration.getInstance(DefaultSecurityConfiguration.java:75)
    ... 120 more
Caused by: java.lang.IllegalArgumentException: Failed to load ESAPI.properties as a classloader resource.
    at org.owasp.esapi.reference.DefaultSecurityConfiguration.loadConfigurationFromClasspath(DefaultSecurityConfiguration.java:667)
    at org.owasp.esapi.reference.DefaultSecurityConfiguration.loadConfiguration(DefaultSecurityConfiguration.java:436)
    ... 122 more

2-UAP ESAPI开发指导.rar

90.15 KB, 下载次数: 178

售价: 10 U币  [记录]

相关帖子

发表于 2015-10-14 10:29:27 | 显示全部楼层
使用道具 举报

回复

发表于 2016-1-12 16:23:49 | 显示全部楼层
我是用NC65的home,产生环境访问没问题,开发环境就报Failed to load ESAPI.properties as a classloader resource ...,然后按照你文档的配置,
11.png


现在就报:
严重: Servlet.service() for servlet jsp threw exception
java.lang.SecurityException: sealing violation: can't seal package org.owasp.esapi.reference: already loaded
        at java.net.URLClassLoader.getAndVerifyPackage(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$100(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at org.owasp.esapi.util.ObjFactory.make(ObjFactory.java:74)
        at org.owasp.esapi.ESAPI.encoder(ESAPI.java:99)
        at uap.sec.esapi.UAPESAPI.htmlAttributeEncode(UAPESAPI.java:84)


已经困扰了一天了,麻烦大神帮忙看一下!谢谢
点评 ( 2 ) 收起 / 展开点评

土鳖 2016年01月19日 13:44 详情 回复

already loaded 提示已加载了.是否在其他地方已经配置过esapi参数呢? 建议检查并清空后,重新配置这个参数,试一下可以吗?

土鳖 2016年01月12日 19:02 详情 回复

参数配对了吗? 请参考上述附件文档

使用道具 举报

回复

发表于 2016-1-12 17:51:49 | 显示全部楼层
顶起咯!!!!!
使用道具 举报

回复

土鳖的头像 楼主
发表于 2016-1-12 19:02:40 | 显示全部楼层
mingo 发表于 2016-1-12 16:23
我是用NC65的home,产生环境访问没问题,开发环境就报Failed to load ESAPI.properties as a classloader r ...

参数配对了吗?
请参考上述附件文档
点评 ( 1 ) 收起 / 展开点评

方竹 2016年01月14日 15:19 详情 回复

按你的文件配置了两个地方来指定 -Dorg.owasp.esapi.resources=%NC_HOME%/ierp/bin/esapi 但是启动中间件后 访问 portal页面,直接提示 : 抱歉,您请求的页面出错啦!  

使用道具 举报

回复

发表于 2016-1-14 15:19:40 | 显示全部楼层
土鳖 发表于 2016-1-12 19:02
参数配对了吗?
请参考上述附件文档

按你的文件配置了两个地方来指定 -Dorg.owasp.esapi.resources=%NC_HOME%/ierp/bin/esapi
但是启动中间件后 访问  portal页面,直接提示  :   抱歉,您请求的页面出错啦!  
点评 ( 1 ) 收起 / 展开点评

土鳖 2016年01月14日 18:40 详情 回复

只需要配置一处.

使用道具 举报

回复

土鳖的头像 楼主
发表于 2016-1-14 18:40:46 | 显示全部楼层
方竹 发表于 2016-1-14 15:19
按你的文件配置了两个地方来指定 -Dorg.owasp.esapi.resources=%NC_HOME%/ierp/bin/esapi
但是启动中间 ...

只需要配置一处.
点评 ( 1 ) 收起 / 展开点评

方竹 2016年01月15日 09:26 详情 回复

已改为一处,portal还是不能访问

使用道具 举报

回复

发表于 2016-1-15 09:26:07 | 显示全部楼层
土鳖 发表于 2016-1-14 18:40
只需要配置一处.

已改为一处,portal还是不能访问
点评 ( 1 ) 收起 / 展开点评

土鳖 2016年01月15日 11:14 详情 回复

文件中只提到修改eclipse-首选项-已安装的JRE下面的参数. 其他不要动

使用道具 举报

回复

土鳖的头像 楼主
发表于 2016-1-15 11:14:28 | 显示全部楼层
方竹 发表于 2016-1-15 09:26
已改为一处,portal还是不能访问

文件中只提到修改eclipse-首选项-已安装的JRE下面的参数.
其他不要动
点评 ( 1 ) 收起 / 展开点评

方竹 2016年01月19日 10:56 详情 回复

大神,有时间帮忙远程看看这个问题么 配置了JRE的参数后,访问portal 还是提示: 抱歉,您请求的页面出错啦!

使用道具 举报

回复

发表于 2016-1-19 10:56:21 | 显示全部楼层
土鳖 发表于 2016-1-15 11:14
文件中只提到修改eclipse-首选项-已安装的JRE下面的参数.
其他不要动

大神,有时间帮忙远程看看这个问题么
配置了JRE的参数后,访问portal 还是提示: 抱歉,您请求的页面出错啦!
点评 ( 2 ) 收起 / 展开点评

土鳖 2016年01月19日 13:56 详情 回复

邮件已回

土鳖 2016年01月19日 11:22 详情 回复

抛错的日志?截图? 请发邮件给曹峰 010-62435248

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关于我们
联系我们
  • 电话:010-86393388
  • 邮件:udn@yonyou.com
  • 地址:北京市海淀区北清路68号
移动客户端下载
关注我们
  • 微信公众号:yonyouudn
  • 扫描右侧二维码关注我们
  • 专注企业互联网的技术社区
版权所有:用友网络科技股份有限公司82041 京ICP备05007539号-11 京公网网备安1101080209224 Powered by Discuz!
快速回复 返回列表 返回顶部