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 219910 - IllegalStateException: Unable to Connect to database : DatabaseConnection[name='jdbc:oracle:thin:@192.168.210.49:1521:XE [MEDEA on MEDEA]']
Summary: IllegalStateException: Unable to Connect to database : DatabaseConnection[nam...
Status: RESOLVED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Show Data (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords:
: 219767 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-10-11 11:44 UTC by medeag
Modified: 2012-10-13 02:11 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 193399


Attachments
stacktrace (1.25 KB, text/plain)
2012-10-11 11:44 UTC, medeag
Details

Note You need to log in before you can comment on or make changes to this bug.
Description medeag 2012-10-11 11:44:53 UTC
Build: NetBeans IDE Dev (Build 201210110002)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.1-b03, Java(TM) SE Runtime Environment, 1.7.0_05-b06
OS: Windows 7

User Comments:
medeag: trying to run query




Stacktrace: 
java.lang.IllegalStateException: Unable to Connect to database : DatabaseConnection[name='jdbc:oracle:thin:@192.168.210.49:1521:XE [MEDEA on MEDEA]']
   at org.netbeans.modules.db.dataview.output.SQLExecutionHelper$1Loader.run(SQLExecutionHelper.java:132)
   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
   at java.util.concurrent.FutureTask.run(FutureTask.java:166)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1454)
   at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2036)
Comment 1 medeag 2012-10-11 11:44:59 UTC
Created attachment 125770 [details]
stacktrace
Comment 2 Jaroslav Havlin 2012-10-12 13:50:53 UTC
Was the connection really broken (session timeout, network problem, server down),
or do you think that the problem was caused by NetBeans?

If the former is the case, only showing informative error dialog and not opening exception reporter would probably solve this issue.

Can you reproduce the bug?
Comment 3 Jaroslav Havlin 2012-10-12 14:06:06 UTC
*** Bug 219767 has been marked as a duplicate of this bug. ***
Comment 4 medeag 2012-10-12 14:11:44 UTC
in my case that was not fault of netbeans, just connection timeout, so error message dialog would be enough.
Comment 5 Jaroslav Havlin 2012-10-12 15:57:02 UTC
> in my case that was not fault of netbeans, just connection timeout, so error
> message dialog would be enough.
http://hg.netbeans.org/core-main/rev/397a2e159628
This error should be always caused by database or network problems.
Exception handling and logging changed.
Thank you for your help.
Comment 6 Quality Engineering 2012-10-13 02:11:30 UTC
Integrated into 'main-golden', will be available in build *201210130002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/397a2e159628
User: Jaroslav Havlin <jhavlin@netbeans.org>
Log: #219910: IllegalStateException: Unable to Connect to database