Hi.
I followed instructions on the page "git://gist.github.com/
1043766.git".
But I am getting following error.
ClassCastException[in.vedantu.search.scripts.UserRelativeScript cannot
be cast to org.elasticsearch.script.NativeScriptFactory
Hi.
I followed instructions on the page "git://gist.github.com/
1043766.git".
But I am getting following error.
ClassCastException[in.vedantu.search.scripts.UserRelativeScript cannot
be cast to org.elasticsearch.script.NativeScriptFactory
Yes.
But I am not sure if my perception of binding classes into jar was
correct.
All I did was I took Script and ScriptFactory classes and put them in
a new folder and ran following command.
jar -cvf myjar.jar classfolder.
Is this the correct way?
wrote:
Hi.
I followed instructions on the page "git://gist.github.com/
1043766.git".
But I am getting following error.
ClassCastException[in.vedantu.search.scripts.UserRelativeScript cannot
be cast to org.elasticsearch.script.NativeScriptFactory
Does somebody know what the problem is?
Regards.
--
Paul Loy
p...@keteracel.comhttp://uk.linkedin.com/in/paulloy
Yes.
But I am not sure if my perception of binding classes into jar was
correct.
All I did was I took Script and ScriptFactory classes and put them in
a new folder and ran following command.
jar -cvf myjar.jar classfolder.
Is this the correct way?
wrote:
Hi.
I followed instructions on the page "git://gist.github.com/
1043766.git".
But I am getting following error.
ClassCastException[in.vedantu.search.scripts.UserRelativeScript cannot
be cast to org.elasticsearch.script.NativeScriptFactory
Does somebody know what the problem is?
Regards.
--
Paul Loy
p...@keteracel.comhttp://uk.linkedin.com/in/paulloy
Yes.
But I am not sure if my perception of binding classes into jar was
correct.
All I did was I took Script and ScriptFactory classes and put them in
a new folder and ran following command.
jar -cvf myjar.jar classfolder.
Is this the correct way?
wrote:
Hi.
I followed instructions on the page "git://gist.github.com/
1043766.git".
But I am getting following error.
ClassCastException[in.vedantu.search.scripts.UserRelativeScript cannot
be cast to org.elasticsearch.script.NativeScriptFactory
Does somebody know what the problem is?
Regards.
--
Paul Loy
p...@keteracel.comhttp://uk.linkedin.com/in/paulloy
--
Paul Loy
p...@keteracel.comhttp://uk.linkedin.com/in/paulloy
Yes.
But I am not sure if my perception of binding classes into jar was
correct.
All I did was I took Script and ScriptFactory classes and put them in
a new folder and ran following command.
jar -cvf myjar.jar classfolder.
Is this the correct way?
wrote:
Hi.
I followed instructions on the page "git://gist.github.com/
1043766.git".
But I am getting following error.
ClassCastException[in.vedantu.search.scripts.UserRelativeScript
cannot
be cast to org.elasticsearch.script.NativeScriptFactory
Does somebody know what the problem is?
Regards.
--
Paul Loy
p...@keteracel.comhttp://uk.linkedin.com/in/paulloy
--
Paul Loy
p...@keteracel.comhttp://uk.linkedin.com/in/paulloy
Yes.
But I am not sure if my perception of binding classes into jar was
correct.
All I did was I took Script and ScriptFactory classes and put them in
a new folder and ran following command.
jar -cvf myjar.jar classfolder.
Is this the correct way?
wrote:
Hi.
I followed instructions on the page "git://gist.github.com/
1043766.git".
But I am getting following error.
ClassCastException[in.vedantu.search.scripts.UserRelativeScript
cannot
be cast to org.elasticsearch.script.NativeScriptFactory
Does somebody know what the problem is?
Regards.
--
Paul Loy
p...@keteracel.comhttp://uk.linkedin.com/in/paulloy
--
Paul Loy
p...@keteracel.comhttp://uk.linkedin.com/in/paulloy
--
Paul Loy
p...@keteracel.comhttp://uk.linkedin.com/in/paulloy
Yes.
But I am not sure if my perception of binding classes into jar was
correct.
All I did was I took Script and ScriptFactory classes and put them
in
a new folder and ran following command.
jar -cvf myjar.jar classfolder.
Is this the correct way?
wrote:
Hi.
I followed instructions on the page "git://gist.github.com/
1043766.git".
But I am getting following error.
ClassCastException[in.vedantu.search.scripts.UserRelativeScript
cannot
be cast to org.elasticsearch.script.NativeScriptFactory
Does somebody know what the problem is?
Regards.
--
Paul Loy
p...@keteracel.comhttp://uk.linkedin.com/in/paulloy
--
Paul Loy
p...@keteracel.comhttp://uk.linkedin.com/in/paulloy
--
Paul Loy
p...@keteracel.comhttp://uk.linkedin.com/in/paulloy
Yes.
But I am not sure if my perception of binding classes into jar was
correct.
All I did was I took Script and ScriptFactory classes and put them
in
a new folder and ran following command.
jar -cvf myjar.jar classfolder.
Is this the correct way?
Yes.
But I am not sure if my perception of binding classes into jar was
correct.
All I did was I took Script and ScriptFactory classes and put them
in
a new folder and ran following command.
jar -cvf myjar.jar classfolder.
Is this the correct way?
Yes.
But I am not sure if my perception of binding classes into jar was
correct.
All I did was I took Script and ScriptFactory classes and put them
in
a new folder and ran following command.
jar -cvf myjar.jar classfolder.
Is this the correct way?
Yes.
But I am not sure if my perception of binding classes into
jar was
correct.
All I did was I took Script and ScriptFactory classes and
put them
in
a new folder and ran following command.
jar -cvf myjar.jar classfolder.
Is this the correct way?
Yes. In the same way.
I just wrote the factory class and did NOT write the script class.
Instead I wrote my runAsFloat function in factory class itself.
public ExecutableScript newScript(final Map<String, Object> params) {
return new AbstractFloatSearchScript() {
@Override
public float runAsFloat() {
///My function
}
};
}
The problem is still persisting. The same problem as I mentioned
above.
git://gist.github.com/1073348.git.
My jar file is constructed correctly. I am sure about that. Can there
be any other reason for this?
Yes.
But I am not sure if my perception of binding classes into
jar was
correct.
All I did was I took Script and ScriptFactory classes and
put them
in
a new folder and ran following command.
jar -cvf myjar.jar classfolder.
Is this the correct way?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.