WmHHooper / visigraph

Automatically exported from code.google.com/p/visigraph
0 stars 0 forks source link

New Graph dialog fails to appear #92

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The "New Graph..." dialog appears fine when Visigraph is launched within 
Eclipse, but it fails to open when Visigraph is launched by double-clicking the 
latest .jar file, or when the .jar file is launched from the Terminal window.

What steps will reproduce the problem?

1. From the command line, execute:
java -jar "VisiGraph (201012102346).jar"

2. From the Visigraph menu bar, choose "New Graph..."

What is the expected output? What do you see instead?

The dialog to create a new graph fails to appear.  Instead I get the following 
output in the terminal window:

Exception in thread "AWT-EventQueue-0" 
java.lang.ArrayIndexOutOfBoundsException: 0
        at edu.belmont.mth.visigraph.gui.dialogs.NewGraphDialog.<init>(NewGraphDialog.java:369)
        at edu.belmont.mth.visigraph.gui.dialogs.NewGraphDialog.showDialog(NewGraphDialog.java:40)
        at edu.belmont.mth.visigraph.gui.windows.MainWindow$2$1.actionPerformed(MainWindow.java:120)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2028)
        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2351)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
        at javax.swing.AbstractButton.doClick(AbstractButton.java:389)
        at com.apple.laf.ScreenMenuItem.actionPerformed(ScreenMenuItem.java:95)
        at java.awt.MenuItem.processActionEvent(MenuItem.java:627)
        at java.awt.MenuItem.processEvent(MenuItem.java:586)
        at java.awt.MenuComponent.dispatchEventImpl(MenuComponent.java:317)
        at java.awt.MenuComponent.dispatchEvent(MenuComponent.java:305)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:638)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

What version of the product are you using? On what operating system?

VisiGraph (201012102346).jar
Mac OS X 10.6.5

Please provide any additional information below.

java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-10M3261)
Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03-307, mixed mode)

Original issue reported on code.google.com by hoop...@gmail.com on 13 Dec 2010 at 9:01

GoogleCodeExporter commented 9 years ago
Hmmmm... very mysterious.  I'll check it out.  Thanks!

Original comment by 0x24a53...@gmail.com on 15 Dec 2010 at 8:19

GoogleCodeExporter commented 9 years ago
I've located a probable cause for the problem, but have been unable to 
reproduce it on my machine (notably, running Windows).  Which was the last jar 
file to work properly?

Original comment by 0x24a53...@gmail.com on 15 Dec 2010 at 8:32

GoogleCodeExporter commented 9 years ago
VisiGraph (201010221307).jar and earlier opens a New Graph dialog when I press 
CMD-N or choose New... from the File menu, but the Family: menu is not 
populated.  The only choice is an empty graph.

VisiGraph (201007122209).jar is the newest jar file that actually opens a New 
graph menu populated with generators.  It has seven families (Empty ... 
(Behar)) for a new graph.  (This version displays the old, Windows-type menus, 
where the shortcut for New... was ^N.)

Again, the environment for these tests is Mac OS 10.6.5, Java version 
"1.6.0_22".  

Original comment by hoop...@gmail.com on 15 Dec 2010 at 2:31

GoogleCodeExporter commented 9 years ago
For v.201010221307, the menu is probably unpopulated because the only 
downloaded generators are still using the old ".generator" file extension (to 
test this, try renaming them with a ".java" file extension).  As I suspected, 
however, there does appear to be a problem in the reflection code when running 
outside of Eclipse on Macs.  I'll keep checking it out though (I'll have to 
test it on my sister's Mac over the Christmas break).

Original comment by 0x24a53...@gmail.com on 16 Dec 2010 at 12:24

GoogleCodeExporter commented 9 years ago
Fixed!  Unfortunately, though, I had to remove all the reflection logic.  Oh 
well.

Original comment by 0x24a53...@gmail.com on 4 Jan 2011 at 5:22