[Thread Prev][Thread Next][Index]

Re: [las_users] return code 500 from /las/rpc



Emanuele,

There is nothing wrong with these configuration files as far as I can tell.  They appear to work just fine when I configure them into my server. I can take a look at what happens on your server if you want to put these two data sets back into the configuration.

Roland


On Fri, Nov 29, 2013 at 5:49 AM, emanuele lombardi <emanuele.lombardi@xxxxxxx> wrote:

Dear LAS people,
I'm getting return code 500 from /las/rpc and thus I ask for your help.

Apache Tomcat is 7.0.35
JVM is 1.6.0_25-b06 Sun Microsystems Inc.
LAS is 8.0
All xml given to las.xml are produced by addXML.sh
You can access the application at http://utmea.enea.it:8080/las_waves

The errore occurs whenever I choose any second dataset in the "data set" window.
Each of my datasets is properly plotted when it is used alone (in las.xml), but when las.xml contains more than one of those datasets, selecting any
of the non default one (which is already plotted) it returns the error: "server request failed: 500 The call failed on the servere; see server log for
details"

Anyway, this are my logs, and later on are las.xml and datafiles' xml.


Thanks for any help,
Emanuele Lombardi


in  /tomcat/logs/localhost_access_log.2013-11-29.txt I get:
192.168.153.23 - - [29/Nov/2013:12:13:36 +0100] "POST /las_waves/rpc HTTP/1.1" 500 57

in /tomcat/logs/localhost.2013-11-29.log  I get:

SEVERE: Exception while dispatching incoming RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract gov.noaa.pmel.tmap.las.client.serializable.CategorySerializable[]
gov.noaa.pmel.tmap.las.client.rpc.RPCService.getCategories(java.lang.String,java
.lang.String) throws gov.noaa.pmel.tmap.las.client.rpc.RPCException' threw an unexpected exception: java.lang.NullPointerException
        at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:389)
        at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:579)
        at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
        at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
        at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.NullPointerException
        at gov.noaa.pmel.tmap.las.util.Grid.hasX(Grid.java:54)
        at gov.noaa.pmel.tmap.las.util.Grid.getGridSerializable(Grid.java:224)
        at gov.noaa.pmel.tmap.las.util.Variable.getGridSerializable(Variable.java:107)
        at gov.noaa.pmel.tmap.las.util.Variable.getVariableSerializable(Variable.java:98)
        at gov.noaa.pmel.tmap.las.util.Dataset.getVariablesSerializable(Dataset.java:66)
        at gov.noaa.pmel.tmap.las.util.Category.elementToDatasetSerializable(Category.java:150)
        at gov.noaa.pmel.tmap.las.util.Category.getDatasetSerializable(Category.java:119)
        at gov.noaa.pmel.tmap.las.util.Category.getCategorySerializable(Category.java:101)
        at gov.noaa.pmel.tmap.las.server.RPCServiceImpl.getCategories(RPCServiceImpl.java:383)
        at gov.noaa.pmel.tmap.las.server.RPCServiceImpl.getCategories(RPCServiceImpl.java:276)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:561)
        ... 21 more

this is my las.xml

<?xml version='1.0' ?>
<!DOCTYPE spec SYSTEM "spec.dtd" [
<!-- Declaration of operations files to be included -->
<!ENTITY operations SYSTEM "operations.xml">
<!-- Declaration of dataset files to be included -->
<!-- Default LAS datasets -->
<!ENTITY WAVE01 SYSTEM "WAVE01.xml">
<!ENTITY SWAN_C01_1H SYSTEM "SWAN_C01_1H.xml">
]>
<lasdata>
 <output_dir>/usr/local/tomcat/webapps/las_waves/output</output_dir>
 <institution name="ENEA-UTMEA"
              contact="emanuele.lombardi@xxxxxxx"
              url="" href="http://utmea.enea.it" target="_blank">http://utmea.enea.it"/>
 <!-- Default properties for this server -->
 <properties>
  <product_server>
   <ui_timeout>20</ui_timeout>
   <ps_timeout>3600</ps_timeout>
   <use_cache>true</use_cache>
   <default_dsid>id-WAVE01</default_dsid>
   <default_varid>hs-id-WAVE01</default_varid>
   <default_operation>Plot_2D_XY_zoom</default_operation>
   <default_option>Options_2D_image_contour_xy_7</default_option>
   <default_view>xy</default_view>
  </product_server>
  <ferret>
   <land_type>contour</land_type>
   <fill_type>fill</fill_type>
  </ferret>
 </properties>
 <!-- Operations supported by this server -->
 <operations url="" href="http://utmea.enea.it:8080/las_waves/ProductServer.do" target="_blank">http://utmea.enea.it:8080/las_waves/ProductServer.do">
   &operations;
 </operations>
&WAVE01;
&SWAN_C01_1H;
</lasdata>

and those are the xml of my datafiles:

cat  WAVE01.xml

<datasets>
  <id-WAVE01 name="/webu/materiale/waves_dati/WAVE01.nc" url="">     <variables>
      <En-id-WAVE01 name="Energy flux" units="W/m" url="">         <link match="/lasdata/grids/grid-lon-lat-time-id-WAVE01" />
      </En-id-WAVE01>
      <ds_sea-id-WAVE01 name="Sea directional spread" units="degree" url="">         <link match="/lasdata/grids/grid-lon-lat-time-id-WAVE01" />
      </ds_sea-id-WAVE01>
      <tm1_sea-id-WAVE01 name="Sea m1-period" units="s" url="">         <link match="/lasdata/grids/grid-lon-lat-time-id-WAVE01" />
      </tm1_sea-id-WAVE01>
      <tm2_sea-id-WAVE01 name="Sea m2-period" units="s" url="">         <link match="/lasdata/grids/grid-lon-lat-time-id-WAVE01" />
      </tm2_sea-id-WAVE01>
      <tmp_sea-id-WAVE01 name="Sea mean period" units="s" url="">         <link match="/lasdata/grids/grid-lon-lat-time-id-WAVE01" />
      </tmp_sea-id-WAVE01>
      <thq_sea-id-WAVE01 name="Sea mean wave direction" units="degree" url="">         <link match="/lasdata/grids/grid-lon-lat-time-id-WAVE01" />
      </thq_sea-id-WAVE01>
      <tp_sea-id-WAVE01 name="Sea peak period" units="s" url="">         <link match="/lasdata/grids/grid-lon-lat-time-id-WAVE01" />
      </tp_sea-id-WAVE01>
      <hs_sea-id-WAVE01 name="Sea significant wave height" units="m" url="">         <link match="/lasdata/grids/grid-lon-lat-time-id-WAVE01" />
      </hs_sea-id-WAVE01>
      <ds_swell-id-WAVE01 name="Swell directional spread" units="degree" url="">         <link match="/lasdata/grids/grid-lon-lat-time-id-WAVE01" />
      </ds_swell-id-WAVE01>
      <tm1_swell-id-WAVE01 name="Swell m1-period" units="s" url="">         <link match="/lasdata/grids/grid-lon-lat-time-id-WAVE01" />
      </tm1_swell-id-WAVE01>
      <tm2_swell-id-WAVE01 name="Swell m2-period" units="s" url="">         <link match="/lasdata/grids/grid-lon-lat-time-id-WAVE01" />
      </tm2_swell-id-WAVE01>
      <tmp_swell-id-WAVE01 name="Swell mean period" units="s" url="">         <link match="/lasdata/grids/grid-lon-lat-time-id-WAVE01" />
      </tmp_swell-id-WAVE01>
      <thw_swell-id-WAVE01 name="Swell mean wave direction" units="degree" url="">         <link match="/lasdata/grids/grid-lon-lat-time-id-WAVE01" />
      </thw_swell-id-WAVE01>
      <tp_swell-id-WAVE01 name="Swell peak period" units="s" url="">         <link match="/lasdata/grids/grid-lon-lat-time-id-WAVE01" />
      </tp_swell-id-WAVE01>
      <hs_swell-id-WAVE01 name="Swell significant wave height" units="m" url="">         <link match="/lasdata/grids/grid-lon-lat-time-id-WAVE01" />
      </hs_swell-id-WAVE01>
      <ds-id-WAVE01 name="Total directional spread" units="degree" url="">         <link match="/lasdata/grids/grid-lon-lat-time-id-WAVE01" />
      </ds-id-WAVE01>
      <tm1-id-WAVE01 name="Total m1-period" units="s" url="">         <link match="/lasdata/grids/grid-lon-lat-time-id-WAVE01" />
      </tm1-id-WAVE01>
      <tm2-id-WAVE01 name="Total m2-period" units="s" url="">         <link match="/lasdata/grids/grid-lon-lat-time-id-WAVE01" />
      </tm2-id-WAVE01>
      <tmp-id-WAVE01 name="Total mean period" units="s" url="">         <link match="/lasdata/grids/grid-lon-lat-time-id-WAVE01" />
      </tmp-id-WAVE01>
      <thq-id-WAVE01 name="Total mean wave direction" units="degree" url="">         <link match="/lasdata/grids/grid-lon-lat-time-id-WAVE01" />
      </thq-id-WAVE01>
      <tp-id-WAVE01 name="Total peak period" units="s" url="">         <link match="/lasdata/grids/grid-lon-lat-time-id-WAVE01" />
      </tp-id-WAVE01>
      <hs-id-WAVE01 name="Total significant wave height" units="m" url="">         <link match="/lasdata/grids/grid-lon-lat-time-id-WAVE01" />
      </hs-id-WAVE01>
      <dd-id-WAVE01 name="Wind direction" units="degree" url="">         <link match="/lasdata/grids/grid-lon-lat-time-id-WAVE01" />
      </dd-id-WAVE01>
      <ff-id-WAVE01 name="Wind speed" units="m s-1" url="">         <link match="/lasdata/grids/grid-lon-lat-time-id-WAVE01" />
      </ff-id-WAVE01>
      <DC-id-WAVE01 name="drag coefficient" units="no units" url="">         <link match="/lasdata/grids/grid-lon-lat-time-id-WAVE01" />
      </DC-id-WAVE01>
      <FV-id-WAVE01 name="friction velocity" units="m s-1" url="">         <link match="/lasdata/grids/grid-lon-lat-time-id-WAVE01" />
      </FV-id-WAVE01>
      <NWS-id-WAVE01 name="normalised_wave_stress" units="no units" url="">         <link match="/lasdata/grids/grid-lon-lat-time-id-WAVE01" />
      </NWS-id-WAVE01>
    </variables>
  </id-WAVE01>
</datasets>
<grids>
  <grid-lon-lat-time-id-WAVE01>
    <link match="/lasdata/axes/lon-x-id-WAVE01" />
    <link match="/lasdata/axes/lat-y-id-WAVE01" />
    <link match="/lasdata/axes/time-t-id-WAVE01" />
  </grid-lon-lat-time-id-WAVE01>
</grids>
<axes>
  <lon-x-id-WAVE01 type="x" units="degrees_east">
    <arange start="-5.5" size="1333" step="0.0312" />
  </lon-x-id-WAVE01>
  <lat-y-id-WAVE01 type="y" units="degrees_north">
    <arange start="30.2" size="501" step="0.0312" />
  </lat-y-id-WAVE01>
  <time-t-id-WAVE01 type="t" units="hour">
    <arange start="2013-11-28 01:00:00" size="120" step="1" />
  </time-t-id-WAVE01>
</axes>


cat SWAN_C01_1H.xml

<datasets>
  <id-SWAN_C01_1H name="/webu/materiale/waves_dati/SWAN_C01_1H.nc" url="">     <composite>
      <xwnd-id-SWAN_C01_1H_ywnd-id-SWAN_C01_1H name="Vector of u-component of wind and v-component of wind" units="m s-1">
        <properties>
          <ui>
            <default>file:ui.xml#VecVariable</default>
          </ui>
        </properties>
        <link match="../../variables/xwnd-id-SWAN_C01_1H" />
        <link match="../../variables/ywnd-id-SWAN_C01_1H" />
      </xwnd-id-SWAN_C01_1H_ywnd-id-SWAN_C01_1H>
    </composite>
    <variables>
      <depth-id-SWAN_C01_1H name="depth below mean sea level" units="m" url="">         <link match="/lasdata/grids/grid-longitude-latitude-time-id-SWAN_C01_1H" />
      </depth-id-SWAN_C01_1H>
      <hs-id-SWAN_C01_1H name="hs" units="m" url="">         <link match="/lasdata/grids/grid-longitude-latitude-time-id-SWAN_C01_1H" />
      </hs-id-SWAN_C01_1H>
      <theta0-id-SWAN_C01_1H name="theta0" units="degrees" url="">         <link match="/lasdata/grids/grid-longitude-latitude-time-id-SWAN_C01_1H" />
      </theta0-id-SWAN_C01_1H>
      <tmm10-id-SWAN_C01_1H name="tm-10" units="s" url="">         <link match="/lasdata/grids/grid-longitude-latitude-time-id-SWAN_C01_1H" />
      </tmm10-id-SWAN_C01_1H>
      <tm01-id-SWAN_C01_1H name="tm01" units="s" url="">         <link match="/lasdata/grids/grid-longitude-latitude-time-id-SWAN_C01_1H" />
      </tm01-id-SWAN_C01_1H>
      <tps-id-SWAN_C01_1H name="tps" units="s" url="">         <link match="/lasdata/grids/grid-longitude-latitude-time-id-SWAN_C01_1H" />
      </tps-id-SWAN_C01_1H>
      <xwnd-id-SWAN_C01_1H name="u-component of wind" units="m s-1" url="">         <link match="/lasdata/grids/grid-longitude-latitude-time-id-SWAN_C01_1H" />
        <properties />
      </xwnd-id-SWAN_C01_1H>
      <ywnd-id-SWAN_C01_1H name="v-component of wind" units="m s-1" url="">         <link match="/lasdata/grids/grid-longitude-latitude-time-id-SWAN_C01_1H" />
        <properties />
      </ywnd-id-SWAN_C01_1H>
    </variables>
  </id-SWAN_C01_1H>
</datasets>
<grids>
  <grid-longitude-latitude-time-id-SWAN_C01_1H>
    <link match="/lasdata/axes/longitude-x-id-SWAN_C01_1H" />
    <link match="/lasdata/axes/latitude-y-id-SWAN_C01_1H" />
    <link match="/lasdata/axes/time-t-id-SWAN_C01_1H" />
  </grid-longitude-latitude-time-id-SWAN_C01_1H>
</grids>
<axes>
  <longitude-x-id-SWAN_C01_1H type="x" units="degrees_east">
    <arange start="7.75" size="160" step="0.0079" />
  </longitude-x-id-SWAN_C01_1H>
  <latitude-y-id-SWAN_C01_1H type="y" units="degrees_north">
    <arange start="38.2" size="512" step="0.0078" />
  </latitude-y-id-SWAN_C01_1H>
  <time-t-id-SWAN_C01_1H type="t" units="hour">
    <arange start="2013-11-29 00:00:00" size="121" step="1" />
  </time-t-id-SWAN_C01_1H>
</axes>



--
Emanuele Lombardi
ENEA Casaccia
I-00123 Roma (RM)
tel. +39 0630483366
http://utmea.enea.it/people/lombardi


[Thread Prev][Thread Next][Index]


Contact Us
Dept of Commerce / NOAA / OAR / PMEL / TMAP

Privacy Policy | Disclaimer | Accessibility Statement