You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Niall Pemberton (JIRA)" <ji...@apache.org> on 2008/03/04 23:53:40 UTC
[jira] Commented: (BEANUTILS-308) Cannot instantiate BeanUtilsBean
class
[ https://issues.apache.org/jira/browse/BEANUTILS-308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12575176#action_12575176 ]
Niall Pemberton commented on BEANUTILS-308:
-------------------------------------------
Looks like this is a problem in your environment with having an older copy of BeanUtils in your classpath. Before BeanUtils 1.8.0-BETA StringConverter implementation had the default no-args constructor (by omission), but the 1.8.0-BETA introduced an additional StringConverter(Object) constructor which this stack trace indicates it can't find.
> Cannot instantiate BeanUtilsBean class
> --------------------------------------
>
> Key: BEANUTILS-308
> URL: https://issues.apache.org/jira/browse/BEANUTILS-308
> Project: Commons BeanUtils
> Issue Type: Bug
> Components: Bean / Property Utils
> Affects Versions: 1.8.0-BETA
> Environment: OP: Windows 2000 Professional
> Software Plataform: SDK Java 1.5.0_06_b05 + IDE Eclipse 3.3.1.1
> Reporter: Marcelo Ingarano
>
> I cannot instantiate BeanUtilsBean class with the singleton method "getInstance()" neither with "new" clause em Java.
> Stack Description:
> Caused by: java.lang.NoSuchMethodError: org.apache.commons.beanutils.converters.StringConverter.<init>(Ljava/lang/Object;)V
> at org.apache.commons.beanutils.ConvertUtilsBean.registerStandard(ConvertUtilsBean.java:680)
> at org.apache.commons.beanutils.ConvertUtilsBean.deregister(ConvertUtilsBean.java:578)
> at org.apache.commons.beanutils.ConvertUtilsBean.<init>(ConvertUtilsBean.java:164)
> at org.apache.commons.beanutils.BeanUtilsBean.<init>(BeanUtilsBean.java:117)
> at org.apache.commons.beanutils.BeanUtilsBean$1.initialValue(BeanUtilsBean.java:68)
> at org.apache.commons.beanutils.ContextClassLoaderLocal.get(ContextClassLoaderLocal.java:153)
> at org.apache.commons.beanutils.BeanUtilsBean.getInstance(BeanUtilsBean.java:80)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.