|
From: Alan P. <api...@ma...> - 2005-11-23 07:41:01
|
Hello-
I've gotten things working, but sometimes the bridge seems to die mid-
request. The server doesn't have a chance to answer, and no data is
returned.
I've narrowed it down to the iterator interface over returned Java
arrays. Here's the offending code:
$facets = $facetGenerator->getList($this->value,
$this->maxRows, $this->sortByFrequency, $this->maxHits);
foreach ($facets as $facet) {
// does nothing, but still crashes
}
getList() returns an array of java objects:
public AttributeValue[] getList(java.lang.String attribute_id,
int maxRows,
boolean sortByFrequency,
int maxHits)
throws java.io.IOException,
NotFoundException
Here's a tcpflow dump of the bridge comm for that request:
127.000.000.001.56795-127.000.000.001.09267: .
127.000.000.001.56795-127.000.000.001.09267: <I v="0"
m="setJarLibraryPath" p="I" i="45082768"><S v="/Applications/
dieselpoint-search/lib/diesel-3.5.1.jar;/Applications/dieselpoint-
search/lib/javax.servlet.jar"/><S v="/"/></I>
127.000.000.001.09267-127.000.000.001.56795: <O v="" i="45082768"/>
127.000.000.001.56795-127.000.000.001.09267: <C
v="com.dieselpoint.search.Index" p="C" i="45083920"></C>
127.000.000.001.09267-127.000.000.001.56795: <O v="1" i="45083920"/>
127.000.000.001.56795-127.000.000.001.09267: <I v="1" m="getInstance"
p="I" i="45077952"><S v="/Applications/dieselpoint-search/indexes/
showcase"/></I>
127.000.000.001.09267-127.000.000.001.56795: <O v="2" i="45077952"/>
127.000.000.001.56795-127.000.000.001.09267: <U v="1"/><I v="2"
m="getItemCount" p="I" i="45075760"></I>
127.000.000.001.09267-127.000.000.001.56795: <L v="0" i="45075760"/>
127.000.000.001.56795-127.000.000.001.09267: <C
v="com.dieselpoint.search.FacetGenerator" p="I" i="45004032"><O v="2"/
></C>
127.000.000.001.09267-127.000.000.001.56795: <O v="3" i="45004032"/>
127.000.000.001.56795-127.000.000.001.09267: <I v="3"
m="setRangeCount" p="I" i="46194528"><S v="6"/></I>
127.000.000.001.09267-127.000.000.001.56795: <O v="" i="46194528"/>
127.000.000.001.56795-127.000.000.001.09267: <I v="3" m="getList"
p="I" i="46202032"><S v="price"/><L v="-1"/><B v="T"/><L v="1000000"/
></I>
127.000.000.001.09267-127.000.000.001.56795: <O v="4" i="46202032"/>
127.000.000.001.56795-127.000.000.001.09267: <I v="0" m="getPhpMap"
p="I" i="46203008"><O v="4"/></I>
127.000.000.001.09267-127.000.000.001.56795: <O v="5" i="46203008"/>
127.000.000.001.56795-127.000.000.001.09267: <I v="5" m="getType"
p="I" i="46203008"></I>
127.000.000.001.09267-127.000.000.001.56795: <B v="F" i="46203008"/>
127.000.000.001.56795-127.000.000.001.09267: <I v="5" m="hasMore"
p="I" i="46203008"></I>
127.000.000.001.09267-127.000.000.001.56795: <B v="F" i="46203008"/>
127.000.000.001.56795-127.000.000.001.09267: <I v="5" m="currentKey"
p="I" i="46194528"></I>
127.000.000.001.09267-127.000.000.001.56795: <O v="" i="46194528"/>
So it seems to me it's somehow getting killed during the iterator.
Now, it doesn't ALWAYS fail. Sometimes it works. I think maybe only
when EMPTY lists are returned it fails, but I am not positive. Maybe
that will help you?
Thanks in advance for any thoughts. Please respond to me as well
directly as I am not currently on the mailing list.
Thanks,
Alan
|