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 237055 - IllegalArgumentException: Called DataObject.find on null
Summary: IllegalArgumentException: Called DataObject.find on null
Status: RESOLVED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.3.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Libor Fischmeistr
URL:
Keywords:
: 245066 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-10-12 05:55 UTC by Zeboton
Modified: 2014-10-06 09:33 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 169121


Attachments
stacktrace (4.15 KB, text/plain)
2013-10-12 05:55 UTC, Zeboton
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Zeboton 2013-10-12 05:55:26 UTC
Build: NetBeans IDE 7.3.1 (Build 201306052037)
VM: OpenJDK Client VM, 23.7-b01, OpenJDK Runtime Environment, 1.7.0_25-b30
OS: Linux

User Comments:
GUEST: cant connect to db

Zeboton: I use:
* Ubuntu 13.04.
* PostgreSQL 9.2. 
* Java version "1.7.0_25"
* * OpenJDK Runtime Environment (IcedTea 2.3.10) (7u25-2.3.10-1ubuntu0.13.04.2)
* * OpenJDK Server VM (build 23.7-b01, mixed mode)
* NetBeans 7.3.1 downloaded from official site.

I tried to connect to PostgreSQL server in local network using Services > Data Bases > New Connection ( name of menu items may be differ because I have Russian localization for NetBean ). I filled in a form on step Connection Settings, checked connection ( it worked fine ), selected public schema on next step and gave short name to connection on the last step. After it I clicked on button OK ( Ready ) and got this exception.

Connection was not created.

GUEST: Trying to save new PostgressSQL connection

GUEST: create h2 db

GUEST: Tried to connect to a MySQL database on non-admin account. MySQL database was installed on admin account with correct rights. MySQL database was tested and runs correctly on admin account. Perform the same Netbeans command on admin acount makes no problem. Must be priviliege problem on non admin account (user account).

GUEST: open h2 db

GUEST: creating a H2 connection

GUEST: Conect via Services MYSQL Server -> select database -> right click connect

GUEST: opening H2 database

GUEST: cqnt connect to mysql




Stacktrace: 
java.lang.IllegalArgumentException: Called DataObject.find on null
   at org.openide.loaders.DataObject.find(DataObject.java:545)
   at org.openide.loaders.DataFolder.findFolder(DataFolder.java:540)
   at org.netbeans.modules.db.explorer.DatabaseConnectionConvertor.create(DatabaseConnectionConvertor.java:255)
   at org.netbeans.modules.db.explorer.ConnectionList.add(ConnectionList.java:143)
   at org.netbeans.modules.db.explorer.dlg.AddConnectionWizard.openWizard(AddConnectionWizard.java:134)
   at org.netbeans.modules.db.explorer.dlg.AddConnectionWizard.showWizard(AddConnectionWizard.java:115)
Comment 1 Zeboton 2013-10-12 05:55:28 UTC
Created attachment 141025 [details]
stacktrace
Comment 2 matthias42 2014-10-05 13:10:40 UTC
I'm closing this as incomplete - I can't reproduce this error (openjdk 8, netbeans 8.0.1). I tried removing the Databases directory, the connections directory - even at runtime I could not simulate the problem.

Without reproducible steps to reproduce it will be nearly impossible to fix.

If further information can be gathered please attach here and reopen. Thank you!
Comment 3 matthias42 2014-10-05 13:53:03 UTC
*** Bug 245066 has been marked as a duplicate of this bug. ***
Comment 4 Zeboton 2014-10-06 09:33:48 UTC
Now I have NetBeans version 8.0.1 and this bug does not reproducing.

Thanks for your work!