Go Back   CodingForums.com > :: Server side development > Java and JSP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-08-2012, 05:30 PM   PM User | #16
jfreak53
Regular Coder

 
jfreak53's Avatar
 
Join Date: May 2004
Location: Guatemala
Posts: 477
Thanks: 19
Thanked 10 Times in 10 Posts
jfreak53 is an unknown quantity at this point
Ok, I got the MySQL error gone, it was still trying localhost woops. But now it still won't get past executing file chooser. I change the function for the excelchoose to add some prompts so I know where it's at:

Code:
private File chooseExcelFile () {
        JOptionPane.showMessageDialog(null, "Part top");
        JFileChooser chooser = new JFileChooser();
        JOptionPane.showMessageDialog(null, "Part 1");
        chooser.setFileFilter(new XLSFilter());
        JOptionPane.showMessageDialog(null, "Part 2");

        int returnVal = chooser.showOpenDialog(this);
        JOptionPane.showMessageDialog(null, "Part 3");
        if (returnVal == JFileChooser.APPROVE_OPTION) {
            JOptionPane.showMessageDialog(null, "Part 4");
            return chooser.getSelectedFile();
        }
        // cancel was clicked
        JOptionPane.showMessageDialog(null, "Part 5");
        return null;
    }
On my local machine, perfect, even with the domain MySQL connection details, works like a charm.

But on the web link I sent you, it won't even print part 1. So what did I break now ha ha
__________________
"FORTRAN is not a language. It's a way of turning a multi-million dollar mainframe, into a $50 programmable scientific calculator."
http://www.microfastcat.com -- FastCat Software, the fastest software on the NET!
http://www.microthosting.com -- Free reseller web hosting, Hosting, VPS, FREE SMALL HOSTING!!!
http://www.microtronix-tech.com -- Web design and programming
jfreak53 is offline   Reply With Quote
Old 06-08-2012, 05:49 PM   PM User | #17
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,653
Thanks: 4
Thanked 2,451 Times in 2,420 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
Does it get a dialog for the "Part Top"? If it does, it may be throwing an exception assuming it doesn't open the actual dialog.
Changing the odbc connectivity shouldn't cause any issue with the JFileChooser. I'll have to check out the link after too; actually pretty busy today O.o
Fou-Lu is offline   Reply With Quote
Old 06-08-2012, 06:04 PM   PM User | #18
jfreak53
Regular Coder

 
jfreak53's Avatar
 
Join Date: May 2004
Location: Guatemala
Posts: 477
Thanks: 19
Thanked 10 Times in 10 Posts
jfreak53 is an unknown quantity at this point
WOW! First off thanks for the help today, especially since your busy all day. It's no problem, I just fedigled it ha ha

I'm new to this signing apps junk and I didn't realize that each time I did a clean and build that the accompanying JAR's like the Swing and MySQL Jar's in the lib folder got a new cert. So when I did the build and uploaded to the web site I was only uploading the new main JAR file instead of all 4 of them, lib's included. Since Ubuntu has a crappy Java plugin and it has NO console at all I wasn't realizing what was happening.

So I booted into my Windows VM through vBox and ran it, come to find out that the older lib jar's on the site had a different cert than the new main jar, so it wasn't running them ha ha, hence an exception that wasn't displaying ha ha ha

So, I did a new clean and build then I uploaded all NEW files to the site, now it work's like a charm!

Wow, sometimes the stupidest of thing's clog you down ha ha

Thanks for help today, it's working finally
__________________
"FORTRAN is not a language. It's a way of turning a multi-million dollar mainframe, into a $50 programmable scientific calculator."
http://www.microfastcat.com -- FastCat Software, the fastest software on the NET!
http://www.microthosting.com -- Free reseller web hosting, Hosting, VPS, FREE SMALL HOSTING!!!
http://www.microtronix-tech.com -- Web design and programming
jfreak53 is offline   Reply With Quote
Old 06-08-2012, 07:07 PM   PM User | #19
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,653
Thanks: 4
Thanked 2,451 Times in 2,420 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
Lol win!
Never thought about needing a new cert, but since the contents have changed along with the date and everything else, I guess that does make sense.
Fou-Lu is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:44 PM.


Advertisement
Log in to turn off these ads.