Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!

Siva Ram

Ranch Hand
+ Follow
since Apr 04, 2002
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 Siva Ram

Yes. The answers given in google are already tried by me.
No progress.
Thanks,
Thanks Lasse .
Without narrowing also , I am getting the same error.
Any thoughts ?
Thanks,
Ravi
While I am trying this, I am getting the following results.
out.print("before lookup"+"<br>");
objref = ctx.lookup("java:comp/env/ejb/PinManager");
out.print("after lookup"+"<br>");%>
<%=objref.toString() %>
<%out.print("<br>"+objref.getClass()+"<br>");
out.print(objref.getClass().getName()+"<br>");
lHome = (LHome)PortableRemoteObject.narrow(objref, LHome.class);
Results :
before lookup
after lookup
com.sun.jndi.cosnaming.CNCtx@1988886
class com.sun.jndi.cosnaming.CNCtx
com.sun.jndi.cosnaming.CNCtx
java.lang.ClassCastException
Any ideas ?
Thanks,
Siva
Hi all,
In the Sun One App server 7.0, I deployed the stateless ejb without error / warning.
While doing ejb lookup , I am getting class cast exception any idea why?
Thanks in Advance,
Siva
Hi all,
I am accessing the Oracle procedure, dynamic sqls to fetch the data from the Oracle 8i database using JDBC for showing the data on the webpage.
From my Oracle Admin, I came to know that the following SQL is causing the problem. If any one has any idea for solving this proble it will be really helpful to me.
SELECT VALUE FROM NLS_INSTANCE_PARAMETERS WHERE PARAMETER ='NLS_DATE_FORMAT'
Thanks & Regards,
Siva Ram
16 years ago
This is the code which I am using now.
public class TestClass extends java.util.HashMap {
private java.util.ArrayList internalOrder;
/**
* TestClass constructor comment.
*/
public TestClass() {
super();
internalOrder = new java.util.ArrayList();
}
/**
* TestClass constructor comment.
* @param initialCapacity int
*/
public TestClass(int initialCapacity) {
super(initialCapacity);
internalOrder = new java.util.ArrayList(initialCapacity);
}
/**
* put method
*
* @return java.lang.Object
* @param key java.lang.Object
* @param value java.lang.Object
*/
public Object put(Object key, Object value) {
internalOrder.add(value);
return super.put(key,value);
}
}
Can you help now please ..
The error happens when I try to set this Test class object into http Session and also while removing from the httpsession.
The error is as follows :
at java.util.HashMap.readObject(Compiled Code)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Compiled Code)
at java.io.ObjectInputStream.invokeObjectReader(Compiled Code)
at java.io.ObjectInputStream.inputObject(Compiled Code)
at java.io.ObjectInputStream.readObject(Compiled Code)
at java.io.ObjectInputStream.inputClassFields(Compiled Code)
at java.io.ObjectInputStream.defaultReadObject(Compiled Code)
at java.io.ObjectInputStream.inputObject(Compiled Code)
at java.io.ObjectInputStream.readObject(Compiled Code)
at java.io.ObjectInputStream.inputClassFields(Compiled Code)
at java.io.ObjectInputStream.defaultReadObject(Compiled Code)
at java.io.ObjectInputStream.inputObject(Compiled Code)
at java.io.ObjectInputStream.readObject(Compiled Code)
at java.io.ObjectInputStream.readObject(Compiled Code)
at java.util.Hashtable.readObject(Compiled Code)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Compiled Code)
at java.io.ObjectInputStream.invokeObjectReader(Compiled Code)
at java.io.ObjectInputStream.inputObject(Compiled Code)
at java.io.ObjectInputStream.readObject(Compiled Code)
at java.io.ObjectInputStream.readObject(Compiled Code)
at com.ibm.servlet.personalization.sessiontracking.BackedHashtable.getValue()
Thanks & Regards,
Ravisankar.N
17 years ago
Hi,
I have written a class(TestClass) which extends HashMap.
As HashMap already implements serializable interface. I am using this class in EJB trasactions which lead me to NULL Pointer exception.
When ever I am calling the ejb method , I am getting the NULL Pointer exception. Then I called the dao without ejb. It works fine. But the problem is when I set the particular dao output (i.e TestClass object) to HttpSession, it again throws NULL Pointer exception.
It is throwing NULL Pointer exception in put method of the Hashtable.
Can any one please help me to solve this issue please.
Thanks & Regards,
Sivaram
17 years ago
Hi,
I have written a class(TestClass) which extends HashMap.
As HashMap already implements serializable interface. I am using this class in EJB trasactions which lead me to NULL Pointer exception.
When ever I am calling the ejb method , I am getting the NULL Pointer exception. Then I called the dao without ejb. It works fine. But the problem is when I set the particular dao output (i.e TestClass object) to HttpSession, it again throws NULL Pointer exception.
It is throwing NULL Pointer exception in put method of the Hashtable.
Can any one please help me to solve this issue please.
Thanks & Regards,
Sivaram
17 years ago
Hi,
whether your book covers the latest changes in ejb 2.1 - 2.1 details .
Have u kept the sample chapters for review if so can you give the link ?
Is it covers JAXP & JAXM Apis too ?
whether webmethod details are explained in it ??
Hi,
I got the solution...
Null pointer exception is due to the invalid look up of datasource. If you are looking the local name of the data source , you will get this error.
If you are refering to the datasource which you are refering for (EJBs, servlet), then it won't throw this error.
Reg. session tracking HttpSessionBindingListener interface works fine..
Upon creating session & upon invalidating the session the methods value bound & unbound are triggered well.
Regards,
Ravisankar
17 years ago
Hi,
What are the topics covered in this book ??
Is it deals with the latest version of tomcat 4.1.12 Stable & 4.0.5 ???
Have u kept any sample topics for ref.
Regards,
Siva Ram
17 years ago
Hi Authors,
If we are using entity bean / Stateful session bean , if the ejb passivation is called, it should automatically destroy the the entity instance ..( By removing the particular instance in finalize block) If it has been done in EJB 2.0 , then it will be easy for Java world itself. Instead if the exception happens, even though passivate method is called internally the resources used by the bean are not released. We have to explicitly to do this ??
Is it the problem with EJB design patterns made by experts or Sun Spec fault ??
Hi all,
If we are using entity bean / Stateful session bean , if the ejb passivation is called, it should automatically destroy the the entity instance ..( By removing the particular instance in finalize block) If it has been done in EJB 2.0 , then it will be easy for Java world itself. Instead if the exception happens, even though passivate method is called internally the resources used by the bean are not released. We have to explicitly to do this ??
Is it the problem with EJB design patterns made by experts or Sun Spec fault ??
Hi,
I have written a bean class() in EJB 1.1 spec. which gives the compile time error.
" EJBLocalObject " - is missing
I have written a bean class() in EJB 2.0 spec. which also gives the compile time error.
" bean class should not be abstract ".
I am compiling these classes in VAJ 4.0.
For the above two cases, what is the modification I have to do in my VAJ 4.o ??
TIA,
N.Ravisankar