[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDFJava #QWU-681714]: problems launching ToolsUI through Webstart



Don,

We still have not been able to reproduce the issue you are seeing, but we did 
find one bit of code that might have caused an NPE.  We've fixed the code and 
you should see it in the next release.

-Lansing

> Hi Lansing-
> 
> On 2/8/13 1:34 PM, Unidata netCDF Java Support wrote:
> > In your home directory, you should have a .unidata subdirectory
> > containing the file NetcdfUI22.xml.  You'll find all sorts of
> > information in there (for instance, I grepped for "madry" and found the
> > histories of directories and files I had previously opened with
> > ToolsUI), including the entry:
> >
> > <node name='FileManager' >
> >     <map>
> >       <entry key='DefaultDir' value='C:\Users\madry\AppData\Local\Temp' />
> >       <entry key='DefaultFilter' value='All Files' />
> >     </map>
> > </node>
> >
> > You might try deleting the file, or at least reading through it to see
> > if there is stale information contained therein.
> 
> I thought that's where it was kept and had moved that out of the way,
> but still have the hangs.  Just wondering if that was still used.
> 
> Don
> 
> > On 2/6/2013 3:34 PM, Don Murray (NOAA Affiliate) wrote:
> >> New Client Reply: problems launching ToolsUI through Webstart
> >>
> >> Lansing-
> >>
> >> On 2/6/13 3:06 PM, Unidata netCDF Java Support wrote:
> >>> I looked at system properties and see things stashed everywhere.
> >> On MacOS, you can bring up the Java Preferences and it shows you where
> >> Webstart caches things.
> >>
> >> I was wondering about the ToolsUI preferences/history.  For example,
> >> when you load a dataset into one of the tabs, it remembers that in the
> >> dropdown list.  You can also save favorite directories for the file
> >> chooser.  Where is that information stored?
> >>
> >>> Question:
> >>>
> >>> Are you only starting from the webstart cache and having problems? In
> >>> other words, what happens when you click on the "launch from webstart"
> >>> button on the Unidata page:
> >>>
> >>> http://www.unidata.ucar.edu/software/netcdf-java/documentation.htm
> >> This is where I'm launching from.  When I clear my cache, it downloads
> >> the application and then launches.  When I don't clear the cache, I
> >> presume it loads from there, but in both cases I'm clicking on the web
> >> page above.  And in both cases, it hangs.
> >>
> >> Don
> >>
> >>> On 2/6/2013 2:45 PM, Don Murray wrote:
> >>>> New Client Reply: problems launching ToolsUI through Webstart
> >>>>
> >>>> Lansing-
> >>>>
> >>>> On 2/6/13 2:37 PM, Unidata netCDF Java Support wrote:
> >>>>> I poked around a little more.  Nothing definitive, but folks on
> >>>>> stackexchange and stackoverflow seem to have a lot of thoughts about
> >>>>> webstart.  Looking at the jnlp file, we may need to update http to
> >>>>> https, among other things, for Java 7:
> >>>>>
> >>>>> http://stackoverflow.com/questions/9623837/java-web-start-broken-since-jdk-1-7
> >>>>>
> >>>>> but that doesn't address why it doesn't work for your laptop with jre6.
> >>>> Agreed.
> >>>>
> >>>>> Also...I have this recollection that Java was recently labeled "bad" and
> >>>>> "insecure" on client-side applications.  Some companies, Apple among
> >>>>> them, took steps to disable java.  This could be part of the problem,
> >>>>> though I'm just speculating.
> >>>> On Mac OS-X 10.8.2, you have to manually enable Java 7 if it's been
> >>>> turned off.  However, when it is turned off, the application can't even
> >>>> be launched.  (See below)
> >>>>
> >>>>> Java Web Start 10.7.2.10
> >>>>> Using JRE version 1.7.0_07-b10 Java HotSpot(TM) 64-Bit Server VM
> >>>>> User home directory = C:\Users\madry
> >>>>> ----------------------------------------------------
> >>>>> c:   clear console window
> >>>>> f:   finalize objects on finalization queue
> >>>>> g:   garbage collect
> >>>>> h:   display this help message
> >>>>> m:   print memory usage
> >>>>> o:   trigger logging
> >>>>> p:   reload proxy configuration
> >>>>> q:   hide console
> >>>>> r:   reload policy configuration
> >>>>> s:   dump system and deployment properties
> >>>>> t:   dump thread list
> >>>>> v:   dump thread stack
> >>>>> 0-5: set trace level to <n>
> >>>>> ----------------------------------------------------
> >>>>> CacheEntry[http://www.unidata.ucar.edu/software/netcdf-java/v4.3/webstart/netCDFtools.jnlp]:
> >>>>> updateAvailable=true,lastModified=Wed Nov 21 18:53:42 MST 
> >>>>> 2012,length=1748
> >>>>>           Match: beginTraversal
> >>>>> Match: digest selected JREDesc: JREDesc[version 1.6+,
> >>>>> heap=-1-1073741824, args=null, href=null, sel=false, null, null],
> >>>>> JREInfo: JREInfo for index 0:
> >>>>>           platform is: 1.7
> >>>>>           product is: 1.7.0_07
> >>>>>           location is: http://java.sun.com/products/autodl/j2se
> >>>>>           path is: C:\Program Files\Java\jre7\bin\javaw.exe
> >>>>>           args is: null
> >>>>>           native platform is: Windows, amd64 [ x86_64, 64bit ]
> >>>>>           JavaFX runtime is: JavaFX 2.2.0 found at C:\Program 
> >>>>> Files\Java\jre7\
> >>>>>           enabled is: true
> >>>>>           registered is: true
> >>>>>           system is: true
> >>>>>
> >>>>>           Match: selecting maxHeap: 1073741824
> >>>>>           Match: ignoring InitHeap: -1
> >>>>>           Match: digesting vmargs: null
> >>>>>           Match: digested vmargs: [JVMParameters: isSecure: true, args: 
> >>>>> ]
> >>>>>           Match: JVM args after accumulation: [JVMParameters: isSecure: 
> >>>>> true,
> >>>>> args: ]
> >>>>>           Match: digest LaunchDesc:
> >>>>> http://www.unidata.ucar.edu/software/netcdf-java/v4.3/webstart/netCDFtools.jnlp
> >>>>>           Match: digest properties: []
> >>>>>           Match: JVM args: [JVMParameters: isSecure: true, args: ]
> >>>>>           Match: endTraversal ..
> >>>>>           Match: JVM args final: -Xmx1g
> >>>>>           Match: Running JREInfo Version    match: 1.7.0.07 == 1.7.0.07
> >>>>>            Match: Running JVM args match: have:<-Xmx1g>  satisfy 
> >>>>> want:<-Xmx1g>
> >>>>> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
> >>>>> SLF4J: Defaulting to no-operation (NOP) logger implementation
> >>>>> SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for
> >>>>> further details.
> >>>> I get the same printout as you have below, and then it freezes.  I can't
> >>>> resize the console window.
> >>>>
> >>>> One thought is that the file chooser can lock up if it can't get to a
> >>>> directory in it's preference list.  We had to work around that in the
> >>>> IDV, particularly when it points to a non-existent file or directory.
> >>>> Where does ToolsUI store it's history/preferences?
> >>>>
> >>>> Don
> >>>>
> >>>>
> >>>>> On 2/6/2013 9:23 AM, Don Murray (NOAA Affiliate) wrote:
> >>>>>> New Client Reply: problems launching ToolsUI through Webstart
> >>>>>>
> >>>>>> Lansing-
> >>>>>>
> >>>>>> Webstart is notoriously flaky and prone to hangs.  Just as Ben about 
> >>>>>> his
> >>>>>> early experiences with the IDV and Webstart on Windows.  Sometimes
> >>>>>> clearing the cache worked, sometimes not. What version of Java are your
> >>>>>> macs using?  Mine is running Java 7.
> >>>>>>
> >>>>>> However, I just tried it on my laptop with the same results and that is
> >>>>>> running a different version of Mac OS and Java. (10.6.8 and Java 6).
> >>>>>>
> >>>>>> Don
> >>>>>>
> >>>>>> On 2/6/13 9:14 AM, Unidata netCDF Java Support wrote:
> >>>>>>> Okay, I'll ask Ethan what he "fixed" and try to find out if it became
> >>>>>>> "unfixed."  I'm still confused as to why I couldn't reproduce the 
> >>>>>>> issue
> >>>>>>> on the Macs in our office.
> >>>>>>>
> >>>>>>> -Lansing
> >>>>>>>
> >>>>>>> On 2/5/2013 3:38 PM, Don Murray (NOAA Affiliate) wrote:
> >>>>>>>> New Client Reply: problems launching ToolsUI through Webstart
> >>>>>>>>
> >>>>>>>> Lansing-
> >>>>>>>>
> >>>>>>>> On 2/5/13 2:44 PM, Unidata netCDF Java Support wrote:
> >>>>>>>>> Don,
> >>>>>>>>>
> >>>>>>>>> Is this still happening for you?  I've gone around our office and 
> >>>>>>>>> asked different people to launch ToolsUI 4.3 from webstart, and it 
> >>>>>>>>> seems to be launching just fine on Windows, Mac, and Linux boxes.
> >>>>>>>> I removed the application from the WebStart manager and then it 
> >>>>>>>> launched
> >>>>>>>> okay.  However, when I used the System->Exit menu to exit ToolsUI, I 
> >>>>>>>> got:
> >>>>>>>>
> >>>>>>>> Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
> >>>>>>>>      at ucar.nc2.ui.widget.FileManager.save(FileManager.java:243)
> >>>>>>>>      at ucar.nc2.ui.ToolsUI.save(ToolsUI.java:1009)
> >>>>>>>>      at ucar.nc2.ui.ToolsUI.exit(ToolsUI.java:5817)
> >>>>>>>>      at ucar.nc2.ui.ToolsUI.access$1400(ToolsUI.java:106)
> >>>>>>>>      at ucar.nc2.ui.ToolsUI$25.actionPerformed(ToolsUI.java:809)
> >>>>>>>>      at 
> >>>>>>>> javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
> >>>>>>>>      at
> >>>>>>>> javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
> >>>>>>>>      at
> >>>>>>>> javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
> >>>>>>>>      at 
> >>>>>>>> javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
> >>>>>>>>      at javax.swing.AbstractButton.doClick(AbstractButton.java:376)
> >>>>>>>>      at 
> >>>>>>>> javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833)
> >>>>>>>>      at com.apple.laf.AquaMenuItemUI.doClick(AquaMenuItemUI.java:157)
> >>>>>>>> ......
> >>>>>>>>
> >>>>>>>> and doesn't exit.  I did a force quit, cleared the webstart cache 
> >>>>>>>> again,
> >>>>>>>> but now it hangs.  I've repeated this several times and haven't been
> >>>>>>>> able to start it.
> >>>>>>>>
> >>>>>>>> Like I said, I had this problem in the past, John or Ethan told me 
> >>>>>>>> they
> >>>>>>>> fixed something and then it started working for a while.
> >>>>>>>>
> >>>>>>>> Don
> >>>>>>>>
> >>>>>>>>>> Lansing-
> >>>>>>>>>>
> >>>>>>>>>> I reported this problem in the past, and it seemed to clear up, 
> >>>>>>>>>> but now
> >>>>>>>>>> it's annoying me again.
> >>>>>>>>>>
> >>>>>>>>>> When I try to launch ToolsUI 4.3 from the webstart link on the
> >>>>>>>>>> netCDF-Java page:
> >>>>>>>>>>
> >>>>>>>>>> http://www.unidata.ucar.edu/software/netcdf-java/v4.3/webstart/netCDFtools.jnlp
> >>>>>>>>>>
> >>>>>>>>>> I get the splash screen, but then it just hangs.  The webstart 
> >>>>>>>>>> console
> >>>>>>>>>> is frozen (so I can't copy the text to send along).  I have to 
> >>>>>>>>>> Force
> >>>>>>>>>> Quit the application.
> >>>>>>>>>>
> >>>>>>>>>> I'm running on Mac OS-X 10.8.2 and it uses Java 7.
> >>>>>>>>>>
> >>>>>>>>>> Don
> >>>>>>>>>> --
> >>>>>>>>>> Don Murray
> >>>>>>>>>> NOAA/ESRL/PSD and CIRES
> >>>>>>>>>> 303-497-3596
> >>>>>>>>>> http://www.esrl.noaa.gov/psd/people/don.murray/
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>> Ticket Details
> >>>>>>>>> ===================
> >>>>>>>>> Ticket ID: QWU-681714
> >>>>>>>>> Department: Support netCDF Java
> >>>>>>>>> Priority: Normal
> >>>>>>>>> Status: Open
> >>>>>>>>>
> >>>>>>> Ticket Details
> >>>>>>> ===================
> >>>>>>> Ticket ID: QWU-681714
> >>>>>>> Department: Support netCDF Java
> >>>>>>> Priority: Normal
> >>>>>>> Status: Open
> >>>>>>>
> >>>>>
> >>>>> Ticket Details
> >>>>> ===================
> >>>>> Ticket ID: QWU-681714
> >>>>> Department: Support netCDF Java
> >>>>> Priority: Normal
> >>>>> Status: Open
> >>>>>
> >>>
> >>>
> >>> Ticket Details
> >>> ===================
> >>> Ticket ID: QWU-681714
> >>> Department: Support netCDF Java
> >>> Priority: Normal
> >>> Status: Open
> >>>
> >
> >
> >
> > Ticket Details
> > ===================
> > Ticket ID: QWU-681714
> > Department: Support netCDF Java
> > Priority: Normal
> > Status: Open
> >
> 
> --
> Don Murray
> NOAA/ESRL/PSD and CIRES
> 303-497-3596
> http://www.esrl.noaa.gov/psd/people/don.murray/
> 
> 


Ticket Details
===================
Ticket ID: QWU-681714
Department: Support netCDF Java
Priority: Emergency
Status: Open