[opencms-dev] Comments module:

Marc Schlegel my.mailing.lists at gmx.de
Sun Aug 31 12:17:53 CEST 2008


I checked the comments-property several times also starting the path
with / and without.


Olli Aro schrieb:
> I spent an hour debugging the very same copy and paste mistake last week when I installed the comments module, hence I knew what was wrong :)
>
> Regarding the null pointer, first things first - have you set the comments property and does it point to valid comment configuration?
>
> I know for a fact that would generate nullpointer hence asking.
>
> Regards,
>
> Olli
>
> -----Original Message-----
> From: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Marc Schlegel
> Sent: 29 August 2008 16:02
> To: The OpenCms mailing list
> Subject: Re: [opencms-dev] Comments module:
>
> I did some research. The NullPointer is thrown here
>
> org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.com_alkacon_opencms_comments.elements.comment_005fmain_jsp._jspService(comment_005fmain_jsp.java:93)
>
> so I checked the particular line and the code there is definately not from me
>
> CmsCommentsAccess alkaconCmt = new CmsCommentsAccess(pageContext, request, response); // Errorline
>
>
>
> Marc Schlegel schrieb:
>   
>> Thanks Olli...I guess I have to pay 5€ to the copy&paste-cashbox ;)
>>
>> But I am getting a NullPointerException now. My page actually only
>> contains the template-inclusion and the code from documentation.
>>
>> <%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %>
>> <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
>> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
>>
>> <cms:include property="template" element="head" />
>> <div class="element">
>>     <!-- COMMENTS START -->
>>     <c:set var="comments"><cms:property name="comments"
>> file="search"/></c:set>
>>     <c:if test="${!empty comments}">
>>     <cms:include
>>    
>> file="%(link.weak:/system/modules/com.alkacon.opencms.comments/elements/comment_main.jsp:a1074f4d-1205-11dd-8a3f-111d34530985)"
>>   
>>     <cms:param name="cmturi" value="${cms.requestContext.uri}" />
>>     </cms:include>
>>     </c:if>
>>     <!-- COMMENTS END -->
>> </div>
>> <cms:include property="template" element="foot" />
>>
>> regards
>> -- Marc
>>     



More information about the opencms-dev mailing list