You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by Henri Yandell <ba...@generationjava.com> on 2003/04/17 01:12:24 UTC

[jstl] null pointer exception with jstl

I'm getting an NPE from the <c:set> method when used in Tomcat 4.1. The
particular code sees me running an <sql:query> against Oracle, then
looping over my result set and setting values in a bean.

I get the NPE when the field is NULL [in database terms]. Does anyone know
if this is a spec thing or just something dangling in the jstl code?

Looking at the code, it's the last statement in a group of if's and
else's, so I'm guessing my assumptions are stupid here.

Would look further, but got to run.

Hen

Exception:

java.lang.NullPointerException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at
org.apache.taglibs.standard.tag.common.core.SetSupport.doEndTag(SetSupport.java:182)
	at
org.apache.jsp._plantLoad_jsp._jspx_meth_c_set_27(_plantLoad_jsp.java:1514)
	at
org.apache.jsp._plantLoad_jsp._jspService(_plantLoad_jsp.java:526)
	at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)



---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org