getParent() when searched in child Docuement

2018-08-20 Thread Rushikesh Garadade
Hi All,
I have mail as Docuement  and mail's attachments as childDocument  in solr.
 I am trying to write spring data application to search in all fields and
return mail document.
There is one solution :
{!parent which="" v=}

but for this to work->  "" keyword should only be
present in attachement document(child) and not in Mail docuement(parent).

is there any way via which
1) We search for any keyword and if it is present in mail attachment
document its respective mail (its parent) should be returned.
( I have used copy field '_text_" which copy all fields data in it.)
2) If we Search for any specific field in attahcment its parent should
return . For example "get mail document whose attachmentName:"abc.txt"".

I want to know how to implement this in Spring Data. (there is some method
called getParent() however I am not sure how to use it).

Thanks ,
Rushikesh Garadade


Explode kind of function in Solr

2018-09-13 Thread Rushikesh Garadade
Hello All,
Is there any functionality in solr that can convert (explode) results from
1 document to many docuement.
*Example: *
Lets say I have doc:
{
id:1,
phone: [11,22,33]
}

when I query to solr with id=1 I want result as below:
[{
id:1,
phone:11
},
{
id:1,
phone:22
},
{
d:1,
phone:33
}]

Please let me know if this is possible in Solr , if Yes how?

Thanks,
Rushikesh Garadade


Re: Explode kind of function in Solr

2018-09-17 Thread Rushikesh Garadade
@joels...@gmail.com
Thanks for the reply. This is what I want.
However My current implementation is with Spring boot Solr, I did not find
catesianProduct implementation in sping boot.

Please let me know in case if you know anything around "impementaion of
cartesianProduct in spring data.

Thanks,
Rushikesh Garadade

On Thu, Sep 13, 2018 at 6:48 PM Joel Bernstein  wrote:

> Solr Streaming Expressions allow you to do this with the cartesianProduct
> function:
>
>
> http://lucene.apache.org/solr/guide/7_4/stream-decorator-reference.html#cartesianproduct
>
> The structure of the expression is:
>
> cartesianProduct(search(...))
>
>
>
> Joel Bernstein
> http://joelsolr.blogspot.com/
>
>
> On Thu, Sep 13, 2018 at 6:21 AM Rushikesh Garadade <
> rushikeshgarad...@gmail.com> wrote:
>
> > Hello All,
> > Is there any functionality in solr that can convert (explode) results
> from
> > 1 document to many docuement.
> > *Example: *
> > Lets say I have doc:
> > {
> > id:1,
> > phone: [11,22,33]
> > }
> >
> > when I query to solr with id=1 I want result as below:
> > [{
> > id:1,
> > phone:11
> > },
> > {
> > id:1,
> > phone:22
> > },
> > {
> > d:1,
> > phone:33
> > }]
> >
> > Please let me know if this is possible in Solr , if Yes how?
> >
> > Thanks,
> > Rushikesh Garadade
> >
>


Spring Boot Solr+ Kerberos+ Ambari

2019-02-21 Thread Rushikesh Garadade
Hi All,

I am trying to set Kerberos for Solr which is installed on Hortonworks
Ambari.

Q1. Is Ranger a mandatory component for Solr Kerberos configuration on
ambari.?

I am getting little confused with documents available on internet for this.
I tried to do without ranger but not getting any success.

If is there any good document for the same, please let me know.

Thanks,
Rushikesh Garadade.


Re: Spring Boot Solr+ Kerberos+ Ambari

2019-02-21 Thread Rushikesh Garadade
Hi Furkan,
I think the link you provided is for ranger audit setting, please correct
me if wrong?

I use HDP 2.6.5. which has Solr 5.6

Thank you,
Rushikesh Garadade


On Thu, Feb 21, 2019, 2:57 PM Furkan KAMACI  wrote:

> Hi Rushikesh,
>
> Did you check here:
>
> https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.5/bk_security/content/solr_ranger_configure_solrcloud_kerberos.html
>
> By the way, which versions do you use?
>
> Kind Regards,
> Furkan KAMACI
>
> On Thu, Feb 21, 2019 at 11:41 AM Rushikesh Garadade <
> rushikeshgarad...@gmail.com> wrote:
>
> > Hi All,
> >
> > I am trying to set Kerberos for Solr which is installed on Hortonworks
> > Ambari.
> >
> > Q1. Is Ranger a mandatory component for Solr Kerberos configuration on
> > ambari.?
> >
> > I am getting little confused with documents available on internet for
> this.
> > I tried to do without ranger but not getting any success.
> >
> > If is there any good document for the same, please let me know.
> >
> > Thanks,
> > Rushikesh Garadade.
> >
>


Re: Spring Boot Solr+ Kerberos+ Ambari

2019-02-26 Thread Rushikesh Garadade
Hi,
Thanks for the links. I have followed these steps earlier as well, however
I did not excuted  steps from Ranger as I don't want authorization.
 I didn't get any success.

Thats why My question is
*Is Ranger mandatory when you just want authentication with Kerberos?*


Thank you,
Rushikesh Garadade

On Thu, Feb 21, 2019, 6:34 PM Furkan KAMACI  wrote:

> Hi,
>
> You can also check here:
>
> https://community.hortonworks.com/articles/15159/securing-solr-collections-with-ranger-kerberos.html
> On
> the other hand, we have a section for Solr Kerberos at documentation:
>
> https://lucene.apache.org/solr/guide/6_6/kerberos-authentication-plugin.html
> For
> any Ambari specific questions, you can ask them at this forum:
> https://community.hortonworks.com/topics/forum.html
>
> Kind Regards,
> Furkan KAMACI
>
> On Thu, Feb 21, 2019 at 1:43 PM Rushikesh Garadade <
> rushikeshgarad...@gmail.com> wrote:
>
> > Hi Furkan,
> > I think the link you provided is for ranger audit setting, please correct
> > me if wrong?
> >
> > I use HDP 2.6.5. which has Solr 5.6
> >
> > Thank you,
> > Rushikesh Garadade
> >
> >
> > On Thu, Feb 21, 2019, 2:57 PM Furkan KAMACI 
> > wrote:
> >
> > > Hi Rushikesh,
> > >
> > > Did you check here:
> > >
> > >
> >
> https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.5/bk_security/content/solr_ranger_configure_solrcloud_kerberos.html
> > >
> > > By the way, which versions do you use?
> > >
> > > Kind Regards,
> > > Furkan KAMACI
> > >
> > > On Thu, Feb 21, 2019 at 11:41 AM Rushikesh Garadade <
> > > rushikeshgarad...@gmail.com> wrote:
> > >
> > > > Hi All,
> > > >
> > > > I am trying to set Kerberos for Solr which is installed on
> Hortonworks
> > > > Ambari.
> > > >
> > > > Q1. Is Ranger a mandatory component for Solr Kerberos configuration
> on
> > > > ambari.?
> > > >
> > > > I am getting little confused with documents available on internet for
> > > this.
> > > > I tried to do without ranger but not getting any success.
> > > >
> > > > If is there any good document for the same, please let me know.
> > > >
> > > > Thanks,
> > > > Rushikesh Garadade.
> > > >
> > >
> >
>


Connect to multiple Solr Servers via Spring boot

2019-03-19 Thread Rushikesh Garadade
ePerRequestFilter.java:107)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at
org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:109)
at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at
org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:81)
at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)
at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.solix.emailarchiving.CORSFilter.doFilter(CORSFilter.java:36)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:496)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
at
org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803)
at
org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at
org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:790)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459)
at
org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)



There is one varibale in SolrTemplate named '*mappingContext*', somehow it
sets to *null *and we get above error.

Question:
1) Is there any issue with our code and approach
2) Is there any other alternative approach to achieve out purpose.


Thanks and Regards,
Rushikesh Garadade


Update Solr Document

2018-05-31 Thread Rushikesh Garadade
Hi solr-user,

I am using Solr 7.2. I am newbie in solr , please forgive my nuisance.


Lets say I have one solr collection(say Collection X) with 100
Documents(lets say 5 fields in one Document) and I have another collection(say
Collection Y) with 1 lakh Documents (same 5 fields in one Document that we
have in Collection X).

Then,
If I update only one field from one document from collection THEN
Is "time required to update in collection X" == "time required to update in
collection Y" ?

question is: Is solr updates individual doc irrespective of collection
size? if not how re-indexing works on Document update?

Thanks,
Rushikesh Garadade


Spring Boot missing required field:

2018-06-09 Thread Rushikesh Garadade
Hi,
I am using solr 7.3 with java spring boot. I schema of my collection I have
set schema as

I have done all other necessary settings required for projects to run.

When I run a application and trying to insert document via CODE. I am
getting error "*missing required field : mailReceiveDate *". Although I
have provided the field value.
Following details code error of the same


Caused by:
org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error
from server at http://:8983/solr:
[doc=8ac2bcf6-7a56-4fed-b83e-7ccc00454088] missing required field:
mailReceiveDate
at
org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:612)
~[solr-solrj-6.6.3.jar:6.6.3 d1e9bbd333ea55cfa0c75d324424606e857a775b -
sarowe - 2018-03-02 15:09:35]
at
org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:279)
~[solr-solrj-6.6.3.jar:6.6.3 d1e9bbd333ea55cfa0c75d324424606e857a775b -
sarowe - 2018-03-02 15:09:35]
at
org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:268)
~[solr-solrj-6.6.3.jar:6.6.3 d1e9bbd333ea55cfa0c75d324424606e857a775b -
sarowe - 2018-03-02 15:09:35]
at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:160)
~[solr-solrj-6.6.3.jar:6.6.3 d1e9bbd333ea55cfa0c75d324424606e857a775b -
sarowe - 2018-03-02 15:09:35]
at org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:173)
~[solr-solrj-6.6.3.jar:6.6.3 d1e9bbd333ea55cfa0c75d324424606e857a775b -
sarowe - 2018-03-02 15:09:35]
at
org.springframework.data.solr.core.SolrTemplate.lambda$saveBean$2(SolrTemplate.java:219)
~[spring-data-solr-3.0.7.RELEASE.jar:3.0.7.RELEASE]
at
org.springframework.data.solr.core.SolrTemplate.execute(SolrTemplate.java:166)
~[spring-data-solr-3.0.7.RELEASE.jar:3.0.7.RELEASE]
... 58 common frames omitted


Please let me know what can be the issue?

Thanks,
Rushikesh Garadade


Retrieving Results from both child and parent

2018-06-19 Thread Rushikesh Garadade
Hello,
I have stored emails in solr, with its attachments as child documents.
As per solr structure these attachments got stored in same lines as of
mails.
Ex:
{ "id":"1528801242887_f662e5fe-b5d7-4494-acab-c1a99e6cd025", "attachmentName
":"example_multipage.doc", "attachmentType":"application/msword", "_version_
":160306431859996}, { "id":"1528801242887", "internetMessageId":
"1528801242887", "mailboxMessageId":"MailBox_4", "from":"
mitur...@verizon.net", "to":["podmas...@live.com"], "cc":["gslon...@aol.com"
], "bcc":["notic...@msn.com", "bes...@gmail.com"], "subject":"Getting
Started", "mailBody":"\n\nGoogle's headquarters, the Googleplex, in August
2014\n ", "mailReceiveDate":"2018-05-07T12:33:51Z", "hasAttachment":true, "
_version_":160306431859996}

}

Now I want to perform search. What will be search query for:

I want to search a keyword everywhere and return the respective
"internetMessageId".
i.e.
#1 if word found in mail document -- return internetMessageId
#2 if word found in attachment document document -- return internetMessageId
(By fq==>{!parent which=internetMessageId:* v=attachmentName:*})

For achieving both i have store every fields content in "_text_" field
(using copy field) . I can achieve both #1 & #2 individually. I want to do
both in single result i.e give me internetMessageId of all mails as well as
the mails whose attachment contains the the queried word.


How can I achieve this??


Thanks,
Rushikesh Garadade


Re: Spring Boot missing required field:

2018-06-19 Thread Rushikesh Garadade
Yes Andrea,
I have already tried that, I have value associated with field.
This issue is coming when I set 'required="true"' . If i remove this then
everything works fine. I am not getting why this issue occurs when I set
required="true".

Can you please provide me some pointers to look see what may be the reason.

Thanks,
Rushikesh Garadade

On Sat, Jun 9, 2018 at 2:56 PM Andrea Gazzarini 
wrote:

> Hi Rushikesh,
> I bet your client is not doing what you think. The error is clear, the
> incoming document doesn't have that field.
>
> I would investigate more on the client side. Without entering in
> interesting fields like unit testing, I guess the old and good
> System.out.println, just before sending the document to Solr, could help
> you a lot here.
>
> Best,
> Andrea
>
> On Sat, 9 Jun 2018, 10:08 Rushikesh Garadade,  >
> wrote:
>
> > Hi,
> > I am using solr 7.3 with java spring boot. I schema of my collection I
> have
> > set schema as
> >  indexed="true"
> > required="true" stored="true"/>
> > I have done all other necessary settings required for projects to run.
> >
> > When I run a application and trying to insert document via CODE. I am
> > getting error "*missing required field : mailReceiveDate *". Although I
> > have provided the field value.
> > Following details code error of the same
> >
> >
> > Caused by:
> > org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException:
> Error
> > from server at http://:8983/solr:
> > [doc=8ac2bcf6-7a56-4fed-b83e-7ccc00454088] missing required field:
> > mailReceiveDate
> > at
> >
> >
> org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:612)
> > ~[solr-solrj-6.6.3.jar:6.6.3 d1e9bbd333ea55cfa0c75d324424606e857a775b -
> > sarowe - 2018-03-02 15:09:35]
> > at
> >
> >
> org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:279)
> > ~[solr-solrj-6.6.3.jar:6.6.3 d1e9bbd333ea55cfa0c75d324424606e857a775b -
> > sarowe - 2018-03-02 15:09:35]
> > at
> >
> >
> org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:268)
> > ~[solr-solrj-6.6.3.jar:6.6.3 d1e9bbd333ea55cfa0c75d324424606e857a775b -
> > sarowe - 2018-03-02 15:09:35]
> > at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:160)
> > ~[solr-solrj-6.6.3.jar:6.6.3 d1e9bbd333ea55cfa0c75d324424606e857a775b -
> > sarowe - 2018-03-02 15:09:35]
> > at org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:173)
> > ~[solr-solrj-6.6.3.jar:6.6.3 d1e9bbd333ea55cfa0c75d324424606e857a775b -
> > sarowe - 2018-03-02 15:09:35]
> > at
> >
> >
> org.springframework.data.solr.core.SolrTemplate.lambda$saveBean$2(SolrTemplate.java:219)
> > ~[spring-data-solr-3.0.7.RELEASE.jar:3.0.7.RELEASE]
> > at
> >
> >
> org.springframework.data.solr.core.SolrTemplate.execute(SolrTemplate.java:166)
> > ~[spring-data-solr-3.0.7.RELEASE.jar:3.0.7.RELEASE]
> > ... 58 common frames omitted
> >
> >
> > Please let me know what can be the issue?
> >
> > Thanks,
> > Rushikesh Garadade
> >
>


Re: Retrieving Results from both child and parent

2018-06-19 Thread Rushikesh Garadade
I found one solution, however i am not sure whether this is
optimized/corrct solution to it.

Return a mails which contains a word 'pdf' anywhere  : *({!parent
which=internetMessageId:* v=pdf}) OR (internetMessageId:* AND pdf)*
a) ({!parent which=internetMessageId:* v=pdf}) ==> return mails whose
attachment has the keyword 'pdf'
b) (internetMessageId:* AND pdf) ==> returns only mails which contains the
word 'pdf'

Solr identify mail document with *internetMessageId:* *as this field is not
present in attachment document


Please let me know if this is right approch/way to query such results or *Is
there any better/optimized approach*

Thanks,
Rushikesh Garadade

On Tue, Jun 19, 2018 at 6:33 PM Rushikesh Garadade <
rushikeshgarad...@gmail.com> wrote:

> Hello,
> I have stored emails in solr, with its attachments as child documents.
> As per solr structure these attachments got stored in same lines as of
> mails.
> Ex:
> { "id":"1528801242887_f662e5fe-b5d7-4494-acab-c1a99e6cd025", "
> attachmentName":"example_multipage.doc", "attachmentType":
> "application/msword", "_version_":160306431859996}, { "id":
> "1528801242887", "internetMessageId":"1528801242887", "mailboxMessageId":
> "MailBox_4", "from":"mitur...@verizon.net", "to":["podmas...@live.com"], "
> cc":["gslon...@aol.com"], "bcc":["notic...@msn.com", "bes...@gmail.com"],
> "subject":"Getting Started", "mailBody":"\n\nGoogle's headquarters, the
> Googleplex, in August 2014\n ", "mailReceiveDate":"2018-05-07T12:33:51Z",
> "hasAttachment":true, "_version_":160306431859996}
>
> }
>
> Now I want to perform search. What will be search query for:
>
> I want to search a keyword everywhere and return the respective 
> "internetMessageId".
> i.e.
> #1 if word found in mail document -- return internetMessageId
> #2 if word found in attachment document document -- return internetMessageId
> (By fq==>{!parent which=internetMessageId:* v=attachmentName:*})
>
> For achieving both i have store every fields content in "_text_" field
> (using copy field) . I can achieve both #1 & #2 individually. I want to do
> both in single result i.e give me internetMessageId of all mails as well
> as the mails whose attachment contains the the queried word.
>
>
> How can I achieve this??
>
>
> Thanks,
> Rushikesh Garadade
>
>


exact Match and Contains

2018-07-05 Thread Rushikesh Garadade
Hi,
I have field attachmentType in my collection whose schema is as follows:


when I search for attachmentType:application/pdf i.e. /select
*?q=attachmentType:application/pdf *
I get results
[image: image.png]


When I search for attachmentType:*application/pdf* i.e. /select?
*q=attachmentType:*application/pdf**

I get 0 results
[image: image.png]

I am not getting what I am missing.
What I think is result of *query* is subset of result of **query**

Please let me know what I am missing, Do let me know if you need any other
details

Thanks,
Rushikesh Garadade


Fwd: exact Match and Contains

2018-07-05 Thread Rushikesh Garadade
Small Correction in the mail above: attachmentType is managed-schema is:




-- Forwarded message -
From: Rushikesh Garadade 
Date: Thu, Jul 5, 2018 at 7:43 PM
Subject: exact Match and Contains
To: 


Hi,
I have field attachmentType in my collection whose schema is as follows:


when I search for attachmentType:application/pdf i.e. /select
*?q=attachmentType:application/pdf *
I get results
[image: image.png]


When I search for attachmentType:*application/pdf* i.e. /select?
*q=attachmentType:*application/pdf**

I get 0 results
[image: image.png]

I am not getting what I am missing.
What I think is result of *query* is subset of result of **query**

Please let me know what I am missing, Do let me know if you need any other
details

Thanks,
Rushikesh Garadade


CloudSolrClient :java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Map . Related to "router" : "compositeId"

2019-06-19 Thread Rushikesh Garadade
Hello All,

I am using CloudSolrClient with Spring boot Solr 1.5.18.RELEASE and Solr
Version is Solr 4.10.3.

 new
CloudSolrClient.Builder().withZkHost(zkHosts).withZkChroot(solrProperties.getSolrZookeeperLocation()).build();


When I use Solr which comes wth CDH 5.16.1 default
when I save a document I get follwing error :

org.springframework.data.solr.UncategorizedSolrException:
java.lang.ClassCastException: *java.lang.String cannot be cast to
java.util.Map;* nested exception is
org.apache.solr.client.solrj.SolrServerException:
java.lang.ClassCastException: java.lang.String cannot be cast to
java.util.Map

at
org.springframework.data.solr.core.SolrTemplate.execute(SolrTemplate.java:168)

at
org.springframework.data.solr.core.SolrTemplate.saveBeans(SolrTemplate.java:223)

at
com.solix.emailarchiving.email.solr.search.SolrTemplateWrapper.saveBeans(SolrTemplateWrapper.java:33)

at
com.solix.emailarchiving.email.solr.search.EmailSearchRepositoryImpl.saveEmails(EmailSearchRepositoryImpl.java:28)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:338)

at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:197)

at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)

at
org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:139)

at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)

at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)

at com.sun.proxy.$Proxy153.saveEmails(Unknown Source)

at
com.solix.emailarchiving.email.EmailSolrServiceImpl.saveEmails(EmailSolrServiceImpl.java:24)

at
com.solix.emailarchiving.email.EmailSolrServiceImpl$$FastClassBySpringCGLIB$$40f18538.invoke()

at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)

at
org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:747)

at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)

at
org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:89)

at
com.solix.emailarchiving.annotation.ServiceTransactionAspect.beforeMethod(ServiceTransactionAspect.java:46)

at sun.reflect.GeneratedMethodAccessor138.invoke(Unknown Source)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at
org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:643)

at
org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:632)

at
org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70)

at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)

at
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)

at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)

at
org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:689)

at
com.solix.emailarchiving.email.EmailSolrServiceImpl$$EnhancerBySpringCGLIB$$a84565b1.saveEmails()

at
com.solix.emailarchiving.hbasetosolrsync.EmailsSync.sendEmailsToSolr(EmailsSync.java:157)

at
com.solix.emailarchiving.hbasetosolrsync.EmailsSync.syncMailsFromHbaseToSolr(EmailsSync.java:83)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:338)

at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:197)

at
org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:750)

at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)

at
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)

at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)

at
org.springframework.aop