Tyler Clendenin
04/21/2023, 9:56 PM"org.opensearch.client.json.JsonData"
object. The interface seems to have a static method of
with the signature of (Object)
however when trying to call it I get the error "The of method was not found" "There Either there are no methods with the specified name and argument types of the of method is overloaded with argument types that ColdFusion cannot decipher reliably ..."
an example of what I am trying to do
javaLoader.create("org.opensearch.client.json.JsonData").of("2023-04-21T00:00:00")
Attached is the cfdump of the JsonData interface, attempting to dup the of method give the error "Element OF is undefined in a Java object of type class coldfusion.runtime.java.JavaProxy
https://www.javadoc.io/doc/org.opensearch.client/opensearch-java/latest/org/opensearch/client/json/JsonData.html
Example code in java https://learnersbucket.com/examples/elasticsearch/range-query-in-opensearch-with-java-client/Adam Cameron
bdw429s
04/21/2023, 10:03 PMbdw429s
04/21/2023, 10:03 PMbdw429s
04/21/2023, 10:06 PMof()
method does not accept an Object
, it uses generics and the implementing class would determine what type T
is.bdw429s
04/21/2023, 10:06 PMTyler Clendenin
04/21/2023, 10:12 PMbdw429s
04/21/2023, 10:12 PMTyler Clendenin
04/21/2023, 10:12 PMTyler Clendenin
04/21/2023, 10:13 PMTyler Clendenin
04/21/2023, 10:13 PMbdw429s
04/21/2023, 10:14 PMAdam Cameron
bdw429s
04/21/2023, 10:20 PMAdam Cameron
Tyler Clendenin
04/21/2023, 10:20 PMbdw429s
04/21/2023, 10:22 PMbdw429s
04/21/2023, 10:22 PMbdw429s
04/21/2023, 10:22 PMbdw429s
04/21/2023, 10:23 PMbdw429s
04/21/2023, 10:23 PMAdam Cameron
Adam Cameron
Tyler Clendenin
04/21/2023, 10:24 PMAdam Cameron
Tyler Clendenin
04/21/2023, 10:27 PMbdw429s
04/21/2023, 10:28 PMbdw429s
04/21/2023, 10:28 PMTyler Clendenin
04/21/2023, 10:29 PMTyler Clendenin
04/21/2023, 10:29 PMTyler Clendenin
04/21/2023, 10:31 PMAdam Cameron
Adam Cameron
to
method in JsonDataImpl
not help you?Tyler Clendenin
04/21/2023, 10:52 PMTyler Clendenin
04/21/2023, 10:52 PMAdam Cameron
Tyler Clendenin
04/21/2023, 10:54 PMAdam Cameron
Tyler Clendenin
04/21/2023, 10:54 PMTyler Clendenin
04/21/2023, 10:54 PM