dcsimg
problem with two threads (tomcat 5.5.17 and struts )
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   raja_rajan
Posted On:   Friday, August 24, 2007 06:18 AM

In my application, when i click 'edit rules' button from jsp It request goes to Struts action class and received my required jsp file. Here problem is, I am getting 4 messages in Message object( ) instead of 2. My message object is modified my two threads 'http-8084-Processor16' and 'http-8084-Processor24'. Note: Highlighted in RED in my log Can you give some idea to solve this. ******** log ******** INFO [http-8084-Processor16] (ApplicationAction.java:77) - submitValue is editrules Filter List: [ Cerner , A01, all, all] Hibernate: SELECT distinct rules.* FROM MSDW_MASTERRULES rules JOIN MSDW_RULECONTEXTREG cont   More>>

In my application, when i click 'edit rules' button from jsp It request goes to Struts action class and received my required jsp file.

Here problem is, I am getting 4 messages in Message object( ) instead of 2.


My message object is modified my two threads 'http-8084-Processor16' and 'http-8084-Processor24'.


Note: Highlighted in RED in my log

Can you give some idea to solve this.



******** log ********
INFO [http-8084-Processor16] (ApplicationAction.java:77) - submitValue is editrules
Filter List: [ Cerner , A01, all, all]
Hibernate: SELECT distinct rules.*
FROM MSDW_MASTERRULES rules
JOIN MSDW_RULECONTEXTREG context
ON rules.RULEMASTER_ID = context.RULEMASTERID
WHERE context.LEVEL1CONTEXT LIKE ?
AND context.LEVEL2EVENT LIKE ?
AND context.LEVEL3ACTION LIKE ?
AND context.LEVEL4FIELD LIKE ?
Hibernate: select distinct m.level1Context as context from MSDW_RULECONTEXTREG m order by m.level1Context
INFO [http-8084-Processor24] (ApplicationAction.java:77) - submitValue is editrules
Filter List: [ Cerner , A01, all, all]
Hibernate: SELECT distinct rules.*
FROM MSDW_MASTERRULES rules
JOIN MSDW_RULECONTEXTREG context
ON rules.RULEMASTER_ID = context.RULEMASTERID
WHERE context.LEVEL1CONTEXT LIKE ?
AND context.LEVEL2EVENT LIKE ?
AND context.LEVEL3ACTION LIKE ?
AND context.LEVEL4FIELD LIKE ?
Hibernate: select distinct m.level1Context as context from MSDW_RULECONTEXTREG m order by m.level1Context
INFO [http-8084-Processor16] (FetchObjects.java:150) - Plain SQL: [Canopy, Cerner, Eagle, MNO, SCC]
Hibernate: select distinct m.level2Event as event from MSDW_RULECONTEXTREG m order by m.level2Event
INFO [http-8084-Processor24] (FetchObjects.java:150) - Plain SQL: [Canopy, Cerner, Eagle, MNO, SCC]
Hibernate: select distinct m.level2Event as event from MSDW_RULECONTEXTREG m order by m.level2Event
INFO [http-8084-Processor16] (FetchObjects.java:150) - Plain SQL: [A01, A03, Denials]
Hibernate: select distinct m.level3Action as action from MSDW_RULECONTEXTREG m order by m.level3Action
INFO [http-8084-Processor24] (FetchObjects.java:150) - Plain SQL: [A01, A03, Denials]
INFO [http-8084-Processor16] (FetchObjects.java:150) - Plain SQL: [Denial File, PID, R01, R02, R03]
Hibernate: select distinct m.level4Field as field from MSDW_RULECONTEXTREG m order by m.level4Field
INFO [http-8084-Processor16] (FetchObjects.java:150) - Plain SQL: [Blood Preasure, Body Temperature, MRN, Patient ID, Physician ID]

INFO [http-8084-Processor16] (ApplicationAction.java:93) - i_ActionMessages {Action Error=[Error occured[]], Error=[errors.request.invalid[]]}


Hibernate: select distinct m.level3Action as action from MSDW_RULECONTEXTREG m order by m.level3Action
INFO [http-8084-Processor24] (FetchObjects.java:150) - Plain SQL: [Denial File, PID, R01, R02, R03]
Hibernate: select distinct m.level4Field as field from MSDW_RULECONTEXTREG m order by m.level4Field
ERROR [http-8084-Processor16] (LoggerTag.java:97) - Error From Log
INFO [http-8084-Processor24] (FetchObjects.java:150) - Plain SQL: [Blood Preasure, Body Temperature, MRN, Patient ID, Physician ID]

INFO [http-8084-Processor24] (ApplicationAction.java:93) - i_ActionMessages {Action Error=[Error occured[], Error occured[]], Error=[errors.request.invalid[], errors.request.invalid[]]}

ERROR [http-8084-Processor24] (LoggerTag.java:97) - Error From Log

******** log ********

   <<Less

Re: problem with two threads (tomcat 5.5.17 and struts )

Posted By:   WarnerJan_Veldhuis  
Posted On:   Friday, August 24, 2007 08:05 AM

Are you using javascript to submit? In that case return false from the onSumbit event, otherwise the form gets submitted twice.
About | Sitemap | Contact