Re: SolrJ App Engine Client
As per this doc, socket are allowed for paid apps. Not sure if this would make it unrestricted. https://cloud.google.com/appengine/docs/java/sockets/ On Thu, Sep 22, 2016 at 3:38 PM, Jay Parasharwrote: > I sent a similar message earlier but do not see it. Apologize if its > duplicated. > > I am unable to connect to Solr Cloud zkhost (using CloudSolrClient) from a > SolrJ client running on Google App Engine. > The error message is "java.nio.channels.SocketChannel is a restricted > class. Please see the Google App Engine developer's guide for more > details." > > Is there a workaround? Its required that the client is SolrJ and running > on App Engine. > > Any feedback is much appreciated. Thanks >
RE: SolrJ App Engine Client
I am on java 7. As the GAE states, the SocketChannel is not on Google's white list. Stackoverflow (the 2nd link you sent) suggests to re-invent the class. I will see if I come up with anything. Thanks John. -Original Message- From: John Bickerstaff [mailto:j...@johnbickerstaff.com] Sent: Thursday, September 22, 2016 2:51 PM To: solr-user@lucene.apache.org Subject: [Ext] Re: SolrJ App Engine Client Two possibilities from a quick search on the error message - both point to GAE NOT fully supporting Java 8 https://urldefense.proofpoint.com/v2/url?u=http-3A__stackoverflow.com_questions_29528580_how-2Dto-2Ddeal-2Dwith-2Dapp-2Dengine-2Ddevserver-2Dexception-2Ddue-2Dto-2Dformatstyle-2Drestricted-2Dcl=CwIBaQ=uGuXJ43KPkPWEl2imVFDmZQlhQUET7pVRA2PDIOxgqw=bRfqJEeedEKG5nkp5748YxbNMFrUYT3YiNl0Ni2vUBQ=FjaUoU-i-tiL8deMoKceLKxX-kgXBObYvgMAjZnac8A=5lMIyl1JJEfNqZSe80DnJ4PwWt_tpBoq3l6ZjM2EQBM= https://urldefense.proofpoint.com/v2/url?u=http-3A__stackoverflow.com_questions_29543131_beancreationexception-2Dthrowed-2Dwhen-2Dtrying-2Dto-2Drun-2Dmy-2Dproject=CwIBaQ=uGuXJ43KPkPWEl2imVFDmZQlhQUET7pVRA2PDIOxgqw=bRfqJEeedEKG5nkp5748YxbNMFrUYT3YiNl0Ni2vUBQ=FjaUoU-i-tiL8deMoKceLKxX-kgXBObYvgMAjZnac8A=EkfJOFmbVi4fwdp1mBAnpIXC1XHnT8_eN6Jsz1PvDhw= On Thu, Sep 22, 2016 at 1:38 PM, Jay Parashar <bparas...@slb.com> wrote: > I sent a similar message earlier but do not see it. Apologize if its > duplicated. > > I am unable to connect to Solr Cloud zkhost (using CloudSolrClient) > from a SolrJ client running on Google App Engine. > The error message is "java.nio.channels.SocketChannel is a restricted > class. Please see the Google App Engine developer's guide for more > details." > > Is there a workaround? Its required that the client is SolrJ and > running on App Engine. > > Any feedback is much appreciated. Thanks >
Re: SolrJ App Engine Client
No, it does not. The error is (instead of SocketChannel) is now Caused by: java.lang.NoClassDefFoundError: java.net.ProxySelector is a restricted class And it's during an actual query (solrClient.query(query);) -Original Message- From: Mikhail Khludnev [mailto:m...@apache.org] Sent: Thursday, September 22, 2016 2:59 PM To: solr-user <solr-user@lucene.apache.org> Subject: [Ext] Re: SolrJ App Engine Client Does it work with plain HttpSolrClient? On Thu, Sep 22, 2016 at 10:50 PM, John Bickerstaff <j...@johnbickerstaff.com > wrote: > Two possibilities from a quick search on the error message - both > point to GAE NOT fully supporting Java 8 > > https://urldefense.proofpoint.com/v2/url?u=http-3A__stackoverflow.com_ > questions_29528580_how-2Dto-2Ddeal-2Dwith-2Dapp-2Dengine-2D=CwIBaQ > =uGuXJ43KPkPWEl2imVFDmZQlhQUET7pVRA2PDIOxgqw=bRfqJEeedEKG5nkp5748Yxb > NMFrUYT3YiNl0Ni2vUBQ=HDJS4ElFF2X939U2LWfIfRIdBJNLvm9q4mvpNmZp7kU=i > 8WIpnKStYPvIRJTBTjBtqguv_nriuZMnLdBlB7pUWo= > devserver-exception-due-to-formatstyle-restricted-cl > https://urldefense.proofpoint.com/v2/url?u=http-3A__stackoverflow.com_ > questions_29543131_beancreationexception-2Dthrowed-2D=CwIBaQ=uGuXJ > 43KPkPWEl2imVFDmZQlhQUET7pVRA2PDIOxgqw=bRfqJEeedEKG5nkp5748YxbNMFrUY > T3YiNl0Ni2vUBQ=HDJS4ElFF2X939U2LWfIfRIdBJNLvm9q4mvpNmZp7kU=kGg4rdS > 7eJoNjVzljzxek-nIUeMnjxRhjETSDJzdaXY= > when-trying-to-run-my-project > > > On Thu, Sep 22, 2016 at 1:38 PM, Jay Parashar <bparas...@slb.com> wrote: > > > I sent a similar message earlier but do not see it. Apologize if its > > duplicated. > > > > I am unable to connect to Solr Cloud zkhost (using CloudSolrClient) > > from > a > > SolrJ client running on Google App Engine. > > The error message is "java.nio.channels.SocketChannel is a > > restricted class. Please see the Google App Engine developer's > > guide for more details." > > > > Is there a workaround? Its required that the client is SolrJ and > > running on App Engine. > > > > Any feedback is much appreciated. Thanks > > > -- Sincerely yours Mikhail Khludnev
RE: [Ext] Re: SolrJ App Engine Client
I am on java 7. As the GAE states, the SocketChannel is not on Google's white list. Stackoverflow (the 2nd link you sent) suggests to re-invent the class. I will see if I come up with anything. Thanks John. -Original Message- From: John Bickerstaff [mailto:j...@johnbickerstaff.com] Sent: Thursday, September 22, 2016 2:51 PM To: solr-user@lucene.apache.org Subject: [Ext] Re: SolrJ App Engine Client Two possibilities from a quick search on the error message - both point to GAE NOT fully supporting Java 8 https://urldefense.proofpoint.com/v2/url?u=http-3A__stackoverflow.com_questions_29528580_how-2Dto-2Ddeal-2Dwith-2Dapp-2Dengine-2Ddevserver-2Dexception-2Ddue-2Dto-2Dformatstyle-2Drestricted-2Dcl=CwIBaQ=uGuXJ43KPkPWEl2imVFDmZQlhQUET7pVRA2PDIOxgqw=bRfqJEeedEKG5nkp5748YxbNMFrUYT3YiNl0Ni2vUBQ=FjaUoU-i-tiL8deMoKceLKxX-kgXBObYvgMAjZnac8A=5lMIyl1JJEfNqZSe80DnJ4PwWt_tpBoq3l6ZjM2EQBM= https://urldefense.proofpoint.com/v2/url?u=http-3A__stackoverflow.com_questions_29543131_beancreationexception-2Dthrowed-2Dwhen-2Dtrying-2Dto-2Drun-2Dmy-2Dproject=CwIBaQ=uGuXJ43KPkPWEl2imVFDmZQlhQUET7pVRA2PDIOxgqw=bRfqJEeedEKG5nkp5748YxbNMFrUYT3YiNl0Ni2vUBQ=FjaUoU-i-tiL8deMoKceLKxX-kgXBObYvgMAjZnac8A=EkfJOFmbVi4fwdp1mBAnpIXC1XHnT8_eN6Jsz1PvDhw= On Thu, Sep 22, 2016 at 1:38 PM, Jay Parashar <bparas...@slb.com> wrote: > I sent a similar message earlier but do not see it. Apologize if its > duplicated. > > I am unable to connect to Solr Cloud zkhost (using CloudSolrClient) from a > SolrJ client running on Google App Engine. > The error message is "java.nio.channels.SocketChannel is a restricted > class. Please see the Google App Engine developer's guide for more > details." > > Is there a workaround? Its required that the client is SolrJ and running > on App Engine. > > Any feedback is much appreciated. Thanks >
RE: [Ext] Re: SolrJ App Engine Client
No, it does not. The error is (instead of SocketChannel) is now Caused by: java.lang.NoClassDefFoundError: java.net.ProxySelector is a restricted class And it's during an actual query (solrClient.query(query);) -Original Message- From: Mikhail Khludnev [mailto:m...@apache.org] Sent: Thursday, September 22, 2016 2:59 PM To: solr-user <solr-user@lucene.apache.org> Subject: [Ext] Re: SolrJ App Engine Client Does it work with plain HttpSolrClient? On Thu, Sep 22, 2016 at 10:50 PM, John Bickerstaff <j...@johnbickerstaff.com > wrote: > Two possibilities from a quick search on the error message - both > point to GAE NOT fully supporting Java 8 > > https://urldefense.proofpoint.com/v2/url?u=http-3A__stackoverflow.com_ > questions_29528580_how-2Dto-2Ddeal-2Dwith-2Dapp-2Dengine-2D=CwIBaQ > =uGuXJ43KPkPWEl2imVFDmZQlhQUET7pVRA2PDIOxgqw=bRfqJEeedEKG5nkp5748Yxb > NMFrUYT3YiNl0Ni2vUBQ=HDJS4ElFF2X939U2LWfIfRIdBJNLvm9q4mvpNmZp7kU=i > 8WIpnKStYPvIRJTBTjBtqguv_nriuZMnLdBlB7pUWo= > devserver-exception-due-to-formatstyle-restricted-cl > https://urldefense.proofpoint.com/v2/url?u=http-3A__stackoverflow.com_ > questions_29543131_beancreationexception-2Dthrowed-2D=CwIBaQ=uGuXJ > 43KPkPWEl2imVFDmZQlhQUET7pVRA2PDIOxgqw=bRfqJEeedEKG5nkp5748YxbNMFrUY > T3YiNl0Ni2vUBQ=HDJS4ElFF2X939U2LWfIfRIdBJNLvm9q4mvpNmZp7kU=kGg4rdS > 7eJoNjVzljzxek-nIUeMnjxRhjETSDJzdaXY= > when-trying-to-run-my-project > > > On Thu, Sep 22, 2016 at 1:38 PM, Jay Parashar <bparas...@slb.com> wrote: > > > I sent a similar message earlier but do not see it. Apologize if its > > duplicated. > > > > I am unable to connect to Solr Cloud zkhost (using CloudSolrClient) > > from > a > > SolrJ client running on Google App Engine. > > The error message is "java.nio.channels.SocketChannel is a > > restricted class. Please see the Google App Engine developer's > > guide for more details." > > > > Is there a workaround? Its required that the client is SolrJ and > > running on App Engine. > > > > Any feedback is much appreciated. Thanks > > > -- Sincerely yours Mikhail Khludnev
Re: SolrJ App Engine Client
Does it work with plain HttpSolrClient? On Thu, Sep 22, 2016 at 10:50 PM, John Bickerstaffwrote: > Two possibilities from a quick search on the error message - both point to > GAE NOT fully supporting Java 8 > > http://stackoverflow.com/questions/29528580/how-to-deal-with-app-engine- > devserver-exception-due-to-formatstyle-restricted-cl > http://stackoverflow.com/questions/29543131/beancreationexception-throwed- > when-trying-to-run-my-project > > > On Thu, Sep 22, 2016 at 1:38 PM, Jay Parashar wrote: > > > I sent a similar message earlier but do not see it. Apologize if its > > duplicated. > > > > I am unable to connect to Solr Cloud zkhost (using CloudSolrClient) from > a > > SolrJ client running on Google App Engine. > > The error message is "java.nio.channels.SocketChannel is a restricted > > class. Please see the Google App Engine developer's guide for more > > details." > > > > Is there a workaround? Its required that the client is SolrJ and running > > on App Engine. > > > > Any feedback is much appreciated. Thanks > > > -- Sincerely yours Mikhail Khludnev
Re: SolrJ App Engine Client
Two possibilities from a quick search on the error message - both point to GAE NOT fully supporting Java 8 http://stackoverflow.com/questions/29528580/how-to-deal-with-app-engine-devserver-exception-due-to-formatstyle-restricted-cl http://stackoverflow.com/questions/29543131/beancreationexception-throwed-when-trying-to-run-my-project On Thu, Sep 22, 2016 at 1:38 PM, Jay Parasharwrote: > I sent a similar message earlier but do not see it. Apologize if its > duplicated. > > I am unable to connect to Solr Cloud zkhost (using CloudSolrClient) from a > SolrJ client running on Google App Engine. > The error message is "java.nio.channels.SocketChannel is a restricted > class. Please see the Google App Engine developer's guide for more > details." > > Is there a workaround? Its required that the client is SolrJ and running > on App Engine. > > Any feedback is much appreciated. Thanks >