`
四个石头
  • 浏览: 9458 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

configdebug版本升级v1.1

阅读更多

     感谢大家的下载使用,特别感谢在使用过程中提出意见和异常信息的网友,在v1.1版本中,根据网友提供的意见和异常信息,进行了功能的增加和bug的修改,修改如下:

2011-06-15:
  1.该插件的属性文件可以放在项目中任意位置,并且随意命名
     感谢iteye网友xugq035 提出的意见,非常感谢
  2.修改了bug:java.lang.StringIndexOutOfBoundsException: String index out of range: -1 
     该异常发生的情况是:在POST方式提交的时候,没有携带任何参数
     感谢iteye网友thc1987 和yuanjzh 提出该异常,非常感谢

2
1
分享到:
评论
7 楼 uin57 2012-01-17  
孤独枫 写道

你的插件是在struts2.1.7编写的吧,
而我们使用的是struts2.0 ,按照你的使用说明配置好,然后启动,报错:
说明:我们这鸟公司使用了域上网

这种情况有没有 办法解决,使其在struts2.0上也能使用你的插件?
我估摸着:上面错误提示中的http://10.252.252.252是我们公司上网用的域服务器地址!

3种方法:
一.如果你没有继承configdebug package
可以把Jar包里面的Struts-plugin.xml删除,我就用的这种方法
二.你使用了继承包的方式
可以修改DOCTYPE 到 你用的版本
三:下载2.1.7的DTD放到jar包里面 再把DOCTYPE改成红色部分的
<!DOCTYPE struts PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 2.1.7//EN" "struts-2.1.7.dtd">
6 楼 smartlan 2011-12-06  
你好!
我使用的是struts2.2.3,在调试时,发现一个问题:
    在jsp页面中,通过Jquery直接调用的action,在日志中不能打印出来!别的暂时用的很好,没有发现问题!谢谢提供一个这样的调试工具!
5 楼 四个石头 2011-09-09  
=index.jsp
javatomcat 写道
好厉害

你好,我用的struts2.1.6版本,我这边觉得有2个需要完善的地方:
1.没有配置文件对应的行数,我这边采取的是在struts.xml中include方式,是不是现在还不支持。
2.对于视图,没有从根目录开始指引。  这个是不是也是前面的的不支持造成。
以下是打印详细


########################################struts2 debug info begin########################################
## 1.accessMethod:POST
## 2.debugUrl:http://localhost:8080/hello/manager/log_in.action?admin.password=123&act=LoginCheck&submit=&admin.username=admin&gotopage=
## 3.parameters(Multirow):
##   admin.password=123
##   act=LoginCheck
##   submit=
##   admin.username=admin
##   gotopage=
## 4.actionAndMethod:bgi.portal.action.admin.LoginAction.log_in()
## 5.executeTime:141ms
## 6.actionReturnResult:success
## 7.actionReturnView:{location=index.jsp}
## 8.sessionInfo:
##   database=portal
##   directoryRoot=zh
##   lastVisitTime=2011-09-08 20:58:54
##   admin=bgi.portal.pojo.Admin@12d452e
########################################struts2 debug info end##########################################

谢谢提出意见,我会尽快看看有什么问题,然后解决
4 楼 javatomcat 2011-09-08  
好厉害

你好,我用的struts2.1.6版本,我这边觉得有2个需要完善的地方:
1.没有配置文件对应的行数,我这边采取的是在struts.xml中include方式,是不是现在还不支持。
2.对于视图,没有从根目录开始指引。  这个是不是也是前面的的不支持造成。
以下是打印详细


########################################struts2 debug info begin########################################
## 1.accessMethod:POST
## 2.debugUrl:http://localhost:8080/hello/manager/log_in.action?admin.password=123&act=LoginCheck&submit=&admin.username=admin&gotopage=
## 3.parameters(Multirow):
##   admin.password=123
##   act=LoginCheck
##   submit=
##   admin.username=admin
##   gotopage=
## 4.actionAndMethod:bgi.portal.action.admin.LoginAction.log_in()
## 5.executeTime:141ms
## 6.actionReturnResult:success
## 7.actionReturnView:{location=index.jsp}
## 8.sessionInfo:
##   database=portal
##   directoryRoot=zh
##   lastVisitTime=2011-09-08 20:58:54
##   admin=bgi.portal.pojo.Admin@12d452e
########################################struts2 debug info end##########################################
3 楼 孤独枫 2011-08-03  

你的插件是在struts2.1.7编写的吧,
而我们使用的是struts2.0 ,按照你的使用说明配置好,然后启动,报错:
说明:我们这鸟公司使用了域上网


2011-08-03 14:41:11 [main:19640]-[FATAL] [DomHelper$StartHandler:fatalError:com.opensymphony.xwork2.util.DomHelper$StartHandler.fatalError(DomHelper.java:353)] The markup declarations contained or pointed to by the document type declaration must be well-formed. at (-//Apache Software Foundation//DTD Struts Configuration 2.1.7//EN:4:2)
org.xml.sax.SAXParseException: The markup declarations contained or pointed to by the document type declaration must be well-formed.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:174)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:388)
at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1411)
at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.scanDecls(XMLDTDScannerImpl.java:2003)
at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.scanDTDExternalSubset(XMLDTDScannerImpl.java:320)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(XMLDocumentScannerImpl.java:1202)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(XMLDocumentScannerImpl.java:1090)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:1003)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:121)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:830)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:131)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:100)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:130)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:395)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452)
at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3709)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4356)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
2011-8-3 14:41:11 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter struts
http://10.252.252.252/slogin/?struts.apache.org/dtds/struts-2.1.7.dtd:4:2
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:835)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:131)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:100)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:130)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:395)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452)
at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3709)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4356)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: The markup declarations contained or pointed to by the document type declaration must be well-formed. - http://10.252.252.252/slogin/?struts.apache.org/dtds/struts-2.1.7.dtd:4:2
at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:123)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:830)
... 34 more
Caused by: org.xml.sax.SAXParseException: The markup declarations contained or pointed to by the document type declaration must be well-formed.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:174)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:388)
at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1411)
at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.scanDecls(XMLDTDScannerImpl.java:2003)
at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.scanDTDExternalSubset(XMLDTDScannerImpl.java:320)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(XMLDocumentScannerImpl.java:1202)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(XMLDocumentScannerImpl.java:1090)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:1003)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:121)
... 35 more
2011-08-03 14:41:11 [main:19672]-[INFO] [ResponseOverrideFilter:init:com.wasion.assets.kernel.table.filter.ResponseOverrideFilter.init(ResponseOverrideFilter.java:109)] Filter initialized. Response buffering is enabled
2011-8-3 14:41:11 org.apache.catalina.core.StandardContext start
严重: Error filterStart
2011-8-3 14:41:11 org.apache.catalina.core.StandardContext start
严重: Context  startup failed due to previous errors

这种情况有没有 办法解决,使其在struts2.0上也能使用你的插件?
我估摸着:上面错误提示中的http://10.252.252.252是我们公司上网用的域服务器地址!
2 楼 四个石头 2011-07-19  
bbdd21 写道
请问这个插件适合struts1使用吗

不适合,只支持struts2
1 楼 bbdd21 2011-07-19  
请问这个插件适合struts1使用吗

相关推荐

Global site tag (gtag.js) - Google Analytics