Witajcie!

  I'm trying to remake this match:
      <map:match pattern="save-user-profile">
        <map:generate src="resources/save-user-profile.xml" />
        <map:transform type="session" />
        <map:transform type="write-source" />
        <map:serialize type="xml" />
      </map:match>

  To XSP saving profile to sql database. How should result XML look
  like?

  When I generate sth like this:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<user>
  <sourceResult>
    <execution>success</execution>
  </sourceResult>
</user>

I get this exception:
Original Exception: java.lang.NullPointerException
        at 
org.apache.cocoon.portal.profile.impl.MapProfileLS.saveProfile(MapProfileLS.java:201)

Because result of this java expression in MapProfileLS.java:
DOMUtil.getValueOf(element, "descendant::sourceResult/execution", this.xpathProcessor)

is NULL.

What am I doing wrong?
        
  

-- 
Pozdrowienia,
 Grzegorz                          mailto:[EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to