Comments (7)
- Issue Imported From: https://github.com/jersey/jersey/issues/303
- Original Issue Raised By:@glassfishrobot
- Original Issue Assigned To: @mpotociar
- Original Issue Closed By:@glassfishrobot
from jersey.
@glassfishrobot Commented
Reported by [email protected]
from jersey.
@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:
ServletContainercom.sun.ws.rest.spi.container.servlet.ServletContainer
and there is no pre-compile step.
from jersey.
@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.
@glassfishrobot Commented
Was assigned to jersey-issues
from jersey.
@glassfishrobot Commented
This issue was imported from java.net JIRA JERSEY-31
from jersey.
@glassfishrobot Commented
Marked as cannot reproduce on Wednesday, June 4th 2008, 7:18:29 pm
from jersey.
Related Issues (20)
- What is the difference between jersey2.x, jersey 3.x and jersey4.x and which one is recommended? HOT 8
- Connection Leak when Circuit Breaker Hystrix Command timeout HOT 2
- 3.1.7 OSGi bundle issue HOT 12
- "MessageBodyWriter not found for media type=application/xml" error preventing upgrade from 2.32 to 2.33 HOT 4
- KeepAlive Caching stops working in 2.41 HOT 1
- Incosistent handling of inherited @Produces annotations HOT 2
- AsyncContext completion attempt after AsyncListener.onError is called HOT 3
- Process dump caused by malicious response headers HOT 2
- ChunkedInput.close is not sufficient to release client connections
- Json Jackon Maven test failing for version 3.1.3 HOT 1
- NPE after switching to jersey-micrometer HOT 8
- Issue when injecting @QueryParam values when the URL query string has percentage encoded &
- JdkConnector using Obsolete `java.net.CookieManager` HOT 2
- `JerseySseEventSource` ignores `onError` callback supplied to `register()` method, making it impossible to surface HTTP/network errors
- Jetty connector is not supported on JDK version less than 17 HOT 7
- RequestEvent for RequestEventListener might lost request attributes for async flow HOT 1
- Add ability to disable DefaultJacksonJaxbJsonProvider
- Jsonb still not injectable
- Jersey 2.X ResourceDoclet much slower compared to 1.X
- Update DigestAuthenticator.java to implement RFC 7616
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jersey.