Sorry, my mistake, you were responding to another "Andreas".

> -----Original Message-----
> From: Andreas Rieger [mailto:[EMAIL PROTECTED] 
> Sent: Friday, February 03, 2006 6:58 PM
> To: [email protected]; [email protected]
> Subject: RE: What's the deal with the "invoker servlet" from 
> the examples?
> 
> Hi Patrick,
> 
> of course I don't call the portlet directly in my browser, 
> the URLs were just the result of an analyzing which I've done 
> with Ethereal. I tried to find, why the browser URL changes 
> on Struts portlets and stays always the same when using my 
> own portlet (written without Struts framework). The 
> disadvantage having URL that do not change is - as mentioned 
> - that the browser history is not working.
> 
> However I'll check my web.xml to see if I can find anything 
> suspicious.
> 
> Yours,
> Andreas.
> 
> --
> Dipl.-Inform. Andreas Rieger
> Technische Universität Berlin, DAI-Labor Sekr. GOR 1-1, 
> Franklinstr. 28/29, 10587 Berlin
> Tel.: +49 (30) 314-73612
> Fax : +49 (30) 314-21799
> E-Mail: [EMAIL PROTECTED]  
> 
> > -----Original Message-----
> > From: Patrick Huber [mailto:[EMAIL PROTECTED]
> > Sent: Friday, February 03, 2006 3:12 PM
> > To: [email protected]
> > Subject: Re: What's the deal with the "invoker servlet" from the 
> > examples?
> > 
> > Hi Andreas
> > 
> > Portlets can't be called directly like servlets by entering 
> a url into 
> > your browser. The Portal has to invoke them and since the 
> portlets are 
> > potentially in their own webapp, a portlet invocation takes an 
> > indirection via a servlet.
> > 
> > I guess you're missing a servlet entry in your web.xml - 
> but I don't 
> > know anything about pluto-1.0 so I don't know for sure.
> > 
> > Patrick
> > 
> > 2006/2/3, Andreas Schildbach <[EMAIL PROTECTED]>:
> > > [Sorry for posting again, but my post in the user list remained 
> > > unanswered for some days.]
> > >
> > > Hi everyone,
> > >
> > > I'm currently trying to deploy my own portlet into Pluto
> > 1.0.1 by hand.
> > > The window of the portlet already shows up in the Pluto 
> portal, but 
> > > the content only shows "Error occurred in portlet!", and 
> there is a 
> > > NullPointerException in the log:
> > >
> > > java.lang.NullPointerException at
> > > 
> > 
> org.apache.pluto.invoker.impl.PortletInvokerImpl.invoke(PortletInvoker
> > > Impl.java:109)
> > >
> > > I looked up the corresponding line in the source:
> > >
> > > protected void invoke(PortletRequest portletRequest,
> > PortletResponse
> > > portletResponse, Integer methodID) throws
> > PortletException,IOException
> > > {
> > >    InternalPortletRequest internalPortletRequest = 
> > > CoreUtils.getInternalRequest(portletRequest);
> > >     InternalPortletResponse internalPortletResponse = 
> > > CoreUtils.getInternalResponse(portletResponse);
> > >     // gather all required data from request and response
> > >    ServletRequest servletRequest =
> > > 
> > ((javax.servlet.http.HttpServletRequestWrapper)internalPortlet
> Request).getRequest();
> > >     ServletResponse servletResponse =
> > > 
> > ((javax.servlet.http.HttpServletResponseWrapper)internalPortle
> tResponse).getResponse();
> > >     ServletDefinition servletDefinition = 
> > > portletDefinition.getServletDefinition();
> > >    ServletContext servletContext =
> > servletConfig.getServletContext();
> > >     javax.servlet.RequestDispatcher dispatcher = 
> > > servletDefinition.getRequestDispatcher(servletContext);
> > <<< ITS THIS LINE
> > >    [...]
> > >
> > > Looks like servletConfig.getServletContext() returned null. 
> > The reason
> > > could be that I defined no "invoker servlet" for my
> > portlet. Before I
> > > elaborate any more, could anyone tell me what's the deal 
> with that 
> > > "invoker servlet"? I could not find anything about it in
> > the portlet
> > > specification or in the pluto documentation. Why is it
> > needed, or is
> > > just optional and there is an error in the impl?
> > >
> > > Regards,
> > >
> > > Andreas
> > >
> > >
> > 
> > 
> > --
> > "I love deadlines. I like the whooshing sound they make as they fly 
> > by." -- Douglas Adams
> > 
> > 
> 
> 

Reply via email to