commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Neidhart (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (BEANUTILS-421) NullPointerException in BeanUtilsBean.setProperty
Date Sun, 17 Nov 2013 19:55:25 GMT

    [ https://issues.apache.org/jira/browse/BEANUTILS-421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13824937#comment-13824937
] 

Thomas Neidhart commented on BEANUTILS-421:
-------------------------------------------

This looks like a regression in the JDK as the attached unit test succeeds with JDK 5 while
failing for JDK 7.

> NullPointerException in BeanUtilsBean.setProperty
> -------------------------------------------------
>
>                 Key: BEANUTILS-421
>                 URL: https://issues.apache.org/jira/browse/BEANUTILS-421
>             Project: Commons BeanUtils
>          Issue Type: Bug
>          Components: Bean / Property Utils
>    Affects Versions: 1.8.3
>            Reporter: Maxim Kramarenko
>            Assignee: Benedikt Ritter
>            Priority: Blocker
>             Fix For: 1.8.4
>
>         Attachments: src.zip
>
>
> I got the following exception on some servers:
>    javax.servlet.ServletException: BeanUtils.populate
> 	at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:475)
> 	at org.apache.struts.chain.commands.servlet.PopulateActionForm.populate(PopulateActionForm.java:50)
> 	at org.apache.struts.chain.commands.AbstractPopulateActionForm.execute(AbstractPopulateActionForm.java:60)
> 	at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
> 	at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
> 	at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)
> 	at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
> 	at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
> 	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
> 	at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
> Caused by: java.lang.NullPointerException
> 	at org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:982)
> 	at org.apache.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.java:830)
> 	at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:433)
> 	at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:473)



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message