users@glassfish.java.net

JPA + JSF + Oracle Timestamp problem

From: <glassfish_at_javadesktop.org>
Date: Thu, 15 Feb 2007 08:59:44 PST

I have in the Oracle a column of date and time of the timestamp type.

When I try to modify or to insert new data in my class, I receive this error:

[i]java.lang.NullPointerException
        br.com.sequor.webapplication4.controller.Table1Converter.getAsObject(Table1Converter.java:34)
        com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:160)
        javax.faces.component.UIInput.getConvertedValue(UIInput.java:713)
        javax.faces.component.UIInput.validate(UIInput.java:638)
        javax.faces.component.UIInput.executeValidate(UIInput.java:849)
        javax.faces.component.UIInput.processDecodes(UIInput.java:383)
        javax.faces.component.UIForm.processDecodes(UIForm.java:144)
        javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:880)
        javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:306)
        com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:79)
        com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
        com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
        javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
        org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)[/i]

I am using JPA and JSF (crated by Netbeans) and the type of the column timestamp in Oracle is a Serializabe atribute in my Java class.
        
Any inserted value in the field cause the error.

Exists some thing to make/to modify?
Some tip?

Best regards!
Elias Nogueira
[Message sent by forum member 'eliasn' (eliasn)]

http://forums.java.net/jive/thread.jspa?messageID=203907