Win a copy of Terraform in Action this week in the Cloud forum!

Ritu Kapoor

Ranch Hand
+ Follow
since Oct 03, 2004
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 Ritu Kapoor

Hi,

I am moving my project from Websphere to Tomcat server. But getting the following exceptions in the log. Can anyone help me to resolve this.



Thanks in advance.
8 years ago
Resolved.
10 years ago
Hi,

I am new to Spring. Got the following issue. Please help to understand.



On executing this, I am getting following exception:

Method name::public void com.spring.aop.before.TestBean.setName(java.lang.String)
Argument List::ABCCDDE
Target::com.spring.aop.before.TestBean@fa9cf
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
at com.spring.aop.before.TestBefore.before(TestBefore.java:12)
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:49)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:635)
at com.spring.aop.before.TestBean$$EnhancerByCGLIB$$419f8de6.getName(<generated>)
at com.spring.aop.before.TestBeforeAOP.main(TestBeforeAOP.java:16)


Can anybody tell me the reason ?

Thanks,

Ritu
10 years ago
SMS
Does anybody know about the api to use or the link giving details about writing java program to send sms.
Does anyone know how to include a dll file in a java webservice project.
12 years ago
Hi,

I am not able to transfer the data from txt to oracle table using sqlldr. If I execute the same command from cmd, it executes fine but does not work if I execute from java code.

Please find the code below






Please help to resolve it.
12 years ago
Hi,

I've an xml file containing all relevant info relate to class - like class name, methods, attributes. My question is how can I convert that into java file.

Thanks,
Ritu
Hi,

I've got a good experience of 4 years in java and have been on bench for sometime due to lack of projects in our organization. I am planning to switch over to some other company but thinking of the recession prevents me from taking any concrete step.

Is it the right time to make a switch or should I wait for some time. I am working in India and there are few good openings going on but the current market scenario scares me.

Please advice.

Thanks,
Ritu
13 years ago
When I say get(index) method is better than iterators, I consider only Vector and ArrayList classes for n number of records. This does not includes LinkedList.

Suppose you have a List of 100 elements. Do you want to retrieve all 100 elements using index method...that is not true right.
So iterator will give you fast retrieving of data from List



Main reason is that when you use iterator,you never end up in any NoSuchElementException which usally arises when you use direct index to fetch a element which is not present.Its a safer way to retrive elements.



Well, I guess accessing by index is much faster than using Iterator and secondly, it does not throw NoSuchElementException. It throws IndexOutOfBoundsException. Please do not reply if you are confused.

My question still remains unanswered.
Why do we have iterators in subclasses of List interface(i.e ArrayList, Vector and LinkedList), when we can access the elements using index number?
We implement readObject(ObjectInputStream)/writeObject(ObjectOutputStream) in a class implementing Serializable interface to customize the serialization process. Now my question is:

1) Why are we supposed to provide implementation of these methods, when the Serializable interface is a marker interface. Where these methods come from ? Why the method signature should be like this.

2) When should we use serialization and Externalizable interface, when the customization of serialization can be achieved by either of them.

Regards,
Ruchika
14 years ago
We have a clone() defined in Object class. If we try to execute a class overriding clone(), it throws CloneNotSupportedException. But if we implement Cloneable interface(which is a marker interface), everything goes fine. Now the question is, why do not we have a clone() in Cloneable interface rather then in Object class.

Is it in the Object only because we require a default implementation of a clone() and since Object is the superclass, so we cannot somehow implement that interface in Object class. But then Why do we require a Cloneable Interface at all. We can override its implementation in our subclass also.

Kindly help me to clarify my doubts
14 years ago
Anybody there to answer my query !
We have a clone() defined in Object class. If we try to execute a class overriding clone(), it throws CloneNotSupportedException. But if we implement Cloneable interface(which is a marker interface), everything goes fine. Now the question is, why do not we have a clone() in Cloneable interface rather then in Object class.

Is it in the Object only because we require a default implementation of a clone() and since Object is the superclass, so we cannot somehow implement that interface in Object class. But then Why do we require a Cloneable Interface at all. We can override its implementation in our subclass also.

Kindly help me to clarify my doubts.

Regards,
Ritu