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.
This bug was originally marked as duplicate of bug 270540, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE Dev (Build 201708300001) VM: Java HotSpot(TM) Client VM, 25.101-b13, Java(TM) SE Runtime Environment, 1.8.0_101-b13 OS: Windows 10 User Comments: bartolinet: Ap
Created attachment 165104 [details] stacktrace
Can you extract a list of functions/procedures? I suspect function definition is not correctly transmitted and the mysql JDBC driver than fails to parse this. Please run: SELECT name, type, comment FROM mysql.proc WHERE db <=> <DBNAME> ORDER BY name And attach the output here. Without knowing the source of the problem a diagnosis won't happen.
Without further info this can't be fixed. A commit addressing that problem was pushed as: http://hg.netbeans.org/core-main/rev/f8f8250283be With that change at least the analysed DB, Schema and Procedure are reported and might indicate core problem. I'm closing this, so that further exception reports reopen this.
Integrated into 'main-silver', will be available in build *201709260002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/f8f8250283be User: Matthias Blaesing <matthias42@netbeans.org> Log: #271446: Add more information to RuntimeExceptions DatabaseMetaData#getProcedureColumns This is not a solution, but an attempt to retrieve more information to track the bug from #271446 down. It looks as if the mysql driver does not correctly handle the procedure info from the DBMS: java.lang.StringIndexOutOfBoundsException: String index out of range: -5 at java.lang.String.substring(String.java:1967) at com.mysql.jdbc.DatabaseMetaData$TypeDescriptor.<init>(DatabaseMetaData.java:214) at com.mysql.jdbc.DatabaseMetaData.getCallStmtParameterTypes(DatabaseMetaData.java:1704) at com.mysql.jdbc.DatabaseMetaData.getProcedureOrFunctionColumns(DatabaseMetaData.java:4305) at com.mysql.jdbc.DatabaseMetaData.getProcedureColumns(DatabaseMetaData.java:4146) at org.netbeans.modules.db.metadata.model.jdbc.JDBCProcedure.createProcedureInfo(JDBCProcedure.java:151)