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 118207 - Jackpot Query NullPointerException
Summary: Jackpot Query NullPointerException
Status: RESOLVED WONTFIX
Alias: None
Product: contrib
Classification: Unclassified
Component: Jackpot (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@contrib
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-09 10:40 UTC by jazt
Modified: 2010-04-27 18:41 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Query Java code (2.05 KB, application/octet-stream)
2007-10-09 10:42 UTC, jazt
Details
Log of first find (104.67 KB, application/octet-stream)
2007-10-09 10:51 UTC, jazt
Details
Log of later tests (127.43 KB, application/octet-stream)
2007-10-09 10:51 UTC, jazt
Details
Jackpot rules file (1014 bytes, application/octet-stream)
2007-10-09 10:53 UTC, jazt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jazt 2007-10-09 10:40:38 UTC
As a test, I created a new Jackpot query as follows:

mapclass java.util.Vector => java.util.ArrayList;
new java.util.Vector() => new java.util.ArrayList();

There is probably something wrong with it but I haven't worked out what yet as it is basically a copy/paste of the 
StringTokenizer => Scanner Query.

Every time I execute the new Query I get a NullPointerException.
Restarting the IDE made no difference.
I also tried:
mapclass java.util.Vector => java.util.ArrayList;
Which also throws an exception.
When: mapclass java.util.Vector => java.util.Vector;
Does not.

NOTE: The exception occurs whether or not there are matching occurrences in the source code being refactored.
I was using:
Vector myVector = new Vector();
Then commented it out for further testing.

Will attach message logs and source code as suggested.

Thanks.
Comment 1 jazt 2007-10-09 10:42:23 UTC
Created attachment 50479 [details]
Query Java code
Comment 2 jazt 2007-10-09 10:51:20 UTC
Created attachment 50480 [details]
Log of first find
Comment 3 jazt 2007-10-09 10:51:45 UTC
Created attachment 50481 [details]
Log of later tests
Comment 4 jazt 2007-10-09 10:53:06 UTC
Created attachment 50482 [details]
Jackpot rules file
Comment 5 jazt 2007-11-21 10:56:49 UTC
Hi,

Any ideas anyone?

Thank you.
Comment 6 Jesse Glick 2010-04-27 18:41:58 UTC
The old Jackpot module is no longer maintained. There is a rewrite in progress at: http://bitbucket.org/jlahoda/jackpot30/wiki/Home