java - POJO Annotations are not being reflected with Kundera -


i writing 1 simple spring batch application reads data file , write cassandra db.

if run cassandra crud operations in simple java project 1 single below dependency, able run properly. , execute crud operations successfully.

dependency : com.impetus.client kundera-cassandra 2.5

now here comes problem!

i integrating same code spring batch application. ending below exception:

10:22:19,816 debug threadpooltaskexecutor-1 dao.jdbcstepexecutiondao:203 - truncating long message before update of stepexecution, original message is: org.springframework.batch.core.jobexecutionexception: partition handler returned unsuccessful step     @ org.springframework.batch.core.partition.support.partitionstep.doexecute(partitionstep.java:110)     @ org.springframework.batch.core.step.abstractstep.execute(abstractstep.java:196)     @ org.springframework.batch.core.job.abstractjob.handlestep(abstractjob.java:375)     @ org.springframework.batch.core.job.flow.flowjob.access$100(flowjob.java:43)     @ org.springframework.batch.core.job.flow.flowjob$jobflowexecutor.executestep(flowjob.java:135)     @ org.springframework.batch.core.job.flow.support.state.stepstate.handle(stepstate.java:60)     @ org.springframework.batch.core.job.flow.support.simpleflow.resume(simpleflow.java:144)     @ org.springframework.batch.core.job.flow.support.simpleflow.start(simpleflow.java:124)     @ org.springframework.batch.core.job.flow.flowjob.doexecute(flowjob.java:103)     @ org.springframework.batch.core.job.abstractjob.execute(abstractjob.java:266)     @ org.springframework.batch.core.launch.support.simplejoblauncher$1.run(simplejoblauncher.java:118)     @ java.util.concurrent.threadpoolexecutor.runworker(unknown source)     @ java.util.concurrent.threadpoolexecutor$worker.run(unknown source)     @ java.lang.thread.run(unknown source) ; com.impetus.kundera.kunderaexception: com.impetus.kundera.kunderaexception: entitymatadata should not null     @ com.impetus.kundera.persistence.entitymanagerimpl.persist(entitymanagerimpl.java:174)     @ org.springframework.batch.admin.zipfeed.ziplocationfeedwriter.write(ziplocationfeedwriter.java:37)     @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)     @ sun.reflect.nativemethodaccessorimpl.invoke(unknown source)     @ sun.reflect.delegatingmethodaccessorimpl.invoke(unknown source)     @ java.lang.reflect.method.invoke(unknown source) 

now compared both application debugging further. looks below annotation not getting reflected while running spring batch application. fyi, have provided bean using crud operations. same bean working standalone application (junit).

please let me know how working. looks annotations not getting reflected while running batch application. (fyi, have taken screen shot easy understanding)

   @entity    @table(name = "ziplookup", schema = "zipdb@cassandra_pu")    public class ziplocationbean {            @id           @column(name = "zip_code")           private string zipcode;           @column(name = "city")           private string city;           @column(name = "state")           private string state;           @column(name = "country")           private string country;           @column(name = "latitude")           private double latitude;           @column(name = "longitude")           private double longitude;           // getters , setters;    } 

please verify if have:

<bean class="org.springframework.orm.jpa.support.persistenceannotationbeanpostprocessor" /> present in spring configuration.

-vivek


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -