Error in Tag.java (Restlet version 1.0.4)
I had a problem when testing a client that gets an HTML page (which comes up fine in the Firefox browser). I got a Response, and when I call getEntity() to get the Representation, I get the error Invalid tag format detected: /7354-1178329344000 at org.restlet.data.Tag.parse(Tag.java:69) in Tag.java, at line 58, I see if (httpTagCopy.startsWith(W)) { weak = true; httpTagCopy = httpTagCopy.substring(1); } If I read the HTTP spec (section 3.11) correctly, I believe this should be changed to if (httpTagCopy.startsWith(W/)) { weak = true; httpTagCopy = httpTagCopy.substring(2); } I haven't yet tried to build the whole restlet project, but I modified and compiled Tag.java and updated org.restlet.jar. Now the client can get the page OK.
Issue with DirectoryHandler on Mac OS X
Hi, I'm brand new to restlet, so excuse my ignorance ;) I tried some sample code from the tutorial, namely the Directory resource. I tried this: Application app = new Application(getContext()) { @Override public Restlet createRoot() { Directory directory = new Directory(getContext(), localDir.toURI().toString()); directory.setListingAllowed(true); return directory; } }; getDefaultHost().attach(/dir, app); now, surfing to my server with URI /dir brings this surprising directory listing: rs/.DS_Store rs/.Findbugs_prefs rs/.GuitarPro rs/.JMAppsCfg rs/.Trash rs/.Xauthority rs/.aladin rs/.asadminprefs rs/.asadmintruststore rs/.bash_history etc.etc. Notice the rs/ prefix, which is from the parent directory (which is /Users/beders). My guess is that maybe you try to remove the drive part and the colon from the file URI, which, of course, isn't there on Mac systems :) Just a wild guess of course ;) Is anyone else having this problem? Cheers, Jochen
Sax Server Examples?
Any Sax server examples? I'm trying it out now. Thanks. -- Justin Stanczak Stanczak Group 812-735-3600 All that is necessary for the triumph of evil is that good men do nothing. Edmund Burke
JaxbRepresentation.getObject swallows exceptions
In 1.1 beta, the implementation of JaxbRepresentation.getObject swallows exceptions. This is a critical error because callers have no way of responding to errors in the XML passed in, even if an ValidationEventHandler is used. The caller will go along assuming there's no problem until it tries to use the return value. The problem is being tracked under issue # 289.
Re: tunnelFilter in tomcat container - how ???
N On 8/23/07, regis regis [EMAIL PROTECTED] wrote: Nop, it is the same behavior same error ! (but i check another time even i did before). thanks. PS; maybe you are right, it is a bug... On 8/23/07, Jonathan Hall [EMAIL PROTECTED] wrote: As a quicky, Instead of Form form = new Form(entity); What about Form form = getRequest().getEntityAsForm(); Just wondering if new Form(entity) is buggy. regis regis wrote: I made some new progress, this error error is thrown when the entity object is not available entity.isAvailable() and it is the case when i display this value in debug mode. Also in debug mode the parameter entity in the public void post(Representation entity) is not nul. This object is an instance of an InputRepresentation instance and the attribute inputstream is null ! I try to give you more clue. i hope it will help. Bye On 8/23/07, *regis regis* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Thanks for the reply. So i never use in my java code the entity (Representation object). I attach my java code (i use also spring, and a servlet context). = Could give me more details about in which case to use the handlePut() and the put(Representation entity) ? Here my FormResource.java, as you will see in my code, i m just testing the function.
Re: tunnelFilter in tomcat container - how ???
Nobody can help me ? Aith my buggy situation ? Thanks for any advice Maybe it is not possible to get the form at this time in the put method ? On 8/23/07, regis regis [EMAIL PROTECTED] wrote: Nop, it is the same behavior same error ! (but i check another time even i did before). thanks. PS; maybe you are right, it is a bug...
Re: Problem building Restlet source
Alex, Thanks for the patch. Unfortunately the build appears to be in a very bad state. A unit test fails, so I had to run the rest of the targets by hand. The resulting distro doesn't work at all.
Re: Sax Server Examples?
I'm guessing there is no real examples? Or everyone is tired of my stupid questions. Either is fine, I'm starting to pick it up. I've been running through all the code, which is very little. I feel a little stupid that I'm not picking this up easier. I've pretty much been through all the code and still have issues. This is by far the simplest api I've ever had trouble with. I guess all I was looking for in the examples is one using the Sax server then client side. I think what I've written so far will work, so I probably don't need an example now. My brain my be at a blue screen. Stanczak Group wrote: Any Sax server examples? I'm trying it out now. Thanks. -- Justin Stanczak Stanczak Group 812-735-3600 All that is necessary for the triumph of evil is that good men do nothing. Edmund Burke
RE: Problem building Restlet source
Not my experience. With the grizzly test target removed or the needed dependencies added, it should work well, except for new/experimental stuff. We're developing against trunk pretty actively at our shop. -Original Message- From: Sean Landis [EMAIL PROTECTED] To: discuss@restlet.tigris.org Sent: 8/24/07 5:12 PM Subject: Re: Problem building Restlet source Alex, Thanks for the patch. Unfortunately the build appears to be in a very bad state. A unit test fails, so I had to run the rest of the targets by hand. The resulting distro doesn't work at all.
Re: tunnelFilter in tomcat container - how ???
Hi regis, Your previous zip looks a bit involved to be honest. Pull everything out (spring, hibernate, everthing,etc) anything that isn't realted to your problem, and build the most simple testcase you can. I'm really busy at the moment but I'll do my best to try to help :) Jon regis regis wrote: Nobody can help me ? Aith my buggy situation ? Thanks for any advice Maybe it is not possible to get the form at this time in the put method ? On 8/23/07, *regis regis* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Nop, it is the same behavior same error ! (but i check another time even i did before). thanks. PS; maybe you are right, it is a bug...
Re: Sax Server Examples?
Hey Justin, this is pretty much a new api., and as such is growing. I'm really enjoying using it. But you need to give people more than six hours to answer a question. I do not presume to speak for most, but I feel most have working jobs and help purely out of community spirit. If you need a professional service then the email [EMAIL PROTECTED] might be of some use. Stanczak Group wrote: I'm guessing there is no real examples? Or everyone is tired of my stupid questions. Either is fine, I'm starting to pick it up. I've been running through all the code, which is very little. I feel a little stupid that I'm not picking this up easier. I've pretty much been through all the code and still have issues. This is by far the simplest api I've ever had trouble with. I guess all I was looking for in the examples is one using the Sax server then client side. I think what I've written so far will work, so I probably don't need an example now. My brain my be at a blue screen. Stanczak Group wrote: Any Sax server examples? I'm trying it out now. Thanks.
Re: Sax Server Examples?
Sorry the ...tired of my stupid questions part wasn't intended as a hurry up and answer, but more as I feel I should be picking up on this better. I had been looking for more examples but couldn't so I said .. no real examples. Now that I reread it it does sound that way. I to have a job and will probably help out as much as I can once I understand things better. Again, sorry if it sounded as if I was rushing. Jonathan Hall wrote: Hey Justin, this is pretty much a new api., and as such is growing. I'm really enjoying using it. But you need to give people more than six hours to answer a question. I do not presume to speak for most, but I feel most have working jobs and help purely out of community spirit. If you need a professional service then the email [EMAIL PROTECTED] might be of some use. Stanczak Group wrote: I'm guessing there is no real examples? Or everyone is tired of my stupid questions. Either is fine, I'm starting to pick it up. I've been running through all the code, which is very little. I feel a little stupid that I'm not picking this up easier. I've pretty much been through all the code and still have issues. This is by far the simplest api I've ever had trouble with. I guess all I was looking for in the examples is one using the Sax server then client side. I think what I've written so far will work, so I probably don't need an example now. My brain my be at a blue screen. Stanczak Group wrote: Any Sax server examples? I'm trying it out now. Thanks. -- Justin Stanczak Stanczak Group 812-735-3600 All that is necessary for the triumph of evil is that good men do nothing. Edmund Burke
Re: Problem building Restlet source
On 8/24/07, Sean Landis [EMAIL PROTECTED] wrote: Alex, Thanks for the patch. Unfortunately the build appears to be in a very bad state. A unit test fails, so I had to run the rest of the targets by hand. The resulting distro doesn't work at all. I checked out a clean copy to fix the build script. I haven't tried using the trunk. I'll try if I have time to do so tonight or tomorrow. --Alex Milowski
Re: Sax Server Examples?
On 8/24/07, Stanczak Group [EMAIL PROTECTED] wrote: I'm guessing there is no real examples? Or everyone is tired of my stupid questions. Either is fine, I'm starting to pick it up. I've been running through all the code, which is very little. I feel a little stupid that I'm not picking this up easier. I've pretty much been through all the code and still have issues. This is by far the simplest api I've ever had trouble with. I guess all I was looking for in the examples is one using the Sax server then client side. I think what I've written so far will work, so I probably don't need an example now. My brain my be at a blue screen. I've done some DOM and DOM4J on the restlet/server, but no SAX, sorry. -- Geoffrey Wiseman
Re: Why use SpringContext?
On 8/23/07, Kim Pepper [EMAIL PROTECTED] wrote: Thanks to all for the advice. My main concern would be using hibernate and lazy loading collections, which usually requires the use of the OpenSessionInViewFilter/Interceptor and a TransactionManager. Restlet filters work fine for Session In View; of course, if you have spring-aop-able Resources, than you could use @Transactional. - Geoffrey -- Geoffrey Wiseman