You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by greg <yr...@netcourrier.com> on 2003/04/28 15:56:41 UTC

ClassCastException

Hi

I'am Using 
eclipse 2.1
tjdo 2_0
jre 1.4

tjdo need log4j then i pick and install the latest stable version i.e : 1.2.8.

I'am not sure the problem come from log4j but i suspect it strongly since i copy/paste a tjdo tutorial.
At execution time i've got this little stack trace :
java.lang.ClassCastException: packJDO1.Person

at com.triactive.jdo.PersistenceManagerImpl.internalMakePersistent(PersistenceManagerImpl.java:328)

at com.triactive.jdo.PersistenceManagerImpl.makePersistent(PersistenceManagerImpl.java:348)

at packJDO1.PersonPersister.main(PersonPersister.java:67)

Exception in thread "main" 



here is my log4J configuration file :

<log4j:configuration>

<appender name="STDOUT" class="org.apache.log4j.ConsoleAppender">

<layout class="org.apache.log4j.PatternLayout">

<param name="ConversionPattern" value="%d %-5p [%t] %C{2} (%F:%L) - %m%n"/>

</layout>

</appender>

<category name="org.apache.log4j.xml">

<priority value="info"/>

</category>

<root>

<priority value="debug"/>

<appender-ref ref="STDOUT"/>

</root>

</log4j:configuration>



thanks a lot for your help

gregory




---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org