20060919: Announcement of OPeNDAP Sever4 Software 0.9.1 Alpha Release

Patrice Dumas pertusus at free.fr
Tue Sep 19 14:01:36 PDT 2006


Hello,

I tested the build with gcj, there are some errors. There are also
warnings that seems innocuous to me, and some errors are triggered
by the previous ones.

To avoid some warnings, I added, in <javac>
            <compilerarg value="-1.5"/>

I attach the build output.

--
Pat
-------------- next part --------------
Buildfile: buildfiles/s4.xml

clean:
   [delete] Deleting directory /home/dumas/tmp/Server4-0.1.3-src/build

init:
    [mkdir] Created dir: /home/dumas/tmp/Server4-0.1.3-src/build
    [mkdir] Created dir: /home/dumas/tmp/Server4-0.1.3-src/build/classes
    [mkdir] Created dir: /home/dumas/tmp/Server4-0.1.3-src/build/doc
    [mkdir] Created dir: /home/dumas/tmp/Server4-0.1.3-src/build/dist
    [mkdir] Created dir: /home/dumas/tmp/Server4-0.1.3-src/build/lib
     [echo] time: 2232

s4:
     [echo] AntFile: /home/dumas/tmp/Server4-0.1.3-src/buildfiles/s4.xml Compiling Server4
     [echo] Using the modern javac compiler

    [javac] Compiling 38 source files to /home/dumas/tmp/Server4-0.1.3-src/build/classes
    [javac] ----------
    [javac] 1. WARNING in /home/dumas/tmp/Server4-0.1.3-src/src/hao/TestClient.java
    [javac]  (at line 44)
    [javac] 	int timeoutVal = 0;
    [javac] 	    ^^^^^^^^^^
    [javac] The local variable timeoutVal is never read
    [javac] ----------
    [javac] 2. WARNING in /home/dumas/tmp/Server4-0.1.3-src/src/hao/TestClient.java
    [javac]  (at line 45)
    [javac] 	boolean debug = false;
    [javac] 	        ^^^^^
    [javac] The local variable debug is never read
    [javac] ----------
    [javac] 3. WARNING in /home/dumas/tmp/Server4-0.1.3-src/src/hao/TestClient.java
    [javac]  (at line 55)
    [javac] 	Option opt_d = new Option("d", "debug", false, "");
    [javac] 	       ^^^^^
    [javac] The local variable opt_d is never read
    [javac] ----------
    [javac] 4. WARNING in /home/dumas/tmp/Server4-0.1.3-src/src/hao/TestClient.java
    [javac]  (at line 66)
    [javac] 	String msg = "";
    [javac] 	       ^^^
    [javac] The local variable msg is never read
    [javac] ----------
    [javac] ----------
    [javac] 5. WARNING in /home/dumas/tmp/Server4-0.1.3-src/src/opendap/coreServlet/BadUsageException.java
    [javac]  (at line 34)
    [javac] 	public class BadUsageException extends OPeNDAPException{
    [javac] 	             ^^^^^^^^^^^^^^^^^
    [javac] The serializable class BadUsageException does not declare a static final serialVersionUID field of type long
    [javac] ----------
    [javac] ----------
    [javac] 6. ERROR in /home/dumas/tmp/Server4-0.1.3-src/src/opendap/coreServlet/Debug.java
    [javac]  (at line 36)
    [javac] 	static private TreeMap <String, Boolean> map = new TreeMap<String, Boolean>();
    [javac] 	               ^^^^^^^
    [javac] The type TreeMap is not generic; it cannot be parameterized with arguments <String, Boolean>
    [javac] ----------
    [javac] 7. ERROR in /home/dumas/tmp/Server4-0.1.3-src/src/opendap/coreServlet/Debug.java
    [javac]  (at line 36)
    [javac] 	static private TreeMap <String, Boolean> map = new TreeMap<String, Boolean>();
    [javac] 	                                                   ^^^^^^^
    [javac] The type TreeMap is not generic; it cannot be parameterized with arguments <String, Boolean>
    [javac] ----------
    [javac] 8. ERROR in /home/dumas/tmp/Server4-0.1.3-src/src/opendap/coreServlet/Debug.java
    [javac]  (at line 41)
    [javac] 	val = map.get(flagName);
    [javac] 	      ^^^
    [javac] map cannot be resolved
    [javac] ----------
    [javac] 9. ERROR in /home/dumas/tmp/Server4-0.1.3-src/src/opendap/coreServlet/Debug.java
    [javac]  (at line 44)
    [javac] 	map.put(flagName, false);
    [javac] 	^^^
    [javac] map cannot be resolved
    [javac] ----------
    [javac] 10. ERROR in /home/dumas/tmp/Server4-0.1.3-src/src/opendap/coreServlet/Debug.java
    [javac]  (at line 53)
    [javac] 	map.put(flagName, value);
    [javac] 	^^^
    [javac] map cannot be resolved
    [javac] ----------
    [javac] 11. ERROR in /home/dumas/tmp/Server4-0.1.3-src/src/opendap/coreServlet/Debug.java
    [javac]  (at line 58)
    [javac] 	map = new TreeMap<String, Boolean>();
    [javac] 	^^^
    [javac] map cannot be resolved
    [javac] ----------
    [javac] 12. ERROR in /home/dumas/tmp/Server4-0.1.3-src/src/opendap/coreServlet/Debug.java
    [javac]  (at line 58)
    [javac] 	map = new TreeMap<String, Boolean>();
    [javac] 	          ^^^^^^^
    [javac] The type TreeMap is not generic; it cannot be parameterized with arguments <String, Boolean>
    [javac] ----------
    [javac] 13. ERROR in /home/dumas/tmp/Server4-0.1.3-src/src/opendap/coreServlet/Debug.java
    [javac]  (at line 62)
    [javac] 	return map.keySet();
    [javac] 	       ^^^
    [javac] map cannot be resolved
    [javac] ----------
    [javac] ----------
    [javac] 14. ERROR in /home/dumas/tmp/Server4-0.1.3-src/src/opendap/coreServlet/DebugHandler.java
    [javac]  (at line 95)
    [javac] 	for (Object o : Debug.keySet()) {
    [javac] 	                ^^^^^^^^^^^^^^
    [javac] Can only iterate over an array or an instance of java.lang.Iterable
    [javac] ----------
    [javac] ----------
    [javac] 15. WARNING in /home/dumas/tmp/Server4-0.1.3-src/src/opendap/coreServlet/DispatchServlet.java
    [javac]  (at line 63)
    [javac] 	public class DispatchServlet extends HttpServlet {
    [javac] 	             ^^^^^^^^^^^^^^^
    [javac] The serializable class DispatchServlet does not declare a static final serialVersionUID field of type long
    [javac] ----------
    [javac] 16. ERROR in /home/dumas/tmp/Server4-0.1.3-src/src/opendap/coreServlet/DispatchServlet.java
    [javac]  (at line 601)
    [javac] 	@Override
    [javac] 	 ^^^^^^^^
    [javac] Override cannot be resolved to a type
    [javac] ----------
    [javac] ----------
    [javac] 17. ERROR in /home/dumas/tmp/Server4-0.1.3-src/src/opendap/coreServlet/MultipartResponse.java
    [javac]  (at line 59)
    [javac] 	private Vector<Attachment> attachments;
    [javac] 	        ^^^^^^
    [javac] The type Vector is not generic; it cannot be parameterized with arguments <Attachment>
    [javac] ----------
    [javac] 18. ERROR in /home/dumas/tmp/Server4-0.1.3-src/src/opendap/coreServlet/MultipartResponse.java
    [javac]  (at line 75)
    [javac] 	attachments  = new Vector<Attachment>();
    [javac] 	^^^^^^^^^^^
    [javac] attachments cannot be resolved
    [javac] ----------
    [javac] 19. ERROR in /home/dumas/tmp/Server4-0.1.3-src/src/opendap/coreServlet/MultipartResponse.java
    [javac]  (at line 75)
    [javac] 	attachments  = new Vector<Attachment>();
    [javac] 	                   ^^^^^^
    [javac] The type Vector is not generic; it cannot be parameterized with arguments <Attachment>
    [javac] ----------
    [javac] 20. ERROR in /home/dumas/tmp/Server4-0.1.3-src/src/opendap/coreServlet/MultipartResponse.java
    [javac]  (at line 176)
    [javac] 	for (Attachment a : attachments)
    [javac] 	                    ^^^^^^^^^^^
    [javac] attachments cannot be resolved
    [javac] ----------
    [javac] 21. ERROR in /home/dumas/tmp/Server4-0.1.3-src/src/opendap/coreServlet/MultipartResponse.java
    [javac]  (at line 203)
    [javac] 	attachments.add(new Attachment(contentType,contentId,is));
    [javac] 	^^^^^^^^^^^
    [javac] attachments cannot be resolved
    [javac] ----------
    [javac] ----------
    [javac] 22. WARNING in /home/dumas/tmp/Server4-0.1.3-src/src/opendap/coreServlet/OPeNDAPException.java
    [javac]  (at line 39)
    [javac] 	public class OPeNDAPException extends Exception {
    [javac] 	             ^^^^^^^^^^^^^^^^
    [javac] The serializable class OPeNDAPException does not declare a static final serialVersionUID field of type long
    [javac] ----------
    [javac] ----------
    [javac] 23. WARNING in /home/dumas/tmp/Server4-0.1.3-src/src/opendap/coreServlet/ReqState.java
    [javac]  (at line 175)
    [javac] 	private String prepCE(String ce) {
    [javac] 	               ^^^^^^^^^^^^^^^^^
    [javac] The method prepCE(String) from the type ReqState is never used locally
    [javac] ----------
    [javac] ----------
    [javac] 24. ERROR in /home/dumas/tmp/Server4-0.1.3-src/src/opendap/coreServlet/SOAPRequestDispatcher.java
    [javac]  (at line 97)
    [javac] 	for (Object soapContent : soapContents) {
    [javac] 	                          ^^^^^^^^^^^^
    [javac] Can only iterate over an array or an instance of java.lang.Iterable
    [javac] ----------
    [javac] 25. ERROR in /home/dumas/tmp/Server4-0.1.3-src/src/opendap/coreServlet/SOAPRequestDispatcher.java
    [javac]  (at line 256)
    [javac] 	for (Object req1 : reqs) {
    [javac] 	                   ^^^^
    [javac] Can only iterate over an array or an instance of java.lang.Iterable
    [javac] ----------
    [javac] ----------
    [javac] 26. ERROR in /home/dumas/tmp/Server4-0.1.3-src/src/opendap/niotest/Jbes.java
    [javac]  (at line 257)
    [javac] 	Vector<ByteBuffer> que = new Vector<ByteBuffer>();
    [javac] 	^^^^^^
    [javac] The type Vector is not generic; it cannot be parameterized with arguments <ByteBuffer>
    [javac] ----------
    [javac] 27. ERROR in /home/dumas/tmp/Server4-0.1.3-src/src/opendap/niotest/Jbes.java
    [javac]  (at line 257)
    [javac] 	Vector<ByteBuffer> que = new Vector<ByteBuffer>();
    [javac] 	                             ^^^^^^
    [javac] The type Vector is not generic; it cannot be parameterized with arguments <ByteBuffer>
    [javac] ----------
    [javac] ----------
    [javac] 28. WARNING in /home/dumas/tmp/Server4-0.1.3-src/src/opendap/niotest/NioServlet.java
    [javac]  (at line 47)
    [javac] 	public class NioServlet extends HttpServlet {
    [javac] 	             ^^^^^^^^^^
    [javac] The serializable class NioServlet does not declare a static final serialVersionUID field of type long
    [javac] ----------
    [javac] ----------
    [javac] 29. ERROR in /home/dumas/tmp/Server4-0.1.3-src/src/opendap/olfs/BESCrawlableDataset.java
    [javac]  (at line 405)
    [javac] 	Vector <BESCrawlableDataset> childDatasets  = new Vector <BESCrawlableDataset>() ;
    [javac] 	^^^^^^
    [javac] The type Vector is not generic; it cannot be parameterized with arguments <BESCrawlableDataset>
    [javac] ----------
    [javac] 30. ERROR in /home/dumas/tmp/Server4-0.1.3-src/src/opendap/olfs/BESCrawlableDataset.java
    [javac]  (at line 405)
    [javac] 	Vector <BESCrawlableDataset> childDatasets  = new Vector <BESCrawlableDataset>() ;
    [javac] 	                                                  ^^^^^^
    [javac] The type Vector is not generic; it cannot be parameterized with arguments <BESCrawlableDataset>
    [javac] ----------
    [javac] 31. ERROR in /home/dumas/tmp/Server4-0.1.3-src/src/opendap/olfs/BESCrawlableDataset.java
    [javac]  (at line 406)
    [javac] 	for (Object _childDatasetElement : _childDatasetElements) {
    [javac] 	                                   ^^^^^^^^^^^^^^^^^^^^^
    [javac] Can only iterate over an array or an instance of java.lang.Iterable
    [javac] ----------
    [javac] 32. ERROR in /home/dumas/tmp/Server4-0.1.3-src/src/opendap/olfs/BESCrawlableDataset.java
    [javac]  (at line 464)
    [javac] 	List <CrawlableDataset> retList = new ArrayList<CrawlableDataset>();
    [javac] 	^^^^
    [javac] The type List is not generic; it cannot be parameterized with arguments <CrawlableDataset>
    [javac] ----------
    [javac] 33. ERROR in /home/dumas/tmp/Server4-0.1.3-src/src/opendap/olfs/BESCrawlableDataset.java
    [javac]  (at line 464)
    [javac] 	List <CrawlableDataset> retList = new ArrayList<CrawlableDataset>();
    [javac] 	                                      ^^^^^^^^^
    [javac] The type ArrayList is not generic; it cannot be parameterized with arguments <CrawlableDataset>
    [javac] ----------
    [javac] 34. ERROR in /home/dumas/tmp/Server4-0.1.3-src/src/opendap/olfs/BESCrawlableDataset.java
    [javac]  (at line 465)
    [javac] 	for (Object aList : list) {
    [javac] 	                    ^^^^
    [javac] Can only iterate over an array or an instance of java.lang.Iterable
    [javac] ----------
    [javac] ----------
    [javac] 35. WARNING in /home/dumas/tmp/Server4-0.1.3-src/src/opendap/olfs/BESException.java
    [javac]  (at line 38)
    [javac] 	public class BESException extends OPeNDAPException {
    [javac] 	             ^^^^^^^^^^^^
    [javac] The serializable class BESException does not declare a static final serialVersionUID field of type long
    [javac] ----------
    [javac] ----------
    [javac] 36. WARNING in /home/dumas/tmp/Server4-0.1.3-src/src/opendap/olfs/BadConfigurationException.java
    [javac]  (at line 37)
    [javac] 	public class BadConfigurationException extends OPeNDAPException {
    [javac] 	             ^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] The serializable class BadConfigurationException does not declare a static final serialVersionUID field of type long
    [javac] ----------
    [javac] ----------
    [javac] 37. ERROR in /home/dumas/tmp/Server4-0.1.3-src/src/opendap/olfs/HttpDispatchHandler.java
    [javac]  (at line 175)
    [javac] 	for (Object o : getVersionDocument().getRootElement().getChild("BES").getChildren("l
    [javac] ib")) {
    [javac] 	                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] Can only iterate over an array or an instance of java.lang.Iterable
    [javac] ----------
    [javac] 38. ERROR in /home/dumas/tmp/Server4-0.1.3-src/src/opendap/olfs/HttpDispatchHandler.java
    [javac]  (at line 196)
    [javac] 	for (Object o : getVersionDocument().getRootElement().getChildren()) {
    [javac] 	                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] Can only iterate over an array or an instance of java.lang.Iterable
    [javac] ----------
    [javac] 39. ERROR in /home/dumas/tmp/Server4-0.1.3-src/src/opendap/olfs/HttpDispatchHandler.java
    [javac]  (at line 198)
    [javac] 	for (Object o1 : pkg.getChildren("lib")) {
    [javac] 	                 ^^^^^^^^^^^^^^^^^^^^^^
    [javac] Can only iterate over an array or an instance of java.lang.Iterable
    [javac] ----------
    [javac] 40. ERROR in /home/dumas/tmp/Server4-0.1.3-src/src/opendap/olfs/HttpDispatchHandler.java
    [javac]  (at line 227)
    [javac] 	for (Object o : getVersionDocument().getRootElement().getChild("DAP").getChildren("v
    [javac] ersion")) {
    [javac] 	                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] Can only iterate over an array or an instance of java.lang.Iterable
    [javac] ----------
    [javac] ----------
    [javac] 41. WARNING in /home/dumas/tmp/Server4-0.1.3-src/src/opendap/ppt/PPTException.java
    [javac]  (at line 35)
    [javac] 	public class PPTException  extends Exception{
    [javac] 	             ^^^^^^^^^^^^
    [javac] The serializable class PPTException does not declare a static final serialVersionUID field of type long
    [javac] ----------
    [javac] 41 problems (29 errors, 12 warnings)

BUILD FAILED
/home/dumas/tmp/Server4-0.1.3-src/buildfiles/s4.xml:79: Compile failed; see the compiler error output for details.

Total time: 2 seconds


More information about the Opendap-tech mailing list