Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@www.apache.org Received: (qmail 69584 invoked from network); 18 Sep 2003 13:46:43 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 18 Sep 2003 13:46:43 -0000 Received: (qmail 17716 invoked by uid 500); 18 Sep 2003 13:46:14 -0000 Delivered-To: apmail-jakarta-struts-user-archive@jakarta.apache.org Received: (qmail 17684 invoked by uid 500); 18 Sep 2003 13:46:14 -0000 Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 17669 invoked from network); 18 Sep 2003 13:46:13 -0000 Received: from unknown (HELO gmexchange1.int.teb.com.tr) (213.148.68.5) by daedalus.apache.org with SMTP; 18 Sep 2003 13:46:13 -0000 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RESOLVED -->> :RE: calls each method twice , logging everthing twice? X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0 Date: Thu, 18 Sep 2003 16:45:52 +0300 Message-ID: <0FE1A54E2CB67647B1F38F00F4B912B8035BE1BE@gmexchange1.int.teb.com.tr> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: calls each method twice , logging everthing twice? Thread-Index: AcN9yMB9ETxjfnnDSQiHAMOLRfGLMQADNKQQAAUre8A= From: "Seyhan BASMACI (Internet Yazilimlari Yetkilisi)" To: "Struts Users Mailing List" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N hi, finally I solved the problem,=20 error reason -> missing definitions for the plug-in tags inside struts-config.xml file , there was a missing definition for the = plugin tags, missing parameter ---->>>> /******************* plugin tags ****************************/// /************** error on the browser ********************/ following error on the browser, never calls JSP page,,=20 > > > > ERROR on the browser: > > > > java.lang.NullPointerException > > org.apache.struts.tiles.ComponentDefinition > > > = org.apache.struts.tiles.xmlDefinition.FactorySet.getDefinition(java.lang.= S > > tr > > ing, javax.servlet.ServletRequest, javax.servlet.ServletContext) > > FactorySet.java:156 > > org.apache.struts.tiles.ComponentDefinition > > > = org.apache.struts.tiles.definition.ComponentDefinitionsFactoryWrapper.get= D > > ef > > inition(java.lang.String, javax.servlet.ServletRequest, > > javax.servlet.ServletContext) > > ComponentDefinitionsFactoryWrapper.java:56 > > boolean > > > = org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(java= .. > > la > > ng.String, boolean, javax.servlet.http.HttpServletRequest, > > javax.servlet.http.HttpServletResponse) > > TilesRequestProcessor.java:175 > > > > > > /********************************************************/// -----Original Message----- From: Seyhan BASMACI (Internet Yazilimlari Yetkilisi)=20 Sent: Thursday, September 18, 2003 2:17 PM To: Struts Users Mailing List Subject: RE: calls each method twice , logging everthing twice? thanks but it solved just logging part of problem ,, struts logs correctly like this >>>[INFO] RequestProcessor - -Processing a 'POST' for path '/Login'=20 >>>processActionForward(/pages/bireysel/common/welcome.jsp, false) but it gives same error still but ,,=20 I want to say one more thing , it finds correctly actionForward object , inside that object I can see = name of the JSP page will be directed, I put a breakpoint to the beginning of JSP page , but it never enters to = that jsp ,, gives "null pointer exception" ,, it throws error while directing to the JSP page, why?=20 -----Original Message----- From: Raju, Saravanan [mailto:Saravanan_Raju@syntelinc.com] Sent: Thursday, September 18, 2003 12:46 PM To: Struts Users Mailing List Subject: RE: calls each method twice , logging everthing twice? onSubmit=3Dreturn false; in form tag should solve the problem. > Thanks, > ---------------------------------------------- > Saravanan Raju > Sr.Analyst >=20 > -----Original Message----- > From: Andrew Hill [SMTP:andrew.david.hill@gridnode.com] > Sent: Thursday, September 18, 2003 2:57 PM > To: Struts Users Mailing List > Subject: RE: calls each method twice , logging everthing twice? >=20 > I had a similar bug in IE6 where I had a submit button that invoked a = js > method that did some stuff and then called form.submit(). In IE5 Id = only > have one submission, but in 6 it would do the submission from my call = to > submit() AND do the submit buttons submit as well. >=20 > -----Original Message----- > From: Raju, Saravanan [mailto:Saravanan_Raju@syntelinc.com] > Sent: Thursday, 18 September 2003 16:09 > To: Struts Users Mailing List > Subject: RE: calls each method twice , logging everthing twice? >=20 >=20 > please check that you are not submitting the form twice using java = script > or > so. >=20 > one in onSubmit handler and other progrmatically using form.submit(); >=20 >=20 > > Thanks, > > ---------------------------------------------- > > Saravanan Raju > > Sr.Analyst >=20 >=20 > > > > -----Original Message----- > > From: Andrew Hill [SMTP:andrew.david.hill@gridnode.com] > > Sent: Thursday, September 18, 2003 12:15 PM > > To: Struts Users Mailing List > > Subject: RE: calls each method twice , logging everthing twice? > > > > It looks as though the browser is sending two requests for the page. > > > > Not familiar with tiles so am not sure about the exception your = getting > > though. > > > > -----Original Message----- > > From: Seyhan BASMACI (Internet Yazilimlari Yetkilisi) > > [mailto:sbasmaci@teb.com.tr] > > Sent: Thursday, 18 September 2003 14:26 > > To: Struts Users Mailing List > > Subject: calls each method twice , logging everthing twice? > > > > > > hi, > > we are using jdeveloper as ide , and struts as framework ,, > > I dont know when it is started but in debug mode it calls each = method > > twice > > (calls action class execute method twice ) and struts gives followig > > message > > after calling my first action class (loginAction) ,, > > it seccessfull execute and fiinds mapping for the login,, > > but gives the following message while sending response to the = client, > > is there anybody encountered with this problem ? > > > > here is the STRUTS log info, as you can see it does = processActionForward > > twice > > > > [INFO] RequestProcessor - -Processing a 'POST' for path '/Login' > > [INFO] RequestProcessor - -Processing a 'POST' for path '/Login' > > processActionForward(/pages/bireysel/common/welcome.jsp, false) > > processActionForward(/pages/bireysel/common/welcome.jsp, false) > > > > > > ERROR on the browser: > > > > java.lang.NullPointerException > > org.apache.struts.tiles.ComponentDefinition > > > = org.apache.struts.tiles.xmlDefinition.FactorySet.getDefinition(java.lang.= S > > tr > > ing, javax.servlet.ServletRequest, javax.servlet.ServletContext) > > FactorySet.java:156 > > org.apache.struts.tiles.ComponentDefinition > > > = org.apache.struts.tiles.definition.ComponentDefinitionsFactoryWrapper.get= D > > ef > > inition(java.lang.String, javax.servlet.ServletRequest, > > javax.servlet.ServletContext) > > ComponentDefinitionsFactoryWrapper.java:56 > > boolean > > > = org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(java= .. > > la > > ng.String, boolean, javax.servlet.http.HttpServletRequest, > > javax.servlet.http.HttpServletResponse) > > TilesRequestProcessor.java:175 > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: struts-user-help@jakarta.apache.org