Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!

Karan Sinha

Greenhorn
+ Follow
since Apr 05, 2006
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 Karan Sinha

I�m facing a strange scenario here and would appreciate any inputs which could resolve this issue.

I have two webapplications (EAR�s) on two different machine and different WebSphere application server. I have �WebAppA� [on machine A, WAS A] which opens in parent window and expects to pass some info in the FORM submission with request parameter to �WebAppB� [on machine B, WAS B] which opens in a child window browser on clicking submit button from �WebAppA�.

Now the WebAppA is required to wait till the response come from WebAppB after certain functionality and once the function of retrieval is over by WebAppB, it sent back the response data back to WebAppA FORM, which finally submits this form after getting the response data from WebAppB. Now the response to WebAppA [which is in machine A, WAS A] from WebAppB is a pure POST request on complete URL and set of request parameters with values.

Now what is happening is that, when a User A fills the form on WebAppA and submits the data to WebAppB, on response it gets the data of some other User request, for example day of UserB or UserC.

Now when I do the test on my development environment, where its just me or some other 2-3 users accessing it I don�t face any problem. I get the response for the request I have submitted�.PERFECT. On production I have issue where users are getting data as response of other users.

I suspect since the response is submitted to the form page of WebAppA its unable to synchronize to which user it belongs to. May be that�s the reason when I test it on development with single or 2-3 users its behaving fine. I hope I could put my question properly to you. I don�t know what can resolve this or what is the actual cause? Is there a proper way to implement this? Please any suggestion or inputs are appreciated.
Thanks Satou,

But by default the value is -1 right? Do you think this is the problem? Since this problem is not faced by all users, i suspect what might be the cause of this behaviour?
14 years ago
JSP
I have a web application which uses user browser cookie to perform Single-Sign-On after user�s login to the system. I�m experiencing a problem lately that user session stays with old user even after he do a logout or close the browser. I remember that if the expiry is not set the cookie stays only till the life of the browser, right? I�m using http Cookie class to set the cookie token and cookie name/value.

The problem solves when the users manually got to IE option and delete the cookies and temp files. Then if he login it works fine.

Is there a way to get around this problem? We experience this happening not with all users, but with some of them (most of XP users). Is there a specific thing need to be done on my JSP or some configuration to be set on end-user�s machine? We cant say each users of same machine to go each time to go to IE options and do the clear process. Please advice. Any input on this is appreciated.
14 years ago
JSP
I'm using IBM WebSphere Application Server Advanced Edition 4.0.1 and IBM UDB 7.0. Offlate i'm getting a continuous deadlock error in most of the system transactions. Pls provide with some inputs as its affecting many production users.

COM.ibm.db2.jdbc.DB2Exception: [IBM][CLI Driver][DB2/6000] SQL0911N The current transaction has been rolled back because of a deadlock or timeout. Reason code "2". SQLSTATE=40001

Its not happening on a specific application, but on sparingly on all application for last 1 month. Is there a patch or fix from DB2 or WebSphere which solves this? I'm sure its not a generic error accross all users of this combination (WAS + IBM DB2 UDB). Any inputs and feedback is appreciated.

Note: The WebSphere App Server is configured to connect to DB2 using datasource.
I'm using IBM WebSphere Application Server Advanced Edition 4.0.1 and IBM UDB 7.0. Offlate i'm getting a continuous deadlock error in most of the system transactions. Pls provide with some inputs as its affecting many production users.

COM.ibm.db2.jdbc.DB2Exception: [IBM][CLI Driver][DB2/6000] SQL0911N The current transaction has been rolled back because of a deadlock or timeout. Reason code "2". SQLSTATE=40001

Its not happening on a specific application, but on sparingly on all application for last 1 month. Is there a patch or fix from DB2 or WebSphere which solves this? I'm sure its not a generic error accross all users of this combination (WAS + IBM DB2 UDB). Any inputs and feedback is appreciated.

Note: The WebSphere App Server is configured to connect to DB2 using datasource.
14 years ago
Thanks James,

The calls are occuring from session to session basis through the webapplication. So each session initiates this method, hence it doesnt conflict the transactions occuring concurrently and they are not writing onto the single file. Each session user file is written on filename which is the combination of timesstamp + username. So, even if i remove synchronized on writeFile it should'nt create the problem, right..?? & do you see the process of writing getting faster if i remove the synchronized??

As i said i'm poking at the codes of third party s/w, so dont know why they have this synchronized. Just trying to play around to resolve this huge delay in user transaction. Any feedback is appreciated.
Well this is the only place where I have posted this request. I believe since the code block where i traced the issue was related to synchronized, so thought of posting on this thread. Pls. move to relevent thread if you are moderator and if u feel it belongs to J2EE.
Hello Jason,

Thanks for your response. Actually its a thridparty software which is user to encrypt the user transaction. And my application - all it needs was to fetch this file which is created at each user transaction and store it in our DB as a blob. But when in real-time the system took almost around 4-5 mins for a user to complete a transaction, Tracing the process fund that writing these files on filesystem is taking the delay time and almost delay from user to do the transaction. But it does completes, does'nt fail.

My concern is what's in this block of code that might be delaying the whole process so much??
Hello all,

I'm using a thirdparty class in my J2EE application which writes encrypted file onto the file system. Its observed that its taking a long time when many users access the system. Tracing I found that its getting delayed in writing the file onto the hard drive. I investigated further that the third party class is using following code to write to file the byte data. I'm suspecting a delay in this block. I wish if the forum buddies throw some light on this:




Its affecting the system users since its a web application where this class is called and its giving a time delay of something like 2-3 minutes for each user. Any feedback is highly appreciated. Kindly suggest the recovery from this.
Jeroen, to clarify you when I mentioned here multiple employers they are the front runners and not those so-called body shoppers.

And I�m not here to snatch some other potential candidates� opportunity. Also, I�ll b stamping only one visa so I�m not traveling on two employers boat. It�s a free, professional and competitive world and one has the right to choose the opportunity that comes by if he has the right caliber and potential. So lets not stray away on ethical and principles lines here Jeroen.

As Rohan rightly pointed out, if two companies have found you potential, there isn�t any harm in trying both of them.
14 years ago
Thank you so much Rohan.

I appreciate your timely response. There was a speculation in air about INS getting strict on this matter and multiple candidates applications getting submitted by various employers.

You clarified my concern. Thanks again and take care.
14 years ago
Hello,

I would like to know if two H1 visas can be approved for a same person and me stamping only one.

I have offer from two companies for my H1-B, but I�m afraid if I choose one and unfortunately at the time of issuance (starting 1st Oct 2006), suppose it gets rejected or something... ..I�ll be denied the opportunity.

So I�m thinking of processing my application through both the employers and on approval, can select the better offer (the reputed company) and stamp that visa.

Now my question is:
Is this possible?? Is there any problem if two employers file for my H1-B processing?
Since my application is going by two employers, is there a possibility that both get rejected?

I�m in dilemma and unable to decide. Feedback and suggestions are highly appreciated.

Thanks.
14 years ago
Thanks deepika, rajan

deepika: It was really agonizing to hear the faith of your friend. Yes, this brings a good point that I have to clarify with them the relocation expenses and most importantly putting me with right clients.

Also, would like to know the hour of working...isn�t the prof's charged per hourly basis. Now my consulting firm are promising a bench salary of 1 month when out of assignments but its salary based and mush lesser than the other firm which is offering me hourly basis with no benefits what so ever.

rajan: You said it right dude, it�s a mix of both good and bad experience...and what you all are sharing here is critical inputs which will allow so many ranchers for being cautious in their approach. Also a good suggestion as mentioned by rajan is to enquire from current employees abt their treatment. So please guys...if any1 here are aware of OR working with some good consulting firms, just shoot your suggestions and help...it�ll help guys from falling in wrong hands.

Also a starting salary of 60K p.a offered for a 6 yr exp in java. Is it a good offer???

Thanks all of u 4 ur feedback...rajan ur 2 cents when I earn my 1st dollar.. ..just kidding!!!
14 years ago
Thanks Jay, Geoffrey, Amit and Rithesh..

ne1 wonder what flourishes this forum so much�this is it...so many frank, critical and useful suggestions..this is what I wanted to hear seriously, since plenty of them have gone through this or already going thru..

Jay �n Geoffry: I�m aware of the consequences and I was following both of ur threads on similar issues very closely�as I said, I have decided abt the switch and I think nothing better than US at this moment. Not saying opportunities aren�t there in India, but its competitive and w.r.t the yr of exp. one cant better the same compensation of US for that matter.

As Amit rightly pointed out�nothing works out without a risk and I�m 28. Not saying that I�m young but if its not now, then for sure it�ll just remain as a plan and dream for me for ever.

Amit: Suppose I come through a consulting firm and try for a change to for example a better sponsor company after 1 or 1 � yr. Are there any hurdles involved? Will the current firm/consulting firm make a problem for my career hop? Is there any specific rule existing in H1-B which will allow/disallow me from doing this?

Is H1-B transfer a smooth process and a normal stuff?

The offers which I have, in that One is salary based, which is purely fixed salary per month based defined by them during the initial contract (and appraised periodically based on assignment).
Second is hourly based where I�ll be charged 70-30 basis but no benefits what so ever. But the earning per month is much higher compared to first one (salaried). Which one do you think is better option considering the living and security of job?

I�m no desperate to make to US, but yes do like to have career growth, earn money and eager for being in the market. I realize it�s a gamble to leave a secured and stable job but one have to make this by keeping in mind a long term goal. I know there are a BIG bad experiences and LOT�s of good experiences also in this kinda endeavor...But I�m sure lots of IT prof�s are surviving and have come out of this tough phase...and I�ll love to hear from them in this thread�since that will set so many things to individuals like me who wants to excel in this direction. Its easy to swim with the flow of water...but what�s hard is swim against the flow of river.

But I�m sure with more success stories and right directions from the ranchers in this thread guys will conquer in this rough phase of career decision...so pls. speak up guys...share whatever you have gone through (good OR bad) during your H1 initial phase, so that some fellow buddies or professional don�t do same mistake and come out triumph in this process...thanks 2 all in anticipation.
14 years ago
Hello friends,

I have been approached by couple of H1-B consulting companies for US opportunities. I�m working now (IT exp. of 6yrs) and aspiring a career 2 US. The offer is through pure consultants who are in US.....now I know MOST of my fellow forum buddies will go mad at me for going with these consulting firms (I know that.. .someone called them blood-suckers, fraud, cheats, body-shoppers, abusing professionals...illegally getting people on board...etc). But believe me I�m no IIT, IIM, REC or Infosys...so that an US onsite offer will knock at my door. So, I need to get myself landed in there through these so-called consulting firms through fees, bonds, guarantee etc etc..

I believe this forum has mix of all � people who are in US, who went through company (the lucky one�s.. ..), the one who went through consultants (possibly like me), and some who got cheated by such betrayers....I�m new to this kinda recruitment, so can the forum members throw at me ALL the valid queries which I need to get clarified with my employer/consulting firm before I make the final decision with them, so that I�m almost sure that I have done all required clarifications which all the fellow people here have gone through. I�m sort of avoiding falling in a ditch, where the lesson learnt from all the people here can help me out.

I hope I�ll surely get some help/feedback from all my buddies here...let it be like a brain-storming...so that every1 in forum get some info out of this and be cautious while they decide on this option...thanks... ..Karan.
14 years ago