uPortal IRC Logs-2008-08-04

[08:53:53 EDT(-0400)] * athena7 (n=athena7@99.145.99.32) has joined ##uportal
[08:58:08 EDT(-0400)] * EricDalquist (n=dalquist@bohemia.doit.wisc.edu) has joined ##uportal
[09:01:52 EDT(-0400)] <athena7> good morning
[09:02:16 EDT(-0400)] <EricDalquist> morning
[09:21:51 EDT(-0400)] * grimesp (n=grimesp@134.250.4.177) has joined ##uportal
[10:06:08 EDT(-0400)] * EricDalquist (n=dalquist@bohemia.doit.wisc.edu) has joined ##uportal
[11:51:32 EDT(-0400)] * holdorph (n=holdorph@uni1.unicon.net) has joined ##uportal
[12:16:15 EDT(-0400)] * bulloche (n=bulloche@134.250.4.77) has joined ##uportal
[12:17:30 EDT(-0400)] * grimesp (n=grimesp@134.250.4.177) has joined ##uportal
[14:29:13 EDT(-0400)] * invisibill (i=80876350@gateway/web/ajax/mibbit.com/x-891d5d87f09c18d9) has joined ##uportal
[14:30:08 EDT(-0400)] <invisibill> Greetings: I"m having an issue deploying a basic hello world portlet to the latest uPortal release 3.0.1
[14:30:25 EDT(-0400)] <EricDalquist> hi
[14:30:29 EDT(-0400)] <EricDalquist> what is the issue?
[14:30:43 EDT(-0400)] <invisibill> java.lang.IllegalStateException: Null content-type at org.apache.pluto.internal.impl.RenderResponseImpl.getWriter(RenderResponseImpl.java:163) at edu.uchicago.portlet.HelloWorldPortlet.doView(HelloWorldPortlet.java:74) at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:247) at javax.portlet.GenericPortlet.render(GenericPortlet.java:175) at org.apache.pluto.core.PortletServlet.dispatch(PortletServlet.j
[14:31:04 EDT(-0400)] <EricDalquist> looks like your portlet isn't setting the content type before getting the Writer
[14:31:12 EDT(-0400)] <invisibill> sorry the formatting isn't that good. Basically the portlet doesn't render and it displays that error.
[14:31:43 EDT(-0400)] <EricDalquist> http://portals.apache.org/pluto/portlet-1.0-apidocs/javax/portlet/RenderResponse.html#getWriter()
[14:31:53 EDT(-0400)] <invisibill> I have this in my doView: PrintWriter out = res.getWriter(); out.println(getGreeting(req) + " World!");
[14:32:04 EDT(-0400)] <EricDalquist> read the javadoc I just posted
[14:32:12 EDT(-0400)] <EricDalquist> there are some pre-conditions to calling getWriter()
[14:33:12 EDT(-0400)] <invisibill> ok. I forgot about that. I haven't written portlets for over and year and forgot about that gotcha. I do however have the content type set in the portlet.xml
[14:33:23 EDT(-0400)] <invisibill> I'll give it a go. thanks for your hlep.
[14:34:17 EDT(-0400)] <EricDalquist> setting the content type in the portlet.xml just declares which content types your portlet knows how to render
[14:34:27 EDT(-0400)] <EricDalquist> not what it is going to render for that particular response{color}
[14:38:12 EDT(-0400)] <invisibill> ok. I just added the content type and the portlet renders properly now. thanks.

[14:38:22 EDT(-0400)] <EricDalquist> no problem
[14:38:25 EDT(-0400)] <EricDalquist> glad it worked
[14:39:13 EDT(-0400)] <EricDalquist> have you thought at all about coming up to Madison for the fall JASIG unconference? (I'm guessing you're in Chicago by the package names you pasted)
[16:11:50 EDT(-0400)] * invisibill (i=80876350@gateway/web/ajax/mibbit.com/x-891d5d87f09c18d9) has left ##uportal
[17:13:56 EDT(-0400)] * holdorph (n=holdorph@uni1.unicon.net) has joined ##uportal
[17:40:12 EDT(-0400)] <EricDalquist> hey holdorph I think I have 'unpacked property files' working in trunk
[17:41:02 EDT(-0400)] <holdorph> i saw the email on uportal lists. that's good news. Had I been on a billable uportal project, I would have followed up on your email myself.
[17:41:18 EDT(-0400)] <holdorph> I just couldn't justify stealing those cycles from my sakai work.
[17:41:36 EDT(-0400)] <EricDalquist> and actually I found that it isn't a performance issue
[17:42:01 EDT(-0400)] <EricDalquist> the performance issue with resource loader was due to some changes made to it for 3.0 that bypassed the existing cache built into it
[17:42:14 EDT(-0400)] <EricDalquist> and it is the searching for the entry that is expensive, not actually getting it
[17:42:38 EDT(-0400)] <EricDalquist> but hopefully this will make folks happy that like to edit files once things are deployed (shudder)
[17:43:19 EDT(-0400)] <holdorph> i agree there's some distaste to that, but there's also a large distaste to having to have a 'development environment' on your production server as well
[17:43:22 EDT(-0400)] <holdorph> neither is right
[17:44:15 EDT(-0400)] <EricDalquist> (smile)
[18:02:07 EDT(-0400)] * apetro-_ (n=apetro@CPE-65-30-162-97.wi.res.rr.com) has joined ##uportal