[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)
Page Comparison
General
Content
Integrations