My Oracle Support Banner

kodo.jdo.FatalUserException: Could not locate metadata for the class (Doc ID 1464227.1)

Last updated on AUGUST 16, 2016

Applies to:

Oracle Weblogic Server - Version 10.3.4 to 10.3.4
Information in this document applies to any platform.

Symptoms

On : 10.3.4 version, KODO Component

2 JDO classes with the following mapping: 

       <class name="SimpleKeyUser" objectid-class="SimpleKeyUserId" table="SEAN.EBIGUSER">
           <extension vendor-name="kodo" key="detachable" value="true"/>
           <field name="id" primary-key="true" column="ID"/>
           <field name="source" column="SOURCE"/>
           <field name="flags" column="FLAGS"/>
           <field name="status" column="STATUS"/>
           <field name="createdBy" column="CREATEDBY"/>
           <field name="createdStamp" column="CREATEDSTAMP"/>
       </class>
        <class name="CompoundKeyUser" objectid-class="CompoundKeyUserId" table="SEAN.EBIGUSER">
           <field name="id" primary-key="true" column="ID"/>
           <field name="source" primary-key="true" column="SOURCE"/>
           <field name="flags" column="FLAGS"/>
           <field name="status" column="STATUS"/>
           <field name="createdBy" column="CREATEDBY"/>
           <field name="createdStamp" column="CREATEDSTAMP"/>
       </class>

When trying to do the following query:

PersistenceManager apm = MyPersistenceManager.getManager();

SimpleKeyUser user = (SimpleKeyUser) apm.getObjectById( new SimpleKeyUserId("am4896"), false);
System.out.println(user);

CompoundKeyUser user2 = (CompoundKeyUser) apm.getObjectById( new CompoundKeyUserId("am4896::1"), false);
System.out.println(user2);



the following error occurs.

Some product derivations are being skipped. For information about product derivation status, run:
java org.apache.openjpa.lib.conf.ProductDerivations
58 INFO [Main Thread] openjpa.Runtime - Starting BEA Kodo 4.2.0load03
126 INFO [Main Thread] openjpa.jdbc.JDBC - Using dictionary class "kodo.jdbc.sql.KodoOracleDictionary".
844 WARN [Main Thread] openjpa.MetaData - The class " path.jdo.CompoundKeyUser" listed in the openjpa.MetaDataFactory configuration property could not be loaded; ignoring.
1109 INFO [Main Thread] openjpa.MetaData - Parsing class "path.jdo.SimpleKeyUser".
1177 INFO [Main Thread] openjpa.MetaData - Parsing class "path.jdo.CompoundKeyUser".
1177 INFO [Main Thread] openjpa.MetaData - Parsing class "path.jdo.Magazine".
1495 TRACE [Main Thread] openjpa.jdbc.SQL - executing prepstmnt 33863589 SELECT t0.CREATEDBY, t0.CREATEDSTAMP, t0.FLAGS, t0.SOURCE, t0.STATUS FROM SEAN.EBIGUSER t0 WHERE t0.ID = ? [params=(String) am4896] [reused=0]
1722 TRACE [Main Thread] openjpa.jdbc.SQL - [227 ms] spent
id = am4896
source = 1
default leaf =
status = testing
flags = 1338535512806
Exception in thread "Main Thread" kodo.jdo.FatalUserException: Could not locate metadata for the class using oid "am4896::1" of type "class path.jdo.CompoundKeyUserId". Registered oid type mappings: "{class path.jdo.SimpleKeyUserId=class path.jdo.SimpleKeyUser, class path.jdo.CompoundKeyUserId=null, class path.jdo.Magazine$MagazineId=class path.jdo.Magazine}"
FailedObject: am4896::1 [path.jdo.CompoundKeyUserId]
at org.apache.openjpa.meta.MetaDataRepository.getMetaData(MetaDataRepository.java:1025)
at org.apache.openjpa.kernel.BrokerImpl.newStateManagerImpl(BrokerImpl.java:1176)
at org.apache.openjpa.kernel.BrokerImpl.find(BrokerImpl.java:850)
at org.apache.openjpa.kernel.BrokerImpl.find(BrokerImpl.java:769)
at kodo.kernel.KodoBroker.find(KodoBroker.java:232)
at org.apache.openjpa.kernel.DelegatingBroker.find(DelegatingBroker.java:183)
at kodo.jdo.PersistenceManagerImpl.getObjectById(PersistenceManagerImpl.java:340)
at path.Tester.test(Tester.java:45)
at path.Tester.main(Tester.java:26)


Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.