Play Framework No Entity Metadata found for the class

393 views
Skip to first unread message

Bo Vargas

unread,
Jun 5, 2013, 2:39:31 PM6/5/13
to kundera...@googlegroups.com
<persistence-unit name="hbaseTest">
        <provider>com.impetus.kundera.KunderaPersistence</provider>
        <class>models.Item</class>
        <class>models.ApiResponse</class>
        <class>models.Counter</class>
        <class>models.GenList</class>
        <exclude-unlisted-classes>true</exclude-unlisted-classes>
        <properties>
            <property name="kundera.nodes" value="dc1-r1-n6.qwestcolo.local,dc1-r1-n5.qwestcolo.local,dc1-r2-n5.qwestcolo.local" />
            <property name="kundera.port" value="5181" />
            <property name="kundera.keyspace" value="cision" />
            <property name="kundera.dialect" value="hbase" />
            <property name="kundera.client.lookup.class" value="com.impetus.client.hbase.HBaseClientFactory" />
            <property name="kundera.cache.provider.class"  value="com.impetus.kundera.cache.ehcache.EhCacheProvider" />
            <property name="kundera.cache.config.resource" value="/ehcache-test.xml" />
            <property name="kundera.ddl.auto.prepare" value="create" />
            <property name="kundera.client.property" value="hbase.xml" />
        </properties>
    </persistence-unit>

Here's the hbase.xml file
<?xml version="1.0" encoding="UTF-8"?>
<clientProperties>
<datastores>
<dataStore>
<name>hbase</name>
<connection>
<properties>
<property name="hbase.zookeeper.quorum" value="dc1-r1-n6.qwestcolo.local,dc1-r1-n5.qwestcolo.local,dc1-r2-n5.qwestcolo.local"></property>
<property name="hbase.zookeeper.property.clientPort" value="5181"></property>
</properties>
</connection>
<schemas>
<schema>
<name>BoTestItemMain</name>
<tables>
<table>
<name>BoTestItemMain</name>
<properties>
<property name="TTL" value="12345678" />
<property name="VERSIONS" value="6" />
<property name="MIN_VERSIONS" value="3" />
<property name="COMPRESSION" value="GZ" />
<property name="COMPRESSION_COMPACT" value="GZ" />
</properties>
</table>
</tables>
</schema>
</schemas>
</dataStore>
</datastores>
</clientProperties>

Here's my item.java class
@Entity
@XmlRootElement(name = "Item")
@Table(name = "BoTestItemMain", schema = "cision@hbaseTest")
public class Item {
/////

Here's the Exception
[debug] c.i.k.p.EntityManagerImpl - Created EntityManager for persistence unit : hbaseTest
[warn] c.i.k.m.KunderaMetadataManager - No Entity metadata found for the class class models.Item. Any CRUD operation on this entity will fail.If your entity is for RDBMS, make sure you put fully qualified entity class name under <class></class> tag in persistence.xml for RDBMS persistence unit. Returning null value.
[error] application - 

! @6eg8lof9h - Internal server error, for (POST) [/item.json] ->

play.api.Application$$anon$1: Execution exception[[KunderaException: com.impetus.kundera.KunderaException: Entitymatadata should not be null]]

I'm not sure if it's Play that's not playing nice or an issue with Kundera. 




Vivek Mishra

unread,
Jun 5, 2013, 9:21:17 PM6/5/13
to kundera...@googlegroups.com
Can you give it a try with latest trunk?

-Vivek
________________________________________
From: kundera...@googlegroups.com [kundera...@googlegroups.com] on behalf of Bo Vargas [varg...@gmail.com]
Sent: 06 June 2013 00:09
To: kundera...@googlegroups.com
Subject: {kundera-discuss} Play Framework No Entity Metadata found for the class
--
You received this message because you are subscribed to the Google Groups "kundera-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kundera-discu...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



________________________________






NOTE: This message may contain information that is confidential, proprietary, privileged or otherwise protected by law. The message is intended solely for the named addressee. If received in error, please destroy and notify the sender. Any use of this email is prohibited when received in error. Impetus does not represent, warrant and/or guarantee, that the integrity of this communication has been maintained nor that the communication is free of errors, virus, interception or interference.

Bo Vargas

unread,
Jun 6, 2013, 11:54:40 AM6/6/13
to kundera...@googlegroups.com
tried it with the latest 2.6-snapshot and still got the same error. 

[warn] c.i.k.m.KunderaMetadataManager - No Entity metadata found for the class class models.Item. Any CRUD operation on this entity will fail.If your entity is for RDBMS, make sure you put fully qualified entity class name under <class></class> tag in persistence.xml for RDBMS persistence unit. Returning null value.
com.impetus.kundera.KunderaException: com.impetus.kundera.KunderaException: Entitymatadata should not be null
at com.impetus.kundera.persistence.EntityManagerImpl.persist(EntityManagerImpl.java:174)





--
You received this message because you are subscribed to a topic in the Google Groups "kundera-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kundera-discuss/y1YVpQFznUs/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to kundera-discu...@googlegroups.com.

Vivek Mishra

unread,
Jun 6, 2013, 12:22:20 PM6/6/13
to kundera...@googlegroups.com
Few questions, in case of war deployment:

1. your entity classes are under WEB-INF/classes, in case of war deployment?
2. persistence.xml is under WEB-INF/META-INF/persistence.xml?

Also, Could you please share bit more on error logs?

-Vivek

Bo Vargas

unread,
Jun 6, 2013, 12:36:25 PM6/6/13
to kundera...@googlegroups.com
I'm using Play Framework.

/conf
     /META-INF
         /persistence.xml

Here's the code
/// Post
Object o = request().body().asJson();
Item item = (Item) BaseApiController.mapper.readValue(o.toString(), Item.class);
emf = Persistence.createEntityManagerFactory("hbaseTest");
em = emf.createEntityManager();
em.persist(item);
em.close();
emf.close();


[info] c.i.k.l.CoreLoader - Loading Kundera Core Metdata ... 
[info] c.i.k.KunderaPersistence - Loading Application MetaData and Initializing Client(s) For Persistence Unit(s) hbaseTest
[debug] c.i.k.c.Configurator - Loading configuration for :PersistenceUnitConfiguration
[info] c.i.k.c.PersistenceUnitConfiguration - Loading Metadata from persistence.xml ...
[info] c.i.k.c.PersistenceUnitConfiguration - Finishing persistence unit metadata configuration ...
[debug] c.i.k.c.Configurator - Loading configuration for :MetamodelConfiguration
[debug] c.i.k.c.MetamodelConfiguration - Loading Entity Metadata...
[warn] c.i.k.c.ClasspathReader - Incorrect URL in the classpath of a jar file [file:/home/bo/play-2.1.1/repository/local/xalan/xalan/2.7.1/jars/xalan.jar]: xercesImpl.jar
[warn] c.i.k.c.ClasspathReader - Incorrect URL in the classpath of a jar file [file:/home/bo/play-2.1.1/repository/local/xalan/xalan/2.7.1/jars/xalan.jar]: xml-apis.jar
[warn] c.i.k.c.ClasspathReader - Incorrect URL in the classpath of a jar file [file:/home/bo/play-2.1.1/repository/local/xalan/xalan/2.7.1/jars/xalan.jar]: serializer.jar
[warn] c.i.k.c.ClasspathReader - Incorrect URL in the classpath of a jar file [file:/home/bo/play-2.1.1/repository/local/xalan/serializer/2.7.1/jars/serializer.jar]: xml-apis.jar
[warn] c.i.k.c.ClasspathReader - Incorrect URL in the classpath of a jar file [file:/home/bo/play-2.1.1/framework/../repository/cache/com.sun.xml.bind/jaxb-impl/jars/jaxb-impl-2.2.3-1.jar]: jaxb-api.jar
[warn] c.i.k.c.ClasspathReader - Incorrect URL in the classpath of a jar file [file:/home/bo/play-2.1.1/framework/../repository/cache/com.sun.xml.bind/jaxb-impl/jars/jaxb-impl-2.2.3-1.jar]: activation.jar
[warn] c.i.k.c.ClasspathReader - Incorrect URL in the classpath of a jar file [file:/home/bo/play-2.1.1/framework/../repository/cache/com.sun.xml.bind/jaxb-impl/jars/jaxb-impl-2.2.3-1.jar]: jsr173_1.0_api.jar
[warn] c.i.k.c.ClasspathReader - Incorrect URL in the classpath of a jar file [file:/home/bo/play-2.1.1/framework/../repository/cache/com.sun.xml.bind/jaxb-impl/jars/jaxb-impl-2.2.3-1.jar]: jaxb1-impl.jar
[warn] c.i.k.c.ClasspathReader - Incorrect URL in the classpath of a jar file [file:/home/bo/play-2.1.1/repository/local/xalan/xalan/2.7.1/jars/xalan.jar]: xercesImpl.jar
[warn] c.i.k.c.ClasspathReader - Incorrect URL in the classpath of a jar file [file:/home/bo/play-2.1.1/repository/local/xalan/xalan/2.7.1/jars/xalan.jar]: xml-apis.jar
[warn] c.i.k.c.ClasspathReader - Incorrect URL in the classpath of a jar file [file:/home/bo/play-2.1.1/repository/local/xalan/xalan/2.7.1/jars/xalan.jar]: serializer.jar
[warn] c.i.k.c.ClasspathReader - Incorrect URL in the classpath of a jar file [file:/home/bo/play-2.1.1/repository/local/xalan/serializer/2.7.1/jars/serializer.jar]: xml-apis.jar
[warn] c.i.k.c.ClasspathReader - Incorrect URL in the classpath of a jar file [file:/home/bo/play-2.1.1/framework/../repository/cache/com.sun.xml.bind/jaxb-impl/jars/jaxb-impl-2.2.3-1.jar]: jaxb-api.jar
[warn] c.i.k.c.ClasspathReader - Incorrect URL in the classpath of a jar file [file:/home/bo/play-2.1.1/framework/../repository/cache/com.sun.xml.bind/jaxb-impl/jars/jaxb-impl-2.2.3-1.jar]: activation.jar
[warn] c.i.k.c.ClasspathReader - Incorrect URL in the classpath of a jar file [file:/home/bo/play-2.1.1/framework/../repository/cache/com.sun.xml.bind/jaxb-impl/jars/jaxb-impl-2.2.3-1.jar]: jsr173_1.0_api.jar
[warn] c.i.k.c.ClasspathReader - Incorrect URL in the classpath of a jar file [file:/home/bo/play-2.1.1/framework/../repository/cache/com.sun.xml.bind/jaxb-impl/jars/jaxb-impl-2.2.3-1.jar]: jaxb1-impl.jar
[warn] c.i.k.c.ClasspathReader - Incorrect URL in the classpath of a jar file [file:/home/bo/play-2.1.1/repository/local/xalan/xalan/2.7.1/jars/xalan.jar]: xercesImpl.jar
[warn] c.i.k.c.ClasspathReader - Incorrect URL in the classpath of a jar file [file:/home/bo/play-2.1.1/repository/local/xalan/xalan/2.7.1/jars/xalan.jar]: xml-apis.jar
[warn] c.i.k.c.ClasspathReader - Incorrect URL in the classpath of a jar file [file:/home/bo/play-2.1.1/repository/local/xalan/xalan/2.7.1/jars/xalan.jar]: serializer.jar
[warn] c.i.k.c.ClasspathReader - Incorrect URL in the classpath of a jar file [file:/home/bo/play-2.1.1/repository/local/xalan/serializer/2.7.1/jars/serializer.jar]: xml-apis.jar
[warn] c.i.k.c.ClasspathReader - Incorrect URL in the classpath of a jar file [file:/home/bo/play-2.1.1/framework/../repository/cache/com.sun.xml.bind/jaxb-impl/jars/jaxb-impl-2.2.3-1.jar]: jaxb-api.jar
[warn] c.i.k.c.ClasspathReader - Incorrect URL in the classpath of a jar file [file:/home/bo/play-2.1.1/framework/../repository/cache/com.sun.xml.bind/jaxb-impl/jars/jaxb-impl-2.2.3-1.jar]: activation.jar
[warn] c.i.k.c.ClasspathReader - Incorrect URL in the classpath of a jar file [file:/home/bo/play-2.1.1/framework/../repository/cache/com.sun.xml.bind/jaxb-impl/jars/jaxb-impl-2.2.3-1.jar]: jsr173_1.0_api.jar
[warn] c.i.k.c.ClasspathReader - Incorrect URL in the classpath of a jar file [file:/home/bo/play-2.1.1/framework/../repository/cache/com.sun.xml.bind/jaxb-impl/jars/jaxb-impl-2.2.3-1.jar]: jaxb1-impl.jar
[warn] c.i.k.c.ClasspathReader - Incorrect URL in the classpath of a jar file [file:/home/bo/play-2.1.1/repository/local/xalan/xalan/2.7.1/jars/xalan.jar]: xercesImpl.jar
[warn] c.i.k.c.ClasspathReader - Incorrect URL in the classpath of a jar file [file:/home/bo/play-2.1.1/repository/local/xalan/xalan/2.7.1/jars/xalan.jar]: xml-apis.jar
[warn] c.i.k.c.ClasspathReader - Incorrect URL in the classpath of a jar file [file:/home/bo/play-2.1.1/repository/local/xalan/xalan/2.7.1/jars/xalan.jar]: serializer.jar
[warn] c.i.k.c.ClasspathReader - Incorrect URL in the classpath of a jar file [file:/home/bo/play-2.1.1/repository/local/xalan/serializer/2.7.1/jars/serializer.jar]: xml-apis.jar
[warn] c.i.k.c.ClasspathReader - Incorrect URL in the classpath of a jar file [file:/home/bo/play-2.1.1/framework/../repository/cache/com.sun.xml.bind/jaxb-impl/jars/jaxb-impl-2.2.3-1.jar]: jaxb-api.jar
[warn] c.i.k.c.ClasspathReader - Incorrect URL in the classpath of a jar file [file:/home/bo/play-2.1.1/framework/../repository/cache/com.sun.xml.bind/jaxb-impl/jars/jaxb-impl-2.2.3-1.jar]: activation.jar
[warn] c.i.k.c.ClasspathReader - Incorrect URL in the classpath of a jar file [file:/home/bo/play-2.1.1/framework/../repository/cache/com.sun.xml.bind/jaxb-impl/jars/jaxb-impl-2.2.3-1.jar]: jsr173_1.0_api.jar
[warn] c.i.k.c.ClasspathReader - Incorrect URL in the classpath of a jar file [file:/home/bo/play-2.1.1/framework/../repository/cache/com.sun.xml.bind/jaxb-impl/jars/jaxb-impl-2.2.3-1.jar]: jaxb1-impl.jar
[debug] c.i.k.c.Configurator - Loading configuration for :SchemaConfiguration
[info] c.i.k.c.SchemaConfiguration - Configuring schema export for: hbaseTest
[debug] c.i.k.c.Configurator - Loading configuration for :ClientFactoryConfiguraton
[info] c.i.k.c.ClientFactoryConfiguraton - Loading Client(s) For Persistence Unit(s) hbaseTest
[info] c.i.k.c.ClientResolver - Initializing client factory for: hbaseTest
[info] c.i.k.c.ClientResolver - Finishing factory initialization
[info] c.i.k.l.GenericClientFactory - Loading client metadata for persistence unit : hbaseTest
[info] c.i.k.l.GenericClientFactory - Initializing client for persistence unit : hbaseTest
[warn] o.a.h.h.HBaseConfiguration - instantiating HBaseConfiguration() is deprecated. Please use HBaseConfiguration#create() to construct a plain Configuration
[info] c.i.k.l.GenericClientFactory - Constructing pool for persistence unit : hbaseTest
[info] c.i.k.p.EntityManagerFactoryImpl - EntityManagerFactory created for persistence unit : hbaseTest
[debug] c.i.k.p.EntityManagerImpl - Creating EntityManager for persistence unit : hbaseTest
[info] c.i.k.c.ClientResolver - Returning client instance for:hbaseTest
[info] c.i.k.l.GenericClientFactory - Returning threadsafe used client instance for persistence unit : hbaseTest
[debug] o.a.h.s.Groups -  Creating new Groups object
[debug] o.a.h.s.Groups - Group mapping impl=org.apache.hadoop.security.ShellBasedUnixGroupsMapping; cacheTimeout=300000
[debug] o.a.h.s.UserGroupInformation - hadoop login
[debug] o.a.h.s.UserGroupInformation - hadoop login commit
[debug] o.a.h.s.UserGroupInformation - using local user:UnixPrincipal: bo
[debug] o.a.h.s.UserGroupInformation - UGI loginUser:bo
[debug] o.a.h.h.z.ZKUtil - hconnection opening connection to ZooKeeper with ensemble (dc1-r1-n5.qwestcolo.local:5181,dc1-r1-n6.qwestcolo.local:5181,dc1-r2-n5.qwestcolo.local:5181)
[info] o.a.z.ZooKeeper - Client environment:zookeeper.version=3.4.3-1240972, built on 02/06/2012 10:48 GMT
[info] o.a.z.ZooKeeper - Client environment:host.name=boVirtualBox
[info] o.a.z.ZooKeeper - Client environment:java.version=1.7.0_07
[info] o.a.z.ZooKeeper - Client environment:java.vendor=Oracle Corporation
[info] o.a.z.ZooKeeper - Client environment:java.home=/usr/lib/jvm/java-7-openjdk-amd64/jre
[info] o.a.z.ZooKeeper - Client environment:java.class.path=/home/bo/play-2.1.1/framework/sbt/sbt-launch.jar
[info] o.a.z.ZooKeeper - Client environment:java.library.path=/usr/java/packages/lib/amd64:/usr/lib/jni:/lib:/usr/lib:/home/bo/workspace/ramrod/Counter/target/native_libraries/64bits
[info] o.a.z.ZooKeeper - Client environment:java.io.tmpdir=/tmp
[info] o.a.z.ZooKeeper - Client environment:java.compiler=<NA>
[info] o.a.z.ZooKeeper - Client environment:os.name=Linux
[info] o.a.z.ZooKeeper - Client environment:os.arch=amd64
[info] o.a.z.ZooKeeper - Client environment:os.version=3.2.0-32-generic
[info] o.a.z.ZooKeeper - Client environment:user.name=bo
[info] o.a.z.ZooKeeper - Client environment:user.home=/home/bo
[info] o.a.z.ZooKeeper - Client environment:user.dir=/home/bo/workspace/ramrod/Counter
[info] o.a.z.ZooKeeper - Initiating client connection, connectString=dc1-r1-n5.qwestcolo.local:5181,dc1-r1-n6.qwestcolo.local:5181,dc1-r2-n5.qwestcolo.local:5181 sessionTimeout=180000 watcher=hconnection
[debug] o.a.z.ClientCnxn - zookeeper.disableAutoWatchReset is false
[info] o.a.z.ClientCnxn - Opening socket connection to server /10.12.212.10:5181
[info] o.a.h.h.z.RecoverableZooKeeper - The identifier of this process is 9508@boVirtualBox
[info] o.a.z.c.ZooKeeperSaslClient - Client will not SASL-authenticate because the default JAAS configuration section 'Client' could not be found. If you are not using SASL, you may ignore this. On the other hand, if you expected SASL to work, please fix your JAAS configuration.
[info] o.a.z.ClientCnxn - Socket connection established to dc1-r1-n5/10.12.212.10:5181, initiating session
[debug] o.a.z.ClientCnxn - Session establishment request sent on dc1-r1-n5/10.12.212.10:5181
[warn] o.a.z.ClientCnxnSocket - Connected to an old server; r-o mode will be unavailable
[info] o.a.z.ClientCnxn - Session establishment complete on server dc1-r1-n5/10.12.212.10:5181, sessionid = 0x3ed7d4fb6b1a86, negotiated timeout = 40000
[debug] o.a.h.h.z.ZooKeeperWatcher - hconnection Received ZooKeeper Event, type=None, state=SyncConnected, path=null
[debug] o.a.z.ClientCnxn - Reading reply sessionid:0x3ed7d4fb6b1a86, packet:: clientPath:null serverPath:null finished:false header:: 1,3  replyHeader:: 1,85899440272,0  request:: '/hbase/master,T  response:: s{81604378994,81604378994,1368575043751,1368575043751,0,0,0,161748408987680783,83,0,81604378994} 
[debug] o.a.h.h.z.ZooKeeperWatcher - hconnection-0x3ed7d4fb6b1a86 connected
[debug] o.a.h.h.z.ZKUtil - hconnection-0x3ed7d4fb6b1a86 Set watcher on existing znode /hbase/master
[debug] o.a.z.ClientCnxn - Reading reply sessionid:0x3ed7d4fb6b1a86, packet:: clientPath:null serverPath:null finished:false header:: 2,4  replyHeader:: 2,85899440272,0  request:: '/hbase/master,T  response:: #ffffffff0001f3131393932406463312d72312d6e382e7177657374636f6c6f2e6c6f63616c006463312d72312d6e382e7177657374636f6c6f2e6c6f63616c2c36303030302c31333638353735303433353036,s{81604378994,81604378994,1368575043751,1368575043751,0,0,0,161748408987680783,83,0,81604378994} 
[debug] o.a.h.h.z.ZKUtil - hconnection-0x3ed7d4fb6b1a86 Retrieved 47 byte(s) of data from znode /hbase/master and set watcher; \x00\x00dc1-r1-n8.qwestcolo.l...
[debug] o.a.z.ClientCnxn - Reading reply sessionid:0x3ed7d4fb6b1a86, packet:: clientPath:null serverPath:null finished:false header:: 3,3  replyHeader:: 3,85899440272,0  request:: '/hbase/root-region-server,T  response:: s{81604491862,81604491862,1369163216122,1369163216122,0,0,0,0,81,0,81604491862} 
[debug] o.a.h.h.z.ZKUtil - hconnection-0x3ed7d4fb6b1a86 Set watcher on existing znode /hbase/root-region-server
[debug] o.a.z.ClientCnxn - Reading reply sessionid:0x3ed7d4fb6b1a86, packet:: clientPath:null serverPath:null finished:false header:: 4,4  replyHeader:: 4,85899440272,0  request:: '/hbase/root-region-server,T  response:: #ffffffff0001f3132383435406463312d72322d6e352e7177657374636f6c6f2e6c6f63616c6463312d72322d6e352e7177657374636f6c6f2e6c6f63616c2c36303032302c31333639313631303933313632,s{81604491862,81604491862,1369163216122,1369163216122,0,0,0,0,81,0,81604491862} 
[debug] o.a.h.h.z.ZKUtil - hconnection-0x3ed7d4fb6b1a86 Retrieved 45 byte(s) of data from znode /hbase/root-region-server and set watcher; dc1-r2-n5.qwestcolo.local,600...
[debug] o.a.z.ClientCnxn - Reading reply sessionid:0x3ed7d4fb6b1a86, packet:: clientPath:null serverPath:null finished:false header:: 5,3  replyHeader:: 5,85899440272,0  request:: '/hbase,F  response:: s{4294967468,4294967468,1355763522699,1355763522699,0,107,0,0,0,11,81604491862} 
[debug] o.a.z.ClientCnxn - Reading reply sessionid:0x3ed7d4fb6b1a86, packet:: clientPath:null serverPath:null finished:false header:: 6,3  replyHeader:: 6,85899440272,0  request:: '/hbase/hbaseid,F  response:: s{4294967478,81604378996,1355763523084,1368575044038,20,0,0,0,72,0,4294967478} 
[debug] o.a.z.ClientCnxn - Reading reply sessionid:0x3ed7d4fb6b1a86, packet:: clientPath:null serverPath:null finished:false header:: 7,4  replyHeader:: 7,85899440272,0  request:: '/hbase/hbaseid,F  response:: #ffffffff0001f3131393932406463312d72312d6e382e7177657374636f6c6f2e6c6f63616c61653966343532362d373538622d343663322d623338662d353361343939653738643037,s{4294967478,81604378996,1355763523084,1368575044038,20,0,0,0,72,0,4294967478} 
[debug] o.a.h.h.z.ZKUtil - hconnection-0x3ed7d4fb6b1a86 Retrieved 36 byte(s) of data from znode /hbase/hbaseid; data=ae9f4526-758b-46c2-b38f-53a49...
[debug] o.a.h.i.HBaseRPC - Using org.apache.hadoop.hbase.ipc.WritableRpcEngine for org.apache.hadoop.hbase.ipc.HMasterInterface
[debug] o.a.h.i.HBaseClient - The ping interval is60000ms.
[debug] o.a.h.i.HBaseClient - Connecting to org.apache.hadoop.hbase.ipc.HBaseClient$ConnectionId@b6038b4e
[debug] o.a.h.i.HBaseClient - IPC Client (47) connection to dc1-r1-n8.qwestcolo.local/10.12.212.13:60000 from bo sending #0
[debug] o.a.h.i.HBaseClient - IPC Client (47) connection to dc1-r1-n8.qwestcolo.local/10.12.212.13:60000 from bo: starting, having connections 1
[debug] o.a.h.i.HBaseClient - IPC Client (47) connection to dc1-r1-n8.qwestcolo.local/10.12.212.13:60000 from bo got value #0
[debug] o.a.h.i.RPCEngine - Call: getProtocolVersion 365
[debug] o.a.h.i.HBaseClient - IPC Client (47) connection to dc1-r1-n8.qwestcolo.local/10.12.212.13:60000 from bo sending #1
[debug] o.a.h.i.HBaseClient - IPC Client (47) connection to dc1-r1-n8.qwestcolo.local/10.12.212.13:60000 from bo got value #1
[debug] o.a.h.i.RPCEngine - Call: getProtocolVersion 16
[debug] o.a.h.i.HBaseClient - IPC Client (47) connection to dc1-r1-n8.qwestcolo.local/10.12.212.13:60000 from bo sending #2
[debug] o.a.h.i.HBaseClient - IPC Client (47) connection to dc1-r1-n8.qwestcolo.local/10.12.212.13:60000 from bo got value #2
[debug] o.a.h.i.RPCEngine - Call: isMasterRunning 16
[debug] c.i.k.p.EntityManagerImpl - Created EntityManager for persistence unit : hbaseTest
[warn] c.i.k.m.KunderaMetadataManager - No Entity metadata found for the class class models.Item. Any CRUD operation on this entity will fail.If your entity is for RDBMS, make sure you put fully qualified entity class name under <class></class> tag in persistence.xml for RDBMS persistence unit. Returning null value.
com.impetus.kundera.KunderaException: com.impetus.kundera.KunderaException: Entitymatadata should not be null
at com.impetus.kundera.persistence.EntityManagerImpl.persist(EntityManagerImpl.java:174)
at controllers.ItemApiController.addItem(ItemApiController.java:65)
at Routes$$anonfun$routes$1$$anonfun$applyOrElse$9$$anonfun$apply$9.apply(routes_routing.scala:157)
at Routes$$anonfun$routes$1$$anonfun$applyOrElse$9$$anonfun$apply$9.apply(routes_routing.scala:157)
at play.core.Router$HandlerInvoker$$anon$6$$anon$2.invocation(Router.scala:164)
at play.core.Router$Routes$$anon$1.invocation(Router.scala:345)
at play.core.j.JavaAction$$anon$1.call(JavaAction.scala:31)
at play.core.j.JavaAction$$anon$2.apply(JavaAction.scala:74)
at play.core.j.JavaAction$$anon$2.apply(JavaAction.scala:73)
at play.libs.F$Promise$PromiseActor.onReceive(F.java:420)
at akka.actor.UntypedActor$$anonfun$receive$1.applyOrElse(UntypedActor.scala:159)
at akka.actor.ActorCell.receiveMessage(ActorCell.scala:425)
at akka.actor.ActorCell.invoke(ActorCell.scala:386)
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:230)
at akka.dispatch.Mailbox.run(Mailbox.scala:212)
at akka.dispatch.ForkJoinExecutorConfigurator$MailboxExecutionTask.exec(AbstractDispatcher.scala:502)
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:262)
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:975)
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1478)
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104)
Caused by: com.impetus.kundera.KunderaException: Entitymatadata should not be null
at com.impetus.kundera.persistence.PersistenceDelegator.getClient(PersistenceDelegator.java:542)
at com.impetus.kundera.persistence.PersistenceDelegator.persist(PersistenceDelegator.java:147)
at com.impetus.kundera.persistence.EntityManagerImpl.persist(EntityManagerImpl.java:168)
... 19 more
[debug] o.a.h.i.HBaseClient - IPC Client (47) connection to dc1-r1-n8.qwestcolo.local/10.12.212.13:60000 from bo: closed

Vivek Mishra

unread,
Jun 6, 2013, 12:42:23 PM6/6/13
to kundera...@googlegroups.com
Path to entity classes? Are they packaged within a jar?

-Vivek

Bo Vargas

unread,
Jun 6, 2013, 12:55:25 PM6/6/13
to kundera...@googlegroups.com
I created a simple app, so left the package as models. The fully qualified name being models.Item

<persistence-unit name="hbaseTest">
        <provider>com.impetus.kundera.KunderaPersistence</provider>
        <class>models.Item</class>


package models;

import ////

@Entity
@XmlRootElement(name = "Item")
@Table(name = "BoTestItemMain", schema = "cision@hbaseTest")
public class Item {

Bo Vargas

unread,
Jun 6, 2013, 1:12:06 PM6/6/13
to kundera...@googlegroups.com
k, I got it to work using "play start". For whatever reason "play run" doesn't work.  

Bo Vargas

unread,
Jun 6, 2013, 1:12:32 PM6/6/13
to kundera...@googlegroups.com
Thanks for the help!!

Amresh

unread,
Jun 30, 2013, 3:34:13 PM6/30/13
to kundera...@googlegroups.com
Hi Bo,

play run command starts server in debug mode with automatic compilation enabled. This means classes are compiled on the fly and Kundera won't be able to read classes when it initializes first.

"play run" command is intended for development environment only (For production systems "play start" should be used). If you want to get kundera working correctly in development mode, next thing you can try is putting all your entity classes in one jar file and copy it to lib folder under your project root.

HTH,
Amresh

kamaraju prathi

unread,
Apr 21, 2015, 12:29:32 PM4/21/15
to kundera...@googlegroups.com
Hi Amresh , 

I tried creating a jar and kept my entity classes under it , still i am facing the same issue , Do we have to do any other configuration ?
Can you help me ?

kamaraju prathi

unread,
Apr 23, 2015, 2:30:39 AM4/23/15
to kundera...@googlegroups.com
Hi Bo, 

I too have the same issue , how did u run play start , i am using intellij with sbt and activator .


when i try to run activator start it gives me 

The input line is too long.
The syntax of the command is incorrect.
Can you help me out fixing it , so that that fixes my entity probem 
Reply all
Reply to author
Forward
0 new messages