Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors in tomcat log #41

Open
lgoltz opened this issue Dec 21, 2018 · 11 comments · May be fixed by #63
Open

Errors in tomcat log #41

lgoltz opened this issue Dec 21, 2018 · 11 comments · May be fixed by #63
Assignees

Comments

@lgoltz
Copy link
Contributor

lgoltz commented Dec 21, 2018

Tested with https://onestop.cubewerx.com/cubewerx/cubeserv/cite_wcs?DATASTORE=Foundation&service=WCS&request=GetCapabilities&VERSION=1.1.1 on a local docker environment (TEAM Engine 5.3, 1.13-SNAPSHOT).

Several errors are reported in the tomcat log:

Fatal Error: Error in call to extension function {public org.w3c.dom.NodeList com.occamlab.te.TECore.request(org.w3c.dom.Document,java.lang.String) throws java.lang.Throwable}: Exception in extension function java.lang.reflect.InvocationTargetException; SystemID: file:/root/te_base/work/_root_te_base_scripts_wcs_1.1.1_ctl_/wcs/wcs$GetCoverage_RangeSubset_Repeated_Identifiers.test; Line#: 289; Column#: -1
Fatal Error: Error in call to extension function {public org.w3c.dom.NodeList com.occamlab.te.TECore.request(org.w3c.dom.Document,java.lang.String) throws java.lang.Throwable}: Exception in extension function java.lang.reflect.InvocationTargetException; SystemID: file:/root/te_base/work/_root_te_base_scripts_wcs_1.1.1_ctl_/wcs/wcs$GetCoverage_RangeSubset_Bogus_Identifier.test; Line#: 273; Column#: -1
Fatal Error: Error in call to extension function {public org.w3c.dom.NodeList com.occamlab.te.TECore.request(org.w3c.dom.Document,java.lang.String) throws java.lang.Throwable}: Exception in extension function java.lang.reflect.InvocationTargetException; SystemID: file:/root/te_base/work/_root_te_base_scripts_wcs_1.1.1_ctl_/wcs/wcs$GetCoverage_RangeSubset_Valid_With_Bogus_Identifiers.test; Line#: 286; Column#: -1
Fatal Error: Error in call to extension function {public org.w3c.dom.NodeList com.occamlab.te.TECore.request(org.w3c.dom.Document,java.lang.String) throws java.lang.Throwable}: Exception in extension function java.lang.reflect.InvocationTargetException; SystemID: file:/root/te_base/work/_root_te_base_scripts_wcs_1.1.1_ctl_/wcs/wcs$GetCoverage_RangeSubset_InterpolationMethod_Missing.test; Line#: 292; Column#: -1
Fatal Error: Error in call to extension function {public synchronized void com.occamlab.te.TECore.callTest(net.sf.saxon.expr.XPathContext,java.lang.String,java.lang.String,net.sf.saxon.om.NodeInfo,java.lang.String) throws java.lang.Exception}: Exception in extension function java.util.NoSuchElementException; SystemID: file:/root/te_base/work/_root_te_base_scripts_wcs_1.1.1_ctl_/wcs/wcs$GetCoverage-main.test; Line#: 4038; Column#: -1
Fatal Error: Error in call to extension function {public synchronized void com.occamlab.te.TECore.callTest(net.sf.saxon.expr.XPathContext,java.lang.String,java.lang.String,net.sf.saxon.om.NodeInfo,java.lang.String) throws java.lang.Exception}: Exception in extension function java.util.NoSuchElementException; SystemID: file:/root/te_base/work/_root_te_base_scripts_wcs_1.1.1_ctl_/wcs/wcs$Main.test; Line#: 128; Column#: -1
@keshavnangare
Copy link

@lgoltz

I am able to reproduce this issue on local environment if you can see the session/error_log/log.xml the XMLValidatingParser is failed to parse request resource.

The Test wcs:GetCoverage_RangeSubset_Repeated_Identifier is failed with the following error:

Failed to parse resource from https://onestop.cubewerx.com/cubewerx/cubeserv/cite_wcs?DATASTORE=Foundation&service=WCS&request=GetCoverage&version=1.1.1&identifier=etopo2&BoundingBox=-89.98333333333333,-179.9833333333333,89.98333333333333,179.9833333333333,urn:ogc:def:crs:EPSG::4326&RangeSubset=GEOMETRY,GEOMETRY&Format=image/tiff 
 Failed to parse input: sun.net.www.protocol.http.HttpURLConnection$HttpInputStream
	at com.occamlab.te.parsers.XMLValidatingParser.parse(XMLValidatingParser.java:227)

In similar way following tests were failed:

  • wcs:GetCoverage_RangeSubset_Bogus_Identifier
  • wcs:GetCoverage_RangeSubset_Valid_With_Bogus_Identifiers
  • wcs:GetCoverage_RangeSubset_InterpolationMethod_Missing

All above tests are expecting the owcExceptionReport but get the different response.

Here is the request URL:
https://onestop.cubewerx.com/cubewerx/cubeserv/cite_wcs?DATASTORE=Foundation&&service=WCS&request=GetCoverage&version=1.1.1&identifier=etopo2&BoundingBox=-89.98333333333333,-179.9833333333333,89.98333333333333,179.9833333333333,urn:ogc:def:crs:EPSG::4326&RangeSubset=GEOMETRY,Bogus&Format=image/tiff

I think the issue is with the service not with ets so service should be fixed.

Here is the error log: log.txt

@dstenger
Copy link
Contributor

dstenger commented Jan 2, 2019

@lgoltz Errors are expected. Do you see any improvements which can be done to improve logging? Otherwise, this issue can be closed.

@dstenger dstenger assigned lgoltz and unassigned keshavnangare Jan 2, 2019
@lgoltz
Copy link
Contributor Author

lgoltz commented Jan 3, 2019

The response is a multipart response with XML and an Image, expected is an ExceptionReport
@keshav-nangare Can you check if the XMLValidatingParser can be replaced with an HTTPParser?

E.g.

<ctlp:HTTPParser>
  <ctlp:parse mime="text/xml">
    <ctlp:XMLValidatingParser ignoreErrors="false" ignoreWarnings="false">
      <ctlp:schemas>
        <ctlp:schema type="resource">xsd/ogc/ows/1.1.0/owsExceptionReport.xsd</ctlp:schema>
      </ctlp:schemas>
    </ctlp:XMLValidatingParser>
  </ctlp:parse>
</ctlp:HTTPParser>

@keshavnangare
Copy link

@lgoltz

<ctlp:HTTPParser>
    <ctlp:parse mime="text/xml">
         <ctlp:XMLValidatingParser ignoreErrors="false" ignoreWarnings="false">
             <ctlp:schemas>
                 <ctlp:schema type="resource">xsd/ogc/ows/1.1.0/owsExceptionReport.xsd</ctlp:schema>
                 </ctlp:schemas>
           </ctlp:XMLValidatingParser>
      </ctlp:parse>  
 </ctlp:HTTPParser>

I have updated the parser configuration to above in request and tested with the same service but still getting failed with the same error.

I have configured the parser with the below configuration then the test gets passed. I saw the response but it doesn't have exception report still the test getting passed.

<ctlp:HTTPParser>
     <ctlp:parse mime="text/xml"/>
      <ctlp:parse>
          <ctlp:NullParser/>
        </ctlp:parse>
  </ctlp:HTTPParser>

Test Request: wcs:GetCoverage_RangeSubset_Repeated_Identifier
https://onestop.cubewerx.com/cubewerx/cubeserv/cite_wcs?DATASTORE=Foundation&service=WCS&request=GetCoverage&version=1.1.1&identifier=etopo2&BoundingBox=-89.98333333333333,-179.9833333333333,89.98333333333333,179.9833333333333,urn:ogc:def:crs:EPSG::4326&RangeSubset=GEOMETRY%2CGEOMETRY&Format=image/tiff

Response: Download

@dstenger dstenger assigned dstenger and lgoltz and unassigned keshavnangare Oct 16, 2019
@dstenger dstenger assigned keshavnangare and ghobona and unassigned lgoltz Apr 29, 2020
@ghobona
Copy link
Contributor

ghobona commented Jul 15, 2020

Discussion between @keshav-nangare and @ghobona on 2020-07-15.

@keshav-nangare will check whether an if-else condition can be used to check whether the MIME type of the response is xml or a multipart.

@keshavnangare
Copy link

The following tests are fixed with the PR #63 :

  1. wcs:GetCoverage_RangeSubset_Repeated_Identifier
  2. wcs:GetCoverage_RangeSubset_Bogus_Identifier
  3. wcs:GetCoverage_RangeSubset_Valid_With_Bogus_Identifiers
  4. wcs:GetCoverage_RangeSubset_InterpolationMethod_Missing

@dstenger dstenger assigned dstenger and lgoltz and unassigned keshavnangare Aug 5, 2020
@dstenger
Copy link
Contributor

@keshav-nangare
When testing with https://demo.cubewerx.com/cubewerx/cubeserv/cite_wcs111?DATASTORE=Foundation&SERVICE=WCS&REQUEST=GetCapabilities&VERSION=1.1.1 all 4 modified tests are failing.
However, those tests were passed before (you can revert the two commits of the feature branch).
Can you please check why the test result changed?
You can also use following service for testing: https://demo.cubewerx.com/cubewerx/cubeserv/cite_wcs111?DATASTORE=Foundation&SERVICE=WCS&REQUEST=GetCapabilities&VERSION=1.1.1

@dstenger dstenger assigned keshavnangare and unassigned dstenger and lgoltz Nov 20, 2020
@keshavnangare
Copy link

@dstenger

I have fixed the tests which were getting failed. Now some of the next tests are getting failed because the request's response is multipart and test using XMLValidatingParser as it's not supporting that response type. Should I update all the tests which are failing with above reason?

@keshavnangare
Copy link

@dstenger

I have updated the remaining tests having parser problems and tested changes on my machine successfully. Please find the changes in the same PR.

@dstenger dstenger assigned dstenger and lgoltz and unassigned keshavnangare Dec 17, 2020
@dstenger
Copy link
Contributor

Still, additional tests are failing when the pull request is tested with https://demo.cubewerx.com/cubewerx/cubeserv/cite_wcs111?DATASTORE=Foundation&SERVICE=WCS&REQUEST=GetCapabilities&VERSION=1.1.1.
The result of the test suite should not be changed by the pull request.

@dstenger dstenger assigned bpross-52n and unassigned dstenger and lgoltz Oct 25, 2022
@dstenger dstenger removed the bug label Oct 25, 2022
@dstenger dstenger added this to CITE Aug 1, 2024
@dstenger dstenger moved this to To do in CITE Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To do
Development

Successfully merging a pull request may close this issue.

5 participants