Program works in Debug mode but not normally???
843841Sep 23 2004 — edited Sep 23 2004Can someone please assist me on this one.
Basically I have two web pages using struts. Once calls the other via the use of an action class and server-side java code.
When I run through debug I get the following trace:
[23/09/04 10:48:48:906 GMT] 6eb8fca9 SystemOut O Step 1: In accept Action - Call doAccept()
[23/09/04 10:48:48:906 GMT] 6eb8fca9 SystemOut O METHOD: accept
[23/09/04 10:48:48:906 GMT] 6eb8fca9 SystemOut O Step 2: In doAccept Action
[23/09/04 10:48:48:921 GMT] 6eb8fca9 SystemOut O Step 3: Leaving doAccept Action
[23/09/04 10:48:48:921 GMT] 6eb8fca9 SystemOut O METHOD: accept
[23/09/04 10:48:48:921 GMT] 6eb8fca9 SystemOut O Step 4: End accept Action
[23/09/04 10:48:48:921 GMT] 6eb8fca9 SystemOut O Step 5: in MVCondition accept Action
[23/09/04 10:48:48:921 GMT] 6eb8fca9 SystemOut O METHOD: accept
[23/09/04 10:48:48:937 GMT] 6eb8fca9 SystemOut O Step 6: Products List Size: 1
[23/09/04 10:48:48:937 GMT] 6eb8fca9 SystemOut O Product: 0 , Saleable Orderable Ind: B
[23/09/04 10:48:48:937 GMT] 6eb8fca9 SystemOut O Product: 0 , Condition 1: on
[23/09/04 10:48:48:937 GMT] 6eb8fca9 SystemOut O Product: 0 , Condition 2: off
[23/09/04 10:48:48:937 GMT] 6eb8fca9 SystemOut O Product: 0 , Condition 3: off
[23/09/04 10:48:48:937 GMT] 6eb8fca9 SystemOut O Product: 0 , Reward: off
[23/09/04 10:48:48:937 GMT] 6eb8fca9 SystemOut O Product: 0 , StitNo : 20000271
[23/09/04 10:48:48:937 GMT] 6eb8fca9 SystemOut O Step 7: leaving MVCondition accept Action
[23/09/04 10:48:48:937 GMT] 6eb8fca9 SystemOut O METHOD: accept
[23/09/04 10:48:48:937 GMT] 6eb8fca9 SystemOut O Mrp action is: mvConditions
However when I run normally I get this trace:
[23/09/04 10:48:48:906 GMT] 6eb8fca9 SystemOut O Step 1: In accept Action - Call doAccept()
[23/09/04 10:48:48:906 GMT] 6eb8fca9 SystemOut O METHOD: accept
[23/09/04 10:48:48:906 GMT] 6eb8fca9 SystemOut O Step 2: In doAccept Action
[23/09/04 10:48:48:921 GMT] 6eb8fca9 SystemOut O Step 3: Leaving doAccept Action
[23/09/04 10:48:48:921 GMT] 6eb8fca9 SystemOut O METHOD: accept
[23/09/04 10:48:48:921 GMT] 6eb8fca9 SystemOut O Step 4: End accept Action
[23/09/04 10:48:48:921 GMT] 6eb8fca9 SystemOut O Step 5: in MVCondition accept Action
[23/09/04 10:48:48:921 GMT] 6eb8fca9 SystemOut O METHOD: accept
[23/09/04 10:48:48:937 GMT] 6eb8fca9 SystemOut O Step 6: Products List Size: 1
[23/09/04 10:48:48:937 GMT] 6eb8fca9 SystemOut O Product: 0 , Saleable Orderable Ind: B
[23/09/04 10:48:48:937 GMT] 6eb8fca9 SystemOut O Product: 0 , Condition 1: on
[23/09/04 10:48:48:937 GMT] 6eb8fca9 SystemOut O Product: 0 , Condition 2: off
[23/09/04 10:48:48:937 GMT] 6eb8fca9 SystemOut O Product: 0 , Condition 3: off
[23/09/04 10:48:48:937 GMT] 6eb8fca9 SystemOut O Product: 0 , Reward: off
[23/09/04 10:48:48:937 GMT] 6eb8fca9 SystemOut O Product: 0 , StitNo : 20000271
[23/09/04 10:48:48:937 GMT] 6eb8fca9 SystemOut O Step 7: leaving MVCondition accept Action
[23/09/04 10:48:48:937 GMT] 6eb8fca9 SystemOut O METHOD: accept
[23/09/04 10:48:48:937 GMT] 6eb8fca9 SystemOut O Mrp action is: mvConditions
[23/09/04 10:48:48:984 GMT] 5d14bca4 SystemOut O Step 1: In accept Action - Call doAccept()
[23/09/04 10:48:48:984 GMT] 5d14bca4 SystemOut O METHOD: accept
[23/09/04 10:48:48:984 GMT] 5d14bca4 SystemOut O Step 2: In doAccept Action
[23/09/04 10:48:48:984 GMT] 5d14bca4 SystemOut O Step 3: Leaving doAccept Action
[23/09/04 10:48:48:984 GMT] 5d14bca4 SystemOut O METHOD: accept
[23/09/04 10:48:48:984 GMT] 5d14bca4 SystemOut O Step 4: End accept Action
[23/09/04 10:48:48:999 GMT] 5d14bca4 SystemOut O Step 5: in MVCondition accept Action
[23/09/04 10:48:48:999 GMT] 5d14bca4 SystemOut O METHOD: accept
[23/09/04 10:48:48:999 GMT] 5d14bca4 SystemOut O Step 6: Products List Size: 1
[23/09/04 10:48:48:999 GMT] 5d14bca4 SystemOut O Product: 0 , Saleable Orderable Ind: B
[23/09/04 10:48:48:999 GMT] 5d14bca4 SystemOut O Product: 0 , Condition 1: null
[23/09/04 10:48:48:999 GMT] 5d14bca4 SystemOut O Product: 0 , Condition 2: null
[23/09/04 10:48:48:999 GMT] 5d14bca4 SystemOut O Product: 0 , Condition 3: null
[23/09/04 10:48:48:999 GMT] 5d14bca4 SystemOut O Product: 0 , Reward: null
[23/09/04 10:48:48:999 GMT] 5d14bca4 SystemOut O Product: 0 , StitNo : 20000271
[23/09/04 10:48:48:999 GMT] 5d14bca4 SystemOut O Step 7: leaving MVCondition accept Action
[23/09/04 10:48:48:999 GMT] 5d14bca4 SystemOut O METHOD: accept
[23/09/04 10:48:48:999 GMT] 5d14bca4 SystemOut O Mrp action is: mvConditions
As you can see the code is called twice and the address is different both times.
Firstly it is 6eb8fca9 and then it changes to 5d14bca4.
Could this be a threading issue????
Help me please.
Cheers
Matt