Sachin Dimble

Ranch Hand
+ Follow
since Dec 07, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Sachin Dimble

Hi All,
I am developing the CORBA client & I want to set some connection related properties while i initialize the CORBA, e.g. ConnectionTimeOut,IdleConnectionTime. Does anybody have an idea how should i initialize this properties & what are the default setting for this values, Currently i found only org.omg.CORBA.ORBInitialHost,org.omg.CORBA.ORBInitialPort these two properties. I am using SUN java CORBA. Also what all care (firewall setting) i should take, if my server is running in different network?


Thanks.
-Sachin.
15 years ago
Thanks David for your reply, i tried following but it didn't worked -



It logs same (all) messages to both files. where as i want special.log should have only messages from
sorry i put it under wrong forum please ignore this post.
Hi,
I have one Log4j.properties file for my web application.



Now i want, only some of my classes () inside this application logs their messages in other file "special.log".

I searched it at many places including Apache resources but couldn't figure out how to do that.
Any help/link will be helpful.

Thanks.
Hi,
I have one Log4j.properties file for my web application.



Now i want, only some of my classes (com.myapp.SpecialClass) inside this application logs their messages in other file "special.log".

I searched it at many places including Apache resources but couldn't figure out how to dothat.
Any help/link will be helpful.

Thanks.



I am using Apache TelnetClient api to communicate with Telent server. I can send first command successfully and can read the response for the same, then after some time if i send the command using same TelnetClient instance, it executes the command but on read it gives the exception ReadTimeOut. I tried with different values of soTimeOut (5,10,15,20 secs) but it won't changed the behavior. seems some bug with apache telnet api, i also tried the workarround setReader(false), but unfortunately it won't work. any suggestion will be helpful.

Thanks,
-Sachin.
Hi All,
I am trying to implement ssh port forwarding future in my code, i tried following steps with both Ganymed and JSCH libraries.

I have two unix boxses tunnleFrom and ExtSystem.

ExtSystem : where my stub is listning on port 10023, this stub is suppose to respond on incomning requests.
tunnleFrm : where i have run ssh -g -L11023:ExtSystem:10023 user2@tunnleFrm

Now if i fire http request http://tunnleFrm:11023 through IE my stub is responding correctly means the ssh port forwarding is working ok.

But if i send request through following code my code runs succesfully but i won't get any response from stub (am sure that request is not getting forwarded to stub).

System.out.println("port forwarding starts");
String hostname = "tunnleFrm";
String username = "user2";
String password = "user2";
Connection conn = new Connection(hostname);
conn.connect();
boolean isAuthenticated = conn.authenticateWithPassword(username, password);

if (isAuthenticated == false)
throw new IOException("Authentication failed.");
LocalPortForwarder lpf1 = conn.createLocalPortForwarder(11023, "ExtSystem", 10023);
Session sess = conn.openSession();
System.out.println("created ssh session ");
//sess.startShell();
sess.execCommand("qdn 9999999999");
System.out.println("Executed command ");

Thanks & Regards,
-Sachin.
well it's resolved!!! i implemented the swing worker thread while populating the Jtable, now my application is migrated to -
java version "1.6.0_01"
Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode, sharing

now when i click on coloumn of Jtable for sorting the rows am getting the same exception. since these exception is in api code itself i can't debug it by printing the objects which are going null.
How shall i supress this exception?

Thanks,
Sachin.
17 years ago
Anybody having any idea?
17 years ago
Hi Ranchers!!!
I am developing a swing application. whenever this application window is minimized and some events occurs inside the application it should starts blinking(the same way IM applications blinks when recevies messages).
I heard that this is possible using JDk6.0 new Desktop lib. but not sure.
Any links or information will be helpful!!!
Thanks!!!
Sachin.
17 years ago
Hi Ranchers,
I am packaging JRE1.5 abd JBOSS with my application itself. My question do i neeed to declare it in my Relese Note or any kind specific declaration for this....

thanks in advance
Sachin!!!
18 years ago
Hi Ranchers,
I am developing a swing application which is deployed on jboss. Application get started through jnlp as soon as jboss boots up. I am packaging jre1.5 with application which is suppose to be used by application.for this jre's javaws setting am doing some jnlp setting because of which application dosen't get installed on m/c(doesn't get visible in control panel). Now my problem is if m/c already has jre1.5 then my application's packaged javaws setting gets changed to setting of already installed jre's javaws, because of which my application gets installed.(visible in control panel) Could you please suggest me how to prevent this?

Regards,
Sachin!!!
18 years ago
Hi Smitha!
It should not create multiple instances of java.exe. could you through some code over here to understand what you have done excatly. I think you are doing some simple mistake in your code itself.

Regards,
Saaaaaaachin!!!
18 years ago
Hi Ranchers,
I am populating an JTable with some information. everything works fine but while populating table am getting following exception(still am able to populate table correctly)

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at javax.swing.plaf.basic.BasicTableHeaderUI.paintCell(BasicTableHeaderUI.java:394)

what could be the reason for this exception. and how to rectify the same?

thanks in advance!
Sachin!!!
18 years ago
Thanks a ton Michael! now it's working fine,and i got the point too.

-Saaaaachin!!!
18 years ago