[kepler-dev] Ecogrid Web Services
David Sledge
dsledge at lternet.edu
Thu Apr 20 09:22:22 PDT 2006
Going by the file lib/config.xml the endpoint URL for Metacat is
<http://ecogrid.ecoinformatics.org/knb/services/EcoGridQuery>.
Yesterday, I tried using Kepler on my home computer and I a little more
insight into the problem. I changed a line in the log4j.properties file
on my work machine from:
log4j.rootLogger=WARN, CONSOLE, R
to:
log4j.rootLogger=DEBUG, R
so I could see if kepler was able to download EML metadata help figure
out why the webapp could not. At home I forgot to make the change to
log4j.properties, and I was able to download the metadata just fine. Of
course when I looked in the Kepler logs, I realized I forgot the change,
so I changed the file to match my work machine. When I ran Kepler
again, I got the exception.
This morning I changed the log4j.properties file on my work machine back
to logging warnings (but not to the console), and predictably I was able
to download Metadata.
David
Jing Tao wrote:
> Hi, David:
>
> Do your, deana and laura's kepler point to same ecogrid service (the
> default one in NCEAS)? It is weird since we don't have the problem.
>
> Jing
>
> Jing Tao
> National Center for Ecological
> Analysis and Synthesis (NCEAS)
> 735 State St. Suite 204
> Santa Barbara, CA 93101
>
> On Wed, 19 Apr 2006, David Sledge wrote:
>
>> Date: Wed, 19 Apr 2006 14:04:54 -0600
>> From: David Sledge <dsledge at lternet.edu>
>> To: seek-dev at ecoinformatics.org, kepler list
>> <kepler-dev at ecoinformatics.org>
>> Subject: [kepler-dev] Ecogrid Web Services
>>
>> I'm getting an exception every time I try to download metadata from
>> Metacat using the EcoGrid Services API.
>>
>> In Kepler the exception is:
>>
>> java.lang.ClassCastException: java.lang.String
>> at
>> org.ecoinformatics.ecogrid.queryservice.stub.EcoGridQueryLevelOneServiceStub.get(EcoGridQueryLevelOneServiceStub.java:310)
>>
>> at
>> org.ecoinformatics.ecogrid.queryservice.EcogridGetToStreamClient.get(EcogridGetToStreamClient.java:81)
>>
>> at
>> org.ecoinformatics.seek.datasource.EcogridDataCacheItem.getDataItemFromEcoGrid(EcogridDataCacheItem.java:285)
>>
>> at
>> org.ecoinformatics.seek.datasource.EcogridMetaDataCacheItem.doWork(EcogridMetaDataCacheItem.java:67)
>>
>> at
>> org.kepler.objectmanager.cache.DataCacheObject.run(DataCacheObject.java:455)
>>
>> at java.lang.Thread.run(Unknown Source)
>>
>> If I use the ecogrid webapp it's:
>>
>> java.lang.ClassCastException: java.lang.String
>> at
>> org.ecoinformatics.ecogrid.queryservice.stub.EcoGridQueryLevelOneServiceStub.get(Unknown
>> Source)
>> at
>> org.ecoinformatics.ecogrid.queryservice.EcogridGetToStreamClient.get(Unknown
>> Source)
>> at
>> org.ecoinformatics.ecogrid.web.recordfetchers.EML2RecordFetcher.get(EML2RecordFetcher.java:26)
>>
>> at
>> org.ecoinformatics.ecogrid.web.action.ShowRecordAction.execute(ShowRecordAction.java:80)
>>
>> at
>> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
>>
>> at
>> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
>>
>> at
>> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
>> at
>> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>>
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>
>> at
>> com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
>>
>> at
>> com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
>>
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>>
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>
>> at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>>
>> at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>>
>> at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>>
>> at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>>
>> at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>>
>> at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>>
>> at
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
>>
>> at
>> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
>>
>> at
>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>>
>> at
>> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>>
>> at
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>>
>> at java.lang.Thread.run(Thread.java:595)
>>
>> I'm using the same version of Kepler as Deana and Laura (nightly build
>> 20060419) and they're able to download the metadata. The version of the
>> ecogrid services API that the webapp uses is what was in CVS on 4/17.
>>
>> David
>> _______________________________________________
>> Kepler-dev mailing list
>> Kepler-dev at ecoinformatics.org
>> http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-dev
>>
>>
More information about the Kepler-dev
mailing list