commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Benedict (JIRA)" <j...@apache.org>
Subject [jira] Commented: (BEANUTILS-308) Cannot instantiate BeanUtilsBean class
Date Tue, 04 Mar 2008 23:11:42 GMT

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

Paul Benedict commented on BEANUTILS-308:
-----------------------------------------

Maybe NoSuchMethodError should be caught in registerStandard and log a helpful message with
the advice stated. "Is there another copy on your classpath?"

PS: Is 1.8 OSGI enabled?

> 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.


Mime
View raw message