This is the code which is causing the problem (from
org.apache.jetspeed.portal.factory.PortletFactory):
public final Portlet[] getPortlets (int start, int count, RunData rundata)
throws PortletException
{
Entry[] entries = getPortlets().getEntry();
//if the nodelist is shorter than the start index return a null
array
if ( entries.length < start) {
throw new IndexOutOfBoundsException("start was greater than then
length of the number of portlets");
}
Vector v = new Vector();
int max = start + count;
for (int i = start; i < max; ++i) {
Portlet portlet = getPortlet( entries[i], rundata );
v.addElement( portlet );
}
Portlet[] portlets= new Portlet[v.size()];
v.copyInto(portlets);
return portlets;
}
The for loop isn't checking to see if entries has anything in it or not.
I suspect this should have something in it and my configuration is off
somehow, but this condition should be checked for, I imagine.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Sam Weiner
Sent: Saturday, March 04, 2000 4:34 AM
To: JetSpeed
Subject: RE: Dumb Outlook
Yes, I'm working out of CVS. As I said, though, I got around this by
changing my store.memory
Now I'm running into this:
There has been an error! Please review the exception below for more
information.
Get/Post Data:
screen = portlets.PortletViewerScreen
classname = org.apache.jetspeed.portal.portlets.PortletBrowserPortlet
The exception is:
java.lang.ArrayIndexOutOfBoundsException
at org/apache/jetspeed/portal/factory/PortletFactory.getPortlets
(PortletFactory.java:395)
at org/apache/jetspeed/portal/factory/FeedFactory.getPortlets
(FeedFactory.java:236)
at org/apache/jetspeed/portal/portlets/PortletBrowserPortlet.getContent
(PortletBrowserPortlet.java:153)
at org/apache/jetspeed/portal/DefaultPortletControl.getContent
(DefaultPortletControl.java:167)
at org/apache/jetspeed/portal/DefaultPortletController.getPortletColumn
(DefaultPortletController.java:202)
at org/apache/jetspeed/portal/DefaultPortletController.init
(DefaultPortletController.java:153)
at org/apache/jetspeed/portal/factory/PortletControllerFactory.getInstance
(PortletControllerFactory.java:117)
at org/apache/jetspeed/portal/factory/PortletControllerFactory.getInstance
(PortletControllerFactory.java:91)
at org/apache/jetspeed/turbine/screens/portlets/PortletViewerScreen.build
(PortletViewerScreen.java:121)
at org/apache/turbine/modules/ScreenLoader.eval (ScreenLoader.java:122)
at org/apache/jetspeed/turbine/layouts/JetSpeedLayout.build
(JetSpeedLayout.java:107)
at org/apache/turbine/modules/LayoutLoader.exec (LayoutLoader.java:112)
at org/apache/turbine/modules/pages/DefaultPage.build (DefaultPage.java:94)
at org/apache/turbine/modules/PageLoader.exec (PageLoader.java:112)
at Turbine.doGet (Turbine.java:300)
at javax/servlet/http/HttpServlet.service (HttpServlet.java:498)
at javax/servlet/http/HttpServlet.service (HttpServlet.java:576)
at org/apache/jserv/JServConnection.processRequest
(JServConnection.java:312)
at org/apache/jserv/JServConnection.run (JServConnection.java:177)
at java/lang/Thread.run (Thread.java)
java.lang.ArrayIndexOutOfBoundsException
Which seems to be caused by my PortletFactory having no Portlets which seems
to maybe have something to do with the FeedFactory, but I'm not sure yet.
Fun code to fly around in.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Kevin A. Burton
Sent: Saturday, March 04, 2000 3:47 AM
To: JetSpeed
Subject: Re: Dumb Outlook
That looks like it might be a problem... what version of Jetspeed? From
CVS?
Kevin
Sam Weiner wrote:
>
> Thanks, I'm past that.
>
> Now I get:
>
> There has been an error! Please review the exception below for more
> information.
> Get/Post Data:
> screen = portlets.PortletViewerScreen
> classname = org.apache.jetspeed.portal.portlets.PortletBrowserPortlet
>
> The exception is:
> java.lang.NullPointerException
> at org/apache/jetspeed/xml/cache/PortletCache.getCacheable
> (PortletCache.java:129)
> at org/apache/jetspeed/portal/factory/PortletFactory.getPortlet
> (PortletFactory.java:465)
> at org/apache/jetspeed/portal/factory/PortletFactory.getPortlet
> (PortletFactory.java:500)
> at
org/apache/jetspeed/turbine/screens/portlets/PortletViewerScreen.build
> (PortletViewerScreen.java:115)
> at org/apache/turbine/modules/ScreenLoader.eval
(ScreenLoader.java:122)
> at org/apache/jetspeed/turbine/layouts/JetSpeedLayout.build
> (JetSpeedLayout.java:107)
> at org/apache/turbine/modules/LayoutLoader.exec
(LayoutLoader.java:112)
> at org/apache/turbine/modules/pages/DefaultPage.build
(DefaultPage.java:94)
> at org/apache/turbine/modules/PageLoader.exec
(PageLoader.java:112)
> at Turbine.doGet (Turbine.java:300)
> at javax/servlet/http/HttpServlet.service (HttpServlet.java:498)
> at javax/servlet/http/HttpServlet.service (HttpServlet.java:576)
> at org/apache/jserv/JServConnection.processRequest
> (JServConnection.java:312)
> at org/apache/jserv/JServConnection.run (JServConnection.java:177)
> at java/lang/Thread.run (Thread.java)
>
> java.lang.NullPointerException
>
> When pressing Customize
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Josh Lucas
> Sent: Saturday, March 04, 2000 1:17 AM
> To: JetSpeed
> Subject: Re: Dumb Outlook
>
> Sam Weiner wrote:
> >
> > Sorry, CTRL+V seems to initiate a send sometimes.
> >
> > As I was saying,
> >
> > I'm getting a NoClassDefFound Exception thrown by
> > org.apache.jetspeed.xml.cache.PortletCache in the constructor on the
> > following line:
> >
> > this.store = MemoryStore.getInstance();
> >
> > This is certainly in my classpath ... I'm confused.
> >
> > On another note, I'm failing to build CocoonRenderer.java which imports
> > org.apache.cocoon.util.*; which doesn't seem to exist in the cocoon
> project.
> >
>
> Not sure about the first one but the second one can be fixed by
> including the coocon-ext-servlet2.2.jar in your classpath.
>
> the util package is not in the main Cocoon tree.
--
Kevin A Burton ([EMAIL PROTECTED])
http://relativity.yi.org
Message to SUN: "Open Source Java!"
"For evil to win is for good men to do nothing."
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]