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 228161 - Assertion error when creating REST services from DB in Maven project
Summary: Assertion error when creating REST services from DB in Maven project
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 7.3.1
Hardware: PC Windows 7
: P1 normal (vote)
Assignee: TomasKraus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-02 13:15 UTC by Jiri Skrivanek
Modified: 2013-04-03 08:00 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack trace. (5.42 KB, text/plain)
2013-04-02 13:15 UTC, Jiri Skrivanek
Details
Another stack trace (6.52 KB, text/plain)
2013-04-02 14:42 UTC, TomasKraus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2013-04-02 13:15:54 UTC
Created attachment 133260 [details]
Stack trace.

Assertion error coming from GlassFish Hk2LibraryProvider appears when creating REST web services from DB. To reproduce:

- create Maven Java EE 5 project with GlassFish 4 server
- open new file wizard
- select "Web Services|RESTful Web Services from Database"
- click Next
- choose jdbc/sample datasource
- select and add Manufacturer table
- click Next and finish the wizard
- once dialog "REST configuration" appears confirm default values
- after while exception is thrown and service is not created

Product Version: NetBeans IDE Dev (Build web-main-javaee7-195-on-20130328)
Java: 1.7.0_17; Java HotSpot(TM) 64-Bit Server VM 23.7-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_17-b02
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
Comment 1 TomasKraus 2013-04-02 14:42:07 UTC
Created attachment 133262 [details]
Another stack trace

The same java.lang.AssertionError but there is nothing coming from Glassfish.
Comment 2 TomasKraus 2013-04-02 15:19:05 UTC
GlassFish Tooling Library:
--------------------------
changeset:   256:f900ab9db577
branch:      0.3-b036
summary:     Bug# 228161 - JAX-RS library updated for GlassFish 4

changeset:   477:a5cb607ea723
summary:     Bug# 228161 - JAX-RS library updated for GlassFish 4
Comment 3 TomasKraus 2013-04-02 15:21:35 UTC
NetBeans web-main:
------------------
changeset:   249509:2bd679d63c77
branch:      javaee7
summary:     #228161 - JAX-RS library updated for GlassFish 4
Comment 4 TomasKraus 2013-04-02 15:24:10 UTC
JAX-WS JAR name was changed in GlassFish 4 and this change was not done in GlassFishV4.xml (server features config file) in Glassfish Tooling Library. This caused that content of JAX-WS library was empty.