You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2003/10/24 17:02:19 UTC

DO NOT REPLY [Bug 24104] New: - SetPropertyRule not working for mapped properties with keys contianing a period.

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24104>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24104

SetPropertyRule not working for mapped properties with keys contianing a period.

           Summary: SetPropertyRule not working for mapped properties with
                    keys contianing a period.
           Product: Commons
           Version: 1.0 Final
          Platform: All
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Digester
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: paul_schmirler@efunds.com


The PropertyUtils.getPropertyDescriptor() truncates the NAME param if it is a 
mapped property with a period in the key. If I do a set-property in the struts-
config.xml with a value like
<set-property property="attributeValue(Return.Success)" value="branch.do"/>
then I recieve an Exception on load of

java.lang.IllegalArgumentException: Invalid mapped property 'attributeValue
('Return'
	at org.apache.commons.beanutils.PropertyUtils.getMappedProperty
(PropertyUtils.java:564)
	at org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor
(PropertyUtils.java:855)
	at org.apache.commons.digester.SetPropertyRule.begin
(SetPropertyRule.java:190)
	at org.apache.commons.digester.Rule.begin(Rule.java:200)
	at org.apache.commons.digester.Digester.startElement(Digester.java:1268)
	at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
	at org.apache.xerces.validators.common.XMLValidator.callStartElement
(XMLValidator.java:1214)
	at org.apache.xerces.framework.XMLDocumentScanner.scanElement
(XMLDocumentScanner.java:1818)
	at 
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch
(XMLDocumentScanner.java(Compiled Code))
	at org.apache.xerces.framework.XMLDocumentScanner.parseSome
(XMLDocumentScanner.java:383)
	at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1120)
	at org.apache.commons.digester.Digester.parse(Digester.java:1543)
	at org.apache.struts.action.ActionServlet.initModuleConfig
(ActionServlet.java:944)
	at org.apache.struts.action.ActionServlet.init(ActionServlet.java:465)
	at javax.servlet.GenericServlet.init(GenericServlet.java:258)
	at com.ibm.servlet.engine.webapp.StrictServletInstance.doInit
(ServletManager.java:802)
	at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init
(StrictLifecycleServlet.java:141)
	at com.ibm.servlet.engine.webapp.PreInitializedServletState.init
(StrictLifecycleServlet.java:254)
	at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init
(StrictLifecycleServlet.java:107)
	at com.ibm.servlet.engine.webapp.ServletInstance.init
(ServletManager.java:388)
	at javax.servlet.GenericServlet.init(GenericServlet.java:258)
	at com.ibm.servlet.engine.webapp.ServletManager.addServlet
(ServletManager.java:84)
	at com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet
(WebAppServletManager.java:193)
	at 
com.ibm.servlet.engine.webapp.WebAppServletManager.loadAutoLoadServlets
(WebAppServletManager.java:325)
	at com.ibm.servlet.engine.webapp.WebApp.loadServletManager
(WebApp.java:1217)
	at com.ibm.servlet.engine.webapp.WebApp.init(WebApp.java:145)
	at com.ibm.servlet.engine.srt.WebGroup.loadWebApp(WebGroup.java:259)
	at com.ibm.servlet.engine.srt.WebGroup.init(WebGroup.java:168)
	at com.ibm.servlet.engine.ServletEngine.addWebApplication
(ServletEngine.java:857)
	at com.ibm.ws.runtime.WebContainer.install(WebContainer.java:43)
	at com.ibm.ws.runtime.Server.startModule(Server.java:617)
	at com.ibm.ws.runtime.StandardServer.initializeModules
(StandardServer.java:333)
	at com.ibm.ws.runtime.StandardServer.initializeRuntime0
(StandardServer.java:349)
	at com.ibm.ws.runtime.Server.initializeRuntime(Server.java:884)
	at com.ibm.ws.runtime.StandardServer.main(StandardServer.java:519)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:158)
	at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV4$1.run
(ServerRunnerV4.java:56)


Thanks!

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org