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 205338 - [71cat] StackOverflowError at java.util.regex.Pattern$Curly.match
Summary: [71cat] StackOverflowError at java.util.regex.Pattern$Curly.match
Status: RESOLVED WONTFIX
Alias: None
Product: db
Classification: Unclassified
Component: DB schema (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-21 07:30 UTC by tim_sa
Modified: 2013-07-02 19:06 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 155674


Attachments
stacktrace (110.24 KB, text/plain)
2011-11-21 07:30 UTC, tim_sa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tim_sa 2011-11-21 07:30:39 UTC
Build: NetBeans IDE Dev (Build 201111160600)
VM: Java HotSpot(TM) Client VM, 21.1-b02, Java(TM) SE Runtime Environment, 1.7.0_01-b08
OS: Windows 7

User Comments:
romah: Fiile -> New
Select "Persistence" - "Entity Classes from database."
Also occurs when doing a "Web Service" -"RESTful Web Services from database".

Window:
"New Entity Classes from Database" 
Selected a MsSql database, while processing,  it stops at 84% (while processing a view), then dies. No tables shown. Works fine for another MsSql database.

This also appears to be in 6.5
Using "Microsoft SQL Server 2005 JDBC Driver 1.2", version 1.2.2828, dated 10/11/2007.
Tried the JDBC jTDS 1.2.2 (08/22/2007), same result, no tables shown.

tim_sa: Trying to generate entity classes from database




Stacktrace: 
java.lang.StackOverflowError
   at java.util.regex.Pattern$Curly.match(Pattern.java:4136)
   at java.util.regex.Pattern$BmpCharProperty.match(Pattern.java:3715)
   at java.util.regex.Pattern$Curly.match0(Pattern.java:4177)
   at java.util.regex.Pattern$Curly.match(Pattern.java:4132)
   at java.util.regex.Pattern$BranchConn.match(Pattern.java:4466)
   at java.util.regex.Pattern$GroupTail.match(Pattern.java:4615)
Comment 1 tim_sa 2011-11-21 07:30:43 UTC
Created attachment 113357 [details]
stacktrace
Comment 2 matthias42 2013-07-02 19:06:53 UTC
This needs to be fixed in the database driver / database. Catching an error is strongly discouraged, so the jdbc driver has to be fixed. Googling showed that there are known problems with regexp matching in the JDK, but the fact remains - its outside netbeans scope.

I'll close this as wontfix (not much that can be done there).