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 113342 - NullPointerException by project creation
Summary: NullPointerException by project creation
Status: VERIFIED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: _ potingwu
URL:
Keywords: REGRESSION
: 113472 113503 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-08-21 13:50 UTC by Roman Mostyka
Modified: 2007-08-22 20:02 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE's log file (48.81 KB, text/plain)
2007-08-21 13:51 UTC, Roman Mostyka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Mostyka 2007-08-21 13:50:53 UTC
1. Build IDE from fresh sources at 2007.08.21.
2. Start IDE with new userdir.
3. Create Web Application with Visual Web JSF framework.

Result: After I had clicked Finish button, warning message "Reference Problems" has appeared.
Then I got NullPointerException.
I created application for GlassFish V2, Java EE 5. Mac OS X, JDK 1.5.0_07.
Comment 1 Roman Mostyka 2007-08-21 13:51:37 UTC
Created attachment 46966 [details]
IDE's log file
Comment 2 Roman Mostyka 2007-08-21 13:57:18 UTC
After project had been created, I've called "Resolve Reference Problems" dialog and found that two libraries
"jdbcsupport-runtime" and "jdbcsupport-designtime" could not be found.
Comment 3 Lark Fitzgerald 2007-08-21 16:35:02 UTC
I see this error opening existing projects also.  The "Resolve Reference Problems" dialog appears with:
"jdbcsupport-runtime" library could not be found
"jdbcsupport-designtime" library could not be found

The descriptions show:
Problem: The project uses the class library called "jdbcsupport-runtime" but the classpath items of this library are 
missing.
Solution: Click Resolve to open the Library Manager and locate the missing classpath items of "jdbcsupport-runtime" 
library.

I added john to the cc list.
Comment 4 _ potingwu 2007-08-21 17:02:43 UTC
This issue is still under construction! I think the database team is doing this removing too soon and cause this issue.

JDK 1.5 projects should not need these libraries. Though I can remove the library from the project. The database team
still need to separate the 'sqlx.jar' from these libraries.
Comment 5 _ potingwu 2007-08-21 20:15:51 UTC
I cannot reproduce it from the source. Actually yesterday nobody changed the libraries definition, only removing the
rowset.jar from the build. And that shouldn't cause this issue.

John & Jim, can you reproduce it?
Comment 6 _ jimdavidson 2007-08-21 21:06:03 UTC
It looks like the IDE is complaining because the file rowset.jar has been removed from visualweb1/modules/ext; the
change happened yesterday.

I'll see what I can figure out.
Comment 7 _ jimdavidson 2007-08-21 21:11:05 UTC
Addendum: I can reproduce the problem, with my developer build and a fresh userdir (which I should have mentioned).

Copying rowset.jar back into place makes things work again.  The question is, what's the right thing to do.  JimB and
JohnB are making this change.
Comment 8 Petr Blaha 2007-08-21 21:22:04 UTC
*** Issue 113423 has been marked as a duplicate of this issue. ***
Comment 9 _ jimdavidson 2007-08-21 21:30:16 UTC
It looks like there are two copies of jdbcsupport-designtime.xml (and jdbcsupport-runtime.xml) in the build.

There's one under visualweb/project/jsf, which has not been updated.

There's one under visualweb/ravelibs/rowset, which was checked in yesterday.

Need to normalize these.
Comment 10 _ potingwu 2007-08-21 23:46:02 UTC
Now 'rowset.jar' is removed from these xml files. We are using different library name for rowset.
Comment 11 Petr Blaha 2007-08-22 07:14:08 UTC
I marked bug as duplicate by mistake
Comment 12 Petr Blaha 2007-08-22 07:22:04 UTC
*** Issue 113423 has been marked as a duplicate of this issue. ***
Comment 13 Petr Blaha 2007-08-22 07:27:42 UTC
Roman can you verify whether the bug is still reproducible in the latest build? It seems as fixed according to
potingwu's comment. Thanks
Comment 14 Roman Mostyka 2007-08-22 07:58:02 UTC
Fixed.
Comment 15 Roman Mostyka 2007-08-22 07:58:26 UTC
Verified with build 070822.
Comment 16 Petr Blaha 2007-08-22 11:01:11 UTC
*** Issue 113472 has been marked as a duplicate of this issue. ***
Comment 17 _ jimdavidson 2007-08-22 20:02:45 UTC
*** Issue 113503 has been marked as a duplicate of this issue. ***