Sorry for the delay in response.  Can I please ask you to send your code?  That will help us to troubleshoot the issue.

Are you implementing BuildingType in your Jython class?  Since you are receiving a ClassCastException it seems like you may not be implementing the interface.

Thanks

Josh Juneau
juneau001@gmail.com
http://jj-blogger.blogspot.com
http://www.jythonbook.com
Oracle PL/SQL Recipes - http://www.apress.com/9781430232070




On Wed, Nov 2, 2011 at 4:29 PM, Nikola <nikola1010@gmail.com> wrote:
Hi all,

I have tried to follow Jython book and run example for one-to-one Jython object factory.

After running example I receive following error:

Exception in thread "main" java.lang.ClassCastException: org.python.core.PySingleton cannot be cast to BuildingType
    at BuildingFactory.create(BuildingFactory.java:41)
    at Main.main(Main.java:20)


Could anyone give a hint?

Thanks in advance.

--
God is Real, unless declared Integer.
J. Allan Toogood, FORTRAN programmer

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Jython-users mailing list
Jython-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jython-users