rajareddy annavaarm

Ranch Hand
+ Follow
since Mar 15, 2007
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 rajareddy annavaarm

can we use XPAth with SAX.

can anybody give example
hello,

i want to read an large XML-File with a lot oft tags, elements, text, and attributes. I am getting
java.lang.OutOfMemoryError error.So I thought to read chunks of data from large xml.suppose if there are 50000 elemets.I want to read each time just 5000 elements only.After I read 5000 elememts I will anothe 5000 elements.this way I am thinking solve outofmemory error.


How can I solve the problem?
Why EJB component contains two interfaces?

Why can't we directly implement EJBObject for EJB class.
you typecast home object with fully qualified class name(with package).
when to use DEBUG, INFO, WARN, ERROR and FATAL .

I studied the documents related to log4j.I dint understand.

can any body clear my doubt/.
If class A does not implement Serializable but a subclass B implements Serializable, will the fields of class A be serialized when B is serialized?
14 years ago
1)can a method can be serialized?
14 years ago
what is the different between object lock and Class lock?

can a synchronize method can be overloaded?
what is the different between object lock and Class lock?

can a synchronize method can be overloaded?
how is [Company],[Place],[City]
[ July 18, 2007: Message edited by: David O'Meara ]
14 years ago
how is [Company],bangalore

is it a good company
[ July 18, 2007: Message edited by: David O'Meara ]
14 years ago
what is the use of weblogic.xml.We have weblogic-ejb.xml and ejb.jar.we can use those for developing ejbs.that I know.But why do we need weblogic.xml.
in which situation we can go for weblogic.xml.


I am getting exception like below

Exception in thread "main" java.text.ParseException: Unparseable date: "Thu Mar 15 11:40:11 GMT+05:30 2007"
at java.text.DateFormat.parse(Unknown Source)
at DateDifference.getDateDifferenceInDaysExcludingSatSun(DateDifference.java:171)
at DateDifference.main(DateDifference.java:51)


property file is like this

2007-10-13=Hari Raya Puasa
2007-12-25=Christmas Day
2007-08-09=National Day
14 years ago


I am getting exception like below

Exception in thread "main" java.text.ParseException: Unparseable date: "Thu Mar 15 11:40:11 GMT+05:30 2007"
at java.text.DateFormat.parse(Unknown Source)
at DateDifference.getDateDifferenceInDaysExcludingSatSun(DateDifference.java:171)
at DateDifference.main(DateDifference.java:51)


property file is like this

2007-10-13=Hari Raya Puasa
2007-12-25=Christmas Day
2007-08-09=National Day
14 years ago
DateFormat df = new SimpleDateFormat("yyyy-MM-dd");

// df.format(new Date(properties.getProperty(
// df.format(new Date(properties.getProperty(calForm)
int iNoOfWorkingDays = 0;

do {
ss = calFrom.get(Calendar.YEAR) + "" + calFrom.get(Calendar.MONTH) + ""
+ calFrom.get(Calendar.DAY_OF_MONTH);

Date dd = new SimpleDateFormat().parse(ss);

ss = df.format(dd);
System.out.println("sadfsafsafsaf " + ss);
System.out.println("sadfsafsafsaf " + properties.getProperty(ss));

I am getting exception like below when I am executing above code

Exception in thread "main" java.text.ParseException: Unparseable date: "2007215"
at java.text.DateFormat.parse(Unknown Source)
at DateDifference.getDateDifferenceInDaysExcludingSatSun(DateDifference.java:175)
at DateDifference.main(DateDifference.java:51)

my property file is like this
200746=Good Friday
200712=New Years Day
200711=New Years Day
20071013=Hari Raya Puasa
14 years ago