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 119817 - NullPointerException at org.netbeans.modules.db.explorer.DatabaseConnectionConvertor$AtomicWriter.write
Summary: NullPointerException at org.netbeans.modules.db.explorer.DatabaseConnectionCo...
Status: VERIFIED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: David Vancouvering
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-23 17:19 UTC by nouar38
Modified: 2007-11-08 07:52 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 8971


Attachments
stacktrace (742 bytes, text/plain)
2007-10-23 17:19 UTC, nouar38
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nouar38 2007-10-23 17:19:24 UTC
Build: NetBeans IDE Dev (Build 200710211200)
VM: Java HotSpot(TM) Client VM, 1.6.0_03-b05
OS: SunOS, 5.10, sparc

User Comments: 
tried to check remember password in sun-appserv-samples
Comment 1 nouar38 2007-10-23 17:19:31 UTC
Created attachment 51513 [details]
stacktrace
Comment 2 David Vancouvering 2007-10-24 05:36:59 UTC
This looks related to my change, so I can take it, although I won't be able to spend any real time on it until Thursday
afternoon/Friday
Comment 3 David Vancouvering 2007-10-24 16:07:25 UTC
Looking at the source code, this appears like it could happen when you don't specify a password and then request to save
it.  Is this your scenario?

What is 'sun-appserv-samples'?
Comment 4 nouar38 2007-10-24 18:03:09 UTC
sun-appserv-samples is a derby db defined with java ee 5 tutorial samples
so usually, when I'm covering the samples deployment to GF from this tutorial I use this db.

Defined as:
<<<
# Database properties are in javadb.properties
db.delimiter=;
db.root=${javaee.home}/javadb
db.driver=org.apache.derby.jdbc.ClientDriver
db.datasource=org.apache.derby.jdbc.ClientDataSource
db.host=localhost
db.port=1527
db.sid=sun-appserv-samples
db.url=jdbc:derby://${db.host}:${db.port}/${db.sid};create=true;
db.user=APP
db.pwd=APP
db.jvmargs=-ms16m -mx32m
db.create.src=${javaee.tutorial.home}/examples/common/sql/${db.vendor}/tutorial.sql
db.delete.src=${javaee.tutorial.home}/examples/common/sql/${db.vendor}/delete.sql
>>>

this the first time, I'm checking the box "Remember Password" using IDE/DataBases/<db>/Properties

I can try over Travel or Vir DB
Comment 5 nouar38 2007-10-24 18:07:54 UTC
This happens on Vir or Travel if in "Properties" we check the "Remember Password" without doing a "Connect"
Comment 6 David Vancouvering 2007-10-24 18:51:04 UTC
OK, thanks, that's the piece I was missing - you don't connect - I'll check it out
Comment 7 David Vancouvering 2007-10-24 22:26:24 UTC
I have reproduced the problem and will take a look at it.
Comment 8 David Vancouvering 2007-11-01 04:54:40 UTC
Fixed...

Checking in DatabaseConnectionConvertor.java;
/cvs/db/src/org/netbeans/modules/db/explorer/DatabaseConnectionConvertor.java,v  <--  DatabaseConnectionConvertor.java
new revision: 1.14; previous revision: 1.13
done
cvs server: scheduling file `null-pwd-connection.xml' for addition
cvs server: use 'cvs commit' to add this file permanently
Checking in DatabaseConnectionConvertorTest.java;
/cvs/db/test/unit/src/org/netbeans/modules/db/explorer/DatabaseConnectionConvertorTest.java,v  <-- 
DatabaseConnectionConvertorTest.java
new revision: 1.14; previous revision: 1.13
done
RCS file: /cvs/db/test/unit/src/org/netbeans/modules/db/explorer/null-pwd-connection.xml,v
done
Checking in null-pwd-connection.xml;
/cvs/db/test/unit/src/org/netbeans/modules/db/explorer/null-pwd-connection.xml,v  <--  null-pwd-connection.xml
initial revision: 1.1
done
Comment 9 David Vancouvering 2007-11-03 22:11:22 UTC
Fixed
Comment 10 nouar38 2007-11-08 07:52:26 UTC
daily 200711070000 & gf v2 fcs on linux RHEL 4.0 & jdk 1.6u3: ok no more the exception when toggling "Rememebr Password"
without connect to DB (tried over travel,vir)

daily 200711060000 & gf v2 ur1-b07 on solaris-sparc & windows/xp (jdk 1.6 u3): ok
marking the issue as VERIFIED.

thanks.
nouar.