473,396 Members | 1,995 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Not a valid month, please HELP!!

TSM
Hello, I'm writing a JSP application with an underlying Oracle
Database. I have the following problem: the same SQL statement works
fine in the SQL+ console and in SQL Navigator, but it fails in the
application.

The statement is this:
INSERT INTO operatori (id_operatore, matr_operatore, cognome, nome,
rif_utente, data_aggiornamento) VALUES( 'XXX', 'XXX', 'XXX',
'XXX', 'XXX', TO_DATE('28/10/2003 11:47:25', 'DD/MM/YYYY
hh24:mi:ss') )

It gives this result:

java.lang.Exception: java.sql.SQLException: ORA-01843: mese non
valido

at braccialetto.GestioneLog.insertLogApplication(Gest ioneLog.java:44)
at braccialetto.operatore.Esecuzione.insertOperatore( Esecuzione.java:160
)
at operatore._0002foperatore_0002fGestioneOperatore_0 002ejspGestioneOper
atore_jsp_0._jspService(_0002foperatore_0002fGesti oneOperatore_0002ejspGestioneO
peratore_jsp_0.java:213)
at org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:853)
at org.apache.jasper.servlet.JspServlet$JspCountedSer vlet.service(JspSer
vlet.java:130)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWra pper.service(JspSer
vlet.java:282)
at org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:4
29)
at org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:853)
at org.apache.tomcat.core.ServletWrapper.doService(Se rvletWrapper.java:4
05)
at org.apache.tomcat.core.Handler.service(Handler.jav a:287)
at org.apache.tomcat.core.ServletWrapper.service(Serv letWrapper.java:372
)
at org.apache.tomcat.core.ContextManager.internalServ ice(ContextManager.
java:797)
at org.apache.tomcat.core.ContextManager.service(Cont extManager.java:743
)
at org.apache.tomcat.service.http.HttpConnectionHandl er.processConnectio
n(HttpConnectionHandler.java:213)
at org.apache.tomcat.service.TcpWorkerThread.runIt(Po olTcpEndpoint.java:
416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable. run(ThreadPool.java
:501)
at java.lang.Thread.run(Thread.java:484)

HEEEEEEEELP!!

TSM (Carmine)
Jul 19 '05 #1
0 7394

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Killer | last post by:
How can i calculate the last day of the previous month? Help me,please
2
by: nchary05 | last post by:
Hi, When I am trying merge all my dlls, at the end (in log file), I am getting following error: ILMerge: Writing target assembly 'communicationsall.dll'. An exception occurred during merging:...
4
by: Tyro | last post by:
Can someone shed some light on my error here? Thanks! Specified cast is not valid. Exception Details: System.InvalidCastException: Specified cast is not valid. Source Error: Stack Trace:
1
by: Sabri Ammar | last post by:
Hi When I try to open the Nodes Editor bei a TreeView (IE WebControls) got the following message: Specified cast is not valid Any help ?
9
by: eomer | last post by:
Hi, I trying to validate myy CSS using http://jigsaw.w3.org/css-validator/. I get back some errors, but I don't understand them. I will leave you with the errors and then the CSS. Thanks in...
4
by: deep2389 | last post by:
Hi, I need to run a stored procedure which accepts date as an input. If I input date say 11252000 (MMDDYYYY), it is accepting but for dates such as 03062000, it is throwing error "ORA-01843:...
1
by: jestin | last post by:
hi friends i am trying to insert some values with date and time to Oracle db. and the ASP code is as follows sqlinsert="INSERT INTO Tbl_RequestInfo (" &_ "ReqHouseno, " &_ "ReqBadgeno, " &_...
3
by: nur08 | last post by:
/* Note: default for serveroutput is OFF. Therefore no 'Insert attempted' as I did not switch it on by set serveroutput on; */ SQL> CREATE OR REPLACE PROCEDURE add_vacc (pat_id in char,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.