Jedis and JOhm Error -
i using redis installed on windows via chocolatey , setup jedis , johm in java project. redis server live redis version 2.6 when want save java object 1 in post got error message.
java.lang.nosuchmethoderror: redis.clients.jedis.jedis.sadd(ljava/lang/string;ljava/lang/string;)ljava/lang/long; @ redis.clients.johm.nest.sadd(nest.java:168) @ redis.clients.johm.johm.save(johm.java:220) @ redis.clients.johm.johm.save(johm.java:146)
this java object:
/** * */ package com.smsgh.unitysmpp.messageprocessor; import java.io.serializable; import org.joda.time.datetime; import redis.clients.johm.attribute; import redis.clients.johm.id; import redis.clients.johm.model; /** * @author arsene tochemey gandote class holds messages needs * delivery receipt */ @model public class storedshortmessage implements serializable { /** * */ private static final long serialversionuid = 6185862961624213864l; @id private integer id; // session id @attribute private long smppsessionid; // message id @attribute private string messageid; // esme account number# @attribute private long accountnumber; // esme account id @attribute private string accountid; // esme api pub key @attribute private string apipublickey; // message state @attribute private string messagestate; // network error @attribute private string networkerrorcode; // first 20 characters of message @attribute private string mesgfirstlines; // esme tcp/ip connection @attribute private string ip; // message submitted datetime @attribute private datetime submitdate; // final state date @attribute private datetime donedate; // source address @attribute private byte srcton; @attribute private byte srcnpi; @attribute private string srcaddr; // destination address @attribute private byte destton; @attribute private byte destnpi; @attribute private string destaddr; // delivery state @attribute private char dlrstate; /** * */ public storedshortmessage() { } /** * @return smppsessionid */ public long getsmppsessionid() { return smppsessionid; } /** * @param smppsessionid * smppsessionid set */ public void setsmppsessionid(long smppsessionid) { this.smppsessionid = smppsessionid; } /** * @return messageid */ public string getmessageid() { return messageid; } /** * @param messageid * messageid set */ public void setmessageid(string messageid) { this.messageid = messageid; } /** * @return accountnumber */ public long getaccountnumber() { return accountnumber; } /** * @param accountnumber * accountnumber set */ public void setaccountnumber(long accountnumber) { this.accountnumber = accountnumber; } /** * @return accountid */ public string getaccountid() { return accountid; } /** * @param accountid * accountid set */ public void setaccountid(string accountid) { this.accountid = accountid; } /** * @return apipublickey */ public string getapipublickey() { return apipublickey; } /** * @param apipublickey * apipublickey set */ public void setapipublickey(string apipublickey) { this.apipublickey = apipublickey; } /** * @return messagestate */ public string getmessagestate() { return messagestate; } /** * @param messagestate * messagestate set */ public void setmessagestate(string messagestate) { this.messagestate = messagestate; } /** * @return networkerrorcode */ public string getnetworkerrorcode() { return networkerrorcode; } /** * @param networkerrorcode * networkerrorcode set */ public void setnetworkerrorcode(string networkerrorcode) { this.networkerrorcode = networkerrorcode; } /** * @return mesgfirstlines */ public string getmesgfirstlines() { return mesgfirstlines; } /** * @param mesgfirstlines * mesgfirstlines set */ public void setmesgfirstlines(string mesgfirstlines) { this.mesgfirstlines = mesgfirstlines; } /** * @return ip */ public string getip() { return ip; } /** * @param ip * ip set */ public void setip(string ip) { this.ip = ip; } /** * @return submitdate */ public datetime getsubmitdate() { return submitdate; } /** * @param submitdate * submitdate set */ public void setsubmitdate(datetime submitdate) { this.submitdate = submitdate; } /** * @return donedate */ public datetime getdonedate() { return donedate; } /** * @param donedate * donedate set */ public void setdonedate(datetime donedate) { this.donedate = donedate; } public integer getid() { return id; } public void setid(integer id) { this.id = id; } /** * @return srcton */ public byte getsrcton() { return srcton; } /** * @param srcton * srcton set */ public void setsrcton(byte srcton) { this.srcton = srcton; } /** * @return srcnpi */ public byte getsrcnpi() { return srcnpi; } /** * @param srcnpi * srcnpi set */ public void setsrcnpi(byte srcnpi) { this.srcnpi = srcnpi; } /** * @return srcaddr */ public string getsrcaddr() { return srcaddr; } /** * @param srcaddr * srcaddr set */ public void setsrcaddr(string srcaddr) { this.srcaddr = srcaddr; } /** * @return destton */ public byte getdestton() { return destton; } /** * @param destton * destton set */ public void setdestton(byte destton) { this.destton = destton; } /** * @return destnpi */ public byte getdestnpi() { return destnpi; } /** * @param destnpi * destnpi set */ public void setdestnpi(byte destnpi) { this.destnpi = destnpi; } /** * @return destaddr */ public string getdestaddr() { return destaddr; } /** * @param destaddr * destaddr set */ public void setdestaddr(string destaddr) { this.destaddr = destaddr; } /** * @return dlrstate */ public char getdlrstate() { return dlrstate; } /** * @param dlrstate * dlrstate set */ public void setdlrstate(char dlrstate) { this.dlrstate = dlrstate; } }
can tell me can error? thanks
to solve have download source code , use it. think there bug in jar file downloaded.
Comments
Post a Comment