You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Marcelo Ingarano (JIRA)" <ji...@apache.org> on 2008/03/04 22:05:41 UTC
[jira] Created: (BEANUTILS-308) Cannot instantiate BeanUtilsBean
class
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.
[jira] Reopened: (BEANUTILS-308) Cannot instantiate BeanUtilsBean
class
Posted by "Niall Pemberton (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/BEANUTILS-308?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Niall Pemberton reopened BEANUTILS-308:
---------------------------------------
> 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
> Fix For: LATER THAN 1.8.0
>
>
> 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.
[jira] Commented: (BEANUTILS-308) Cannot instantiate BeanUtilsBean
class
Posted by "Niall Pemberton (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Resolved: (BEANUTILS-308) Cannot instantiate BeanUtilsBean
class
Posted by "Niall Pemberton (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/BEANUTILS-308?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Niall Pemberton resolved BEANUTILS-308.
---------------------------------------
Resolution: Invalid
OK np, thanks for feeding back
> 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
> Fix For: LATER THAN 1.8.0
>
>
> 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.
[jira] Resolved: (BEANUTILS-308) Cannot instantiate BeanUtilsBean
class
Posted by "Marcelo Ingarano (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/BEANUTILS-308?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marcelo Ingarano resolved BEANUTILS-308.
----------------------------------------
Resolution: Fixed
Fix Version/s: LATER THAN 1.8.0
Problema solved.
> 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
> Fix For: LATER THAN 1.8.0
>
>
> 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.
[jira] Issue Comment Edited: (BEANUTILS-308) Cannot instantiate
BeanUtilsBean class
Posted by "Marcelo Ingarano (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/BEANUTILS-308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12575707#action_12575707 ]
marcelo.ingarano edited comment on BEANUTILS-308 at 3/6/08 5:43 AM:
--------------------------------------------------------------------
Problem solved.
was (Author: marcelo.ingarano):
Problema solved.
> 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
> Fix For: LATER THAN 1.8.0
>
>
> 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.
[jira] Commented: (BEANUTILS-308) Cannot instantiate BeanUtilsBean
class
Posted by "Paul Benedict (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Commented: (BEANUTILS-308) Cannot instantiate BeanUtilsBean
class
Posted by "Marcelo Ingarano (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/BEANUTILS-308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12575704#action_12575704 ]
Marcelo Ingarano commented on BEANUTILS-308:
--------------------------------------------
I looked on my classpath and didn´t find another copy of BeanUtils.
Maybe there is another copy of BeanUtils into the Hibernate jars that I´m using.
Weel, I changed the BeanUtil jar version to the older one (1.7.0), and now it´s working fine...
So the problem was more than one copy of BeanUtils on my classpath...
Thanks for help...
> 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.