cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 27672] New: - Portal:NPE in CopletTransformer startTransformingElement line 175
Date Mon, 15 Mar 2004 16:25:31 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=27672>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27672

Portal:NPE in CopletTransformer startTransformingElement line 175

           Summary: Portal:NPE in CopletTransformer startTransformingElement
                    line 175
           Product: Cocoon 2
           Version: Current CVS 2.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: blocks
        AssignedTo: dev@cocoon.apache.org
        ReportedBy: christian.mayrhuber@gmx.net


CopletTransformer fails to transform links if not called trough
portal cocoon:/ protocol, but trough http://portal/coplets/jucs_browse/...

final LinkService linkService =
portalService.getComponentManager().getLinkService();

portalService.getComponentManager() returns null in NPE case and
call of .getLinkService() results in NPE.

I've tried to specify portalName and copletId as transformer
parameters and via the portal-object-model action. Both without
success.

The snippet below works well, if CopletTransformer is not used,
it just results in non working links.
It works well with the CopletTransformer if I call it trough the
portal.
Any advice?

<map:match "...">
    <map:generate ...>
...
    <map:act type="portal-object-model">
        <map:parameter name="portalName" value="portal" />
        <map:parameter name="copletId" value="JucsBrowse-1" /> 

        <map:transform type="portal-coplet"/> 
    </map:act>
    <map:serialize/>
<map:match>

Mime
View raw message