NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
Robert B. Schmunk wrote:
you can send me the file and ill check it, but im not sure i have a 4.0 development environment still (I can check tommorrow)John, A Panoply user with data on the polar stereographic grid is having troubled because the projection handler in NC 4.0 is throwing an exception parsing the grid mapping attributes.
im guessing that you need to add something like "-Xmx512m" option to your javac invocation. basically the symbol table has gotten too large for the default heap size.The dataset tags look fine to me, so I thought I would try to add a couple lines of output diagnostics to see if I could get a better grip on why the exception is being thrown, but that means compiling NC 4.0 from scratch. Unfortunately, I'm running into a brick wall trying to do so. The ant compile process is throwing a memory heap error, as shown below. Any suggestions in how to deal with this? I'm using OS X and the machine has 5 GB of memory.
(And yes, I know NJ 4.0 is getting long in the tooth, but I'm stuck using it a little longer until more of my Mac-based user base have upgraded their hardware. I'm thinking I will finally jump up to NJ 4.1 this summer.) would be good
that would be good
Thanks, rbs rschmunk@yoshio> ant compile /usr/bin Buildfile: build.xml release-settings: compile: [mkdir] Created dir: /Users/rschmunk/Devo/java/src3p/ncSrc-4.0/cdm/target/classes [javac] Compiling 973 source files to /Users/rschmunk/Devo/java/src3p/ncSrc-4.0/cdm/target/classes[javac] [javac] [javac] The system is out of resources.[javac] Consult the following stack trace for details. [javac] java.lang.OutOfMemoryError: Java heap space [javac] at java.nio.HeapCharBuffer.<init>(HeapCharBuffer.java:39) [javac] at java.nio.CharBuffer.allocate(CharBuffer.java:312) [javac] at com.sun.tools.javac.util.DefaultFileManager.decode(DefaultFileManager.java:790) [javac] at com.sun.tools.javac.util.DefaultFileManager.access$300(DefaultFileManager.java:76) [javac] at com.sun.tools.javac.util.DefaultFileManager$RegularFileObject.getCharContent(DefaultFileManager.java:1353) [javac] at com.sun.tools.javac.util.DefaultFileManager$RegularFileObject.getCharContent(DefaultFileManager.java:1252) [javac] at com.sun.tools.javac.util.Log.getCharContent(Log.java:318) [javac] at com.sun.tools.javac.util.Log.findLine(Log.java:334) [javac] at com.sun.tools.javac.util.Log.getLineNumber(Log.java:646) [javac] at com.sun.tools.javac.util.Log$1.getLineNumber(Log.java:219) [javac] at com.sun.tools.javac.util.JCDiagnostic.<init>(JCDiagnostic.java:292) [javac] at com.sun.tools.javac.util.JCDiagnostic$Factory.error(JCDiagnostic.java:76) [javac] at com.sun.tools.javac.util.Log.error(Log.java:394) [javac] at com.sun.tools.javac.comp.Resolve$ResolveError.report(Resolve.java:1611) [javac] at com.sun.tools.javac.comp.Resolve.access(Resolve.java:1079) [javac] at com.sun.tools.javac.comp.Resolve.resolveQualifiedMethod(Resolve.java:1214) [javac] at com.sun.tools.javac.comp.Annotate.enterAnnotation(Annotate.java:156) [javac] at com.sun.tools.javac.comp.MemberEnter.enterAnnotations(MemberEnter.java:743) [javac] at com.sun.tools.javac.comp.MemberEnter.access$300(MemberEnter.java:42) [javac] at com.sun.tools.javac.comp.MemberEnter$5.enterAnnotation(MemberEnter.java:711) [javac] at com.sun.tools.javac.comp.Annotate.flush(Annotate.java:95) [javac] at com.sun.tools.javac.comp.Annotate.enterDone(Annotate.java:87) [javac] at com.sun.tools.javac.comp.Enter.complete(Enter.java:472) [javac] at com.sun.tools.javac.comp.Enter.main(Enter.java:429) [javac] at com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:819) [javac] at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:727) [javac] at com.sun.tools.javac.main.Main.compile(Main.java:353) [javac] at com.sun.tools.javac.main.Main.compile(Main.java:279) [javac] at com.sun.tools.javac.main.Main.compile(Main.java:270) [javac] at com.sun.tools.javac.Main.compile(Main.java:69) [javac] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [javac] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) BUILD FAILED /Users/rschmunk/Devo/java/src3p/ncSrc-4.0/cdm/build.xml:268: Compile failed; see the compiler error output for details. Total time: 34 seconds -- Robert B. Schmunk, address@hidden NASA Goddard Institute for Space Studies, 2880 Broadway, New York, NY 10025