Giter Site home page Giter Site logo

Comments (7)

jerseyrobot avatar jerseyrobot commented on July 20, 2024

from jersey.

jerseyrobot avatar jerseyrobot commented on July 20, 2024

@glassfishrobot Commented
Reported by [email protected]

from jersey.

jerseyrobot avatar jerseyrobot commented on July 20, 2024

@glassfishrobot Commented
[email protected] said:
I tested using the latest build (0.5) with Tomcat 6.0.14 shipped with NB 6.

I wrote a resource:

@path("/")
public class FormResource {
@path("foo")
@post
@ConsumeMime("application/x-www-form-urlencoded")
@ProduceMime("text/plain")
public String foo(FormURLEncodedProperties params)

{ System.out.println(params); return params.toString(); }

}

Deployed it in Tomcat, then wrote simple script using curl:

#!/bin/tcsh
while 1
curl -d phone=555-555-5555 -d queues=15 -d partySize=2 -d
lzbc=1200461313945.94 http://localhost:8084/WebApplication1/foo
echo
end

Where "http://localhost:8084/WebApplication1/" is the base URI of the deployed
FormResource class. Notice that i used the same parameters as presented in the log.

I ran the script for a bit while logging the output (about 1500
requests/responses) and there was no empty response present (namely the text "{}").

Can you provide more details on your environment?

Would it be possible to try the latest build of 0.5?

The web.xml setup is much simpler, you only need to specify the Jersey servlet:

ServletContainer

com.sun.ws.rest.spi.container.servlet.ServletContainer

and there is no pre-compile step.

from jersey.

jerseyrobot avatar jerseyrobot commented on July 20, 2024

@glassfishrobot Commented
[email protected] said:
I cannot reproduce, so closing. Please feel free reopen.

BTW using valves can interfere with the HTTP request, especially when using
"application/x-www-form-urlencoded". When using the dumper valve the request
input stream will be processed and therefore cannot be processed by the servlet
itself.

from jersey.

jerseyrobot avatar jerseyrobot commented on July 20, 2024

@glassfishrobot Commented
Was assigned to jersey-issues

from jersey.

jerseyrobot avatar jerseyrobot commented on July 20, 2024

@glassfishrobot Commented
This issue was imported from java.net JIRA JERSEY-31

from jersey.

jerseyrobot avatar jerseyrobot commented on July 20, 2024

@glassfishrobot Commented
Marked as cannot reproduce on Wednesday, June 4th 2008, 7:18:29 pm

from jersey.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.