java - JPA - "no Metadata found for type" exception -


the jpa implementation used in application kodo. when attempting query db entity, weird exception:

org.apache.openjpa.persistence.argumentexception: no metadata found type "class com.verid.ims.model.addressus". class not appear in list of persistent types: [com.verid.ims.model.birthdate, com.verid.ims.model.personname, com.verid.ims.model.addressus, com.rsa.idv.ims.feedback.imsfeedback, com.rsa.idv.ims.notification.imsnotification, com.rsa.idv.ims.provider.imsprovider, com.rsa.idv.ims.notification.notificationentry, com.rsa.idv.ims.enroll.secretuserquestion, com.rsa.idv.ims.enroll.enrollment].

please take account addressus class, according exception not appear in list of persistent types, in list! (bold)

the addressus class mapped in orm.xml file (it's not in persistence.xml descriptor since it's not entity, embeddable). here mapping:

<embeddable class="com.verid.ims.model.addressus">   <attributes>     <basic name="city" />     <basic name="state">       <enumerated>string</enumerated>     </basic>    <basic name="street1" />    <basic name="street2" />    <basic name="zipcode" />    <basic name="suite" />   </attributes> </embeddable> 

needless say, persistence.xml descriptor refers orm.xml file.

the exception happens on environments (not of them), means it's environmental problem. cause this?

i can confirm have same problem. incosistent behaviour. application works fine time (few days) , problem appears. have cluster , problem occures on 1 server in cluster.

after restart of application, openjpa again works fine.

we have problem openjpa works fine till moment , start generate invalid query table. seems class or database metadata have corrupted in moment. after problem occures, invalid query generated.

do have new information problem?


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -