[seek-dev] problems with exception swallowing in Ecogrid query

Steve Tekell stekell at lternet.edu
Thu Sep 23 12:39:34 PDT 2004


At this point almost every query (to metacat) is timing out, which brings up
the problem of how to effectively handle this and other exceptions in the
UI.

It seems that the exceptions are being logged and eliminated, leaving
nothing to work with that I know of to message to the user specifically what
happened other than there is no results.

How can I get at something here to distinguish the different possible
errors?

Is this something that is going to be changed?

here's some console output of an example

---------------------

QUERY=
<?xml version="1.0" encoding="UTF-8"?>
<egq:query queryId="test-query" system="http://knb.ecoinformatics.org"
xmlns:egq="ecogrid://ecoinformatics.org/ecogrid-query-1.0.0beta1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="ecogrid://ecoinformatics.org/ecogrid-query-1.0.0beta1
../../src/xsd/query.xsd">
<namespace prefix="eml">eml://ecoinformatics.org/eml-2.0.0</namespace>
<title>Soils Metadata Query</title>
<returnfield>/eml/dataset/title</returnfield>
<returnfield>/eml/dataset/creator/individualName/surName</returnfield>
<returnfield>/eml/dataset/pubDate</returnfield>
<returnfield>/eml/dataset/keywordSet/keyword</returnfield>
<returnfield>/eml/dataset/coverage/taxonomicCoverage/taxonomicClassification
/taxonRankValue</returnfield>
<returnfield>/eml/dataset/coverage/taxonomicCoverage/taxonomicClassification
/taxonRankValue</returnfield>
<returnfield>/eml/dataset/methods/sampling/studyExtent/coverage/taxonomicCov
erage/taxonomicClassification/taxonRankValue</returnfield>
<returnfield>/eml/dataset/creator/organizationName</returnfield>
<returnfield>/eml/dataset/coverage/geographicCoverage/boundingCoordinates/no
rthBoundingCoordinate</returnfield><returnfield>/eml/dataset/coverage/geogra
phicCoverage/boundingCoordinates/southBoundingCoordinate</returnfield><retur
nfield>/eml/dataset/coverage/geographicCoverage/boundingCoordinates/eastBoun
dingCoordinate</returnfield><returnfield>/eml/dataset/coverage/geographicCov
erage/boundingCoordinates/westBoundingCoordinate</returnfield><returnfield>/
eml/dataset/coverage/geographicCoverage/geographicDescription</returnfield><
AND>
<condition operator="EQUALS"
concept="/eml/dataset/creator/individualName/surName">Joye</condition>
<condition operator="LESS THAN OR EQUALS"
concept="geographicCoverage/boundingCoordinates/northBoundingCoordinate">31.
5</condition>
<condition operator="GREATER THAN OR EQUALS"
concept="geographicCoverage/boundingCoordinates/southBoundingCoordinate">10<
/condition>
</AND>
</egq:query>
EcogridUtils: Created EcogridJSPBeanFactory.
**** createEcogridJSPBean [GLOBUS]
EcogridUtils: **** createEcogridJSPBean [GLOBUS]
EcogridUtils: Created EcogridJSPBaseBean.
EcogridUtils: Created EcogridJSPGlobusBean. ****
EcogridUtils: 
Connecting to Ecogrid with
URL[http://ecogrid.ecoinformatics.org/ogsa/services/org/ecoinformatics/ecogr
id/EcoGridQueryInterfaceLevelOneService]
EcogridUtils: Connecting to Ecogrid
service[http://ecogrid.ecoinformatics.org/ogsa/services/org/ecoinformatics/e
cogrid/EcoGridQueryInterfaceLevelOneService]

---------------------------

---=== Begin metacat query ===---
Ecogrid
URL[http://ecogrid.ecoinformatics.org/ogsa/services/org/ecoinformatics/ecogr
id/EcoGridQueryInterfaceLevelOneService]
EcogridUtils: query - [:   <?xml version="1.0" encoding="UTF-8"?>
<egq:query queryId="test-query" system="http://knb.ecoinformatics.org"
xmlns:egq="ecogrid://ecoinformatics.org/ecogrid-query-1.0.0beta1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="ecogrid://ecoinformatics.org/ecogrid-query-1.0.0beta1
../../src/xsd/query.xsd">
<namespace prefix="eml">eml://ecoinformatics.org/eml-2.0.0</namespace>
<title>Soils Metadata Query</title>
<returnfield>/eml/dataset/title</returnfield>
<returnfield>/eml/dataset/creator/individualName/surName</returnfield>
<returnfield>/eml/dataset/pubDate</returnfield>
<returnfield>/eml/dataset/keywordSet/keyword</returnfield>
<returnfield>/eml/dataset/coverage/taxonomicCoverage/taxonomicClassification
/taxonRankValue</returnfield>
<returnfield>/eml/dataset/coverage/taxonomicCoverage/taxonomicClassification
/taxonRankValue</returnfield>
<returnfield>/eml/dataset/methods/sampling/studyExtent/coverage/taxonomicCov
erage/taxonomicClassification/taxonRankValue</returnfield>
<returnfield>/eml/dataset/creator/organizationName</returnfield>
<returnfield>/eml/dataset/coverage/geographicCoverage/boundingCoordinates/no
rthBoundingCoordinate</returnfield><returnfield>/eml/dataset/coverage/geogra
phicCoverage/boundingCoordinates/southBoundingCoordinate</returnfield><retur
nfield>/eml/dataset/coverage/geographicCoverage/boundingCoordinates/eastBoun
dingCoordinate</returnfield><returnfield>/eml/dataset/coverage/geographicCov
erage/boundingCoordinates/westBoundingCoordinate</returnfield><returnfield>/
eml/dataset/coverage/geographicCoverage/geographicDescription</returnfield><
AND>
<condition operator="EQUALS"
concept="/eml/dataset/creator/individualName/surName">Joye</condition>
<condition operator="LESS THAN OR EQUALS"
concept="geographicCoverage/boundingCoordinates/northBoundingCoordinate">31.
5</condition>
<condition operator="GREATER THAN OR EQUALS"
concept="geographicCoverage/boundingCoordinates/southBoundingCoordinate">10<
/condition>
</AND>
</egq:query>]
queryId is: test-query
system is: http://knb.ecoinformatics.org
namespace in xml is: eml://ecoinformatics.org/eml-2.0.0
title is: Soils Metadata Query
in handleANDType
operator string is EQUALS
concept string is /eml/dataset/creator/individualName/surName
value is Joye
operator string is LESS THAN OR EQUALS
concept string is
geographicCoverage/boundingCoordinates/northBoundingCoordinate
value is 31.5
operator string is GREATER THAN OR EQUALS
concept string is
geographicCoverage/boundingCoordinates/southBoundingCoordinate
value is 10
EcogridUtils: Error in Call to query java.net.SocketTimeoutException: Read
timed out
AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode: 
 faultString: java.net.SocketTimeoutException: Read timed out
 faultActor: 
 faultNode: 
 faultDetail: 
	{http://xml.apache.org/axis/}stackTrace:
java.net.SocketTimeoutException: Read timed out
	at java.net.SocketInputStream.socketRead0(Native Method)
	at java.net.SocketInputStream.read(Unknown Source)
	at java.io.BufferedInputStream.fill(Unknown Source)
	at java.io.BufferedInputStream.read(Unknown Source)
	at
org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender.j
ava:506)
	at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:127)
	at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:
71)
	at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
	at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
	at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
	at org.apache.axis.client.Call.invokeEngine(Call.java:2564)
	at org.apache.axis.client.Call.invoke(Call.java:2553)
	at org.apache.axis.client.Call.invoke(Call.java:2248)
	at org.apache.axis.client.Call.invoke(Call.java:2171)
	at org.apache.axis.client.Call.invoke(Call.java:1691)
	at
org.ecoinformatics.ecogrid.stub.bindings.EcoGridQueryLevelOneServiceSOAPBind
ingStub.query(EcoGridQueryLevelOneServiceSOAPBindingStub.java:932)
	at
org.ecoinformatics.ecogrid.registry.impl.EcogridJSPGlobusBean.query(EcogridJ
SPGlobusBean.java:319)
	at test.main(test.java:145)


java.net.SocketTimeoutException: Read timed out
	at org.apache.axis.AxisFault.makeFault(AxisFault.java:129)
	at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:131)
	at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:
71)
	at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
	at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
	at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
	at org.apache.axis.client.Call.invokeEngine(Call.java:2564)
	at org.apache.axis.client.Call.invoke(Call.java:2553)
	at org.apache.axis.client.Call.invoke(Call.java:2248)
	at org.apache.axis.client.Call.invoke(Call.java:2171)
	at org.apache.axis.client.Call.invoke(Call.java:1691)
	at
org.ecoinformatics.ecogrid.stub.bindings.EcoGridQueryLevelOneServiceSOAPBind
ingStub.query(EcoGridQueryLevelOneServiceSOAPBindingStub.java:932)
	at
org.ecoinformatics.ecogrid.registry.impl.EcogridJSPGlobusBean.query(EcogridJ
SPGlobusBean.java:319)
	at test.main(test.java:145)
Caused by: java.net.SocketTimeoutException: Read timed out
	at java.net.SocketInputStream.socketRead0(Native Method)
	at java.net.SocketInputStream.read(Unknown Source)
	at java.io.BufferedInputStream.fill(Unknown Source)
	at java.io.BufferedInputStream.read(Unknown Source)
	at
org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender.j
ava:506)
	at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:127)
	... 12 more

---------------------------

!!!!!!! NULL Resulset !!!!

----------------------------------------------------
Steve Tekell       
http://seek.ecoinformatics.org/Wiki.jsp?page=LTER.stekell
SEEK-Web              http://seek.ecoinformatics.org
----------------------------------------------------




More information about the Seek-dev mailing list