Re: works in Jetty, not in Tomcat 6?
>> I hesitate to post it, since it's just an ugly hack meant to save us until >> tapestry5-cayenne works with 5.3 :). But here goes: >> >> https://gist.github.com/1497082 >> >> I don't think the error is there though—the NullPointerException there is >> just an artifact of the fact that the object passed to toClient() is null. > > A null object being passed to toClient() is 100% valid, so you code should > handle this situation. Aaaand it works. I owe you a beer. Or five. Thanks! - hugi - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: works in Jetty, not in Tomcat 6?
On Mon, 19 Dec 2011 10:53:25 -0200, Hugi Thordarson wrote: Hi Thiago! Hi! I hesitate to post it, since it's just an ugly hack meant to save us until tapestry5-cayenne works with 5.3 :). But here goes: https://gist.github.com/1497082 I don't think the error is there though—the NullPointerException there is just an artifact of the fact that the object passed to toClient() is null. A null object being passed to toClient() is 100% valid, so you code should handle this situation. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: works in Jetty, not in Tomcat 6?
Hi Thiago! I hesitate to post it, since it's just an ugly hack meant to save us until tapestry5-cayenne works with 5.3 :). But here goes: https://gist.github.com/1497082 I don't think the error is there though—the NullPointerException there is just an artifact of the fact that the object passed to toClient() is null. - hugi On 19.12.2011, at 12:24, Thiago H. de Paula Figueiredo wrote: > On Mon, 19 Dec 2011 09:46:56 -0200, Hugi Thordarson wrote: > >> Hi all. > > Hi! > >> I'm fighting a little weird problem. I've got a component that works fine >> when I run my project in Jetty. But when I attempt to use the same component >> (in the same application) in Tomcat, I'm getting a NullPointerException. > > Could you post the source of > is.landsvirkjun.admin.util.CayenneDataObjectEncoder? > > -- > Thiago H. de Paula Figueiredo > Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and > instructor > Owner, Ars Machina Tecnologia da Informação Ltda. > http://www.arsmachina.com.br > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: works in Jetty, not in Tomcat 6?
On Mon, 19 Dec 2011 09:46:56 -0200, Hugi Thordarson wrote: Hi all. Hi! I'm fighting a little weird problem. I've got a component that works fine when I run my project in Jetty. But when I attempt to use the same component (in the same application) in Tomcat, I'm getting a NullPointerException. Could you post the source of is.landsvirkjun.admin.util.CayenneDataObjectEncoder? -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
works in Jetty, not in Tomcat 6?
Hi all. I'm fighting a little weird problem. I've got a component that works fine when I run my project in Jetty. But when I attempt to use the same component (in the same application) in Tomcat, I'm getting a NullPointerException. Here's the component: https://gist.github.com/1496826 And this is the error I'm getting in Tomcat: http://hugi.karlmenn.is/d/exception.html Any ideas? Cheers, - hugi - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org