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