parimelazhagan vinayagam

Greenhorn
+ Follow
since Apr 19, 2004
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 parimelazhagan vinayagam

Hi,
My Application would post the messages to the JMS Queue. 3 threads run and post the messages concurrently.Some time it is throwing the following exception

weblogic.jms.common.JMSException: Error sending message
at weblogic.jms.client.JMSProducer.sendInternal(JMSProducer.java:402)
at weblogic.jms.client.JMSProducer.send(JMSProducer.java:186)
Caused by: weblogic.rmi.extensions.RemoteRuntimeException: Unexpected Exception - with nested exception:
[java.net.SocketException: Connection reset by peer: socket write error]
at weblogic.jms.dispatcher.DispatcherImpl_811_WLStub.dispatchSyncNoTranFuture(Unknown Source)
at weblogic.jms.dispatcher.DispatcherWrapperState.dispatchSyncNoTran(DispatcherWrapperState.java:457)
at weblogic.jms.client.JMSProducer.sendInternal(JMSProducer.java:390)
... 5 more


Please help me on this

Thanks
Pari
Hi,
Bolleans true and false are stored in literal pools...so there will be only two values...that never get change. and references are pointing to these values only..Depends on the value,it will point to either false or true..so the results...


Thanks
Pari
Why there is no possibility of printiing "Hello"

Can someone please explain?
Hi Prateek,
Please tell me is there any online versions available for the materials u said..


1) Head First Java


2) Complete Java 2 Certification (5.0 Edition)" by Phillip Heller.


3)MZ SCJP 5.0 Notes


Thanks
Pari
Compiler searches for close matching for the given argument..Since null can be assigned to any Object,Compiler calls a(String s) ( String is subclass of Object).If Stringbuffer is used, String and StringBuffer both are subclasses of Object.[There is not child parent relationship between String and StringBuffer ] So compiler cant decide which method to call.So it throws error.


Not only a(StringBuffer) method...

For the following code also it will throw error

public class Test {
public void a(Object o) { System.out.println("object"); }
public void a(String s) { System.out.println("string"); }

public void a(Test a){ System.out.println("string123"); }


public static void main(String[] args) {
new Test().a(null);
}
}

Because null now can be assigned to a(Test),a(String)...both are subclasses of Object...


And also see one more example

class Point { int x, y; }
class ColoredPoint extends Point { int color; }

class Test {
static void test(ColoredPoint p) {
System.out.println("(Inside ColoredPoint)");
}
static void test(Point p) {
System.out.println("(Inside Point)");
}

public static void main(String[] args) {

test(null);// compile-time error
}


}

It will call test(ColoredPoint)....I hope from these examples.u guys can understand..


Thanks
Pari
Hi Thanks for your reply
But i have just mentioned hostname there.
The i gave the real hostname and made an entry for the host name in hosts file also to map with Real IP Address...

Please give me your thoughts and more inputs on this issue

Thanks
Hi All,
EJB is deplyed in remote machine which is in different network from the client machine.
Client and Server are running in websphere Server.
While client trying to access the EJB,its getting the following Error:
[4/17/05 17:00:04:329 IST] 3d024e0f WebGroup E SRVE0026E: [Servlet Error]-[A communication failure occurred while attempting to obtain an initial context with the provider URL: "iiop://hostname:2809". Make sure that any bootstrap address information in the URL is correct and that the target name server is running. A bootstrap address with no port specification defaults to port 2809. Possible causes other than an incorrect bootstrap address or unavailable name server include the network environment and workstation network configuration.]: javax.naming.ServiceUnavailableException: A communication failure occurred while attempting to obtain an initial context with the provider URL: "iiop://hostname:2809". Make sure that any bootstrap address information in the URL is correct and that the target name server is running. A bootstrap address with no port specification defaults to port 2809. Possible causes other than an incorrect bootstrap address or unavailable name server include the network environment and workstation network configuration. Root exception is org.omg.CORBA.TRANSIENT: operation timed out:host=hostname,port=2809 minor code: 4942F303 completed: No

Its basically giving the Operation timed out error.its there in the last line of the Error detail.


If i deploy the EJB in a machine in Same network,its able to acess that EJB.But they are in different Network its not able to acess and giving communcation exception.

Some more information:
1)I am able to telnet the remote machine.(to check accessibility of remote machine from client).I am not sure whether it is enough to check accessibility.
2)Not able to ping remote machine from client machine.

How do i know whether the remote machine port 2809 is accessible from client machine?

Any useful info would be great helpful
Thanks in advance
Hi All,
EJB is deplyed in remote machine which is in different network from the client machine.
Client and Server are running in websphere Server.
While client trying to access the EJB,its getting the following Error:
[4/17/05 17:00:04:329 IST] 3d024e0f WebGroup E SRVE0026E: [Servlet Error]-[A communication failure occurred while attempting to obtain an initial context with the provider URL: "iiop://hostname:2809". Make sure that any bootstrap address information in the URL is correct and that the target name server is running. A bootstrap address with no port specification defaults to port 2809. Possible causes other than an incorrect bootstrap address or unavailable name server include the network environment and workstation network configuration.]: javax.naming.ServiceUnavailableException: A communication failure occurred while attempting to obtain an initial context with the provider URL: "iiop://hostname:2809". Make sure that any bootstrap address information in the URL is correct and that the target name server is running. A bootstrap address with no port specification defaults to port 2809. Possible causes other than an incorrect bootstrap address or unavailable name server include the network environment and workstation network configuration. Root exception is org.omg.CORBA.TRANSIENT: operation timed out:host=hostname,port=2809 minor code: 4942F303 completed: No

Its basically giving the Operation timed out error.its there in the last line of the Error detail.


If i deploy the EJB in a machine in Same network,its able to acess that EJB.But they are in different Network its not able to acess and giving communcation exception.

Some more information:
1)I am able to telnet the remote machine.(to check accessibility of remote machine from client).I am not sure whether it is enough to check accessibility.
2)Not able to ping remote machine from client machine.

How do i know whether the remote machine port 2809 is accessible from client machine?

Any useful info would be great helpful
Thanks in advance
Hi All,
I created a simple sessionbean EJB.I deployed in my local machine and Standalone client also in my local machine.Everthing works fine.I am able to access the EJB.
but if i deployed the EJB in Different machine and i have changed the URL name in the stand alone client.It's again trying to access the localhost.
Can you guys/gals please explain where i am missing the configuration settings.

Thanks in Advance
Pari
Any Idea or Any inputs for this Question
18 years ago
for me,It prints "false" for both the case.
I am using JDK1.3 Version.
Can You tell me which JDK Version u r using.
Thanks
Parimelazhagan.V
We are building an application which updates the password in Tivoli Identity Manager Database.We have configured JAAS in WAS to access the TIM Server.But I am getting the following error.

NMSV0602E: Naming Service unavailable. A communications error occurred.
�A communication failure occurred while attempting to obtain an initial context with the provider URL: "iiop://IpAddress:2809". Make sure that any bootstrap address information in the URL is correct and that the target name server is running. A bootstrap address with no port specification defaults to port 2809. Possible causes other than an incorrect bootstrap address or unavailable name server include the network environment and workstation network configuration.�

1. We checked the URL and ensured that IP and port are valid and reachable.
2. There is no firewall between the client and server.

But we could not find why we are not able to communicate to the server. Any ideas would be highly appreicated.



Thanks
Pari.
19 years ago
Can i have this kind of situation in java.
class stat
{
public static void main(String[] args)
{
System.out.println("Hello World!");
myfun();
myfun();
}
public void myfun()
{
static int i=10; \\Error now
i = i + 1
System.out.println(i); \\Should print 11 for the first call 12 for the second call

}
}
if we declare the i as static varible in outside i can achieve.
But "i" Should be acceesible by this method only.I wont allow to modify "i" value by some other methods.Plz explain whether it is possible in java or i am going wrong.
So if i want to have a recursive method call with static varible features,
what should i do?? I am asking whether the similar kind of opeartions can be performed in Java like c