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 228518 - Exception with json when using Test Restful web service
Summary: Exception with json when using Test Restful web service
Status: RESOLVED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: REST (show other bugs)
Version: 7.3.1
Hardware: PC Mac OS X
: P2 normal (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-12 13:33 UTC by Kenneth Ganfield
Modified: 2013-04-18 03:01 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kenneth Ganfield 2013-04-12 13:33:12 UTC
IDE 7.3.1 /GF 4 (build 83)

Product Version: NetBeans IDE 7.3 (Build 201304092201)
Java: 1.7.0_10-ea; Java HotSpot(TM) 64-Bit Server VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_10-ea-b16
System: Mac OS X version 10.8.3 running on x86_64; US-ASCII; en_US (nb)

Create a Java EE 7 web app with GF 4 as target server.

1. Create a RESTful web service from db using the wizard.
2. Right-click project and choose Test RESTful Web Service.
3. Select a project and test the service.
The GF Test Restful service page opens in browser.

4. Select an entity class in the left column in browser.
5. Select GET (application/json) for method to test.

The browser displays the following exception. 

javax.servlet.ServletException: org.glassfish.jersey.message.internal.MessageBodyProviderNotFoundException: MessageBodyWriter not found for media type=application/json, type=class java.util.Vector, genericType=java.util.List<entities.MicroMarket>.

Selecting GET (application/xml) produces the correct output.
Comment 1 David Konecny 2013-04-18 03:01:07 UTC
This should work too after my today's changes.