Java.text.ParseException: Unparseable date: "2008-12-16 00:00:00"
Dear All WebLogic Guru,
Need your help about the error in our WebLogic Apps Server. Below is the related logs. Hope to hear from you soon.
========
Log snippet:
========
[15:48:02 ] [INFO] [NumberFormatException in TimesheetAddHandler:] null [delegate.helper.gbms.bulkcrg.timesheet.TimesheetOperatorAddHandler.perform(TimesheetOperatorAddHandler.java:77)]
java.text.ParseException: Unparseable date: "2008-12-16 00:00:00"
at java.text.DateFormat.parse(DateFormat.java:337)
at ejb.sessionBeans.gbms.bulkcrg.timesheet.TimesheetOperatorEJB.getOpsDttm(TimesheetOperatorEJB.java:1647)
at ejb.sessionBeans.gbms.bulkcrg.timesheet.TimesheetOperator_vn72b_EOImpl.__WL_invoke(Unknown Source)
at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
at ejb.sessionBeans.gbms.bulkcrg.timesheet.TimesheetOperator_vn72b_EOImpl.getOpsDttm(Unknown Source)
at delegate.helper.gbms.bulkcrg.timesheet.TimesheetOperatorAddHandler.perform(TimesheetOperatorAddHandler.java:383)
at delegate.RequestManager.perform(RequestManager.java:85)
at delegate.FrontController.processRequest(FrontController.java:241)
at delegate.FrontController.doPost(FrontController.java:378)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at sg.com.jp.framework.sso.SingleSignOnFilter.doFilter(SingleSignOnFilter.java:121)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at sg.com.jp.util.xss.XssFilter.doFilter(XssFilter.java:57)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at uiServlet.jponlinecharge.TxnLogFilter.doFilter(TxnLogFilter.java:153)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
[15:48:02 ] [INFO] [ScreenManager] Screen ID [TimesheetOperatorViewSvlt] mapped to [JSP/gbms/bulkcrg/timesheet/TimesheetOP_details.jsp] [delegate.ScreenManager.nextScreen(ScreenManager.java:60)]
[15:48:02 ] [INFO] Next Screen is : /JRPA(or ServletContext@27549577[app:47jrpa module:JRPA path:/JRPA spec-version:null],WebLogic Server 10.3.4.0 Fri Dec 17 20:47:33 PST 2010 1384255 Oracle WebLogic Server Module Dependencies 10.3 Thu Oct 28 06:03:12 PDT 2010 Oracle WebLogic Server on JRockit Virtual Edition Module Dependencies 10.3 Thu Sep 23 15:02:15 PDT 2010 )/JSP/gbms/bulkcrg/timesheet/TimesheetOP_details.jsp [delegate.FrontController.processRequest(FrontController.java:322)]
[15:48:02 ] [DEBUG] 2nd funcName in doFilter = TimesheetOP_details [uiServlet.jponlinecharge.TxnLogFilter.doFilter(TxnLogFilter.java:83)]
[15:48:02 ] [DEBUG] #########new admin framework ########## Function Code = [uiServlet.jponlinecharge.TxnLogFilter.doFilter(TxnLogFilter.java:92)]
[15:48:02 ] [DEBUG] Function Code = [uiServlet.jponlinecharge.TxnLogFilter.doFilter(TxnLogFilter.java:108)]
Status :S
[15:48:03 ] [DEBUG] Contains Function: true TimesheetOperatorSuperAmend [tags.ACLTag.doAfterBody(ACLTag.java:132)]
[15:48:03 ] [DEBUG] Contains Function: true TimesheetOperatorSuperDelete [tags.ACLTag.doAfterBody(ACLTag.java:132)]
[15:48:03 ] [DEBUG] Contains Function: true TimesheetOperatorClose [tags.ACLTag.doAfterBody(ACLTag.java:132)]
[15:48:31 ] [DEBUG] 2nd funcName in doFilter = TimesheetOperatorSuperAmend [uiServlet.jponlinecharge.TxnLogFilter.doFilter(TxnLogFilter.java:83)]
[15:48:31 ] [DEBUG] Function Code = F27052 [uiServlet.jponlinecharge.TxnLogFilter.doFilter(TxnLogFilter.java:108)]
[15:48:31 ] [DEBUG] Logged In?: true [delegate.helper.System.AuthenticationHandler.valid(AuthenticationHandler.java:571)]
[15:48:31 ] [INFO] [RequestManager] Request ID [TimesheetOperatorSuperAmend] mapped to [delegate.helper.gbms.bulkcrg.timesheet.TimesheetOperatorAmendHandler] [delegate.RequestManager.perform(RequestManager.java:77)]
[15:48:31 ] [INFO] [RequestManager] delegate.helper.gbms.bulkcrg.timesheet.TimesheetOperatorAmendHandler Created [delegate.helper.gbms.bulkcrg.timesheet.TimesheetOperatorAmendHandler@66d4bf] [delegate.RequestManager.perform(RequestManager.java:82)]
[15:48:31 ] [INFO] performing request delegate.helper.gbms.bulkcrg.timesheet.TimesheetOperatorAmendHandler@66d4bf [delegate.RequestManager.perform(RequestManager.java:84)]
[15:48:31 ] [INFO] [NumberFormatException in TimesheetAddHandler:] null [delegate.helper.gbms.bulkcrg.timesheet.TimesheetOperatorAmendHandler.perform(TimesheetOperatorAmendHandler.java:96)]
[15:48:31 ] [ERROR] java.lang.StringIndexOutOfBoundsException: String index out of range: 2
at java.lang.String.substring(String.java:1934)
at delegate.helper.gbms.bulkcrg.timesheet.TimesheetOperatorAmendHandler.perform(TimesheetOperatorAmendHandler.java:110)
at delegate.RequestManager.perform(RequestManager.java:85)
at delegate.FrontController.processRequest(FrontController.java:241)
at delegate.FrontController.doPost(FrontController.java:378)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at sg.com.jp.framework.sso.SingleSignOnFilter.doFilter(SingleSignOnFilter.java:121)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at sg.com.jp.util.xss.XssFilter.doFilter(XssFilter.java:57)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at uiServlet.jponlinecharge.TxnLogFilter.doFilter(TxnLogFilter.java:153)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
[delegate.helper.gbms.bulkcrg.timesheet.TimesheetOperatorAmendHandler.perform(TimesheetOperatorAmendHandler.java:526)]
[15:48:31 ] [INFO] errorMessage ::: There are some error with your request. Please contact administrator if problem persists. [delegate.FrontController.processRequest(FrontController.java:311)]
=================
Application Server Specs:
=================
OS: Solaris10 x86
cat /etc/release
Oracle Solaris 10 9/10 s10x_u9wos_14a X86
Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
Assembled 11 August 2010
RAM: 8GB
HDD: 70GB
Apps Server: WebLogic Server Version: 10.3.4.0
Thank you and have a blessed day.
Best regards,
Albert
Hi,
Try this
The reason for this error is that the time format entered is not correct. It should be a date and 24-hour format expressed as mm/dd/yy hh:mm:ss. For example: 07/15/10 14:30:00.
The WebLogic Server 11g documentation gives instructions for Date/Time format. For details, please refer to
http://download.oracle.com/docs/cd/E14571_01/apirefs.1111/e13952/pagehelp/Diagnosticsdiagnosticsviewmetricslogtabletitle.html
Solution
However, since you cannot open the Domain Log page again because the console hangs or reports a "Redirect Loop" error, you cannot modify this wrong time format on the console. To resolve this issue, please follow these steps:
Stop WebLogic Server.
Go to directory <Domain>/servers/<Server_Name>/data/console
Either open ConsolePreferences.xml and modify the value of startrange (and/or endrange) to a correctly formatted time, e.g. 07/15/10 14:30:00
OR
Delete ConsolePreferences.xml entirely.
Start Weblogic Server again.
Regards,
Kal
Similar Messages
-
Parse Exception : java.text.ParseException: Unparseable date
I have inherited a UDF in some mapping that on the whole, works okay...
but it throws an error after mapping a few dates:
Parse Exception : java.text.ParseException: Unparseable date: "2010-03-18T00:00:00.000Z"
Parse Exception : java.text.ParseException: Unparseable date: "2010-03-23T23:59:00.000Z"
Parse Exception : java.text.ParseException: Unparseable date: "2010-03-18T00:00:00.000Z"
Parse Exception : java.text.ParseException: Unparseable date: "2010-03-23T23:59:00.000Z"
Parse Exception : java.text.ParseException: Unparseable date: "2010-03-18T00:00:00.000Z"
Parse Exception : java.text.ParseException: Unparseable date: "2010-03-23T23:59:00.000Z"
the first few map okay... then i get the exception.
the UDF is as follows:
public String convertDateTimeToUTC(String strDate, Container container) throws StreamTransformationException{
AbstractTrace trace = container.getTrace();
Date date=null;
SimpleDateFormat sdfSource = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ");
try{
String dt = strDate;
date = sdfSource.parse(dt);
trace.addInfo("Local Date:"+date);
SimpleDateFormat sdfDestination = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
strDate = sdfDestination.format(date);
catch(ParseException pe){
trace.addInfo("Parse Exception : " + pe);
return strDate;
can anyone see why this fails after successfully mapping a few fields???the first mapping works correctly...
then we reuse the same fields to map to the additional segments.
the context is correct as it is trying to pull the same fields in... it just throw the error with the same data in the same UDF/Function Library but for different segments! :o(
http://img199.imageshack.us/img199/3104/dateconversion.jpg
as you can see from the screenshot above, the mapping works in the first instance, then fails on subsequent nodes. -
Java.text.ParseException:Unparseable date
Whilst using the DBMS_XMLSave.updateXML procedure I am having problems parsing a date which is the format dd/mm/yy
I have tried to use the following procedure to set the date format :
DBMS_XMLSave.setDateFormat(updCtx,'DD/MM/YY');
Unfortunately it is not working, as the parser still does not recognise the date format, it seems to want the time element.
please may somebody advise on some possible solutionsThe date formats must match java date formats not Oracle date formats. For a list of valid date formats please check http://java.sun.com/products/jdk/1.1/docs/api/java.text.SimpleDateFormat.html
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Satvir Ghag ([email protected]):
Whilst using the DBMS_XMLSave.updateXML procedure I am having problems parsing a date which is the format dd/mm/yy
I have tried to use the following procedure to set the date format :
DBMS_XMLSave.setDateFormat(updCtx,'DD/MM/YY');
Unfortunately it is not working, as the parser still does not recognise the date format, it seems to want the time element.
please may somebody advise on some possible solutions<HR></BLOCKQUOTE>
null -
Java.text.ParseException: Unparseable date: "29/11/2007"
Hello,
I have a code like below; BUT it gives error!!! dateTime is string like "29/11/2007"
Date d = null;
if (dateTime != null && !dateTime.trim().equals("")) {
try {
d = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS").parse(dateTime);
} catch (Exception e) {
e.printStackTrace();
Any help please?
thanksHi,
Your date parser expect something like :
2007-11-29 15:30:25.123
Hope that help,
Jack -
Please help! java.text.ParseException:
Hi everybody
why am i gatting java.text.ParseException: Unparseable date: "Jul 21, 2002"
String s = "yyyy MM dd";
SimpleDateFormat ff = new SimpleDateFormat(s);
java.util.Date mm = ff.parse( DateFormat.getDateInstance().format(new java.util.Date())) ;
System.out.println(mm.toString()); //Exception is thrown
thanks in advenceI didn't take time to look through your code too closely but here is some code that might help. The pullDate method reads a string from a JTextField (textField) and tries to return a Date. If it can't format it then it returns null. It tries to format the text based on the formats listed. If it can't format the text using one then it tries the next until it runs out of them. Change the formats to whatever you like. Good luck.
Jeff
private static DateFormatter[] altFormats = {
new DateFormatter(new SimpleDateFormat("M/d/yy")),
new DateFormatter(new SimpleDateFormat("MMddyy")),
new DateFormatter(new SimpleDateFormat("MMM d, yy")),
new DateFormatter(new SimpleDateFormat("MMM d yy")),
new DateFormatter(new SimpleDateFormat("d MMM yy"))};
private Date pullDate() {
String text = textField.getText();
Date d = null;
int i = 0;
while(d==null && i<altFormats.length) {
try {
d = (Date)(altFormats[i++].stringToValue(text));
} catch (ParseException e) {}
return d; -
Java.text.ParseException :UnparseableDate
Hi,
Iam trying to convert a String into Date and that Date in to a customized Date format...,Here it is what iam doing..
import java.util.*;
import java.io.*;
import java.text.*;
public class str2date
public static void main(String[] args)
try
String mystr="01-03-2003";
SimpleDateFormat converttodt=new SimpleDateFormat("yyyy-MM-dd'T'hh:mm:ss");
java.util.Date mydt=converttodt.parse(mystr.trim());
System.out.println("mydt"+mydt);
String output=converttodt.format(mydt);
System.out.println(output);
catch(ParseException e)
System.out.println(e.toString());
Error:"java.text.ParseException :UnparseableDate 01-03-2003"
Can any one help me out... URGENT...,
Thanks in Advance
Rao.Well, the problem is right in front of you. You're telling it the format of the date is going to be
yyyy-MM-dd'T'hh:mm:ss
and then you're giving it the date in a format of
MM-dd-yyyy
and wondering why it's not accepting it? If you want to input a date from one format and output it in another you need to create two SimpleDateFormat objects, one to parse the date from a String to a Date object, and a second (or reuse the first with a different parse string) to format the Date and output it as a String. -
Strange java.text.ParseException using Calender
Hi
here i am using code in jsp which get Calender date parameter and using SimpleDateFormat it parse date as According to sql server date format. it works file .
1) but when i try to to add same row again (which are already preselect date) it call "UnparsableDate "
2) but if I select same date from calender ,it add row without any problem
String date=request.getParameter("reqnum3")
String dateString = "23/08/2003";
SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
java.util.Date d;
try {
d = dateFormat.parse(date);
dateFormat.applyPattern("yyyy-MM-dd");
dateString = dateFormat.format(d);
java.sql.Date date3 = java.sql.Date.valueOf(dateString);
psinsert2.setDate(1,date3);
}catch(Exception e){}
THANKSThere's a couple of things that I would do:
Firstly avoid calling any variable by a name that is already a java class even if you use lower case at the beginning. This can sometimes cause strange bugs in my experience, and it's not good practice anyway. So change the String variable called "date" into "theDate" or such like. Then check this variable's value, because it looks like that's the one that's got a bad value for the Date parser. Do a System.out.println on that variable so it shows up in your log, or if you've got a debugger, take a look at it before it throws the exception.
You're catching the exception but you're not doing anything with it, which is ALWAYS a bad idea.
Put in a System.out.println there and if you put a stacktrace as well it will tell you in your log which line has thrown the exception, which is ninety percent of the battle:
}catch(Exception e){
System.out.println("MyServlet: " + e.toString());
e.printStackTrace(System.out); -
I have a Date in String format. I need to convert it to Date in the same format. As in the subject the String is "2008-Mar-25 08:33:36" ; I need to convert it to a Date in the same format. Is there any way of doing it?
I tried:
DateFormat toSdf = new SimpleDateFormat("yyyy-mmm-dd hh:mm:ss");
Date d = toSdf.parse("2008-Mar-25 08:33:36");// At this point it throws exception "java.text.ParseException: Unparseable date: "2008-Mar-25 08:33:36"
I know similar threads have been posted. But im posting this again as none of the answers solved my problem. Inconvenience regretted.
Thanks in Advance,
Geetm is not the symbol for both months and minutes because that wouldn't make much sense would it?
m is the symbol for minutes
M is the symbol for months.
You should also consult the API and make sure that you are using the right symbol for your hours values. That is a valid one but I have a feeling that your hour value might be 14 or the like sometimes which means you are using the wrong one there as well. -
"Unparseable date" Error at reconciliation
Hi,
I am running recconiciliation task using
9.1. GTC DatabaseAppTable connector.
In the trusted source table (MS SQL) I have a column containing a date field in the following format: "10/31/1983 12:00:00 AM"
In the Connector configuration page, I have the following values set:
- Database Date format : MM/dd/yyyy
- Source Date Format : MM/dd/yyyy
When I run the Recon task , I get the following errors in the logs:
ERROR,18 Sep 2008 11:29:26,367,[XELLERATE.GC.FRAMEWORKRECONCILIATION],Reconciliation Encountered error:
Thor.API.Exceptions.tcAPIException: java.text.ParseException: Unparseable date: "10/31/1983"
Any idea on how I can resolve this issue ?
Thank you in advanceHi,
Your Source Date Format should look like "MM/dd/yyyy hh:mm:ss a".
It should be same as your target system date format.If "MM/dd/yyyy hh:mm:ss a" didn't work then try to find out correct format for "10/31/1983 12:00:00 AM" .
Hope this will help.
Regards
Nitesh
Edited by: kunwar.nitesh on Sep 18, 2008 4:27 AM -
Unparseable Date when Provisioning User from OIM to EBS HR
Hi expert,
I'm integrating E-Business Application using 'Oracle EBS HR Foundation User Management Connector version 9.1.0.4.0
with OIM version 11.1.1.5.0 (plus BP06) and I also set value of 'Manage HR record' to 'Yes'.
While provisioning user to EBS. It has some error occur about 'Unparseable date: "2013-05-24 00:00:00" '
############ ERROR ###########
[OIMCP.EBSUM] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: da74dbf2fbfe8d95:7819efa0:13eca22628a:-8000-0000000000012282,0] [APP: oim#11.1.1.3.0] oracle.iam.connectors.ebs.usermgmt.integration.EBSUserManagement : updatePerson
[2013-05-24T09:50:36.911+07:00] [wls_oim1] [ERROR] [] [OIMCP.EBSUM] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: da74dbf2fbfe8d95:7819efa0:13eca22628a:-8000-0000000000012282,0] [APP: oim#11.1.1.3.0] Failed to create employee
[2013-05-24T09:50:36.912+07:00] [wls_oim1] [ERROR] [] [OIMCP.EBSUM] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: da74dbf2fbfe8d95:7819efa0:13eca22628a:-8000-0000000000012282,0] [APP: oim#11.1.1.3.0] Description : Unparseable date: "2013-05-24 00:00:00"
[2013-05-24T09:50:36.912+07:00] [wls_oim1] [ERROR] [] [OIMCP.EBSUM] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: da74dbf2fbfe8d95:7819efa0:13eca22628a:-8000-0000000000012282,0] [APP: oim#11.1.1.3.0] java.text.ParseException: Unparseable date: "2013-05-24 00:00:00"
May it has some bug?
Thanks
Noraset.Could you please write down what you have given in ITResource?
May be you are giving some wrong value in IT Resource.
Have you made chnages to OID Prov Lookup. If no check this link :
Re: Problem with OID Connector
And give a try ! -
Error: Unparseable date with OracleXMLSave
Hi,
Error:
oracle.xml.sql.OracleXMLSQLException: java.text.ParseException: Unparseable date: "03/18/2099"
int oracle.xml.sql.dml.OracleXMLSave.insertXML(org.w3c.dom.Document)
void b2b.RcvQueueListener.saveCsmToTso(oracle.xml.parser.v2.XMLDocument)
void b2b.RcvQueueListener.<init>()
void b2b.RcvQueueListener.main(java.lang.String[])
I've tried to save a row in the database with OracleXMLSave:
I use JDeveloper 3.1.1.2 with XDK 2.? and a local Oracle 8.1.6 unde NT.
// XML Doc:
<ROWSET>
<ROW NUM="1">
<CSM_NO>A29912</CSM_NO>
<CRE_DAY_CSM>03/18/2099</CRE_DAY_CSM>
<CSM_VOL_GRO_FRZ>59.89</CSM_VOL_GRO_FRZ>
</ROW>
</ROWSET>
// Set java enviroment:
Locale.setDefault(java.util.Locale.US);
// Save Data with XSU like:
OracleXMLSave sav =
new OracleXMLSave(cn.getConnection(), "consignment_t");
sav.insertXML(csmData);
Same Error when trying to...
(1) set date format for OracleXMLSave:
> sav.setDateFormat("DD/MM/YYYYY");
(2) set database parameter:
> nls_date_format='DD/MM/YYYY';
> nls_language='AMERICAN';
(3) set registry (winnt)
> nls_lang=AMERICAN_AMERICA.WEISO8859P1
Help would be appreciated.
Thanks in advance!
Matthias.setDateFormat() is expecting a format mask that is valid for the java.text.SimpleDateFormat object.
So, just do:
setDateFormat("d/M/yyyy");
null -
hi,
i 've developed and application, in which at some point it compares dates. i have used win2k (english) version for development evn.
when the qa is testing it on non english w2k, they are getting unparseable date error.
===========
WARNUNG: java.text.ParseException: Unparseable date: "Fri Feb 01 10:04:25 CET 2003"
===========
the formatter i have used is "EEE MMM d HH:mm:ss z yyyy". so could this error be just because of non enlish version of w2k??? or something else??
thanks a in advance.
riOk, so now I have found out where the problem was and I was able to correct it... here is how it went...
What was the code doing and why the error was there...
1. Code was stording a String as returned by new Date.toString(), which is always with locale en_US
2. When comparing the dates code was retreving the date from the file.
3. It was parsed using new SimpelDateFormate(String pattern).parse(dateobjcreatedfromStringobj) which returns the date with default OS Locale.
4. So now I had en_US date string being parsed by default OS Locale.
new SimpelDateFormate(String Pattern, new Locale("en","US")).parse(dateobjcreatedfromStringobj)5. This is what was generating unparseable date exception.
6. This was making the development comp to generate no exception as it is of locale en_US. And making the testing comp generate exception.
Hope this help out all the readers.
Thank you all.
Ri -
Hi guys,
While getting the sales order from the JDE database. It is giving
Caught exception while handling request: deserialization error: java.text.ParseException: Unparseable date: "-11-JA-01T12:00:00-05".
can any one of you can guide me about this exception
Expecting a reply from any one ASAP.
Regards,
Chakrithe schema element for this field is having different datatype than what you are receiving the data. Can you check logs and see on which column it is failing? If we know the exact xsd datatype used for the element and and value that is stored in table then we can correct the xsd accordingly. Are you using dynamic sql query or select options to get values from DB.
-
Unparseable date error in 10.3.4.1
I have a report which is having Date Range Input parameters.
While running the report with the Date Range Input Parameter as NULL. It gives error on commnad prompt
[012810_052358158][][EXCEPTION] java.text.ParseException: Unparseable date: ""
at java.text.DateFormat.parse(DateFormat.java:335)
at oracle.apps.xdo.servlet.data.bind.AdvancedQueryBoundValue11.setBindVariables(AdvancedQueryBoundValue11.java:600)
at oracle.apps.xdo.servlet.data.bind.AdvancedQueryBoundValue11.getXML(AdvancedQueryBoundValue11.java:477)
at oracle.apps.xdo.servlet.ReportContextImplV11.getReportXMLData(ReportContextImplV11.java:408)
at oracle.apps.xdo.servlet.CoreProcessor.process(CoreProcessor.java:231)
at oracle.apps.xdo.servlet.CoreProcessor.generateDocument(CoreProcessor.java:82)
at oracle.apps.xdo.servlet.ReportImpl.renderBodyHTTP(ReportImpl.java:552)
at oracle.apps.xdo.servlet.ReportImpl.renderReportBodyHTTP(ReportImpl.java:255)
at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:270)
at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:250)
at oracle.apps.xdo.servlet.XDOServlet.doGet(XDOServlet.java:178)
at oracle.apps.xdo.servlet.XDOServlet.doPost(XDOServlet.java:201)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
at oracle.apps.xdo.servlet.security.SecurityFilter.doFilter(SecurityFilter.java:94)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
Same report is working fine is Date Input parameters have some date value.fix the query to handle the null parameter for Date.
use NVL and use the columns from the table
or sysdate
or put a default value in the BIP report parameter. -
Unparseable Date (XML)
Hi!
I4ve got an XMLDocument with a date field.
F.ex:Thanks both for your answers, but I still keep the same.
I'll try to explain it better.
First of all, I've got an HTML form where I collect the data, like this:
Cod*:
Name*:
Borndate:
*compulsory fields
After, a Java servlet obtains the field values and build an XMLDocument, like this:
<ROWSET>
<ROW>
<COD>1</COD>
<NAME>Carmen</NAME>
<BORNDATE></BORNDATE>
</ROW>
</ROWSET>
In the same servlet,I use the OracleXMLSave class and the XMLDocument, like follows:
OracleXMLSave sav = new OracleXMLSave(conn, "PERSON");
sav.setDateFormat("dd/MM/yy");
String [] keyColNames = new String[1];
keyColNames[0] = "COD";
sav.setKeyColumnList(keyColNames);
System.out.println("Before");
int rowCount = sav.updateXML(PreviousDocument);
// or: int rowCount = sav.updateXML(PreviousDocument); It4s the same
System.out.println("After");
I execute this code and the output again and again is:
Before
java.text.ParseException: Unparseable date: ""
If I write any value in the date field, there4s no problem and the insertion or update is right.
More data: I4m using Oracle8i Database and I used XDK 8.0.1 but I4ve tried XDK 9.0.1 and it4s the same.
About the suggestion of deleting the date tag from the document, it4s OK. But, what happens if I had a value for the date in the database and now I want to delete it? In SQL you can set a field value to NULL, but how can I do it with XSU.
Please, help me!!!
Thanks in advance.
null
Maybe you are looking for
-
Itunes 64-bit on Windows & 64-bit does nothing but give errors!
I've been trying to connect Iphone 3g 4.0.1 on Windows7 64-bit since last 5 days! Tried almost all the tips found on internet regarding this issue and none worked! At first simply downloaded the latest iTunes 9 (64-bit). It didnt work at all and I en
-
As a bit of background, I have two drives one with my media on and the other with a backup of said media. The backup is simply a copy which uses the modified date to determine if a newer version needs to be copied. The problem I have is that when I a
-
have had to re-install everything on my computer but Photoshop elements 11 disk will not load. Help?
-
Facebook says Flash is out of date?
Facebook says Flash is out of date? Adobe says Mavericks not supported. Download of Flashplayer works but i won't install. Help
-
GL Posting in Parallel Currencies
Hi All, For co.code using parallel currencies (2 local currencies) whereby the 2nd one is index based, is there a feature/possibility to enter manual exchange rate (different than the rate in OB08) for the 2nd currency instead of directly entering th