Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!

faisal khan

Ranch Hand
+ Follow
since Mar 13, 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 faisal khan

Code:
import java.net.*;

public class Test{
public static void main(String s[])throws Exception
{
MulticastSocket ms = new MulticastSocket(4000);
System.out.println(ms);
InetAddress ia = InetAddress.getByName("237.0.0.1");
//InetAddress ia = ms.getInterface();
System.out.println(ia);
ms.joinGroup(ia);
}
}

My network interface card is plugged but receive error

java.net.SocketException: Insufficient buffer space
at jrockit.net.SocketNativeIO.join(ILjava.net.InetAddress;Ljava.net.Netw
orkInterface;Z)V(Unknown Source)
at jrockit.net.SocketNativeIO.join(Ljava.io.FileDescriptor;Ljava.net.Ine
tAddress V(Unknown Source)
at java.net.PlainDatagramSocketImpl.join(Ljava.net.InetAddress V(Unknow
n Source)
at java.net.MulticastSocket.joinGroup(Ljava.net.InetAddress V(Multicast
Socket.java:274)
at Test.main([Ljava.lang.String V(Test.java:11)
When i write simple java multicast socket program on stand alone window machine , i have get follwing error
java.net.SocketException: Not a multicast address
at java.net.MulticastSocket.joinGroup(Ljava.net.InetAddress V(Multicast
Socket.java:271)
at Test.main([Ljava.lang.String V(Test.java:11)

kindly do the needfull
If I start multicast programe on standalone window xp machine , i have get following erorr

java.net.SocketException: Not a multicast address
at java.net.MulticastSocket.joinGroup(Ljava.net.InetAddress V(Multicast
Socket.java:271)
at Test.main([Ljava.lang.String V(Test.java:11)

kindly help in this regards
15 years ago
i had also setup cluster on IBM AIX.
But on standalone window machine i have found some exception during startup of managed server shown below.

From Console to start cluster server
weblogic.nodemanager.NodeManagerException: [Failed to complete the request to start the server devServer9922 of domain devdomain in state RUNNING]
at weblogic.nodemanager.client.CommandInvoker.execute(CommandInvoker.java:233)
at weblogic.nodemanager.client.CommandInvoker.invoke(CommandInvoker.java:91)
at weblogic.nodemanager.client.NodeManagerClient.executeCommand(NodeManagerClient.java:161)
at weblogic.nodemanager.client.NodeManagerExecuteRequest.execute(NodeManagerRuntime.java:1641)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)


From startManagedServer.cmd
####<Oct 23, 2006 7:18:30 PM PKT> <Info> <Deployer> <cdc-a2feb6fa6ae> <devServer9922> <main> <<WLS Kernel>> <> <BEA-149208> <Initialization Complete.>
####<Oct 23, 2006 7:18:30 PM PKT> <Error> <Cluster> <cdc-a2feb6fa6ae> <devServer9922> <main> <<WLS Kernel>> <> <BEA-000116> <Failed to join cluster devCluster at address 239.192.0.0 due to: java.net.SocketException: error setting options.
java.net.SocketException: error setting options
at java.net.PlainDatagramSocketImpl.join(Native Method)
at java.net.PlainDatagramSocketImpl.join(PlainDatagramSocketImpl.java:134)
at java.net.MulticastSocket.joinGroup(MulticastSocket.java:274)
at weblogic.cluster.FragmentSocket.initializeMulticastSocket(FragmentSocket.java:92)
at weblogic.cluster.FragmentSocket.start(FragmentSocket.java:109)
at weblogic.cluster.MulticastManager.startListening(MulticastManager.java:169)
at weblogic.cluster.ClusterCommunicationService.initialize(ClusterCommunicationService.java:43)
at weblogic.t3.srvr.T3Srvr.initializeHere(T3Srvr.java:924)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:670)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:344)
at weblogic.Server.main(Server.java:32)
>
####<Oct 23, 2006 7:18:30 PM PKT> <Critical> <WebLogicServer> <cdc-a2feb6fa6ae> <devServer9922> <main> <<WLS Kernel>> <> <BEA-000364> <Server failed during initialization. Exception:weblogic.server.ServerLifecycleException: Failed to listen on multicast address
weblogic.server.ServerLifecycleException: Failed to listen on multicast address
at weblogic.cluster.ClusterCommunicationService.initialize(ClusterCommunicationService.java:48)
at weblogic.t3.srvr.T3Srvr.initializeHere(T3Srvr.java:924)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:670)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:344)
at weblogic.Server.main(Server.java:32)
Caused by: java.net.SocketException: error setting options
at java.net.PlainDatagramSocketImpl.join(Native Method)
at java.net.PlainDatagramSocketImpl.join(PlainDatagramSocketImpl.java:134)
at java.net.MulticastSocket.joinGroup(MulticastSocket.java:274)
at weblogic.cluster.FragmentSocket.initializeMulticastSocket(FragmentSocket.java:92)
at weblogic.cluster.FragmentSocket.start(FragmentSocket.java:109)
at weblogic.cluster.MulticastManager.startListening(MulticastManager.java:169)
at weblogic.cluster.ClusterCommunicationService.initialize(ClusterCommunicationService.java:43)
... 4 more
15 years ago
i have go through the link and setup admin server and two managed(cluster) servers. i also update running-managed-servers.xml file and add two managed servers. i also start Node Manager as a window service.

the problem is that when i start one of the managed server it will throw exception that NodeManager will not listen devserver9933(managed server).
15 years ago
kindly help in confugring and deployment of Clustering application on Weblogic 8.1 on standalone windows machine.

regards
Faisal
15 years ago
Ok, now Our architecure is given bellow.

Jsp Call routes to Controller Servlet(Single entry point for request). Controller Servlet then create appropreate Command Class (DAO) for requested tasks. Command Class have instance properties and mthods, but Command Class called from Controller Servlet doPost() method.

We are using our custom based data structure class, which contains Array List,
this object send by Bean class to Controller Servlet for further processing.

We are using Oracle 9i Database.

tell me where we can put our minds to check threading issues in this architecture?

Is session handling also wants threading aware programming.

regards
FI
16 years ago
Kindly tell me about threads controlling techniques in servlets/jsp application with respect to

DataBase Coding.
Java Util API usage.
MVC design Pattern.
Best Architecture.

regards
FI
[ May 13, 2006: Message edited by: Bear Bibeault ]
16 years ago
Kindly help me in this context as mentioned in subject.

I have Security Provider Jar File, which generates Security Key of data on client side.

We dont face any problems in our desktop based application in Swing.

But we are facing problems in Internet application regarding this issue.

We are using IE.5, we want to generate Key using JavaScript on client side before posting the information on server.

Kindly help me how to call java api using javascript!

We are avoiding to use APPLET? but if no possibilty is there then share info regarding applet communication using javascript.

regards
FI
16 years ago
Ok thanks ..
now tell me the suggestions regarding questions i have asked.

regards
FK
16 years ago
JSP
Hello
I have written web service and deploy it on axis but if I call it then java.net.connection error occured.

kindly send me the simple code and steps to write and deploye web service on axis

regards
Faisal
16 years ago
hello
we want to creat file upload module using JSP/Servlets API.
We only allow TXT type files to be uploaded through this module.
There are about 200 trusted clients will access this module to upload
there information that will be stored in DataBase after some validations.

We have face some problems that are given bellow.

Can we track file type before sending it to server?
ie. Rec.doc rename to Rec.txt, should not upload.

Can we track file contents to be uploaded are non harmfull?
i.e Rec.exe or Rec.dll rename as Rec.txt and upload it.
Can we use anti virus tools using java?

regards,
Faisal
[ April 22, 2006: Message edited by: Bear Bibeault ]
16 years ago
JSP
Hello,

i have deployed EJBs on weblogic 7.5, JNDI name look like

com/nbb/server/cc/ Bind Stub Object
com/nbb/server/tt/ Bind Stub Object
com/nbb/server/aa/bb/ Bind Stub Object
com/nbb/server/gg/kk/tt Bind Stub Object

i want to write generic java code to traverse the tree structure and find
bind object for these EJBs.
i also try message="true" but i wont work
16 years ago

ok fine now tell me if i use DAO classes for database,
and they are locally created in servlet doGet or doPost, are they thread safe or not.

another i dont understand session handling is also not thread safe?

regards
Faisal
16 years ago