Regression: Exception on pm.newInstance(Interface): Instance is not assignable 
to PersistenceCapable
----------------------------------------------------------------------------------------------------

                 Key: JDO-476
                 URL: https://issues.apache.org/jira/browse/JDO-476
             Project: JDO
          Issue Type: Bug
          Components: tck2
            Reporter: Michelle Caisse
         Assigned To: Andy Jefferson
             Fix For: JDO 2 maintenance release 1


This is a regression in the JPOX SNAPSHOT.  JPOX version 1.1.7 works.  On 
running, for example, maven -Djdo.tck.cfglist=companyPMInterface.conf 
runtck.jdori, the following exception is thrown. ( Note also the typo in the 
error message: "PersistenceCapble".)

...
    [java] Caused by: javax.jdo.JDOException: A new instance of 
"org.apache.jdo.tck.pc.company.IAddressImpl" was created, but it is not 
assignable to PersistenceCapble. Perhaps a classloading problem. "" The 
instance implements "[org.apache.jdo.tck.pc.company.IAddress]"
    [java]      at 
org.jpox.enhancer.ImplementationCreatorImpl.newInstance(ImplementationCreatorImpl.java:107)
    [java]      at 
org.jpox.enhancer.ImplementationCreatorImpl.newInstance(ImplementationCreatorImpl.java:133)
    [java]      at 
org.jpox.ObjectManagerImpl.newInstance(ObjectManagerImpl.java:2999)
    [java]      at 
org.jpox.AbstractPersistenceManager.newInstance(AbstractPersistenceManager.java:1411)
    [java]      at 
org.apache.jdo.tck.pc.company.CompanyFactoryPMInterface.newAddress(CompanyFactoryPMInterface.java:46)
    [java]      at 
org.apache.jdo.tck.pc.company.CompanyFactoryAbstractImpl.newAddress(CompanyFactoryAbstractImpl.java:57)
    [java]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java]      at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [java]      at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to