[Bug 224905] New Entity Classes from Database doesn't see tables in Virtual Machine DB

  • From:
  • To:
  • Subject: [Bug 224905] New Entity Classes from Database doesn't see tables in Virtual Machine DB
  • Date: Wed, 16 Jan 2013 10:58:26 +0000
  • Auto-submitted: auto-generated

http://netbeans.org/bugzilla/show_bug.cgi?id=224905

--- Comment #8 from vbeffa 
< >
 2013-01-16 10:58:26 UTC ---
(In reply to comment #7)
> (In reply to comment #5)
> > (In reply to comment #4)
> > > It's in new file wizard,
> > > in Persistence category,
> > > there is Database Schema item.
> > No. When I get to Step 4 (Tables and Views), the Available Tables and 
> > Views box
> > is empty.
> Please, could you reproduce it once more and attach your IDE Log? Thank you.

Nothing is written to the log. Connecting to another DB2 database (a Linux VM,
but not running on the same PC as NetBeans), I did get the following output:

[ibm][db2][jcc][t4][2030][11211] A communication error has been detected.
Communication protocol being used: TCP/IP.
Communication API being used: SOCKETS.  Location where the error was detected:
T4Agent.sendRequest().
Communication function detecting the error: OutputStream.flush().  Protocol
specific error codes Connection reset by peer: socket write error, *, 0. 
Message: Connection reset by peer: socket write error

This was due to a stale connection. However after reconnecting I tried to
generate Entity Classes from Database (not for my local DB, but for the remote
one), and got the following exception. Unfortunately I don't think it's 
related
to my original problem, that of seeing no tables for the DB2 schema on my 
local
Ubuntu VM. The remote DB is also DB2 and I am able to connect to it, see its
tables, generate Entity Classes, and generate a Database Schema for it (i.e. I
see tables in the New File dialog when I get to the step).

Exception occurred during event dispatching:
java.lang.ArrayIndexOutOfBoundsException: 0
        at
org.netbeans.modules.j2ee.persistence.wizard.fromdb.DBSchemaTableProvider.buildTables(DBSchemaTableProvider.java:116)
        at
org.netbeans.modules.j2ee.persistence.wizard.fromdb.DBSchemaTableProvider.<init>(DBSchemaTableProvider.java:95)
        at
org.netbeans.modules.j2ee.persistence.wizard.fromdb.DatabaseTablesPanel.updateSourceSchema(DatabaseTablesPanel.java:571)
        at
org.netbeans.modules.j2ee.persistence.wizard.fromdb.DatabaseTablesPanel.datasourceComboBoxActionPerformed(DatabaseTablesPanel.java:964)
        at
org.netbeans.modules.j2ee.persistence.wizard.fromdb.DatabaseTablesPanel.access$1000(DatabaseTablesPanel.java:104)
        at
org.netbeans.modules.j2ee.persistence.wizard.fromdb.DatabaseTablesPanel$5.actionPerformed(DatabaseTablesPanel.java:694)
        at javax.swing.JComboBox.fireActionEvent(JComboBox.java:1240)
        at javax.swing.JComboBox.setSelectedItem(JComboBox.java:567)
        at javax.swing.JComboBox.setSelectedIndex(JComboBox.java:603)
        at
javax.swing.plaf.basic.BasicComboPopup$Handler.mouseReleased(BasicComboPopup.java:818)
        at
java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:273)
        at java.awt.Component.processMouseEvent(Component.java:6297)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3275)
        at
javax.swing.plaf.basic.BasicComboPopup$1.processMouseEvent(BasicComboPopup.java:482)
        at java.awt.Component.processEvent(Component.java:6062)
        at java.awt.Container.processEvent(Container.java:2039)
        at java.awt.Component.dispatchEventImpl(Component.java:4660)
        at java.awt.Container.dispatchEventImpl(Container.java:2097)
        at java.awt.Component.dispatchEvent(Component.java:4488)
        at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4575)
        at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:4236)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4166)
        at java.awt.Container.dispatchEventImpl(Container.java:2083)
        at java.awt.Window.dispatchEventImpl(Window.java:2489)
        at java.awt.Component.dispatchEvent(Component.java:4488)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:668)
        at java.awt.EventQueue.access$400(EventQueue.java:81)
        at java.awt.EventQueue$2.run(EventQueue.java:627)
        at java.awt.EventQueue$2.run(EventQueue.java:625)
        at java.security.AccessController.doPrivileged(Native Method)
        at
java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
        at
java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
        at java.awt.EventQueue$3.run(EventQueue.java:641)
        at java.awt.EventQueue$3.run(EventQueue.java:639)
        at java.security.AccessController.doPrivileged(Native Method)
        at
java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:638)
        at
org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:158)
        at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
        at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
        at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
        at java.awt.Dialog$1.run(Dialog.java:1044)
        at java.awt.Dialog$3.run(Dialog.java:1096)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.awt.Dialog.show(Dialog.java:1094)
        at
org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:1074)
        at
org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:1114)
        at
org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:1096)
        at
org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:126)
        at org.openide.util.Mutex.doEventAccess(Mutex.java:1363)
        at org.openide.util.Mutex.readAccess(Mutex.java:273)
        at
org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:1081)
        at java.awt.Component.show(Component.java:1591)
        at java.awt.Component.setVisible(Component.java:1543)
        at java.awt.Window.setVisible(Window.java:843)
        at java.awt.Dialog.setVisible(Dialog.java:984)
        at
org.netbeans.core.windows.services.DialogDisplayerImpl$1AWTQuery.showDialog(DialogDisplayerImpl.java:260)
        at
org.netbeans.core.windows.services.DialogDisplayerImpl$1AWTQuery.run(DialogDisplayerImpl.java:186)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:666)
        at java.awt.EventQueue.access$400(EventQueue.java:81)
        at java.awt.EventQueue$2.run(EventQueue.java:627)
        at java.awt.EventQueue$2.run(EventQueue.java:625)
        at java.security.AccessController.doPrivileged(Native Method)
        at
java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:636)
        at
org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:158)
        at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
        at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
        at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
        at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

-- 
Configure bugmail: http://netbeans.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.


[Bug 224905] New: New Entity Classes from Database doesn't see tables in Virtual Machine DB

vbeffa 01/15/2013

[Bug 224905] New Entity Classes from Database doesn't see tables in Virtual Machine DB

jhavlin 01/15/2013

[Bug 224905] New Entity Classes from Database doesn't see tables in Virtual Machine DB

sj-nb 01/15/2013

[Bug 224905] New Entity Classes from Database doesn't see tables in Virtual Machine DB

sj-nb 01/15/2013

[Bug 224905] New Entity Classes from Database doesn't see tables in Virtual Machine DB

jhavlin 01/16/2013

[Bug 224905] New Entity Classes from Database doesn't see tables in Virtual Machine DB

vbeffa 01/16/2013

[Bug 224905] New Entity Classes from Database doesn't see tables in Virtual Machine DB

sj-nb 01/16/2013

Project Features

About this Project

DB was started in November 2009, is owned by Antonin Nebuzelsky, and has 113 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close