You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@roller.apache.org by ahmedkii <ah...@gmail.com> on 2006/11/14 16:38:01 UTC

Error with Roller 3.0

I've installed Roller 3.0 with Oracle Database and Tomcat 5.0.x, JDK 1.5
I can access the roller frontpage but i cannot access any newly created
blogs
I receive the following error:05:42
StandardContext[/servlets-examples]SessionListener:
contextInitialized():06:49 ApplicationDispatcher[/roller] Servlet.service()
for servlet PageServlet threw exception
java.lang.NullPointerException
	at
org.apache.roller.config.RollerRuntimeConfig.isFrontPageWeblog(RollerRuntimeConfig.java:223)
	at
org.apache.roller.config.RollerRuntimeConfig.isSiteWideWeblog(RollerRuntimeConfig.java:236)
	at
org.apache.roller.ui.rendering.servlets.PageServlet.processReferrer(PageServlet.java:456)
	at
org.apache.roller.ui.rendering.servlets.PageServlet.doGet(PageServlet.java:129)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
	at
org.apache.roller.ui.core.filters.CompressionFilter.doFilter(CompressionFilter.java:80)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
	at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264)
	at
org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:97)
	at
org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
	at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
	at
org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110)
	at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
	at
org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
	at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
	at
org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)
-- 
View this message in context: http://www.nabble.com/Error-with-Roller-3.0-tf2630151s12275.html#a7339897
Sent from the Roller - User mailing list archive at Nabble.com.


RE: Error with Roller 3.0

Posted by sh...@contractor.thomson.com.
Hi ahmedkii,

Can Anyone pls help us to solve the error when trying to access the
newly created entry page.

I am successfully able to login into the Roller site & create Weblogs. I
can also create a new entries. 

Eben I have moved the errors directory from /WEB-INF/jsps/errors to
/web/errors directory { as suggested in Changelist:569123}

When I try to access the created Weblog entry, I am getting the
exception as  below :-

------------------------------------------------------------------------
EVERE: Exception Processing ErrorPage[exceptionType=java.lang.Exception,
location=/errors/error.jsp]

org.apache.jasper.JasperException: getOutputStream() has already been
called for this response
-----------------------------------------------------------------------

Ahmedkii, Pls kindly mail us the changes that you made inorder to access
the
Created webentry, it will be of great help for us.

Thanks

Shyam 
 
-----Original Message-----
From: Harianathan , ShyamPrasad 
Sent: Friday, August 31, 2007 7:59 AM
To: 'user@roller.apache.org'
Subject: RE: Error with Roller 3.0

Hi,

I am using roller 4.0 running on bundled tomcat ( with netbeans) on
Windows XP.

I have the same problem. 

I am successfully able to login into the Roller site & create Weblogs. I
can also create a new entries. 

Eben I have moved the errors directory from /WEB-INF/jsps/errors to
/web/errors directory { as suggested in Changelist:569123}

When I try to access the created Weblog entry, I am getting the
exception as  below :-

------------------------------------------------------------------------
EVERE: Exception Processing ErrorPage[exceptionType=java.lang.Exception,
location=/errors/error.jsp]

org.apache.jasper.JasperException: getOutputStream() has already been
called for this response
-----------------------------------------------------------------------

Ahmedkii, Pls kindly mail us the changes that you made inorder to access
the
Created webentry, it will be of great help for us.

Thanks

Shyam Prasad
 

 
-----Original Message-----
From: eyewinz [mailto:sarveshwinz@yahoo.com] 
Sent: Friday, August 31, 2007 4:47 AM
To: user@roller.apache.org
Subject: Re: Error with Roller 3.0


Hi ahmedkii,

"to avoid the NPE i updated the configuration of the roller server to
have
frontpage blog and then everything worked"

I am saravanan my team was facing the same problem as you did, in the
above
lines you have mentioned that you changed the server configuration, we
tried
changing the roller_properties table values,  we have set the value for
"site.frontpage.weblog.handle" as "frontpage" and tried. we are not able
to
open the frontpage itself after that.

But where as when that value is null we can able to open the frontpage
and
create weblog, but could not able to open the weblog, it throws the NPE.

can you kindly tell us what configuration chnges you did and how u
solved
this issue.

Thanks in advance


ahmedkii wrote:
> 
> The URL gives success message
> I think i solved the issue
> I've downloaded the source code and i found that the following line in
> RollerRuntimeConfig.java is causing the NPE 
> return (frontPageHandle.equals(weblogHandle));
> 
> The full  method
>    public static boolean isFrontPageWeblog(String weblogHandle) {
>         
>         String frontPageHandle =
> getProperty("site.frontpage.weblog.handle");
>         
>         return (frontPageHandle.equals(weblogHandle));
>     }
> 
> It is clear that this methods checks if this blog is the frontpage
blog.
> So to avoid the NPE i updated the configuration of the roller server
to
> have frontpage blog and then everything worked
> Afterwards i tried to remove the frontpage blog and go back to the
default
> (value is null) and the error is not there anymore
> I don't know why this happened
> 
> Regards
> 
> Dave Johnson-8 wrote:
>> 
>> Are you sure your database connection is configured correctly?
>> 
>> Try the dstest.jsp page, it will test the connection for you.
>> For example:
>>    http://localhost:8080/roller/roller-ui/tools/dstest.jsp
>> 
>> - Dave
>> 
>> 
>> On 11/14/06, ahmedkii <ah...@gmail.com> wrote:
>>>
>>> I've installed Roller 3.0 with Oracle Database and Tomcat 5.0.x, JDK
1.5
>>> I can access the roller frontpage but i cannot access any newly
created
>>> blogs
>>> I receive the following error:05:42
>>> StandardContext[/servlets-examples]SessionListener:
>>> contextInitialized():06:49 ApplicationDispatcher[/roller]
>>> Servlet.service()
>>> for servlet PageServlet threw exception
>>> java.lang.NullPointerException
>>>         at
>>>
org.apache.roller.config.RollerRuntimeConfig.isFrontPageWeblog(RollerRun
timeConfig.java:223)
>>>         at
>>>
org.apache.roller.config.RollerRuntimeConfig.isSiteWideWeblog(RollerRunt
imeConfig.java:236)
>>>         at
>>>
org.apache.roller.ui.rendering.servlets.PageServlet.processReferrer(Page
Servlet.java:456)
>>>         at
>>>
org.apache.roller.ui.rendering.servlets.PageServlet.doGet(PageServlet.ja
va:129)
>>>         at
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>>>         at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>>         at
>>>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:237)
>>>         at
>>>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:157)
>>>         at
>>>
org.apache.roller.ui.core.filters.CompressionFilter.doFilter(Compression
Filter.java:80)
>>>         at
>>>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:186)
>>>         at
>>>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:157)
>>>         at
>>>
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(Filt
erChainProxy.java:264)
>>>         at
>>>
org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterS
ecurityInterceptor.java:97)
>>>         at
>>>
org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(Filte
rSecurityInterceptor.java:72)
>>>         at
>>>
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(Filt
erChainProxy.java:274)
>>>         at
>>>
org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTransl
ationFilter.java:110)
>>>         at
>>>
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(Filt
erChainProxy.java:274)
>>>         at
>>>
org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter
(AnonymousProcessingFilter.java:125)
>>>         at
>>>
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(Filt
erChainProxy.java:274)
>>>         at
>>>
org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilt
er(SecurityContextHolderAwareRequestFilter.java:81)
>>> --
>>> View this message in context:
>>>
http://www.nabble.com/Error-with-Roller-3.0-tf2630151s12275.html#a733989
7
>>> Sent from the Roller - User mailing list archive at Nabble.com.
>>>
>>>
>> 
>> 
> 
> 

-- 
View this message in context:
http://www.nabble.com/Error-with-Roller-3.0-tf2630151s12275.html#a124228
36
Sent from the Roller - User mailing list archive at Nabble.com.


RE: Error with Roller 3.0

Posted by sh...@contractor.thomson.com.
Hi,

I am using roller 4.0 running on bundled tomcat ( with netbeans) on
Windows XP.

I have the same problem. 

I am successfully able to login into the Roller site & create Weblogs. I
can also create a new entries. 

Eben I have moved the errors directory from /WEB-INF/jsps/errors to
/web/errors directory { as suggested in Changelist:569123}

When I try to access the created Weblog entry, I am getting the
exception as  below :-

------------------------------------------------------------------------
EVERE: Exception Processing ErrorPage[exceptionType=java.lang.Exception,
location=/errors/error.jsp]

org.apache.jasper.JasperException: getOutputStream() has already been
called for this response
-----------------------------------------------------------------------

Ahmedkii, Pls kindly mail us the changes that you made inorder to access
the
Created webentry, it will be of great help for us.

Thanks

Shyam Prasad
 

 
-----Original Message-----
From: eyewinz [mailto:sarveshwinz@yahoo.com] 
Sent: Friday, August 31, 2007 4:47 AM
To: user@roller.apache.org
Subject: Re: Error with Roller 3.0


Hi ahmedkii,

"to avoid the NPE i updated the configuration of the roller server to
have
frontpage blog and then everything worked"

I am saravanan my team was facing the same problem as you did, in the
above
lines you have mentioned that you changed the server configuration, we
tried
changing the roller_properties table values,  we have set the value for
"site.frontpage.weblog.handle" as "frontpage" and tried. we are not able
to
open the frontpage itself after that.

But where as when that value is null we can able to open the frontpage
and
create weblog, but could not able to open the weblog, it throws the NPE.

can you kindly tell us what configuration chnges you did and how u
solved
this issue.

Thanks in advance


ahmedkii wrote:
> 
> The URL gives success message
> I think i solved the issue
> I've downloaded the source code and i found that the following line in
> RollerRuntimeConfig.java is causing the NPE 
> return (frontPageHandle.equals(weblogHandle));
> 
> The full  method
>    public static boolean isFrontPageWeblog(String weblogHandle) {
>         
>         String frontPageHandle =
> getProperty("site.frontpage.weblog.handle");
>         
>         return (frontPageHandle.equals(weblogHandle));
>     }
> 
> It is clear that this methods checks if this blog is the frontpage
blog.
> So to avoid the NPE i updated the configuration of the roller server
to
> have frontpage blog and then everything worked
> Afterwards i tried to remove the frontpage blog and go back to the
default
> (value is null) and the error is not there anymore
> I don't know why this happened
> 
> Regards
> 
> Dave Johnson-8 wrote:
>> 
>> Are you sure your database connection is configured correctly?
>> 
>> Try the dstest.jsp page, it will test the connection for you.
>> For example:
>>    http://localhost:8080/roller/roller-ui/tools/dstest.jsp
>> 
>> - Dave
>> 
>> 
>> On 11/14/06, ahmedkii <ah...@gmail.com> wrote:
>>>
>>> I've installed Roller 3.0 with Oracle Database and Tomcat 5.0.x, JDK
1.5
>>> I can access the roller frontpage but i cannot access any newly
created
>>> blogs
>>> I receive the following error:05:42
>>> StandardContext[/servlets-examples]SessionListener:
>>> contextInitialized():06:49 ApplicationDispatcher[/roller]
>>> Servlet.service()
>>> for servlet PageServlet threw exception
>>> java.lang.NullPointerException
>>>         at
>>>
org.apache.roller.config.RollerRuntimeConfig.isFrontPageWeblog(RollerRun
timeConfig.java:223)
>>>         at
>>>
org.apache.roller.config.RollerRuntimeConfig.isSiteWideWeblog(RollerRunt
imeConfig.java:236)
>>>         at
>>>
org.apache.roller.ui.rendering.servlets.PageServlet.processReferrer(Page
Servlet.java:456)
>>>         at
>>>
org.apache.roller.ui.rendering.servlets.PageServlet.doGet(PageServlet.ja
va:129)
>>>         at
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>>>         at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>>         at
>>>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:237)
>>>         at
>>>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:157)
>>>         at
>>>
org.apache.roller.ui.core.filters.CompressionFilter.doFilter(Compression
Filter.java:80)
>>>         at
>>>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:186)
>>>         at
>>>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:157)
>>>         at
>>>
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(Filt
erChainProxy.java:264)
>>>         at
>>>
org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterS
ecurityInterceptor.java:97)
>>>         at
>>>
org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(Filte
rSecurityInterceptor.java:72)
>>>         at
>>>
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(Filt
erChainProxy.java:274)
>>>         at
>>>
org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTransl
ationFilter.java:110)
>>>         at
>>>
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(Filt
erChainProxy.java:274)
>>>         at
>>>
org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter
(AnonymousProcessingFilter.java:125)
>>>         at
>>>
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(Filt
erChainProxy.java:274)
>>>         at
>>>
org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilt
er(SecurityContextHolderAwareRequestFilter.java:81)
>>> --
>>> View this message in context:
>>>
http://www.nabble.com/Error-with-Roller-3.0-tf2630151s12275.html#a733989
7
>>> Sent from the Roller - User mailing list archive at Nabble.com.
>>>
>>>
>> 
>> 
> 
> 

-- 
View this message in context:
http://www.nabble.com/Error-with-Roller-3.0-tf2630151s12275.html#a124228
36
Sent from the Roller - User mailing list archive at Nabble.com.


Re: Editor's Pick Functionality

Posted by Dave <sn...@gmail.com>.
On 9/21/07, shyamprasad.harianathan@contractor.thomson.com
<sh...@contractor.thomson.com> wrote:
> Can u pls some guideline for me to write the custom code development for
> achieving the below functionality ? It will be of great help.

I'd recommend studying the Roller managers and POJOs and createdb.sql
script so that you can understand the data model, then take a look at
some of the Struts 2 actions and JSP pages to understand how the UI
works together.  Once you've done that you should have some ideas how
to design this feature. Ask specific questions on the dev list if you
need hints or design advice.

- Dave

RE: Editor's Pick Functionality

Posted by sh...@contractor.thomson.com.
Hi David,

Can u pls some guideline for me to write the custom code development for
achieving the below functionality ? It will be of great help.

Thanks

Shyam Prasad Harianathan 


-----Original Message-----
From: Dave [mailto:snoopdave@gmail.com] 
Sent: Friday, September 21, 2007 11:47 AM
To: user@roller.apache.org
Subject: Re: Editor's Pick Functionality

On 9/21/07, shyamprasad.harianathan@contractor.thomson.com
<sh...@contractor.thomson.com> wrote:
> Hi,
>
> When a User posts a blog entry under a Category named (Example)
> "Editor's Pick", it should not be published immediately. The Created
> blog entry needs to reviewed and approved by Admin User. The Admin
User
> has the authoring power to publish all the entries under "Editor's
Pick"
> Category.
>
> {Also the User needs the option of publishing  any entries created
under
> all categories other than "Editor's Pick" category.).

Sounds like you need to do some custom development to get that
functionality.

- Dave

Re: Editor's Pick Functionality

Posted by Dave <sn...@gmail.com>.
On 9/21/07, shyamprasad.harianathan@contractor.thomson.com
<sh...@contractor.thomson.com> wrote:
> Hi,
>
> When a User posts a blog entry under a Category named (Example)
> "Editor's Pick", it should not be published immediately. The Created
> blog entry needs to reviewed and approved by Admin User. The Admin User
> has the authoring power to publish all the entries under "Editor's Pick"
> Category.
>
> {Also the User needs the option of publishing  any entries created under
> all categories other than "Editor's Pick" category.).

Sounds like you need to do some custom development to get that functionality.

- Dave

RE: Editor's Pick Functionality

Posted by sh...@contractor.thomson.com.
Hi,

When a User posts a blog entry under a Category named (Example)
"Editor's Pick", it should not be published immediately. The Created
blog entry needs to reviewed and approved by Admin User. The Admin User
has the authoring power to publish all the entries under "Editor's Pick"
Category.

{Also the User needs the option of publishing  any entries created under
all categories other than "Editor's Pick" category.).

This is the scenario.

Thanks.

Shyam Prasad
 
 

-----Original Message-----
From: Dave [mailto:snoopdave@gmail.com] 
Sent: Friday, September 21, 2007 10:50 AM
To: user@roller.apache.org
Subject: Re: Editor's Pick Functionality

On 9/21/07, shyamprasad.harianathan@contractor.thomson.com
<sh...@contractor.thomson.com> wrote:
> Hi,
>
> Is there a way to  provide the Editor's Pick Column from Roller ?
>
> Any User who logged into the Roller can create weblog entries and send
> it  to the  Administrator of Editor's Pick Column who publishes the
> created entries upon his approval.
>
> How to accomplish the above functionality in Roller ?
>
> Greatly appreciated for your reply.

I'm not sure what you mean by "Editor's Pick Column" but if you give a
blogger LIMITED permission within a blog, then their posts must be
reviewed and posted by a blogger with AUTHOR or ADMIN permissions.

- Dave

Re: Editor's Pick Functionality

Posted by Dave <sn...@gmail.com>.
On 9/21/07, shyamprasad.harianathan@contractor.thomson.com
<sh...@contractor.thomson.com> wrote:
> Hi,
>
> Is there a way to  provide the Editor's Pick Column from Roller ?
>
> Any User who logged into the Roller can create weblog entries and send
> it  to the  Administrator of Editor's Pick Column who publishes the
> created entries upon his approval.
>
> How to accomplish the above functionality in Roller ?
>
> Greatly appreciated for your reply.

I'm not sure what you mean by "Editor's Pick Column" but if you give a
blogger LIMITED permission within a blog, then their posts must be
reviewed and posted by a blogger with AUTHOR or ADMIN permissions.

- Dave

Editor's Pick Functionality

Posted by sh...@contractor.thomson.com.
Hi,

Is there a way to  provide the Editor's Pick Column from Roller ?

Any User who logged into the Roller can create weblog entries and send
it  to the  Administrator of Editor's Pick Column who publishes the
created entries upon his approval.

How to accomplish the above functionality in Roller ?

Greatly appreciated for your reply.

Thanks

Shyam Prasad


Re: Error with Roller 3.0

Posted by eyewinz <sa...@yahoo.com>.
Hi ahmedkii,

"to avoid the NPE i updated the configuration of the roller server to have
frontpage blog and then everything worked"

I am saravanan my team was facing the same problem as you did, in the above
lines you have mentioned that you changed the server configuration, we tried
changing the roller_properties table values,  we have set the value for
"site.frontpage.weblog.handle" as "frontpage" and tried. we are not able to
open the frontpage itself after that.

But where as when that value is null we can able to open the frontpage and
create weblog, but could not able to open the weblog, it throws the NPE.

can you kindly tell us what configuration chnges you did and how u solved
this issue.

Thanks in advance


ahmedkii wrote:
> 
> The URL gives success message
> I think i solved the issue
> I've downloaded the source code and i found that the following line in
> RollerRuntimeConfig.java is causing the NPE 
> return (frontPageHandle.equals(weblogHandle));
> 
> The full  method
>    public static boolean isFrontPageWeblog(String weblogHandle) {
>         
>         String frontPageHandle =
> getProperty("site.frontpage.weblog.handle");
>         
>         return (frontPageHandle.equals(weblogHandle));
>     }
> 
> It is clear that this methods checks if this blog is the frontpage blog.
> So to avoid the NPE i updated the configuration of the roller server to
> have frontpage blog and then everything worked
> Afterwards i tried to remove the frontpage blog and go back to the default
> (value is null) and the error is not there anymore
> I don't know why this happened
> 
> Regards
> 
> Dave Johnson-8 wrote:
>> 
>> Are you sure your database connection is configured correctly?
>> 
>> Try the dstest.jsp page, it will test the connection for you.
>> For example:
>>    http://localhost:8080/roller/roller-ui/tools/dstest.jsp
>> 
>> - Dave
>> 
>> 
>> On 11/14/06, ahmedkii <ah...@gmail.com> wrote:
>>>
>>> I've installed Roller 3.0 with Oracle Database and Tomcat 5.0.x, JDK 1.5
>>> I can access the roller frontpage but i cannot access any newly created
>>> blogs
>>> I receive the following error:05:42
>>> StandardContext[/servlets-examples]SessionListener:
>>> contextInitialized():06:49 ApplicationDispatcher[/roller]
>>> Servlet.service()
>>> for servlet PageServlet threw exception
>>> java.lang.NullPointerException
>>>         at
>>> org.apache.roller.config.RollerRuntimeConfig.isFrontPageWeblog(RollerRuntimeConfig.java:223)
>>>         at
>>> org.apache.roller.config.RollerRuntimeConfig.isSiteWideWeblog(RollerRuntimeConfig.java:236)
>>>         at
>>> org.apache.roller.ui.rendering.servlets.PageServlet.processReferrer(PageServlet.java:456)
>>>         at
>>> org.apache.roller.ui.rendering.servlets.PageServlet.doGet(PageServlet.java:129)
>>>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>>>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>>         at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
>>>         at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
>>>         at
>>> org.apache.roller.ui.core.filters.CompressionFilter.doFilter(CompressionFilter.java:80)
>>>         at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
>>>         at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
>>>         at
>>> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264)
>>>         at
>>> org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:97)
>>>         at
>>> org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
>>>         at
>>> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
>>>         at
>>> org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110)
>>>         at
>>> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
>>>         at
>>> org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
>>>         at
>>> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
>>>         at
>>> org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Error-with-Roller-3.0-tf2630151s12275.html#a7339897
>>> Sent from the Roller - User mailing list archive at Nabble.com.
>>>
>>>
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Error-with-Roller-3.0-tf2630151s12275.html#a12422836
Sent from the Roller - User mailing list archive at Nabble.com.


Re: Error with Roller 3.0

Posted by ahmedkii <ah...@gmail.com>.
The URL gives success message
I think i solved the issue
I've downloaded the source code and i found that the following line in
RollerRuntimeConfig.java is causing the NPE 
return (frontPageHandle.equals(weblogHandle));

The full  method
   public static boolean isFrontPageWeblog(String weblogHandle) {
        
        String frontPageHandle =
getProperty("site.frontpage.weblog.handle");
        
        return (frontPageHandle.equals(weblogHandle));
    }

It is clear that this methods checks if this blog is the frontpage blog.
So to avoid the NPE i updated the configuration of the roller server to have
frontpage blog and then everything worked
Afterwards i tried to remove the frontpage blog and go back to the default
(value is null) and the error is not there anymore
I don't know why this happened

Regards

Dave Johnson-8 wrote:
> 
> Are you sure your database connection is configured correctly?
> 
> Try the dstest.jsp page, it will test the connection for you.
> For example:
>    http://localhost:8080/roller/roller-ui/tools/dstest.jsp
> 
> - Dave
> 
> 
> On 11/14/06, ahmedkii <ah...@gmail.com> wrote:
>>
>> I've installed Roller 3.0 with Oracle Database and Tomcat 5.0.x, JDK 1.5
>> I can access the roller frontpage but i cannot access any newly created
>> blogs
>> I receive the following error:05:42
>> StandardContext[/servlets-examples]SessionListener:
>> contextInitialized():06:49 ApplicationDispatcher[/roller]
>> Servlet.service()
>> for servlet PageServlet threw exception
>> java.lang.NullPointerException
>>         at
>> org.apache.roller.config.RollerRuntimeConfig.isFrontPageWeblog(RollerRuntimeConfig.java:223)
>>         at
>> org.apache.roller.config.RollerRuntimeConfig.isSiteWideWeblog(RollerRuntimeConfig.java:236)
>>         at
>> org.apache.roller.ui.rendering.servlets.PageServlet.processReferrer(PageServlet.java:456)
>>         at
>> org.apache.roller.ui.rendering.servlets.PageServlet.doGet(PageServlet.java:129)
>>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>         at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
>>         at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
>>         at
>> org.apache.roller.ui.core.filters.CompressionFilter.doFilter(CompressionFilter.java:80)
>>         at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
>>         at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
>>         at
>> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264)
>>         at
>> org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:97)
>>         at
>> org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
>>         at
>> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
>>         at
>> org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110)
>>         at
>> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
>>         at
>> org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
>>         at
>> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
>>         at
>> org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)
>> --
>> View this message in context:
>> http://www.nabble.com/Error-with-Roller-3.0-tf2630151s12275.html#a7339897
>> Sent from the Roller - User mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Error-with-Roller-3.0-tf2630151s12275.html#a7341828
Sent from the Roller - User mailing list archive at Nabble.com.


Re: Error with Roller 3.0

Posted by Dave <sn...@gmail.com>.
Are you sure your database connection is configured correctly?

Try the dstest.jsp page, it will test the connection for you.
For example:
   http://localhost:8080/roller/roller-ui/tools/dstest.jsp

- Dave


On 11/14/06, ahmedkii <ah...@gmail.com> wrote:
>
> I've installed Roller 3.0 with Oracle Database and Tomcat 5.0.x, JDK 1.5
> I can access the roller frontpage but i cannot access any newly created
> blogs
> I receive the following error:05:42
> StandardContext[/servlets-examples]SessionListener:
> contextInitialized():06:49 ApplicationDispatcher[/roller] Servlet.service()
> for servlet PageServlet threw exception
> java.lang.NullPointerException
>         at
> org.apache.roller.config.RollerRuntimeConfig.isFrontPageWeblog(RollerRuntimeConfig.java:223)
>         at
> org.apache.roller.config.RollerRuntimeConfig.isSiteWideWeblog(RollerRuntimeConfig.java:236)
>         at
> org.apache.roller.ui.rendering.servlets.PageServlet.processReferrer(PageServlet.java:456)
>         at
> org.apache.roller.ui.rendering.servlets.PageServlet.doGet(PageServlet.java:129)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
>         at
> org.apache.roller.ui.core.filters.CompressionFilter.doFilter(CompressionFilter.java:80)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
>         at
> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264)
>         at
> org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:97)
>         at
> org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
>         at
> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
>         at
> org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110)
>         at
> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
>         at
> org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
>         at
> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
>         at
> org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)
> --
> View this message in context: http://www.nabble.com/Error-with-Roller-3.0-tf2630151s12275.html#a7339897
> Sent from the Roller - User mailing list archive at Nabble.com.
>
>