Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
JSP - A mailing list about Java Server Pages specification and reference
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
- java.lang.NullPointerException @ InternalContentPr

- java.lang.NullPointerException @ InternalContentPr

2007-08-09       - By rharari

 Back
Hi,

I??ve synchronized the source with trunk branch and i??m getting this exception
when running the portal:

java.lang.NullPointerException Source code of java.lang.NullPointerException
org.jboss.portal.core.impl.model.content.InternalContentProvider.renderWindow
(InternalContentProvider.java:258)
org.jboss.portal.core.impl.model.content.generic.InternalGenericContentProvider
.renderWindow(InternalGenericContentProvider.java:210)
org.jboss.portal.core.cms.content.InternalCMSContentProvider.renderWindow
(InternalCMSContentProvider.java:105)
org.jboss.portal.core.model.portal.command.render.RenderWindowCommand.execute
(RenderWindowCommand.java:88)
org.jboss.portal.core.controller.ControllerCommand$1.invoke(ControllerCommand
.java:68)
org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
org.jboss.portal.core.aspects.controller.node.EventBroadcasterInterceptor
.invoke(EventBroadcasterInterceptor.java:123)
org.jboss.portal.core.controller.ControllerInterceptor.invoke
(ControllerInterceptor.java:40)
org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
org.jboss.portal.core.aspects.controller.ControlInterceptor.invoke
(ControlInterceptor.java:57)
org.jboss.portal.core.controller.ControllerInterceptor.invoke
(ControllerInterceptor.java:40)
org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
org.jboss.portal.core.aspects.controller.PageCustomizerInterceptor.invoke
(PageCustomizerInterceptor.java:118)
org.jboss.portal.core.controller.ControllerInterceptor.invoke
(ControllerInterceptor.java:40)
org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke
(PolicyEnforcementInterceptor.java:77)
org.jboss.portal.core.controller.ControllerInterceptor.invoke
(ControllerInterceptor.java:40)
org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
org.jboss.portal.core.aspects.controller.node.PortalNodeInterceptor.invoke
(PortalNodeInterceptor.java:81)


I??ve solved this adding the following declaration in /core-cms/src/resources
/portal-cms-sar/META-INF/jboss-service.xml file:


 | .....
 |    <!-- Content renderer integration -->
 |    <mbean
 |       code="org.jboss.portal.core.cms.content.InternalCMSContentProvider"
 |       name="portal:service=ContentRenderer,type=cms"
 |       xmbean-dd=""
 |       xmbean-code="org.jboss.portal.jems.as.system.JBossServiceModelMBean">
 |       <xmbean/>
 |       <attribute name="ContentType">cms</attribute>
 |       <attribute name="DecorateContent">false</attribute>
 |       <attribute name="PortletInstanceName">CMSPortletInstance</attribute>
 |       <depends
 |          optional-attribute-name="Registry"
 |          proxy-type="attribute">portal:service=ContentProviderRegistry<
/depends>
 |       <depends
 |          optional-attribute-name="CommandFactory"
 |          proxy-type="attribute">portal:commandFactory=CMSObject</depends>
 |
 |
 | <!-- include this  -->
 |     <depends
 |          optional-attribute-name="PortalAuthorizationManagerFactory"
 |          proxy-type="attribute">portal:service
=PortalAuthorizationManagerFactory</depends>
 |
 |
 |
 |    </mbean>
 |

Environment: jdk 6.0 - jboss 4.0.5ga - mysql - windows


Hope this help someone else ;)


rgds,

r.harari


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic
&p=4072811#4072811

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode
=reply&p=4072811

__ ____ ____ ____ ____ ____ ____ ____ ____ ____
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user

©2008 junlu.com - Jax Systems, LLC, U.S.A.