To add an netCDF file downloading function


Althouh Dapper functions are pretty close to what I want and image I need to have a downloading function of insitu data as netCDF.
I've tried to add the function, but it always returned error messages
such like "HTTP request exception:doc is null".

An outline which I want to do actually is below
1. a user can select plot(s) on Dapper map.
2. the user selects "Download data" and choose "NetCDF(gzip)" which I
added in Data download format box.
3. the user clicks "Download selected" button.
4. a web browser kicks httpRequest and information which consists of
plot ids and data format(actually tar.gz) .
5. PlotHandler.java recieves the information and connects to a database.
6. PlotHandler.java gets platform_numbers from databese by plot ids.
7. PlotHandler.java connects to JAMSTEC FTP server and gets netCDF files
followed by the platform_numbers.
8. PlotHandler.java puts recieved files in a unique directory and zip
it (its surffix is tar.gz).
9. Plothandler.java prepares for downloading the zip file.
10. PlotHandler.hava sends the file.
11. the web browser recieves the file.
12. the user finally downloads the file.

An exception error will occur on line 48552 of all-min.js
A variable, named doc is null.
I think something I have to do on HttpRequest to adjust with new file downloading format typem but I do not get how it works...

It would be pleasure if you told me how I can add a new donwloading
option on Dapper.

Hi Shinsaku, There are two


Hi Shinsaku,

There are two possibilites here: there might be a problem with modifications you made to the UI JavaScript code, or you may be running into problems with your modifications to the DChart server Java code.

I'd start with the server -- have you checked the Dapper log files for server exceptions? Another option would be to run the server using the debugger in your favorite IDE.

If the problem turns out to be a UI problem, then you can debug the JavaScript using the Firebug plugin for Firefox. Before you do this, it would be helpful to disable JavaScript compression by setting the DEBUG variable in dchart/html/index.html from 0 to 1

- Joe

dsetid


Joe

Thank you for replying. Once I checked a log file, I got an error message: WARN DclientServlet:80 - javax.servlet.ServletException: MIssing parameter 'dsetid'.
I have also followed the JavaScript with FireBug since I started to work on Dapper, but I could not find any troubles on it.

What and how can I put dsetid value on Request?

Shinsaku