commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brandon Goodin" <m...@phase.ws>
Subject [Logging] Standalone App using BeanUtils getting wierd exception
Date Mon, 28 Apr 2003 04:44:54 GMT
I am getting the following Logging exception when I try to use BeanUtils. I
have set up the commons-logging.properties to the
org.apache.commons.logging.impl.SimpleLog. I have tryed setting it to
org.apache.commons.logging.impl.Log4JLogger and including my
log4j.properties. It always seems to throw this exception. Can someone give
me some insight as to what to do.

The exception is being thrown in the following call:

PropertyUtils.setSimpleProperty(convertObject, name, value);

But the error also displayed when I used BeanUtils.setProperty and
copyProperty

Here is the exception:

java.lang.VerifyError: (class: org/apache/log4j/LogManager, method: <clinit>
signature: ()V) Incompatible argument to function
	at org.apache.log4j.Logger.getRootLogger(Logger.java:104)
	at
org.apache.commons.logging.impl.Log4JLogger.initialize(Log4JLogger.java:127)
	at org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java:99)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
sorImpl.java:39)
	at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
torAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
	at java.lang.Class.newInstance0(Class.java:306)
	at java.lang.Class.newInstance(Class.java:259)
	at org.apache.commons.logging.LogFactory$2.run(LogFactory.java:571)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:561)
	at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:352)
	at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:395)
	at org.apache.commons.beanutils.MethodUtils.<clinit>(MethodUtils.java:103)
	at
org.apache.commons.beanutils.PropertyUtils.getWriteMethod(PropertyUtils.java
:1201)
	at
org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.j
ava:1780)
	at ws.phase.xmlidx.conversion.Converter.callConverts(Converter.java:187)
	at ws.phase.xmlidx.conversion.Converter.<init>(Converter.java:37)
	at ws.phase.xmlidx.conversion.Converter.main(Converter.java:50)
Exception in thread "main"

Brandon Goodin
Phase Web and Multimedia
PO Box 85
Whitefish MT 59937
P (406) 862-2245
F (406) 862-0354
mail@phase.ws
http://www.phase.ws



Mime
View raw message