mitesh vyas

Greenhorn
+ Follow
since Jan 13, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by mitesh vyas

Jim,


I am goind ahead with the local creation of SimpleDateFormat.In case i find error in live environment, will revert.

Thanks

Mitesh
16 years ago
Jim Yingst,

Thank for reply.

1. The piece of code is incomplete,i have posted to get idea of issues.

2. Regarding Synchronization, the applicaiton is used by multiple user and hence concurrency issue may exist, At present SimpleDateFormat object is creted and being utilized while parsing, I am thinking of making it local to the method where it is being called. I fee that should resolve my issue.

Any suggenstion will be welcomed.

Thank again.

Mitesh
16 years ago
Hi,

I am using Simple Date Format to parse the string to Date.

It's working fine, but sometimes it give exception given below:

java.lang.NumberFormatException: For input string: "E152"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Long.parseLong(Long.java:394)
at java.lang.Long.parseLong(Long.java:452)
at java.text.DigitList.getLong(DigitList.java:149)
at java.text.DecimalFormat.parse(DecimalFormat.java:1068)
at java.text.SimpleDateFormat.subParse(SimpleDateFormat.java:1705)
at java.text.SimpleDateFormat.parse(SimpleDateFormat.java:1156)
at java.text.DateFormat.parse(DateFormat.java:333)


My piece of code that parses string


public static final SimpleDateFormat DATE_FORMATER2 = new SimpleDateFormat("yyyy-MM-dd");

Date dtDocExpFrom=null;
String ldt1="2007-10-03";
Date dtDocExpFrom=sdf.parse(ldt1);

I have read some blogs, is this issue due to synchronization of SimpleDateFormat?


Please guide.
Thanks
Mitesh
16 years ago

Originally posted by Anthony Guillen:
<30-Aug-2006 06:51:54 o'clock PDT> <Info> <WebLogicServer> <BEA-000377> <Startin
g WebLogic Server with Java HotSpot(TM) Client VM Version 1.4.2_03-b02 from Sun
Microsystems Inc.>
<30-Aug-2006 06:51:55 o'clock PDT> <Info> <Configuration Management> <BEA-150016
> <This server is being started as the administration server.>
<30-Aug-2006 06:51:55 o'clock PDT> <Info> <Management> <BEA-141107> <Version: We
bLogic Server 8.1 SP2 Fri Dec 5 15:01:51 PST 2003 316284
WebLogic XMLX Module 8.1 SP2 Fri Dec 5 15:01:51 PST 2003 316284 >
<30-Aug-2006 06:51:55 o'clock PDT> <Notice> <Management> <BEA-140005> <Loading d
omain configuration from configuration repository at C:\bea\weblogic81\server\bi
n\.\config.xml.>

<30-Aug-2006 06:51:58 o'clock PDT> <Notice> <Log Management> <BEA-170019> <The s
erver log file C:\bea\weblogic81\server\bin\myserver\myserver.log is opened. All
server side log events will be written to this file.>
<30-Aug-2006 06:52:00 o'clock PDT> <Notice> <Security> <BEA-090082> <Security in
itializing using security realm myrealm.>
<30-Aug-2006 06:52:00 o'clock PDT> <Critical> <Security> <BEA-090403> <Authentic
ation for user administrator denied>
***************************************************************************
The WebLogic Server did not start up properly.
Reason: weblogic.security.SecurityInitializationException: Authentication for us
er administrator denied
***************************************************************************
Hi,

Thanks for your reply. I already discover what causes the error, I studied carefully what it cause and I found out that the config.xml might not suitable for this new version of weblogic so I decided to make some revision with the config.xml file. Now, my server startup properly.

Thanks again for your help.

Anthony




Hi Anthony,

I am getting the same error as you got. As mentioned by you, that you had done some changes in config.xml and it worked out, can you please guide me for the same.

Thanks

Mitesh
16 years ago