• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Debugging a webapp on a production machine.

 
Ranch Hand
Posts: 689
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi java ranchers,


I am explaining my problem clearly...


I am working on online b2b2 shopping portal.

so we have 3 servers other than my local system like development server, ITG server, production server.

so in bug testing phase we got an error in ITG server and development server.

so i have taken latest code from integration server and also latest database dump file and imported in my local system.

but still i am unable to reproduce that error in my local system



please any experienced java developer help me out.....

this is really critical issue...
cecause even after taking latest code and latest dump file i am aunable to reproduce the error in local system


is there any thing other than these taking latest dmp and latest source code ???

please help me out.

[BPSouther: Added meaningful subject line]
[ June 12, 2007: Message edited by: Ben Souther ]
 
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Its no way related to servlets.Isn't it ?

There are many thing which can be recreated under the same system configurations only.You might be able to recreate in production which is hosted in UNIX and not able to do the same in development environment which is Windows 2000.

I have just guessed the OS's for example.
 
saikrishna cinux
Ranch Hand
Posts: 689
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes rahul your exactly correct.

I accept that this issue is not related to servlets but i thought that this is the good place to ask.

and you are right that ITG and pro servers are unix box.
and my system is XP box.

I guess you know the answer for this?


please help me out boss..

thanks in advance
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are many things that might fail under these conditions. Without knowing on what its failing we cannot say anything.
By the way what error are you getting in production environment.

Let me tell you a scenario which I faced.

suppose there is a file in windows at c:\test\test.log
Then is will work under windows.

File f = new File("c:\test\test.log ");

Suppose you have a file at \use\drive\test\test.log
Then the following will not work under UNIX.

File f = new File("\use\drive\test\test.log ");
To make it work you have to trim
"\use\drive\test\test.log "
to
"\use\drive\test\test.log"

there are many scenarios like this , which might fail from environment to environment.
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
saikrishna cinux,

You've been around long enough to have seen our links to
HowToAskQuestionsOnJavaRanch

If your problem is truly critical or urgent to you then it is especially important to follow those guidelines.

In particular, please see:
UseAMeaningfulSubjectLine
and
EaseUp

Following these tips will insure that your question is in the best possible position to be answered quickly and correctly.
[ June 11, 2007: Message edited by: Ben Souther ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you looked at the log files on your production machine to see why it's failing?

One of the major differences between Unix and Windows is the way security is handled. Have you checked to make sure that the user under which your container is running has sufficient permissions to read and write where needed to run your application?
 
saikrishna cinux
Ranch Hand
Posts: 689
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Ben Souther:
Have you looked at the log files on your production machine to see why it's failing?



Yes,
I have done with it.
I have checked the log files and confirmed that the problem is with currency.
hmmm let me explain it more clearly.

My wiork is on b2b shopping .
so we have localization ,currency facility in the storefront for the enduser.
when the user login to the application default currency will be set to MXN.
when the user wants to purchase a product he will select a particular product by selecting a particular category and then he will add to the basket.

so when the first time user adds a product to the basket there is no problem related to currency.

But when the user adds second product there is servlet which checks the currency of existing product which was added to the basket and the currency which is going to be added.

so here suddenly the currency is going to be changed to USD.
we are getting that currency from a session.

so there might be problem with that session only (i guess).

but the same thing is working fine in my local system even after taking the latest code and latest database dump from production server.


please Ben can you help me out on this issue,

thanking you.

regards
saikrishna
 
saikrishna cinux
Ranch Hand
Posts: 689
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
please , any suggestions on this issue.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you tested it with multiple users on your own machine?
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

please , any suggestions on this issue.



Ben may be on to something - look carefully at the code for instance variables in the servlet code that hold user specific data. This would create problems that only show up with multiple "simultaneous" users.

You may need to develop a system for load testing that emulates multiple users using something like the HttpClient toolkit.

Bill
 
reply
    Bookmark Topic Watch Topic
  • New Topic