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.
1. Add MySQL connection without port. 2. Connect. Everything is fine, it is possible to connect to MySQL, because default port is used. 3. Create Visual Web Application. 4. Add 'Table' component ti the page. 5. Try to bind it to DB by click-click. Result: Exception arises and table isn't bound: "java.lang.RuntimeException: java.sql.SQLException: Must specify port after ':' in connection string at com.sun.data.provider.impl.CachedRowSetDataProvider.getMetaData(CachedRowSetDataProvider.java:1387) at com.sun.data.provider.impl.CachedRowSetDataProvider.getFieldKeys(CachedRowSetDataProvider.java:507) at com.sun.webui.jsf.component.TableDesignInfo.linkBeans(TableDesignInfo.java:176) at org.netbeans.modules.visualweb.insync.models.FacesModel.linkBeans(FacesModel.java:1151) at org.netbeans.modules.visualweb.designer.jsf.FacesDndSupport.processLinks(FacesDndSupport.java:958) at org.netbeans.modules.visualweb.designer.jsf.FacesDndSupport.importBean(FacesDndSupport.java:526) at org.netbeans.modules.visualweb.designer.jsf.FacesDndSupport.importData(FacesDndSupport.java:324) at org.netbeans.modules.visualweb.designer.jsf.FacesDndSupport.importData(FacesDndSupport.java:3455) at org.netbeans.modules.visualweb.designer.jsf.DndSupport.importData(DndSupport.java:503) at org.netbeans.modules.visualweb.designer.jsf.HtmlDomProviderImpl.importData(HtmlDomProviderImpl.java:1016) at org.netbeans.modules.visualweb.designer.WebForm.importData(WebForm.java:2088) at org.netbeans.modules.visualweb.designer.DndHandler.importDataDelayed(DndHandler.java:423) at org.netbeans.modules.visualweb.designer.DndHandler.access$000(DndHandler.java:67) [catch] at org.netbeans.modules.visualweb.designer.DndHandler$1.run(DndHandler.java:323) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:461) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) Caused by: java.sql.SQLException: Must specify port after ':' in connection string at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:910) at com.mysql.jdbc.NonRegisteringDriver.parseHostPortPair(NonRegisteringDriver.java:164) at com.mysql.jdbc.Connection.createNewIO(Connection.java:2620) at com.mysql.jdbc.Connection.<init>(Connection.java:1531) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266) at org.netbeans.modules.visualweb.dataconnectivity.sql.DesignTimeDataSource.getConnection(DesignTimeDataSource.java:239) at org.netbeans.modules.visualweb.dataconnectivity.sql.DesignTimeDataSource.getConnection(DesignTimeDataSource.java:214) at com.sun.sql.rowset.CachedRowSetXImpl.getConnection(Unknown Source) at com.sun.sql.rowset.CachedRowSetXImpl.getMetaData(Unknown Source) at com.sun.data.provider.impl.CachedRowSetDataProvider.getMetaData(CachedRowSetDataProvider.java:1385) ... 20 more".
The same if port is specified for connection.
I believe this is the same as 89532
There is some exception in dataconnectivity. Once getConnection uses netbeans getConnection then we'll see if this error still occurs
fixed
Verified with build 200704170100.