This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 70600 - Bad JAR Rebuild
Summary: Bad JAR Rebuild
Status: RESOLVED INVALID
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
: 70557 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-12-19 21:43 UTC by x00010000
Modified: 2006-01-02 13:15 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The Netbeans built JAR File (80.29 KB, application/octet-stream)
2005-12-19 21:44 UTC, x00010000
Details
Showing no other setTitle in my GUI class (114.36 KB, image/jpeg)
2005-12-19 21:47 UTC, x00010000
Details
Setting the fra,es new title (126.63 KB, image/jpeg)
2005-12-19 21:48 UTC, x00010000
Details
Rebuiling the JAR file (87.04 KB, image/jpeg)
2005-12-19 21:49 UTC, x00010000
Details
Same results after Rebuilding the JAR (75.24 KB, image/jpeg)
2005-12-19 21:50 UTC, x00010000
Details

Note You need to log in before you can comment on or make changes to this bug.
Description x00010000 2005-12-19 21:43:07 UTC
Okay, I am working on a simple logging app. After working on it for about a day
I realized something was wrong, it seemed like anything I changed, say in my
GUI, that it would some how not be reflected sy in the JAR rebuild. To check
that I wasn't just crazy I preformed a simple test, I merely changed the title
of my frame. I also checked the rest of my source code to make sure there where
no other places I set the frame's title. The title remained the same, and
confimed my suspiscions. I not only ran the project through Netbeans, but i also
ran the jar file on a seperate JVM outside of Netbeans, still same effect. I
have the jar file, with all of the source packaged includeing the class files
(all packaged by Netbeans). I tried decompiling the GUI's class file with JODE
but wasn't able to.
Comment 1 x00010000 2005-12-19 21:44:08 UTC
Created attachment 27955 [details]
The Netbeans built JAR File
Comment 2 x00010000 2005-12-19 21:47:02 UTC
Created attachment 27956 [details]
Showing no other setTitle in my GUI class
Comment 3 x00010000 2005-12-19 21:48:15 UTC
Created attachment 27957 [details]
Setting the fra,es new title
Comment 4 x00010000 2005-12-19 21:49:10 UTC
Created attachment 27958 [details]
Rebuiling the JAR file
Comment 5 x00010000 2005-12-19 21:50:09 UTC
Created attachment 27959 [details]
Same results after Rebuilding the JAR
Comment 6 Peter Pis 2005-12-29 20:16:06 UTC
Reassigning to "form" for evaluation.
Comment 7 Jan Stola 2006-01-02 09:23:25 UTC
I am sorry I am not able to reproduce this issue. Could you, please, provide
more details about your project - I am surprised that your JAR file contains
also the source files (Java application project doesn't do that by default).
How do you execute the JAR file? The built LogI.class seems to contain
the metioned setTitle("TEST TEST THIS SHOULD NOT SHOW"); statement, but
I am not able to execute it because it fails with the following exception

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
        at java.util.Hashtable.put(Unknown Source)
        at javax.swing.UIDefaults.put(Unknown Source)
        at javax.swing.JTable.setDefaultRenderer(Unknown Source)
        at org.logi.LogI.initComponents(LogI.java:133)
        at org.logi.LogI.<init>(LogI.java:27)
        at org.logi.LogI$16.run(LogI.java:412)
        ...

E.g. NPE from an incorrect line
jTable1.setDefaultRenderer(null, new org.logi.DefaultTableCellRenderer());

It seems that you tried to execute a different JAR than the one attached.
Comment 8 x00010000 2006-01-02 13:13:32 UTC
Problem found. A third party Module Plugin would automatically "install" (move
jar files to the java ext directories) at project build. So when executing the
jar file the jvm would load an older version of the classes from the ext dirs.
Since starting the project I had since turned off the 3rd party module plugin,
therefore  an old set of classes where being loaded not the new rebuilt ones.
Comment 9 x00010000 2006-01-02 13:15:50 UTC
*** Issue 70557 has been marked as a duplicate of this issue. ***