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 191937 - Test RESTful services page broken for POST method
Summary: Test RESTful services page broken for POST method
Status: RESOLVED WORKSFORME
Alias: None
Product: webservices
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.0
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Denis Anisimov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-14 18:19 UTC by aquaglia
Modified: 2010-11-17 13:52 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 aquaglia 2010-11-14 18:19:31 UTC
[ BUILD # : 201011140001 ]
[ JDK VERSION : 1.6.22 ]

RESTFUL service, POST(application/xml)

When I click on Test button, Firebug complains

XML
XML Parsing Error: not well-formed Location:
moz-nullprincipal:{bed2c762-8046-4344-a14c-a649ee0a461d} Line Number 1, Column
1:

&Insert content here.
^

Source
&Insert content here.


Additional messages:

POST RequestFailed RequestFailed --> Status: ()
Response: {
HTTP Status 500 - Internal Server Error

type Status report

message Internal Server Error

description The server encountered an internal error (Internal Server Error)
that prevented it from fulfilling this request.
Apache Tomcat/6.0.24

}
Comment 1 aquaglia 2010-11-14 18:19:55 UTC
If I switch back to 7.0M2 it works fine.
Comment 2 Denis Anisimov 2010-11-15 08:27:11 UTC
I don't see any problem with current build.
Please provide additional information :
1) Steps to create web service or attach web service class file
2) Please attach generated javascript file which is used for generated html test 
page. You can find it on your local filesystem at the same directory as html file.
There were a number of changes in the javascript file some time ago. I want 
to be sure that your javascript file is up-to-date.
Comment 3 aquaglia 2010-11-16 09:01:53 UTC
You are right. It happened again but this time with 7.0M2
I am unable to determine a reproducible testcase, sorry about this.
Comment 4 Denis Anisimov 2010-11-16 09:39:34 UTC
Try to remove  .netbeans folder in your home directory.
I'm pretty sure that the problem is caching old javascript file from 
some previous build.
I checked current js code and it cannot contains such problem for sure.

Send me please requested javascipt file ( see my previous comment ) when 
it happens again.
It is impossible to determine issue without requested information.