You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Mark Washeim <es...@canuck.com> on 2000/06/22 17:41:44 UTC

sql null pointer

Sigh, I'm slow, but I didn't think I was this slow:

java.lang.ArrayIndexOutOfBoundsException: 0
    at org.apache.xerces.dom.DocumentImpl.isXMLName(Compiled Code)
    at org.apache.xerces.dom.DocumentImpl.createAttribute(Compiled Code)
    at org.apache.xerces.dom.ElementImpl.setAttribute(Compiled Code)

is being thrown with an xsp page, as follows:

<xsp:page
  language="java"
  xmlns:sql="http://www.apache.org/1999/SQL"
  xmlns:xsp="http://www.apache.org/1999/XSP/Core"
  xmlns:request="http://www.apache.org/1999/XSP/Request"
>

<xsp:logic>
public String p ;
</xsp:logic>

  <page title="SQL Search Results">

<xsp:logic>
    p = "insert into TABLE ( FIELDS . . n ) values ('','', .. n )" ;
 </xsp:logic>
        <sql:execute-query>
                <sql:driver>oracle.jdbc.driver.OracleDriver</sql:driver>
           <sql:dburl>jdbc:oracle:thin:</sql:dburl>
                <sql:username></sql:username>
                <sql:password></sql:password>
                <sql:doc-element>USER</sql:doc-element>
                <sql:tag-case>upper</sql:tag-case>
                <sql:query><xsp:expr>p</xsp:expr></sql:query>
        </sql:execute-query>
  </page>
</xsp:page>
    

I don't get it???? I'm assuming that it's something in the response from
oracle that is a value which can't be set to an attribute . . .
    
-- 
Mark (Poetaster) Washeim

'On the linen wrappings of certain mummified remains
found near the Etrurian coast are invaluable writings
that await translation.

Quem colorem habet sapientia?'

Evan S. Connell

 



Re: sql null pointer

Posted by Donald Ball <ba...@webslingerZ.com>.
On Thu, 22 Jun 2000, Mark Washeim wrote:

> on 22/6/00 5:41 pm, Mark Washeim at esalon@canuck.com wrote:
> 
> Ok, got it.
> 
> Damn. I didn't realize that
> <sql:update-rows-attribute>result</sql:update-rows-attribute>
> 
> was required.... thanks anyway!

shouldn't be... i'll add a patch.

- donald


Re: sql null pointer

Posted by Mark Washeim <es...@canuck.com>.
on 22/6/00 5:41 pm, Mark Washeim at esalon@canuck.com wrote:

Ok, got it.

Damn. I didn't realize that
<sql:update-rows-attribute>result</sql:update-rows-attribute>

was required.... thanks anyway!


> Sigh, I'm slow, but I didn't think I was this slow:
> 
> java.lang.ArrayIndexOutOfBoundsException: 0
> at org.apache.xerces.dom.DocumentImpl.isXMLName(Compiled Code)
> at org.apache.xerces.dom.DocumentImpl.createAttribute(Compiled Code)
> at org.apache.xerces.dom.ElementImpl.setAttribute(Compiled Code)
> 
> is being thrown with an xsp page, as follows:
> 
> <xsp:page
> language="java"
> xmlns:sql="http://www.apache.org/1999/SQL"
> xmlns:xsp="http://www.apache.org/1999/XSP/Core"
> xmlns:request="http://www.apache.org/1999/XSP/Request"
>> 
> 
> <xsp:logic>
> public String p ;
> </xsp:logic>
> 
> <page title="SQL Search Results">
> 
> <xsp:logic>
> p = "insert into TABLE ( FIELDS . . n ) values ('','', .. n )" ;
> </xsp:logic>
> <sql:execute-query>
> <sql:driver>oracle.jdbc.driver.OracleDriver</sql:driver>
> <sql:dburl>jdbc:oracle:thin:</sql:dburl>
> <sql:username></sql:username>
> <sql:password></sql:password>
> <sql:doc-element>USER</sql:doc-element>
> <sql:tag-case>upper</sql:tag-case>
> <sql:query><xsp:expr>p</xsp:expr></sql:query>
> </sql:execute-query>
> </page>
> </xsp:page>
> 
> 
> I don't get it???? I'm assuming that it's something in the response from
> oracle that is a value which can't be set to an attribute . . .
> 

-- 
Mark (Poetaster) Washeim

'On the linen wrappings of certain mummified remains
found near the Etrurian coast are invaluable writings
that await translation.

Quem colorem habet sapientia?'

Evan S. Connell